e97760a82547f06f8417a3c7fe94c0cc0144b766
[gnulib.git] / ChangeLog
1 2010-03-07  Bruno Haible  <bruno@clisp.org>
2
3         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
4         among default module list.
5
6 2010-03-07  Bruno Haible  <bruno@clisp.org>
7
8         Fix link error on platforms with GNU libiconv.
9         * modules/unistr/u8-strcoll-tests (Makefile): Define
10         test_u8_strcoll_LDADD.
11         * modules/unistr/u16-strcoll-tests (Makefile): Define
12         test_u16_strcoll_LDADD.
13         * modules/unistr/u32-strcoll-tests (Makefile): Define
14         test_u32_strcoll_LDADD.
15
16 2010-03-07  Bruno Haible  <bruno@clisp.org>
17
18         Use POSIX declarations for socket functions.
19         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
20         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
21         rpl_sendto): Change declaration to match POSIX.
22         * lib/connect.c (rpl_connect): Likewise.
23         * lib/accept.c (rpl_accept): Likewise.
24         * lib/bind.c (rpl_bind): Likewise.
25         * lib/getpeername.c (rpl_getpeername): Likewise.
26         * lib/getsockname.c (rpl_getsockname): Likewise.
27         * lib/recv.c (rpl_recv): Likewise.
28         * lib/send.c (rpl_send): Likewise.
29         * lib/recvfrom.c (rpl_recvfrom): Likewise.
30         * lib/sendto.c (rpl_sendto): Likewise.
31
32 2010-03-06  Bruno Haible  <bruno@clisp.org>
33
34         Clarify access, euidaccess, faccessat.
35         * doc/posix-functions/faccessat.texi: Mention security problem under
36         "Other problems", not "Portability problems".
37         * doc/posix-functions/access.texi: Likewise. Mention a related security
38         problem.
39         * doc/glibc-functions/euidaccess.texi: Mention security problems.
40         * lib/euidaccess.c: Add comments about platforms.
41         * lib/unistd.in.h (access, euidaccess): Add warnings.
42
43 2010-03-07  Bruno Haible  <bruno@clisp.org>
44
45         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
46         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
47         (POSIX_SPAWN_SETSCHEDULER): Likewise.
48         (POSIX_SPAWN_USEVFORK): Define in a way that works when
49         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
50         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
51         declare when POSIX_SPAWN_SETSCHEDULER is zero.
52         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
53         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
54         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
55         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
56         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
57         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
58         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
59         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
60         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
61         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
62         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
63         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
64         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
65         Likewise.
66         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
67         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
68         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
69         Likewise.
70         * tests/test-spawn.c (main): Make it work when
71         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
72
73 2010-03-07  Bruno Haible  <bruno@clisp.org>
74
75         Fix incorrect Makefile.am generation in German locale.
76         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77         Execute sed command with character range in C locale.
78
79 2010-03-06  Bruno Haible  <bruno@clisp.org>
80
81         Tests for module 'iconv-h'.
82         * modules/iconv-h-tests: New file.
83         * tests/test-iconv-h.c: New file.
84
85         New module 'iconv-h'.
86         * modules/iconv-h: New file.
87         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
88         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
89         (configure.ac): Remove gl_ICONV_H.
90         (Makefile.am): Remove rule for iconv.h.
91
92 2010-03-06  Bruno Haible  <bruno@clisp.org>
93
94         More consistent naming of *.m4 files.
95         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
96         * modules/wctype (Files): Update.
97
98         More consistent naming of *.m4 files.
99         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
100         * modules/wchar (Files): Update.
101
102 2010-03-06  Jim Meyering  <meyering@redhat.com>
103
104         euidaccess: relax license to LGPLv2+
105         * modules/euidaccess (License): Relax to LGPLv2+.
106
107 2010-03-06  Bruno Haible  <bruno@clisp.org>
108
109         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
110         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
111         (Makefile.am): Augment lib_SOURCES instead.
112
113 2010-03-04  Jim Meyering  <meyering@redhat.com>
114
115         utime: remove obsolete module
116         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
117         unnecessary for years, and has been marked as obsolete for 10 months.
118         * modules/utime: Remove file.
119         * lib/utime.c: Remove file.
120         * m4/utime.m4: Remove file.
121         * m4/utimes-null.m4: Remove file.
122         * doc/posix-functions/utime.texi (utime): Remove reference to
123         the module.  Move the sole "fixed by gnulib" item into the
124         "problems not fixed by Gnulib" list.
125         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
126
127 2010-03-05  Simon Josefsson  <simon@josefsson.org>
128
129         * modules/exit (License): Relax license to LGPLv2+.
130         (Status): Mark as obsolete.
131         * NEWS: Mention deprecated 'exit' module.
132         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
133         of now obsolete 'exit'.
134
135 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
136
137         fts-lgpl: remove unused module
138         * modules/fts-lgpl: Remove.
139         * MODULES.html.sh (func_all_modules): Adjust.
140         * check-module (find_included_lib_files): Adjust.
141         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
142
143 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
144
145         copy-acl: enhance Solaris ACL error handling
146         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
147         * lib/set-mode-acl.c (qset_acl): Likewise.
148
149 2010-03-02  Bruno Haible  <bruno@clisp.org>
150
151         spawn: Don't override the system defined values on FreeBSD 8.
152         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
153         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
154         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
155         if HAVE_POSIX_SPAWN is 1.
156         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
157
158 2010-03-01  Bruno Haible  <bruno@clisp.org>
159
160         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
161         regarding Automake.
162
163 2010-02-25  Bruno Haible  <bruno@clisp.org>
164
165         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
166         * gnulib-tool: Define 'echo' as a function only before the ksh alias
167         setting, not afterwards.
168         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
169
170 2010-02-24  Eric Blake  <eblake@redhat.com>
171
172         bootstrap, git-version-gen: use timestamp
173         * build-aux/git-version-gen (scriptversion): Force UTC.
174         * build-aux/bootstrap (scriptversion): New variable.
175
176         bootstrap: allow older git
177         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
178         older than 1.6.4.  Requested by the libvirt project.
179
180 2010-02-23  Eric Blake  <eblake@redhat.com>
181
182         warn-on-use: work with old autoconf
183         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
184         AS_VAR semantics of autoconf 2.60.
185         Reported by Bruno Haible.
186
187         bootstrap: improve some comments
188         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
189         clarification comments.
190
191         gettimeofday: provide correct function
192         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
193         when replacement is declared, otherwise provide gettimeofday.
194         Reported by Michael Goffioul.
195
196 2010-02-23  Jim Meyering  <meyering@redhat.com>
197
198         lib-ignore: relax license to "unlimited", not LGPLv2+
199         * modules/lib-ignore (License): Relax to "unlimited".
200
201 2010-02-23  Jim Meyering  <meyering@redhat.com>
202
203         lib-ignore: relax license to LGPLv2+
204         * modules/lib-ignore (License): Relax to LGPLv2+.
205
206 2010-02-22  Eric Blake  <eblake@redhat.com>
207
208         lseek: avoid bash 3.2 broken pipe bug
209         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
210         warning from bash 3.2.
211         Reported by Ben Pfaff, with analysis from Bruno Haible.
212
213         bootstrap: support non-FSF copyright holder
214         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
215         bootstrap.conf override of COPYRIGHT_HOLDER.
216         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
217
218         bootstrap: interoperate with gettext 0.14.1
219         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
220
221         bootstrap: allow for alternate submodule location
222         * build-aux/bootstrap (gnulib_path): New variable; use instead of
223         hardcoding submodule location.
224         (gnulib_mk): Allow direct use of Makefile.am.
225
226         bootstrap: use GNULIB_SRCDIR to reduce disk usage
227         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
228         rather than reconfiguring where the submodule points.
229
230         gettimeofday: restore support for platforms that lack function
231         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
232         replacement if function is missing.
233         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
234         * modules/sys_time (Makefile.am): Substitute it.
235         * lib/sys_time.in.h (gettimeofday): Check it.
236         Reported by Michael Goffioul.
237
238 2010-02-21  Bruno Haible  <bruno@clisp.org>
239
240         * lib/stdio.in.h (obstack_printf): Fix typo.
241
242 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
243
244         vc-list-files: use bzr ls's -R option
245         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
246         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
247
248 2010-02-21  Jim Meyering  <meyering@redhat.com>
249
250         init.sh: fix EXEEXT shims to work also for names like test-prog
251         * tests/init.sh: Re-exec a better shell, when needed.
252         If the current shell lacks support for posix $(...), an init.sh-using
253         test will now try to find a shell that supports that.  If EXEEXT is
254         nonempty, we also require support for hyphen-in-alias-name and shell
255         substitutions like ${var#glob}.  Failure to find such a shell results
256         in a skipped test.
257
258 2010-02-21  Bruno Haible  <bruno@clisp.org>
259
260         Really work around around "broken pipe" error message from bash 3.2.
261         * gnulib-tool (func_reset_sigpipe): Remove function.
262         (echo): In bash 3.2, define to a function that uses printf.
263         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
264
265 2010-02-20  Bruno Haible  <bruno@clisp.org>
266
267         Restore support for automake 1.9.6 with autoconf 2.61.
268         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
269         Reported by James Youngman <jay@gnu.org>.
270
271 2010-02-20  Bruno Haible  <bruno@clisp.org>
272
273         Improve *printf warning condition.
274         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
275         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
276         and the function is overridden due to SIGPIPE emulation.
277
278 2010-02-20  Bruno Haible  <bruno@clisp.org>
279
280         * lib/stdio.in.h: Tweak comments.
281
282 2010-02-19  Bruno Haible  <bruno@clisp.org>
283
284         Make it easier to find modules. New gnulib-tool option '--find'.
285         * gnulib-tool: New option --find.
286         (func_usage): Document it.
287         (func_sanitize_modulelist): New function, extracted from
288         func_all_modules.
289         (func_all_modules): Invoke it.
290         * doc/gnulib-tool.texi (Which modules?): New node.
291
292 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
293
294         * lib/sys_select.in.h: Provide select replacement even if
295         sys/select.h exists on a system, for Interix.
296
297 2010-02-18  Jim Meyering  <meyering@redhat.com>
298
299         init.sh: don't use $(...) just yet
300         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
301         to accommodate e.g., Solaris' /bin/sh.
302
303 2010-02-17  Bruno Haible  <bruno@clisp.org>
304
305         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
306         Reported by Ludovic Courtès <ludo@gnu.org>.
307
308 2010-02-16  Simon Josefsson  <simon@josefsson.org>
309
310         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
311         linking with -lintl.
312
313 2010-02-17  Simon Josefsson  <simon@josefsson.org>
314
315         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
316         if not provided by the system's netdb.h.  Reported by
317         ludo@gnu.org (Ludovic Courtès).
318
319 2010-02-15  Jim Meyering  <meyering@redhat.com>
320
321         init.sh: improve portability and efficiency
322         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
323         "dummy" in a for loop.
324         Use '!', not '^' to select the complement of a character set used
325         in a "case" statement.
326         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
327         Suggestions from Eric Blake.
328
329         init.sh: automatically accommodate programs with the .exe suffix
330         Automatically arrange for an invocation of "prog" to execute the
331         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
332         may use the simpler "prog", yet still work when built on a system
333         that requires specifying the added suffix.
334         Do this by constructing a function named "prog" that invokes
335         "prog.exe" for each .exe file in selected directories.
336         * tests/init.sh (find_exe_basenames_): New function.
337         (create_exe_shim_functions_): New function.
338         (path_prepend_): Use it.
339
340         maint.mk: mark syntax-check sc_*.m rules as .PHONY
341         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
342         "make -t syntax-check" doesn't create a ton of sc_*.m files.
343
344 2010-02-14  Jim Meyering  <meyering@redhat.com>
345
346         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
347         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
348         (sc_prohibit_hash_pjw_without_use): New rule.
349
350         maint.mk: allow the default upload destination dir to be overridden
351         * top/maint.mk (upload_dest_dir_): Define with a default that
352         preserves the status quo.
353         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
354         Reported by Peter Simons.
355
356         maint.mk: prohibit inclusion of "hash.h" without_use
357         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
358
359 2010-02-10  Jim Meyering  <meyering@redhat.com>
360
361         maint.mk: prohibit inclusion of "ignore-value.h" without_use
362         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
363
364 2010-02-09  Eric Blake  <ebb9@byu.net>
365         and Bruno Haible  <bruno@clisp.org>
366
367         obstack-printf-posix: ensure declaration
368         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
369         extracted from gl_FUNC_OBSTACK_PRINTF.
370         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
371         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
372         Likewise.
373         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
374         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
375         0.
376
377 2010-02-08  Bruno Haible  <bruno@clisp.org>
378
379         gnulib-tool: Fix typo in 2010-02-07 commit.
380         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
381         Reported by Eric Blake.
382
383 2010-02-07  Bruno Haible  <bruno@clisp.org>
384
385         gnulib-tool: Fix up caching patches.
386         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
387         option --no-cache. Use associative arrays when supported by the shell.
388         (sed_comments): New variable.
389         (modcache): Renamed from do_cache.
390         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
391         abbreviate unnecessarily.
392         (have_associative): New variable.
393         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
394         way also for ksh and zsh.
395         (func_init_sed_convert_to_cache_statements): New function, extracted
396         from func_cache_lookup_module. Add support for associative arrays.
397         Don't set the c_MODULE_cached variable here. Ignore all lines before
398         the first field header. Remove only the final newline, not all trailing
399         newlines. Support empty fields correctly. Limit the use of 'eval' to
400         assignments.
401         (func_get_description, func_get_status, func_get_notice,
402         func_get_applicability, func_get_filelist, func_get_dependencies,
403         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
404         func_get_automake_snippet, func_get_include_directive,
405         func_get_link_directive, func_get_license, func_get_maintainer):
406         Update documentation. List the unoptimized code first. Add support for
407         associative arrays. Limit the use of 'eval' to assignments.
408         (func_get_applicability): Undo stylistic pessimisations.
409         (func_get_automake_snippet, func_get_include_directive): Reduce code
410         duplication.
411         (func_modules_transitive_closure, func_modules_add_dummy,
412         func_modules_notice, func_modules_to_filelist, func_add_file,
413         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
414         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
415         func_create_testdir, func_create_megatestdir): Update documentation.
416
417 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
418
419         * gnulib-tool (func_cache_lookup_module): Store the module name
420         belonging to the cache variable; error out if two different
421         module names map to the same cache variable name.
422
423 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
424
425         gnulib-tool: Make caching optional.
426         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
427         Update matching short versions of --no-changelog.
428         (func_usage): Update.
429         (sed_extract_cache_prog): Renamed from ...
430         (sed_extract_prog): ... this; revert to old extraction script.
431         (func_get_description, func_get_status)
432         (func_get_notice, func_get_applicability, func_get_filelist)
433         (func_get_dependencies, func_get_autoconf_early_snippet)
434         (func_get_autoconf_snippet, func_get_automake_snippet)
435         (func_get_include_directive, func_get_link_directive)
436         (func_get_license, func_get_maintainer): If $do_cache is false,
437         use old, non-caching extraction scripts.
438         Suggestion by Bruno Haible.
439
440 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
441
442         gnulib-tool: cache module metainformation.
443         * gnulib-tool (sed_extract_prog): Match newline before each
444         header, and rewrite header to a shell variable suffix.
445         (func_cache_var, func_cache_lookup_module): New functions,
446         to turn a module name into a cache variable prefix, and to
447         look up and cache module metainformation.
448         (func_get_description, func_get_status)
449         (func_get_notice, func_get_applicability, func_get_filelist)
450         (func_get_dependencies, func_get_autoconf_early_snippet)
451         (func_get_autoconf_snippet, func_get_automake_snippet)
452         (func_get_include_directive, func_get_link_directive)
453         (func_get_license, func_get_maintainer): Use
454         func_cache_lookup_module.
455
456 2010-02-07  Bruno Haible  <bruno@clisp.org>
457
458         fnctl: Fix missing dependency.
459         * modules/fcntl (Depends-on): Add getdtablesize.
460         Reported by John W. Eaton <jwe@gnu.org>.
461
462 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
463
464         Argp: fix recognition of short alias options.
465
466         * lib/argp-parse.c (convert_options): Fix improper use of
467         `|' between character values.
468         * tests/test-argp.c (group1_option): New alias option
469         --read (-r).
470         (group1_parser): Special handling for 'r'.
471         (test15): New test case.
472         (test_fun): Add test15.
473         * tests/test-argp-2.sh: Update expected --help and --usage
474         outputs.
475
476 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
477
478         * tests/test-argp.c: Fix indentation.
479
480 2010-02-04  Eric Blake  <ebb9@byu.net>
481
482         gettimeofday: expose type of second argument
483         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
484         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
485         * tests/test-gettimeofday.c: Use it to silence warning.
486         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
487         the issue.
488
489 2010-02-03  Jim Meyering  <meyering@redhat.com>
490
491         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
492         * lib/regcomp.c (TYPE_SIGNED): Define.
493         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
494
495         regcomp.c: avoid a new -Wshadow warning
496         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
497
498 2010-02-01  Jim Meyering  <meyering@redhat.com>
499
500         removing useless parentheses in cpp #define directives
501         For motivation, see commit c0221df4, "define STREQ(a,b)
502         consistently, removing useless parentheses"
503         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
504         * lib/mountlist.c (MNT_IGNORE): Likewise.
505         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
506
507 2010-02-01  Eric Blake  <ebb9@byu.net>
508
509         sys_time: use link-warning
510         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
511         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
512         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
513         * modules/sys_time (Depends-on): Add warn-on-use.
514         (Makefile.am): Always build replacement.
515         (configure.ac): Update substitutions.
516         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
517         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
518         bother with SYS_TIME_H.
519         * modules/gettimeofday (configure.ac): Declare indicator.
520         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
521         in use.
522
523         closein-tests: silence compiler warning
524         * tests/test-closein.c (main): Ignore fread result.
525         * modules/closein-tests (Depends-on): Add ignore-value.
526
527         tests: silence warning about system return
528         * tests/test-areadlink-with-size.c (main): Ignore system result.
529         * tests/test-areadlink.c (main): Likewise.
530         * tests/test-areadlinkat-with-size.c (main): Likewise.
531         * tests/test-areadlinkat.c (main): Likewise.
532         * tests/test-canonicalize-lgpl.c (main): Likewise.
533         * tests/test-canonicalize.c (main): Likewise.
534         * tests/test-chown.c (main): Likewise.
535         * tests/test-fchownat.c (main): Likewise.
536         * tests/test-fdutimensat.c (main): Likewise.
537         * tests/test-fstatat.c (main): Likewise.
538         * tests/test-futimens.c (main): Likewise.
539         * tests/test-lchown.c (main): Likewise.
540         * tests/test-link.c (main): Likewise.
541         * tests/test-linkat.c (main): Likewise.
542         * tests/test-lstat.c (main): Likewise.
543         * tests/test-mkdir.c (main): Likewise.
544         * tests/test-mkdirat.c (main): Likewise.
545         * tests/test-mkfifo.c (main): Likewise.
546         * tests/test-mkfifoat.c (main): Likewise.
547         * tests/test-mknod.c (main): Likewise.
548         * tests/test-readlink.c (main): Likewise.
549         * tests/test-remove.c (main): Likewise.
550         * tests/test-rename.c (main): Likewise.
551         * tests/test-renameat.c (main): Likewise.
552         * tests/test-rmdir.c (main): Likewise.
553         * tests/test-symlink.c (main): Likewise.
554         * tests/test-symlinkat.c (main): Likewise.
555         * tests/test-unlink.c (main): Likewise.
556         * tests/test-unlinkat.c (main): Likewise.
557         * tests/test-utimens.c (main): Likewise.
558         * tests/test-utimensat.c (main): Likewise.
559         * modules/areadlink-tests (Depends-on): Add ignore-value.
560         * modules/areadlink-with-size-tests (Depends-on): Likewise.
561         * modules/areadlinkat-tests (Depends-on): Likewise.
562         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
563         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
564         * modules/canonicalize-tests (Depends-on): Likewise.
565         * modules/chown-tests (Depends-on): Likewise.
566         * modules/fdutimensat-tests (Depends-on): Likewise.
567         * modules/futimens-tests (Depends-on): Likewise.
568         * modules/lchown-tests (Depends-on): Likewise.
569         * modules/link-tests (Depends-on): Likewise.
570         * modules/linkat-tests (Depends-on): Likewise.
571         * modules/lstat-tests (Depends-on): Likewise.
572         * modules/mkdir-tests (Depends-on): Likewise.
573         * modules/mkfifo-tests (Depends-on): Likewise.
574         * modules/mkfifoat-tests (Depends-on): Likewise.
575         * modules/mknod-tests (Depends-on): Likewise.
576         * modules/openat-tests (Depends-on): Likewise.
577         * modules/readlink-tests (Depends-on): Likewise.
578         * modules/remove-tests (Depends-on): Likewise.
579         * modules/rename-tests (Depends-on): Likewise.
580         * modules/renameat-tests (Depends-on): Likewise.
581         * modules/rmdir-tests (Depends-on): Likewise.
582         * modules/symlink-tests (Depends-on): Likewise.
583         * modules/symlinkat-tests (Depends-on): Likewise.
584         * modules/unlink-tests (Depends-on): Likewise.
585         * modules/utimens-tests (Depends-on): Likewise.
586         * modules/utimensat-tests (Depends-on): Likewise.
587
588 2010-01-31  Bruno Haible  <bruno@clisp.org>
589
590         Perform the same test for many <math.h> functions.
591         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
592         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
593         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
594         of gl_MATHFUNC.
595         * modules/acos (configure.ac): Likewise.
596         * modules/asin (configure.ac): Likewise.
597         * modules/atan (configure.ac): Likewise.
598         * modules/atan2 (configure.ac): Likewise.
599         * modules/cbrt (configure.ac): Likewise.
600         * modules/copysign (configure.ac): Likewise.
601         * modules/cos (configure.ac): Likewise.
602         * modules/cosh (configure.ac): Likewise.
603         * modules/erf (configure.ac): Likewise.
604         * modules/erfc (configure.ac): Likewise.
605         * modules/exp (configure.ac): Likewise.
606         * modules/fmod (configure.ac): Likewise.
607         * modules/hypot (configure.ac): Likewise.
608         * modules/j0 (configure.ac): Likewise.
609         * modules/j1 (configure.ac): Likewise.
610         * modules/jn (configure.ac): Likewise.
611         * modules/lgamma (configure.ac): Likewise.
612         * modules/log (configure.ac): Likewise.
613         * modules/log10 (configure.ac): Likewise.
614         * modules/log1p (configure.ac): Likewise.
615         * modules/pow (configure.ac): Likewise.
616         * modules/remainder (configure.ac): Likewise.
617         * modules/sin (configure.ac): Likewise.
618         * modules/sinh (configure.ac): Likewise.
619         * modules/tan (configure.ac): Likewise.
620         * modules/tanh (configure.ac): Likewise.
621         * modules/y0 (configure.ac): Likewise.
622         * modules/y1 (configure.ac): Likewise.
623         * modules/yn (configure.ac): Likewise.
624         Suggested by Paolo Bonzini.
625
626 2010-01-31  Bruno Haible  <bruno@clisp.org>
627
628         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
629
630 2010-01-31  Bruno Haible  <bruno@clisp.org>
631
632         Work around getdelim() bug on FreeBSD 8.0.
633         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
634         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
635         not work.
636         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
637         is 1.
638         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
639         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
640         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
641         a non-zero size.
642         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
643
644 2010-01-31  Bruno Haible  <bruno@clisp.org>
645
646         Work around getline() bug on FreeBSD 8.0.
647         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
648         and a non-zero size.
649         * tests/test-getline.c (main): Likewise.
650         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
651         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
652
653 2010-01-28  Eric Blake  <ebb9@byu.net>
654
655         regex: fix build failure
656         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
657         platforms.
658
659 2010-01-28  Jim Meyering  <meyering@redhat.com>
660
661         regex: do not ignore memory allocation failure
662         * lib/regex_internal.c (create_cd_newstate): Detect
663         re_node_set_init_copy failure.   Extracted from glibc commit
664         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
665
666         regex: sync more white-space changes from libc
667         * lib/regex_internal.c: White-space only changes.
668         * lib/regexec.c: Likewise.
669
670         regex: add many uses of __attribute_warn_unused_result__
671         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
672         * lib/regexec.c: Likewise.
673         Extracted from a messy glibc commit.
674
675         regcomp.c: spelling and merge-artifact from glibc
676         * lib/regcomp.c: Merge remainder of glibc's
677         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
678
679         regcomp.c: sync white-space changes from glibc
680         * lib/regcomp.c: Merge to accommodate white space
681         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
682
683         regcomp.c: do not ignore internal return values
684         * lib/regcomp.c: Do not ignore internal return values.
685         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
686         but without its white-space changes and spelling fixes.
687
688         regex_internal.h: define __attribute_warn_unused_result__
689         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
690
691         maint: add a syntax-check rule to check for vulnerable Makefile.in
692         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
693
694 2010-01-27  Jim Meyering  <meyering@redhat.com>
695
696         ncftpput-ftp: clean up spaces
697         * build-aux/ncftpput-ftp: Make Copyright line consistent.
698         Remove trailing blanks.
699
700 2010-01-27  Simon Josefsson  <simon@josefsson.org>
701
702         * build-aux/git-version-gen: Fix copyright statement.
703         * build-aux/gnupload: Likewise.
704         * tests/test-arcfour.c: Likewise.
705         * tests/test-arctwo.c: Likewise.
706         * tests/test-count-one-bits.c: Likewise.
707         * tests/test-crc.c: Likewise.
708         * tests/test-des.c: Likewise.
709         * tests/test-gc-arcfour.c: Likewise.
710         * tests/test-gc-arctwo.c: Likewise.
711         * tests/test-gc-des.c: Likewise.
712         * tests/test-gc-hmac-md5.c: Likewise.
713         * tests/test-gc-hmac-sha1.c: Likewise.
714         * tests/test-gc-md2.c: Likewise.
715         * tests/test-gc-md4.c: Likewise.
716         * tests/test-gc-md5.c: Likewise.
717         * tests/test-gc-pbkdf2-sha1.c: Likewise.
718         * tests/test-gc-rijndael.c: Likewise.
719         * tests/test-gc-sha1.c: Likewise.
720         * tests/test-gc.c: Likewise.
721         * tests/test-gethostname.c: Likewise.
722         * tests/test-gettimeofday.c: Likewise.
723         * tests/test-hash.c: Likewise.
724         * tests/test-hmac-md5.c: Likewise.
725         * tests/test-hmac-sha1.c: Likewise.
726         * tests/test-md2.c: Likewise.
727         * tests/test-md4.c: Likewise.
728         * tests/test-md5.c: Likewise.
729         * tests/test-memchr.c: Likewise.
730         * tests/test-memchr2.c: Likewise.
731         * tests/test-memcmp.c: Likewise.
732         * tests/test-memmem.c: Likewise.
733         * tests/test-memrchr.c: Likewise.
734         * tests/test-rawmemchr.c: Likewise.
735         * tests/test-read-file.c: Likewise.
736         * tests/test-rijndael.c: Likewise.
737         * tests/test-sockets.c: Likewise.
738         * tests/test-strchrnul.c: Likewise.
739         * tests/test-strstr.c: Likewise.
740         * tests/test-strtod.c: Likewise.
741         * build-aux/ncftpput-ftp: Likewise.
742
743 2010-01-26  Eric Blake  <ebb9@byu.net>
744
745         ignore-value: update recommended header name
746         * modules/ignore-value (Include): Only use <> for headers that
747         exist in glibc.
748
749 2010-01-26  Jim Meyering  <meyering@redhat.com>
750
751         test-userspec.c: avoid compiler warnings
752         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
753         and "initialization discards qualifiers..." warnings.
754         Put the first "uid" in its own scope, and make char* members "const".
755
756 2010-01-25  Bruno Haible  <bruno@clisp.org>
757
758         gnulib-tool: Make warning diagnostics consistent.
759         * gnulib-tool (func_warning): New function.
760         Use it everywhere where gnulib-tool produces output to stderr and it is
761         not a fatal error.
762
763 2010-01-25  Bruno Haible  <bruno@clisp.org>
764
765         Fix test dependencies.
766         * modules/xstrtol-tests (Depends-on): Add inttypes.
767         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
768
769 2010-01-25 Pádraig Brady <P@draigBrady.com>
770
771         syntax-check: detect incorrect boolean macro values in config.h
772         * modules/maintainer-makefile (configure.ac): Parameterize the location
773         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
774         The logic is from Eric Blake and the location indicated by Jim Meyering.
775         Note the more natural CONFIG_HEADER name is prohibited by automake
776         for backwards compatibility reasons.
777         * top/maint.mk (sc_Wundef_boolean): New rule.
778
779 2010-01-25  Jim Meyering  <meyering@redhat.com>
780
781         bootstrap: detect MacOS 10.6's shasum, too
782         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
783         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
784
785 2010-01-23  Jim Meyering  <meyering@redhat.com>
786
787         xstrtoll: new module
788         * modules/xstrtoll: New file.
789         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
790         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
791         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
792         ./configure fails if you use this module and lack "long long".
793         * modules/xstrtoll-tests: New module.
794         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
795         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
796         new init.sh-based test framework.
797
798 2010-01-24  Bruno Haible  <bruno@clisp.org>
799
800         Tests for module 'yn'.
801         * modules/yn-tests: New file.
802         * tests/test-yn.c: New file.
803
804         Tests for module 'y1'.
805         * modules/y1-tests: New file.
806         * tests/test-y1.c: New file.
807
808         Tests for module 'y0'.
809         * modules/y0-tests: New file.
810         * tests/test-y0.c: New file.
811
812         Tests for module 'tanh'.
813         * modules/tanh-tests: New file.
814         * tests/test-tanh.c: New file.
815
816         Tests for module 'tan'.
817         * modules/tan-tests: New file.
818         * tests/test-tan.c: New file.
819
820         Tests for module 'sqrt'.
821         * modules/sqrt-tests: New file.
822         * tests/test-sqrt.c: New file.
823
824         Tests for module 'sinh'.
825         * modules/sinh-tests: New file.
826         * tests/test-sinh.c: New file.
827
828         Tests for module 'sin'.
829         * modules/sin-tests: New file.
830         * tests/test-sin.c: New file.
831
832         Tests for module 'rint'.
833         * modules/rint-tests: New file.
834         * tests/test-rint.c: New file.
835
836         Tests for module 'remainder'.
837         * modules/remainder-tests: New file.
838         * tests/test-remainder.c: New file.
839
840         Tests for module 'pow'.
841         * modules/pow-tests: New file.
842         * tests/test-pow.c: New file.
843
844         Tests for module 'nextafter'.
845         * modules/nextafter-tests: New file.
846         * tests/test-nextafter.c: New file.
847
848         Tests for module 'modf'.
849         * modules/modf-tests: New file.
850         * tests/test-modf.c: New file.
851
852         Tests for module 'logb'.
853         * modules/logb-tests: New file.
854         * tests/test-logb.c: New file.
855
856         Tests for module 'log1p'.
857         * modules/log1p-tests: New file.
858         * tests/test-log1p.c: New file.
859
860         Tests for module 'log10'.
861         * modules/log10-tests: New file.
862         * tests/test-log10.c: New file.
863
864         Tests for module 'log'.
865         * modules/log-tests: New file.
866         * tests/test-log.c: New file.
867
868         Tests for module 'lgamma'.
869         * modules/lgamma-tests: New file.
870         * tests/test-lgamma.c: New file.
871
872         Tests for module 'ldexp'.
873         * modules/ldexp-tests: New file.
874         * tests/test-ldexp.c: New file.
875
876         Tests for module 'jn'.
877         * modules/jn-tests: New file.
878         * tests/test-jn.c: New file.
879
880         Tests for module 'j1'.
881         * modules/j1-tests: New file.
882         * tests/test-j1.c: New file.
883
884         Tests for module 'j0'.
885         * modules/j0-tests: New file.
886         * tests/test-j0.c: New file.
887
888         Tests for module 'hypot'.
889         * modules/hypot-tests: New file.
890         * tests/test-hypot.c: New file.
891
892         Tests for module 'fmod'.
893         * modules/fmod-tests: New file.
894         * tests/test-fmod.c: New file.
895
896         Tests for module 'fabs'.
897         * modules/fabs-tests: New file.
898         * tests/test-fabs.c: New file.
899
900         Tests for module 'exp'.
901         * modules/exp-tests: New file.
902         * tests/test-exp.c: New file.
903
904         Tests for module 'erfc'.
905         * modules/erfc-tests: New file.
906         * tests/test-erfc.c: New file.
907
908         Tests for module 'erf'.
909         * modules/erf-tests: New file.
910         * tests/test-erf.c: New file.
911
912         Tests for module 'cosh'.
913         * modules/cosh-tests: New file.
914         * tests/test-cosh.c: New file.
915
916         Tests for module 'cos'.
917         * modules/cos-tests: New file.
918         * tests/test-cos.c: New file.
919
920         Tests for module 'copysign'.
921         * modules/copysign-tests: New file.
922         * tests/test-copysign.c: New file.
923
924         Tests for module 'cbrt'.
925         * modules/cbrt-tests: New file.
926         * tests/test-cbrt.c: New file.
927
928         Tests for module 'atan2'.
929         * modules/atan2-tests: New file.
930         * tests/test-atan2.c: New file.
931
932         Tests for module 'atan'.
933         * modules/atan-tests: New file.
934         * tests/test-atan.c: New file.
935
936         Tests for module 'asin'.
937         * modules/asin-tests: New file.
938         * tests/test-asin.c: New file.
939
940         Tests for module 'acos'.
941         * modules/acos-tests: New file.
942         * tests/test-acos.c: New file.
943
944 2010-01-24  Bruno Haible  <bruno@clisp.org>
945
946         Fix tests for common <math.h> functions.
947         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
948         code snippet that references the function pointer, rather than merely
949         calling the function. Substitute the FUNC_LIBM variable.
950         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
951         * modules/acos (configure.ac): Likewise.
952         * modules/asin (configure.ac): Likewise.
953         * modules/atan (configure.ac): Likewise.
954         * modules/atan2 (configure.ac): Likewise.
955         * modules/cbrt (configure.ac): Likewise.
956         * modules/copysign (configure.ac): Likewise.
957         * modules/cos (configure.ac): Likewise.
958         * modules/cosh (configure.ac): Likewise.
959         * modules/erf (configure.ac): Likewise.
960         * modules/erfc (configure.ac): Likewise.
961         * modules/exp (configure.ac): Likewise.
962         * modules/fabs (configure.ac): Likewise.
963         * modules/fmod (configure.ac): Likewise.
964         * modules/hypot (configure.ac): Likewise.
965         * modules/j0 (configure.ac): Likewise.
966         * modules/j1 (configure.ac): Likewise.
967         * modules/jn (configure.ac): Likewise.
968         * modules/ldexp (configure.ac): Likewise.
969         * modules/lgamma (configure.ac): Likewise.
970         * modules/log (configure.ac): Likewise.
971         * modules/log10 (configure.ac): Likewise.
972         * modules/log1p (configure.ac): Likewise.
973         * modules/logb (configure.ac): Likewise.
974         * modules/modf (configure.ac): Likewise.
975         * modules/nextafter (configure.ac): Likewise.
976         * modules/pow (configure.ac): Likewise.
977         * modules/remainder (configure.ac): Likewise.
978         * modules/rint (configure.ac): Likewise.
979         * modules/sin (configure.ac): Likewise.
980         * modules/sinh (configure.ac): Likewise.
981         * modules/tan (configure.ac): Likewise.
982         * modules/tanh (configure.ac): Likewise.
983         * modules/y0 (configure.ac): Likewise.
984         * modules/y1 (configure.ac): Likewise.
985         * modules/yn (configure.ac): Likewise.
986
987 2010-01-24  Bruno Haible  <bruno@clisp.org>
988
989         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
990         * tests/test-acosl.c (x): New variable.
991         (main): Store argument in x and fetch it from x.
992         * tests/test-asinl.c (x): New variable.
993         (main): Store argument in x and fetch it from x.
994         * tests/test-atanl.c (x): New variable.
995         (main): Store argument in x and fetch it from x.
996         * tests/test-cosl.c (x): New variable.
997         (main): Store argument in x and fetch it from x.
998         * tests/test-expl.c (x): New variable.
999         (main): Store argument in x and fetch it from x.
1000         * tests/test-logl.c (x): New variable.
1001         (main): Store argument in x and fetch it from x.
1002         * tests/test-sinl.c (x): New variable.
1003         (main): Store argument in x and fetch it from x.
1004         * tests/test-sqrtl.c (x): New variable.
1005         (main): Store argument in x and fetch it from x.
1006         * tests/test-tanl.c (x): New variable.
1007         (main): Store argument in x and fetch it from x.
1008
1009 2010-01-24  Bruno Haible  <bruno@clisp.org>
1010
1011         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
1012         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
1013         assignments to the initial TESTS_ENVIRONMENT.
1014         * doc/gnulib.texi (Unit test modules): Document it.
1015         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
1016         TESTS_ENVIRONMENT.
1017         * modules/btowc-tests (Makefile.am): Likewise.
1018         * modules/c-stack-tests (Makefile.am): Likewise.
1019         * modules/c-strcase-tests (Makefile.am): Likewise.
1020         * modules/copy-file-tests (Makefile.am): Likewise.
1021         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
1022         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
1023         * modules/mbrtowc-tests (Makefile.am): Likewise.
1024         * modules/mbscasecmp-tests (Makefile.am): Likewise.
1025         * modules/mbscasestr-tests (Makefile.am): Likewise.
1026         * modules/mbschr-tests (Makefile.am): Likewise.
1027         * modules/mbscspn-tests (Makefile.am): Likewise.
1028         * modules/mbsinit-tests (Makefile.am): Likewise.
1029         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
1030         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
1031         * modules/mbspbrk-tests (Makefile.am): Likewise.
1032         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
1033         * modules/mbsrchr-tests (Makefile.am): Likewise.
1034         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
1035         * modules/mbsspn-tests (Makefile.am): Likewise.
1036         * modules/mbsstr-tests (Makefile.am): Likewise.
1037         * modules/nl_langinfo-tests (Makefile.am): Likewise.
1038         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
1039         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
1040         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
1041         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
1042         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
1043         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
1044         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
1045         * modules/wcrtomb-tests (Makefile.am): Likewise.
1046         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
1047         * modules/wcsrtombs-tests (Makefile.am): Likewise.
1048         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
1049         assignments from TESTS_ENVIRONMENT.
1050         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
1051         augmentation.
1052         * modules/argp-version-etc-tests (Makefile.am): Likewise.
1053         * modules/atexit-tests (Makefile.am): Likewise.
1054         * modules/binary-io-tests (Makefile.am): Likewise.
1055         * modules/closein-tests (Makefile.am): Likewise.
1056         * modules/dprintf-posix-tests (Makefile.am): Likewise.
1057         * modules/exclude-tests (Makefile.am): Likewise.
1058         * modules/fflush-tests (Makefile.am): Likewise.
1059         * modules/fpending-tests (Makefile.am): Likewise.
1060         * modules/fprintf-posix-tests (Makefile.am): Likewise.
1061         * modules/freadahead-tests (Makefile.am): Likewise.
1062         * modules/freadptr-tests (Makefile.am): Likewise.
1063         * modules/freadseek-tests (Makefile.am): Likewise.
1064         * modules/fseek-tests (Makefile.am): Likewise.
1065         * modules/fseeko-tests (Makefile.am): Likewise.
1066         * modules/ftell-tests (Makefile.am): Likewise.
1067         * modules/ftello-tests (Makefile.am): Likewise.
1068         * modules/idpriv-drop-tests (Makefile.am): Likewise.
1069         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
1070         * modules/lseek-tests (Makefile.am): Likewise.
1071         * modules/parse-duration-tests (Makefile.am): Likewise.
1072         * modules/perror-tests (Makefile.am): Likewise.
1073         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
1074         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
1075         * modules/pipe-tests (Makefile.am): Likewise.
1076         * modules/pread-tests (Makefile.am): Likewise.
1077         * modules/printf-posix-tests (Makefile.am): Likewise.
1078         * modules/select-tests (Makefile.am): Likewise.
1079         * modules/sigpipe-tests (Makefile.am): Likewise.
1080         * modules/tsearch-tests (Makefile.am): Likewise.
1081         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
1082         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
1083         * modules/uniname/uniname-tests (Makefile.am): Likewise.
1084         * modules/uniwidth/width-tests (Makefile.am): Likewise.
1085         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
1086         * modules/version-etc-tests (Makefile.am): Likewise.
1087         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
1088         * modules/vprintf-posix-tests (Makefile.am): Likewise.
1089         * modules/xalloc-die-tests (Makefile.am): Likewise.
1090         * modules/xprintf-posix-tests (Makefile.am): Likewise.
1091         * modules/xstrtoimax-tests (Makefile.am): Likewise.
1092         * modules/xstrtol-tests (Makefile.am): Likewise.
1093         * modules/xstrtoumax-tests (Makefile.am): Likewise.
1094         * modules/yesno-tests (Makefile.am): Likewise.
1095         Suggested by Jim Meyering.
1096
1097 2010-01-24  Bruno Haible  <bruno@clisp.org>
1098
1099         More documentation.
1100         * doc/gnulib.texi (Writing modules): New chapter.
1101         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
1102         the new chapter.
1103
1104 2010-01-24  Jim Meyering  <meyering@redhat.com>
1105
1106         maint.mk: do not prepend "./" after filtering
1107         * top/maint.mk (_prepend_srcdir_prefix): New variable
1108         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
1109         "./" when $(srcdir) is ".".
1110
1111         define STREQ(a,b) consistently, removing useless parentheses
1112         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
1113         since the only risk is that "a" or "b" contains an unparenthesized
1114         comma, but if either did that, STREQ would have 3 or more arguments.
1115         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
1116         * lib/fts.c (STREQ): Remove unnecessary parentheses.
1117         * lib/hash-triple.c (STREQ): Likewise.
1118         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
1119         * lib/getugroups.c (STREQ): Likewise.
1120
1121 2010-01-23  Jim Meyering  <meyering@redhat.com>
1122
1123         maint.mk: fix syntax-check in a non-srcdir build directory
1124         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
1125         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
1126
1127 2010-01-22  Jim Meyering  <meyering@redhat.com>
1128
1129         userspec: add unit tests
1130         * tests/test-userspec.c: New file.
1131         * modules/userspec-tests: Likewise.
1132
1133 2010-01-21  Jim Meyering  <meyering@redhat.com>
1134
1135         maint.mk: handle source file names containing "." robustly
1136         * top/maint.mk (_dot_escaped_srcdir): Define.
1137         (VC_LIST): Use it in LHS of sed substitution.
1138
1139 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
1140
1141         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
1142         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
1143         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
1144         from a non-srcdir build.
1145
1146 2010-01-20  Eric Blake  <ebb9@byu.net>
1147
1148         warn-on-use: use instead of link-warning
1149         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
1150         * modules/unistd (Depends-on, Makefile.am): Likewise.
1151         * modules/arpa_inet (Depends-on): Replace link-warning with
1152         warn-on-use.
1153         (Makefile.am): Update rules accordingly.
1154         * modules/ctype (Depends-on, Makefile.am): Likewise.
1155         * modules/dirent (Depends-on, Makefile.am): Likewise.
1156         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
1157         * modules/inttypes (Depends-on, Makefile.am): Likewise.
1158         * modules/langinfo (Depends-on, Makefile.am): Likewise.
1159         * modules/locale (Depends-on, Makefile.am): Likewise.
1160         * modules/math (Depends-on, Makefile.am): Likewise.
1161         * modules/search (Depends-on, Makefile.am): Likewise.
1162         * modules/signal (Depends-on, Makefile.am): Likewise.
1163         * modules/spawn (Depends-on, Makefile.am): Likewise.
1164         * modules/stdlib (Depends-on, Makefile.am): Likewise.
1165         * modules/string (Depends-on, Makefile.am): Likewise.
1166         * modules/strings (Depends-on, Makefile.am): Likewise.
1167         * modules/sys_file (Depends-on, Makefile.am): Likewise.
1168         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
1169         * modules/sys_select (Depends-on, Makefile.am): Likewise.
1170         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
1171         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
1172         * modules/sys_times (Depends-on, Makefile.am): Likewise.
1173         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
1174         * modules/wchar (Depends-on, Makefile.am): Likewise.
1175         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
1176         should be poisoned.
1177         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
1178         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
1179         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
1180         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1181         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1182         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
1183         * m4/math_h.m4 (gl_MATH_H): Likewise.
1184         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1185         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1186         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1187         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
1188         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
1189         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
1190         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1191         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
1192         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
1193         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1194         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1195         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
1196         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1197         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1198         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1199         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
1200         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
1201         GL_LINK_WARNING.
1202         * lib/ctype.in.h: Likewise.
1203         * lib/dirent.in.h: Likewise.
1204         * lib/fcntl.in.h: Likewise.
1205         * lib/inttypes.in.h: Likewise.
1206         * lib/langinfo.in.h: Likewise.
1207         * lib/locale.in.h: Likewise.
1208         * lib/math.in.h: Likewise.
1209         * lib/search.in.h: Likewise.
1210         * lib/signal.in.h: Likewise.
1211         * lib/spawn.in.h: Likewise.
1212         * lib/stdio.in.h: Likewise.
1213         * lib/stdlib.in.h: Likewise.
1214         * lib/string.in.h: Likewise.
1215         * lib/strings.in.h: Likewise.
1216         * lib/sys_file.in.h: Likewise.
1217         * lib/sys_ioctl.in.h: Likewise.
1218         * lib/sys_select.in.h: Likewise.
1219         * lib/sys_socket.in.h: Likewise.
1220         * lib/sys_stat.in.h: Likewise.
1221         * lib/sys_times.in.h: Likewise.
1222         * lib/sys_utsname.in.h: Likewise.
1223         * lib/unistd.in.h: Likewise.
1224         * lib/wchar.in.h: Likewise.
1225
1226 2010-01-20  Bruno Haible  <bruno@clisp.org>
1227
1228         Avoid duplicate -lm.
1229         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
1230         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
1231         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
1232         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
1233         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
1234         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
1235         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
1236         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
1237         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
1238         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
1239         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
1240         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1241         Reported by Paolo Bonzini.
1242
1243 2010-01-19  Bruno Haible  <bruno@clisp.org>
1244
1245         langinfo, nl_langinfo: Relicense under LGPLv2+.
1246         * modules/langinfo (License): Change to LGPLv2+.
1247         * modules/nl_langinfo (License): Likewise.
1248         Patch by David Lutterkort <lutter@redhat.com>.
1249
1250 2010-01-19  Bruno Haible  <bruno@clisp.org>
1251
1252         Avoid compilation error with cc on OSF/1 5.1.
1253         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
1254         statement, not before.
1255         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1256
1257 2010-01-18  Bruno Haible  <bruno@clisp.org>
1258
1259         Avoid a link error due to the __printf__ symbol.
1260         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
1261         and 2.6.x.
1262         (__format__, __printf__): Remove definitions.
1263         * lib/argp-fmtstream.h: Likewise.
1264         * lib/argp.h: Likewise.
1265         * lib/error.h: Likewise.
1266         * lib/vasnprintf.h: Likewise.
1267         * lib/xprintf.h: Likewise.
1268         * lib/xvasprintf.h: Likewise.
1269         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1270
1271 2010-01-18  Bruno Haible  <bruno@clisp.org>
1272
1273         Tests for module 'tanl'.
1274         * modules/tanl-tests: New file.
1275         * tests/test-tanl.c: New file.
1276
1277         Tests for module 'sqrtl'.
1278         * modules/sqrtl-tests: New file.
1279         * tests/test-sqrtl.c: New file.
1280
1281         Tests for module 'sinl'.
1282         * modules/sinl-tests: New file.
1283         * tests/test-sinl.c: New file.
1284
1285         Tests for module 'logl'.
1286         * modules/logl-tests: New file.
1287         * tests/test-logl.c: New file.
1288
1289         Tests for module 'expl'.
1290         * modules/expl-tests: New file.
1291         * tests/test-expl.c: New file.
1292
1293         Tests for module 'cosl'.
1294         * modules/cosl-tests: New file.
1295         * tests/test-cosl.c: New file.
1296
1297         Tests for module 'atanl'.
1298         * modules/atanl-tests: New file.
1299         * tests/test-atanl.c: New file.
1300
1301         Tests for module 'asinl'.
1302         * modules/asinl-tests: New file.
1303         * tests/test-asinl.c: New file.
1304
1305         Tests for module 'acosl'.
1306         * modules/acosl-tests: New file.
1307         * tests/test-acosl.c: New file.
1308
1309         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1310         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1311         tanl): Use the standard gnulib idiom.
1312         * lib/cosl.c: Don't include trigl.c and sincosl.c.
1313         * lib/sinl.c: Likewise.
1314         * lib/tanl.c: Don't include trigl.c.
1315         (kernel_tanl): Make static.
1316         * lib/sincosl.c: Include trigl.h first.
1317         * lib/trigl.c: Likewise.
1318         * m4/acosl.m4: New file.
1319         * m4/asinl.m4: New file.
1320         * m4/atanl.m4: New file.
1321         * m4/cosl.m4: New file.
1322         * m4/expl.m4: New file.
1323         * m4/logl.m4: New file.
1324         * m4/sinl.m4: New file.
1325         * m4/sqrtl.m4: New file.
1326         * m4/tanl.m4: New file.
1327         * m4/mathl.m4: Remove file.
1328         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
1329         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1330         Don't initialize GNULIB_MATHL.
1331         * modules/acosl: New file.
1332         * modules/asinl: New file.
1333         * modules/atanl: New file.
1334         * modules/cosl: New file.
1335         * modules/expl: New file.
1336         * modules/logl: New file.
1337         * modules/sinl: New file.
1338         * modules/sqrtl: New file.
1339         * modules/tanl: New file.
1340         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
1341         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
1342         substitute GNULIB_MATHL.
1343         * modules/mathl: Rewritten.
1344         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
1345         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
1346         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
1347         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
1348         * doc/posix-functions/expl.texi: Mention the 'expl' module.
1349         * doc/posix-functions/logl.texi: Mention the 'logl' module.
1350         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
1351         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
1352         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
1353
1354 2010-01-18  Bruno Haible  <bruno@clisp.org>
1355
1356         sqrt: Make gl_FUNC_SQRT requirable.
1357         * m4/sqrt.m4: New file.
1358         * modules/sqrt (Files): Add it.
1359         (configure.ac): Invoke gl_FUNC_SQRT.
1360
1361 2010-01-18  Bruno Haible  <bruno@clisp.org>
1362
1363         New modules for common <math.h> functions.
1364         * m4/mathfunc.m4: New file.
1365         * modules/acos: New file.
1366         * modules/asin: New file.
1367         * modules/atan: New file.
1368         * modules/atan2: New file.
1369         * modules/cbrt: New file.
1370         * modules/copysign: New file.
1371         * modules/cos: New file.
1372         * modules/cosh: New file.
1373         * modules/erf: New file.
1374         * modules/erfc: New file.
1375         * modules/exp: New file.
1376         * modules/fabs: New file.
1377         * modules/fmod: New file.
1378         * modules/hypot: New file.
1379         * modules/j0: New file.
1380         * modules/j1: New file.
1381         * modules/jn: New file.
1382         * modules/ldexp: New file.
1383         * modules/lgamma: New file.
1384         * modules/log: New file.
1385         * modules/log10: New file.
1386         * modules/log1p: New file.
1387         * modules/logb: New file.
1388         * modules/modf: New file.
1389         * modules/nextafter: New file.
1390         * modules/pow: New file.
1391         * modules/remainder: New file.
1392         * modules/rint: New file.
1393         * modules/sin: New file.
1394         * modules/sinh: New file.
1395         * modules/sqrt: New file.
1396         * modules/tan: New file.
1397         * modules/tanh: New file.
1398         * modules/y0: New file.
1399         * modules/y1: New file.
1400         * modules/yn: New file.
1401         * doc/posix-functions/acos.texi: Mention the 'acos' module.
1402         * doc/posix-functions/asin.texi: Mention the 'asin' module.
1403         * doc/posix-functions/atan.texi: Mention the 'atan' module.
1404         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
1405         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
1406         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
1407         * doc/posix-functions/cos.texi: Mention the 'cos' module.
1408         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
1409         * doc/posix-functions/erf.texi: Mention the 'erf' module.
1410         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
1411         * doc/posix-functions/exp.texi: Mention the 'exp' module.
1412         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
1413         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
1414         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
1415         * doc/posix-functions/j0.texi: Mention the 'j0' module.
1416         * doc/posix-functions/j1.texi: Mention the 'j1' module.
1417         * doc/posix-functions/jn.texi: Mention the 'jn' module.
1418         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
1419         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
1420         * doc/posix-functions/log.texi: Mention the 'log' module.
1421         * doc/posix-functions/log10.texi: Mention the 'log10' module.
1422         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
1423         * doc/posix-functions/logb.texi: Mention the 'logb' module.
1424         * doc/posix-functions/modf.texi: Mention the 'modf' module.
1425         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
1426         * doc/posix-functions/pow.texi: Mention the 'pow' module.
1427         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
1428         * doc/posix-functions/rint.texi: Mention the 'rint' module.
1429         * doc/posix-functions/sin.texi: Mention the 'sin' module.
1430         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
1431         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
1432         * doc/posix-functions/tan.texi: Mention the 'tan' module.
1433         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
1434         * doc/posix-functions/y0.texi: Mention the 'y0' module.
1435         * doc/posix-functions/y1.texi: Mention the 'y1' module.
1436         * doc/posix-functions/yn.texi: Mention the 'yn' module.
1437
1438 2010-01-18  Jim Meyering  <meyering@redhat.com>
1439
1440         ignore-value: relax license to LGPLv2+
1441         * modules/ignore-value (License): Relax to LGPLv2+.
1442
1443         getdate: don't leak when TZ contains two or more '"'s
1444         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
1445         double quote in TZ after the first one.
1446
1447         readtokens: do not leak internal token_lengths buffer
1448         * lib/readtokens.c (readtokens): Free the local, lengths,
1449         when the supplied "token_lengths" parameter is NULL.
1450
1451 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1452
1453         Fix a couple of missing LIBTHREAD link failures on AIX.
1454         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
1455         $(LIBTHREAD).
1456         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
1457
1458         Link test-poll against INET_PTON_LIB.
1459         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
1460         for inet_pton on Solaris 10.
1461
1462 2010-01-17  Bruno Haible  <bruno@clisp.org>
1463
1464         unistdio/*-sprintf: Fix typo in module description.
1465         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
1466         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
1467         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
1468         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
1469         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
1470         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
1471         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
1472         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1473
1474 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1475
1476         gnulib-tool: fix filelist for AIX, HP-UX ksh.
1477         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
1478         variables in shell case patterns, for AIX and HP-UX ksh.
1479
1480         Split large sed scripts, for HP-UX sed.
1481         * modules/stdio: Split sed scripts around 50 sed commands,
1482         to avoid HP-UX limit of 99 commands, in the near future.
1483         * modules/string: Likewise.
1484         * modules/unistd: Likewise.
1485
1486         gnulib-tool: avoid writing in the current directory.
1487         * gnulib-tool (func_emit_lib_Makefile_am)
1488         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
1489         not in the current directory, so concurrent gnulib-tool
1490         instances do not interfere.
1491
1492 2010-01-16  Jim Meyering  <meyering@redhat.com>
1493
1494         doc: update users.txt
1495         * users.txt: Add grep.
1496         (diffutils, gzip): Update URLs.
1497
1498 2010-01-12  Bruno Haible  <bruno@clisp.org>
1499
1500         posix_spawn: Avoid test failure on Cygwin.
1501         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
1502         characters.
1503         Reported by Simon Josefsson.
1504
1505 2010-01-12  Bruno Haible  <bruno@clisp.org>
1506
1507         * tests/test-cond.c (main): When skipping the test, show the reason.
1508
1509 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1510
1511         * lib/striconv.c (str_cd_iconv): Avoid if before free.
1512
1513 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1514
1515         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
1516         VC_LIST_ALWAYS_EXCLUDE_REGEX.
1517
1518 2010-01-12  Eric Blake  <ebb9@byu.net>
1519
1520         build: guarantee AS_VAR_IF
1521         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
1522         (gl_AS_VAR_IF): Move...
1523         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
1524         Reported by Simon Josefsson.
1525
1526 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1527
1528         * lib/stdio.in.h: Fix typo.
1529
1530 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1531
1532         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
1533         libgpg-error.
1534
1535 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1536
1537         * tests/test-xalloc-die.sh: Use $EXEEXT.
1538
1539 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1540             Bruno Haible  <bruno@clisp.org>
1541
1542         getlogin, getlogin_r: Avoid test failure.
1543         * tests/test-getlogin.c: Include <stdio.h>.
1544         (main): Skip the test when the function fails because stdin is not a
1545         tty.
1546         * tests/test-getlogin_r.c: Include <stdio.h>.
1547         (main): Skip the test when the function fails because stdin is not a
1548         tty.
1549
1550 2010-01-11  Eric Blake  <ebb9@byu.net>
1551
1552         tests: avoid more large file warnings
1553         * tests/test-fflush.c: Avoid warning about ftell use.
1554         * tests/test-fseek.c: Avoid warning about fseek use.
1555
1556 2010-01-10  Bruno Haible  <bruno@clisp.org>
1557
1558         nproc: Work better on Linux when /proc and /sys are not mounted.
1559         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
1560         as lower bound when, on glibc/Linux systems,
1561         sysconf (_SC_NPROCESSORS_CONF) returns 1.
1562         Suggested by Pádraig Brady <P@draigbrady.com>.
1563         Reported by Dmitry V. Levin <ldv@altlinux.org>.
1564
1565         nproc: Refactor.
1566         * lib/nproc.c (num_processors_via_affinity_mask): New function,
1567         extracted from num_processors.
1568         (num_processors): Call it.
1569
1570 2010-01-11  Jim Meyering  <meyering@redhat.com>
1571
1572         utimecmp: avoid new warning from upcoming gcc-4.5.0
1573         * lib/utimecmp.c (BILLION): Define using #define rather than an
1574         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
1575
1576 2010-01-11  Eric Blake  <ebb9@byu.net>
1577
1578         math: add portability warnings for classification macros
1579         * modules/math (Depends-on): Add warn-on-use.
1580         (Makefile.am): Provide new substitutions.
1581         * m4/math_h.m4 (gl_MATH_H): Require inline.
1582         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
1583         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
1584         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
1585         implement warnings.
1586
1587         unistd: warn on use of environ without module
1588         * modules/unistd (Depends-on): Add warn-on-use.
1589         (Makefile.am): Provide new substitutions.
1590         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
1591         * lib/unistd.in.h (environ): Wrap with a warning helper function.
1592
1593         stdio: warn on suspicious uses
1594         * modules/stdio (Depends-on): Add warn-on-use.
1595         (Makefile.am): Provide new substitutions.
1596         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
1597         fseeko.
1598         * lib/stdio.in.h (gets): Always warn on use.
1599         (fseek, ftell): Adjust when warnings are issued, and honor
1600         _GL_NO_LARGE_FILES as a way to silence the warning.
1601         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
1602         any warning about large file offsets.
1603         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
1604         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
1605         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
1606         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
1607         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
1608         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
1609         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
1610         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
1611
1612         warn-on-use: new module
1613         * modules/warn-on-use: New file.
1614         * build-aux/warn-on-use.h: Likewise.
1615         * m4/warn-on-use.m4: Likewise.
1616         * MODULES.html.sh (Support for building): Mention it.
1617
1618 2010-01-10  Bruno Haible  <bruno@clisp.org>
1619
1620         Tests for module 'unistr/u32-strdup'.
1621         * modules/unistr/u32-strdup-tests: New file.
1622         * tests/unistr/test-u32-strdup.c: New file.
1623
1624         Tests for module 'unistr/u16-strdup'.
1625         * modules/unistr/u16-strdup-tests: New file.
1626         * tests/unistr/test-u16-strdup.c: New file.
1627
1628         Tests for module 'unistr/u8-strdup'.
1629         * modules/unistr/u8-strdup-tests: New file.
1630         * tests/unistr/test-u8-strdup.c: New file.
1631         * tests/unistr/test-strdup.h: New file.
1632
1633         Tests for module 'unistr/u32-strncmp'.
1634         * modules/unistr/u32-strncmp-tests: New file.
1635         * tests/unistr/test-u32-strncmp.c: New file.
1636
1637         Tests for module 'unistr/u16-strncmp'.
1638         * modules/unistr/u16-strncmp-tests: New file.
1639         * tests/unistr/test-u16-strncmp.c: New file.
1640
1641         Tests for module 'unistr/u8-strncmp'.
1642         * modules/unistr/u8-strncmp-tests: New file.
1643         * tests/unistr/test-u8-strncmp.c: New file.
1644         * tests/unistr/test-strncmp.h: New file.
1645
1646         Tests for module 'unistr/u32-strcoll'.
1647         * modules/unistr/u32-strcoll-tests: New file.
1648         * tests/unistr/test-u32-strcoll.c: New file.
1649
1650         Tests for module 'unistr/u16-strcoll'.
1651         * modules/unistr/u16-strcoll-tests: New file.
1652         * tests/unistr/test-u16-strcoll.c: New file.
1653
1654         Tests for module 'unistr/u8-strcoll'.
1655         * modules/unistr/u8-strcoll-tests: New file.
1656         * tests/unistr/test-u8-strcoll.c: New file.
1657
1658         Tests for module 'unistr/u32-strcmp'.
1659         * modules/unistr/u32-strcmp-tests: New file.
1660         * tests/unistr/test-u32-strcmp.c: New file.
1661         * tests/unistr/test-u32-strcmp.h: New file.
1662
1663         Tests for module 'unistr/u16-strcmp'.
1664         * modules/unistr/u16-strcmp-tests: New file.
1665         * tests/unistr/test-u16-strcmp.c: New file.
1666         * tests/unistr/test-u16-strcmp.h: New file.
1667
1668         Tests for module 'unistr/u8-strcmp'.
1669         * modules/unistr/u8-strcmp-tests: New file.
1670         * tests/unistr/test-u8-strcmp.c: New file.
1671         * tests/unistr/test-u8-strcmp.h: New file.
1672         * tests/unistr/test-strcmp.h: New file.
1673
1674         Tests for module 'unistr/u32-strncat'.
1675         * modules/unistr/u32-strncat-tests: New file.
1676         * tests/unistr/test-u32-strncat.c: New file.
1677
1678         Tests for module 'unistr/u16-strncat'.
1679         * modules/unistr/u16-strncat-tests: New file.
1680         * tests/unistr/test-u16-strncat.c: New file.
1681
1682         Tests for module 'unistr/u8-strncat'.
1683         * modules/unistr/u8-strncat-tests: New file.
1684         * tests/unistr/test-u8-strncat.c: New file.
1685         * tests/unistr/test-strncat.h: New file.
1686
1687         Tests for module 'unistr/u32-strcat'.
1688         * modules/unistr/u32-strcat-tests: New file.
1689         * tests/unistr/test-u32-strcat.c: New file.
1690
1691         Tests for module 'unistr/u16-strcat'.
1692         * modules/unistr/u16-strcat-tests: New file.
1693         * tests/unistr/test-u16-strcat.c: New file.
1694
1695         Tests for module 'unistr/u8-strcat'.
1696         * modules/unistr/u8-strcat-tests: New file.
1697         * tests/unistr/test-u8-strcat.c: New file.
1698         * tests/unistr/test-strcat.h: New file.
1699
1700         Tests for module 'unistr/u32-stpncpy'.
1701         * modules/unistr/u32-stpncpy-tests: New file.
1702         * tests/unistr/test-u32-stpncpy.c: New file.
1703
1704         Tests for module 'unistr/u16-stpncpy'.
1705         * modules/unistr/u16-stpncpy-tests: New file.
1706         * tests/unistr/test-u16-stpncpy.c: New file.
1707
1708         Tests for module 'unistr/u8-stpncpy'.
1709         * modules/unistr/u8-stpncpy-tests: New file.
1710         * tests/unistr/test-u8-stpncpy.c: New file.
1711         * tests/unistr/test-stpncpy.h: New file.
1712
1713         Tests for module 'unistr/u32-strncpy'.
1714         * modules/unistr/u32-strncpy-tests: New file.
1715         * tests/unistr/test-u32-strncpy.c: New file.
1716
1717         Tests for module 'unistr/u16-strncpy'.
1718         * modules/unistr/u16-strncpy-tests: New file.
1719         * tests/unistr/test-u16-strncpy.c: New file.
1720
1721         Tests for module 'unistr/u8-strncpy'.
1722         * modules/unistr/u8-strncpy-tests: New file.
1723         * tests/unistr/test-u8-strncpy.c: New file.
1724         * tests/unistr/test-strncpy.h: New file.
1725
1726         Tests for module 'unistr/u32-stpcpy'.
1727         * modules/unistr/u32-stpcpy-tests: New file.
1728         * tests/unistr/test-u32-stpcpy.c: New file.
1729
1730         Tests for module 'unistr/u16-stpcpy'.
1731         * modules/unistr/u16-stpcpy-tests: New file.
1732         * tests/unistr/test-u16-stpcpy.c: New file.
1733
1734         Tests for module 'unistr/u8-stpcpy'.
1735         * modules/unistr/u8-stpcpy-tests: New file.
1736         * tests/unistr/test-u8-stpcpy.c: New file.
1737         * tests/unistr/test-stpcpy.h: New file.
1738
1739         Tests for module 'unistr/u32-strcpy'.
1740         * modules/unistr/u32-strcpy-tests: New file.
1741         * tests/unistr/test-u32-strcpy.c: New file.
1742
1743         Tests for module 'unistr/u16-strcpy'.
1744         * modules/unistr/u16-strcpy-tests: New file.
1745         * tests/unistr/test-u16-strcpy.c: New file.
1746
1747         Tests for module 'unistr/u8-strcpy'.
1748         * modules/unistr/u8-strcpy-tests: New file.
1749         * tests/unistr/test-u8-strcpy.c: New file.
1750         * tests/unistr/test-strcpy.h: New file.
1751
1752         Tests for module 'unistr/u32-strnlen'.
1753         * modules/unistr/u32-strnlen-tests: New file.
1754         * tests/unistr/test-u32-strnlen.c: New file.
1755
1756         Tests for module 'unistr/u16-strnlen'.
1757         * modules/unistr/u16-strnlen-tests: New file.
1758         * tests/unistr/test-u16-strnlen.c: New file.
1759
1760         Tests for module 'unistr/u8-strnlen'.
1761         * modules/unistr/u8-strnlen-tests: New file.
1762         * tests/unistr/test-u8-strnlen.c: New file.
1763         * tests/unistr/test-strnlen.h: New file.
1764
1765         Tests for module 'unistr/u32-strlen'.
1766         * modules/unistr/u32-strlen-tests: New file.
1767         * tests/unistr/test-u32-strlen.c: New file.
1768
1769         Tests for module 'unistr/u16-strlen'.
1770         * modules/unistr/u16-strlen-tests: New file.
1771         * tests/unistr/test-u16-strlen.c: New file.
1772
1773         Tests for module 'unistr/u8-strlen'.
1774         * modules/unistr/u8-strlen-tests: New file.
1775         * tests/unistr/test-u8-strlen.c: New file.
1776
1777         Tests for module 'unistr/u32-prev'.
1778         * modules/unistr/u32-prev-tests: New file.
1779         * tests/unistr/test-u32-prev.c: New file.
1780
1781         Tests for module 'unistr/u16-prev'.
1782         * modules/unistr/u16-prev-tests: New file.
1783         * tests/unistr/test-u16-prev.c: New file.
1784
1785         Tests for module 'unistr/u8-prev'.
1786         * modules/unistr/u8-prev-tests: New file.
1787         * tests/unistr/test-u8-prev.c: New file.
1788
1789         Tests for module 'unistr/u32-next'.
1790         * modules/unistr/u32-next-tests: New file.
1791         * tests/unistr/test-u32-next.c: New file.
1792
1793         Tests for module 'unistr/u16-next'.
1794         * modules/unistr/u16-next-tests: New file.
1795         * tests/unistr/test-u16-next.c: New file.
1796
1797         Tests for module 'unistr/u8-next'.
1798         * modules/unistr/u8-next-tests: New file.
1799         * tests/unistr/test-u8-next.c: New file.
1800
1801         Tests for module 'unistr/u32-strmbtouc'.
1802         * modules/unistr/u32-strmbtouc-tests: New file.
1803         * tests/unistr/test-u32-strmbtouc.c: New file.
1804
1805         Tests for module 'unistr/u16-strmbtouc'.
1806         * modules/unistr/u16-strmbtouc-tests: New file.
1807         * tests/unistr/test-u16-strmbtouc.c: New file.
1808
1809         Tests for module 'unistr/u8-strmbtouc'.
1810         * modules/unistr/u8-strmbtouc-tests: New file.
1811         * tests/unistr/test-u8-strmbtouc.c: New file.
1812
1813         Tests for module 'unistr/u32-strmblen'.
1814         * modules/unistr/u32-strmblen-tests: New file.
1815         * tests/unistr/test-u32-strmblen.c: New file.
1816
1817         Tests for module 'unistr/u16-strmblen'.
1818         * modules/unistr/u16-strmblen-tests: New file.
1819         * tests/unistr/test-u16-strmblen.c: New file.
1820
1821         Tests for module 'unistr/u8-strmblen'.
1822         * modules/unistr/u8-strmblen-tests: New file.
1823         * tests/unistr/test-u8-strmblen.c: New file.
1824
1825         Tests for module 'unistr/u32-cpy-alloc'.
1826         * modules/unistr/u32-cpy-alloc-tests: New file.
1827         * tests/unistr/test-u32-cpy-alloc.c: New file.
1828
1829         Tests for module 'unistr/u16-cpy-alloc'.
1830         * modules/unistr/u16-cpy-alloc-tests: New file.
1831         * tests/unistr/test-u16-cpy-alloc.c: New file.
1832
1833         Tests for module 'unistr/u8-cpy-alloc'.
1834         * modules/unistr/u8-cpy-alloc-tests: New file.
1835         * tests/unistr/test-u8-cpy-alloc.c: New file.
1836         * tests/unistr/test-cpy-alloc.h: New file.
1837
1838         Tests for module 'unistr/u32-mbsnlen'.
1839         * modules/unistr/u32-mbsnlen-tests: New file.
1840         * tests/unistr/test-u32-mbsnlen.c: New file.
1841
1842         Tests for module 'unistr/u16-mbsnlen'.
1843         * modules/unistr/u16-mbsnlen-tests: New file.
1844         * tests/unistr/test-u16-mbsnlen.c: New file.
1845
1846         Tests for module 'unistr/u8-mbsnlen'.
1847         * modules/unistr/u8-mbsnlen-tests: New file.
1848         * tests/unistr/test-u8-mbsnlen.c: New file.
1849
1850         Tests for module 'unistr/u32-chr'.
1851         * modules/unistr/u32-chr-tests: New file.
1852         * tests/unistr/test-u32-chr.c: New file.
1853
1854         Tests for module 'unistr/u16-chr'.
1855         * modules/unistr/u16-chr-tests: New file.
1856         * tests/unistr/test-u16-chr.c: New file.
1857
1858         Tests for module 'unistr/u8-chr'.
1859         * modules/unistr/u8-chr-tests: New file.
1860         * tests/unistr/test-u8-chr.c: New file.
1861         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
1862
1863         Tests for module 'unistr/u32-cmp2'.
1864         * modules/unistr/u32-cmp2-tests: New file.
1865         * tests/unistr/test-u32-cmp2.c: New file.
1866
1867         Tests for module 'unistr/u16-cmp2'.
1868         * modules/unistr/u16-cmp2-tests: New file.
1869         * tests/unistr/test-u16-cmp2.c: New file.
1870
1871         Tests for module 'unistr/u8-cmp2'.
1872         * modules/unistr/u8-cmp2-tests: New file.
1873         * tests/unistr/test-u8-cmp2.c: New file.
1874         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
1875
1876         Tests for module 'unistr/u32-cmp'.
1877         * modules/unistr/u32-cmp-tests: New file.
1878         * tests/unistr/test-u32-cmp.c: New file.
1879
1880         Tests for module 'unistr/u16-cmp'.
1881         * modules/unistr/u16-cmp-tests: New file.
1882         * tests/unistr/test-u16-cmp.c: New file.
1883
1884         Tests for module 'unistr/u8-cmp'.
1885         * modules/unistr/u8-cmp-tests: New file.
1886         * tests/unistr/test-u8-cmp.c: New file.
1887         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
1888
1889         Tests for module 'unistr/u32-set'.
1890         * modules/unistr/u32-set-tests: New file.
1891         * tests/unistr/test-u32-set.c: New file.
1892
1893         Tests for module 'unistr/u16-set'.
1894         * modules/unistr/u16-set-tests: New file.
1895         * tests/unistr/test-u16-set.c: New file.
1896
1897         Tests for module 'unistr/u8-set'.
1898         * modules/unistr/u8-set-tests: New file.
1899         * tests/unistr/test-u8-set.c: New file.
1900         * tests/unistr/test-set.h: New file.
1901
1902         Tests for module 'unistr/u32-move'.
1903         * modules/unistr/u32-move-tests: New file.
1904         * tests/unistr/test-u32-move.c: New file.
1905
1906         Tests for module 'unistr/u16-move'.
1907         * modules/unistr/u16-move-tests: New file.
1908         * tests/unistr/test-u16-move.c: New file.
1909
1910         Tests for module 'unistr/u8-move'.
1911         * modules/unistr/u8-move-tests: New file.
1912         * tests/unistr/test-u8-move.c: New file.
1913         * tests/unistr/test-move.h: New file.
1914
1915         Tests for module 'unistr/u32-cpy'.
1916         * modules/unistr/u32-cpy-tests: New file.
1917         * tests/unistr/test-u32-cpy.c: New file.
1918
1919         Tests for module 'unistr/u16-cpy'.
1920         * modules/unistr/u16-cpy-tests: New file.
1921         * tests/unistr/test-u16-cpy.c: New file.
1922
1923         Tests for module 'unistr/u8-cpy'.
1924         * modules/unistr/u8-cpy-tests: New file.
1925         * tests/unistr/test-u8-cpy.c: New file.
1926         * tests/unistr/test-cpy.h: New file.
1927
1928 2010-01-09  Bruno Haible  <bruno@clisp.org>
1929
1930         Tests for module 'unistr/u32-uctomb'.
1931         * modules/unistr/u32-uctomb-tests: New file.
1932         * tests/unistr/test-u32-uctomb.c: New file.
1933
1934         Tests for module 'unistr/u16-uctomb'.
1935         * modules/unistr/u16-uctomb-tests: New file.
1936         * tests/unistr/test-u16-uctomb.c: New file.
1937
1938         Tests for module 'unistr/u8-uctomb'.
1939         * modules/unistr/u8-uctomb-tests: New file.
1940         * tests/unistr/test-u8-uctomb.c: New file.
1941
1942         Tests for module 'unistr/u32-mbtoucr'.
1943         * modules/unistr/u32-mbtoucr-tests: New file.
1944         * tests/unistr/test-u32-mbtoucr.c: New file.
1945
1946         Tests for module 'unistr/u16-mbtoucr'.
1947         * modules/unistr/u16-mbtoucr-tests: New file.
1948         * tests/unistr/test-u16-mbtoucr.c: New file.
1949
1950         Tests for module 'unistr/u8-mbtoucr'.
1951         * modules/unistr/u8-mbtoucr-tests: New file.
1952         * tests/unistr/test-u8-mbtoucr.c: New file.
1953
1954         Tests for module 'unistr/u32-mbtouc'.
1955         * modules/unistr/u32-mbtouc-tests: New file.
1956         * tests/unistr/test-u32-mbtouc.c: New file.
1957
1958         Tests for module 'unistr/u16-mbtouc'.
1959         * modules/unistr/u16-mbtouc-tests: New file.
1960         * tests/unistr/test-u16-mbtouc.c: New file.
1961
1962         Tests for module 'unistr/u8-mbtouc'.
1963         * modules/unistr/u8-mbtouc-tests: New file.
1964         * tests/unistr/test-u8-mbtouc.c: New file.
1965
1966         Tests for module 'unistr/u32-mbtouc-unsafe'.
1967         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
1968         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
1969         * tests/unistr/test-u32-mbtouc.h: New file.
1970
1971         Tests for module 'unistr/u16-mbtouc-unsafe'.
1972         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
1973         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
1974         * tests/unistr/test-u16-mbtouc.h: New file.
1975
1976         Tests for module 'unistr/u8-mbtouc-unsafe'.
1977         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
1978         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
1979         * tests/unistr/test-u8-mbtouc.h: New file.
1980
1981         Tests for module 'unistr/u32-mblen'.
1982         * modules/unistr/u32-mblen-tests: New file.
1983         * tests/unistr/test-u32-mblen.c: New file.
1984
1985         Tests for module 'unistr/u16-mblen'.
1986         * modules/unistr/u16-mblen-tests: New file.
1987         * tests/unistr/test-u16-mblen.c: New file.
1988
1989         Tests for module 'unistr/u8-mblen'.
1990         * modules/unistr/u8-mblen-tests: New file.
1991         * tests/unistr/test-u8-mblen.c: New file.
1992
1993         Tests for module 'unistr/u32-to-u16'.
1994         * modules/unistr/u32-to-u16-tests: New file.
1995         * tests/unistr/test-u32-to-u16.c: New file.
1996
1997         Tests for module 'unistr/u32-to-u8'.
1998         * modules/unistr/u32-to-u8-tests: New file.
1999         * tests/unistr/test-u32-to-u8.c: New file.
2000
2001         Tests for module 'unistr/u16-to-u32'.
2002         * modules/unistr/u16-to-u32-tests: New file.
2003         * tests/unistr/test-u16-to-u32.c: New file.
2004
2005         Tests for module 'unistr/u16-to-u8'.
2006         * modules/unistr/u16-to-u8-tests: New file.
2007         * tests/unistr/test-u16-to-u8.c: New file.
2008
2009         Tests for module 'unistr/u8-to-u32'.
2010         * modules/unistr/u8-to-u32-tests: New file.
2011         * tests/unistr/test-u8-to-u32.c: New file.
2012
2013         Tests for module 'unistr/u8-to-u16'.
2014         * modules/unistr/u8-to-u16-tests: New file.
2015         * tests/unistr/test-u8-to-u16.c: New file.
2016
2017         Tests for module 'unistr/u32-check'.
2018         * modules/unistr/u32-check-tests: New file.
2019         * tests/unistr/test-u32-check.c: New file.
2020
2021         Tests for module 'unistr/u16-check'.
2022         * modules/unistr/u16-check-tests: New file.
2023         * tests/unistr/test-u16-check.c: New file.
2024
2025         Tests for module 'unistr/u8-check'.
2026         * modules/unistr/u8-check-tests: New file.
2027         * tests/unistr/test-u8-check.c: New file.
2028
2029         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
2030         (category_equals): New function.
2031         (main): Add more tests.
2032         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
2033
2034         * tests/unictype/test-bidi_byname.c (main): Add more tests.
2035
2036 2010-01-10  Bruno Haible  <bruno@clisp.org>
2037
2038         unistr/u*-strcoll: Try harder to distinguish different strings.
2039         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
2040         compare s1 and s2 to see if they are different.
2041
2042 2010-01-10  Bruno Haible  <bruno@clisp.org>
2043
2044         unistr/u*-stpncpy: Fix the return value.
2045         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
2046         description of the return value consistent with stpncpy in glibc.
2047         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
2048         written non-NUL unit.
2049
2050 2010-01-10  Bruno Haible  <bruno@clisp.org>
2051
2052         unistr/u*-next: Add missing dependencies.
2053         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
2054         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
2055         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
2056
2057 2010-01-10  Bruno Haible  <bruno@clisp.org>
2058
2059         unistr/u8-mbsnlen: Fix return value for incomplete character.
2060         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
2061         u8_mblen.
2062         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
2063         Remove unistr/u8-mblen.
2064         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
2065         u16_mblen.
2066         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
2067         Remove unistr/u16-mblen.
2068
2069 2010-01-10  Bruno Haible  <bruno@clisp.org>
2070
2071         wchar: Fix compilation error when <wchar.h> is used from coreutils.
2072         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
2073         Reported by Brian Gough <bjg@gnu.org> and
2074         Chris Clayton <chris2553@googlemail.com> via
2075         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
2076
2077 2010-01-09  Bruno Haible  <bruno@clisp.org>
2078
2079         unistr/u16-to-u32: Reject invalid input.
2080         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
2081         u16_mbtouc.
2082         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
2083         Remove unistr/u16-mbtouc.
2084
2085         unistr/u16-to-u8: Reject invalid input.
2086         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
2087         u16_mbtouc.
2088         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
2089         Remove unistr/u16-mbtouc.
2090
2091         unistr/u8-to-u32: Reject invalid input.
2092         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
2093         u8_mbtouc.
2094         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
2095         Remove unistr/u8-mbtouc.
2096
2097         unistr/u8-to-u16: Reject invalid input.
2098         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
2099         u8_mbtouc.
2100         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
2101         Remove unistr/u8-mbtouc.
2102
2103 2010-01-09  Bruno Haible  <bruno@clisp.org>
2104
2105         Tests for module 'getlogin'.
2106         * modules/getlogin-tests: New file.
2107         * tests/test-getlogin.c: New file.
2108
2109         New module 'getlogin'.
2110         * lib/unistd.in.h (getlogin): New declaration.
2111         * lib/getlogin.c: New file.
2112         * m4/getlogin.m4: New file.
2113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
2114         HAVE_GETLOGIN.
2115         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
2116         HAVE_GETLOGIN.
2117         * modules/getlogin: New file.
2118         * doc/posix-functions/getlogin.texi: Mention the new module.
2119         Reported by John W. Eaton <jwe@gnu.org>.
2120
2121 2010-01-09  Bruno Haible  <bruno@clisp.org>
2122
2123         getlogin_r: Support for native Windows.
2124         * lib/getlogin_r.c: Include <windows.h>
2125         (getlogin_r): Implement for native Windows.
2126         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
2127         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
2128         via John W. Eaton <jwe@gnu.org>.
2129
2130 2010-01-09  Bruno Haible  <bruno@clisp.org>
2131
2132         getlogin_r: Small fixes.
2133         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
2134         succeeds.
2135         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
2136         before testing whether getlogin_r is declared. No need to set
2137         HAVE_DECL_GETLOGIN_R to 1.
2138         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
2139
2140 2010-01-09  Bruno Haible  <bruno@clisp.org>
2141
2142         * lib/unistd.in.h (getlogin_r): Add comment.
2143
2144 2010-01-09  Bruno Haible  <bruno@clisp.org>
2145
2146         Tests for module 'getlogin_r'.
2147         * modules/getlogin_r-tests: New file.
2148         * tests/test-getlogin_r.c: New file.
2149
2150 2010-01-09  Jim Meyering  <meyering@redhat.com>
2151
2152         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
2153         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
2154         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
2155
2156 2010-01-08  Simon Josefsson  <simon@josefsson.org>
2157
2158         * lib/dup2.c (rpl_dup2): Improve comment.
2159
2160 2010-01-08  Eric Blake  <ebb9@byu.net>
2161
2162         maint.mk: allow packages to add makefile @@ exceptions
2163         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
2164         (sc_makefile_check): Rename...
2165         (sc_makefile_at_at_check): ...to this, and use hook.
2166
2167         dup2: work around mingw bug
2168         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
2169         Reported by Simon Josefsson.
2170
2171 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
2172
2173         glob: Fix C++ compilation.
2174         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
2175         C++.
2176
2177 2010-01-07  Bruno Haible  <bruno@clisp.org>
2178
2179         Fix indentation of wctype.in.h, broken since 2007-01-06.
2180         * lib/wctype.in.h: Fix indentation of preprocessor directives.
2181
2182 2010-01-07  Bruno Haible  <bruno@clisp.org>
2183
2184         mbslen: Avoid collision with system function.
2185         * lib/string.in.h [MirBSD]: Include <wchar.h>.
2186         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
2187         * m4/mbslen.m4: New file.
2188         * modules/mbslen (Files): Add it.
2189         (configure.ac): Invoke gl_MBSLEN.
2190         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
2191         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
2192         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
2193         via Ian Beckwith <ianb@erislabs.net>.
2194
2195 2010-01-07  Bruno Haible  <bruno@clisp.org>
2196
2197         dirent: Document the last fix.
2198         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
2199
2200 2010-01-07  Bruno Haible  <bruno@clisp.org>
2201
2202         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
2203         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
2204         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
2205         va_list are defined.
2206         * doc/posix-headers/stdio.texi: Document the bug of missing types.
2207         Reported by Eric Blake.
2208
2209 2010-01-07  Bruno Haible  <bruno@clisp.org>
2210
2211         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
2212         * modules/xlist (Depends-on): Add 'list',
2213         * modules/xoset (Depends-on): Add 'oset'.
2214         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2215
2216 2010-01-07  Bruno Haible  <bruno@clisp.org>
2217
2218         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
2219         * doc/posix-functions/strncasecmp.texi: Likewise.
2220
2221 2010-01-07  Bruno Haible  <bruno@clisp.org>
2222
2223         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
2224
2225 2010-01-07  John W. Eaton  <jwe@octave.org>
2226
2227         wctype: allow C++ use
2228         * lib/wctype.in.h: Add extern "C" block for C++.
2229
2230 2010-01-06  Eric Blake  <ebb9@byu.net>
2231
2232         maint.mk: detect incorrect GFDL usage
2233         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
2234
2235 2010-01-06  Jim Meyering  <meyering@redhat.com>
2236         and Eric Blake  <ebb9@byu.net>
2237
2238         maint.mk: ignore multi-line copyright in NEWS
2239         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
2240
2241 2010-01-06  Eric Blake  <ebb9@byu.net>
2242
2243         select: add missing dependency
2244         * modules/select-tests (Depends-on): Move sockets dependency...
2245         * modules/select (Depends-on): ...here.
2246         Reported by Ian Beckwith.
2247
2248         doc: regenerate INSTALL
2249         * doc/INSTALL: Reflect recent autoconf update.
2250         * doc/INSTALL.ISO: Likewise.
2251         * doc/INSTALL.UTF-8: Likewise.
2252
2253         pread: fix compilation on glibc
2254         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
2255         Reported by Ralf Wildenhues.
2256
2257         dirent: fix test failure
2258         * lib/dirent.in.h (includes): Guarantee ino_t.
2259         Reported by Ralf Wildenhues.
2260
2261 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
2262
2263         linkat, renameat: avoid bad free
2264         * lib/at-func2.c (at_func2): Fix typo.
2265         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
2266
2267 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2268
2269         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
2270         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
2271         to avoid failure of symlink test later.
2272
2273 2010-01-06  Eric Blake  <ebb9@byu.net>
2274
2275         stdio, unistd: guarantee ssize_t
2276         * lib/unistd.in.h (includes): Ensure that types required by POSIX
2277         2008 are exposed when needed.
2278         * lib/stdio.in.h (includes): Likewise.
2279         Reported by Ralf Wildenhues.
2280
2281 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
2282
2283         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
2284         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
2285         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
2286
2287 2010-01-06  Jim Meyering  <meyering@redhat.com>
2288
2289         readtokens: this module *does* require xalloc.h
2290         It uses only functions that were omitted by the old syntax-check rule.
2291         * lib/readtokens.c: Include "xalloc.h" once again.
2292         * modules/readtokens (Depends-on): Add xalloc.
2293         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
2294
2295 2010-01-05  Eric Blake  <ebb9@byu.net>
2296
2297         maint: support 'make announcement' from a VPATH build
2298         * top/maint.mk (announcement): Look for correct NEWS file.
2299
2300 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
2301
2302         utimens (fdutimens): ignore a negative FD, per contract
2303         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
2304         when we have a valid file descriptor.  Otherwise, using a brand
2305         new glibc (with just-patched futimens that now fails with EBADF)
2306         would cause this function to fail with ENOSYS.
2307         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
2308         See also http://bugzilla.redhat.com/552320.
2309
2310 2010-01-05  Eric Blake  <ebb9@byu.net>
2311
2312         strcase: document what it provides
2313         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
2314         gnulib module.
2315         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
2316         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
2317
2318 2010-01-05  Jim Meyering  <meyering@redhat.com>
2319
2320         maint: remove useless inclusions of "xalloc.h"
2321         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
2322         * lib/readtokens.c: Likewise.
2323         * lib/same.c: Likewise.
2324         * modules/getloadavg (Depends-on): Remove xalloc.
2325         * modules/readtokens: Likewise.
2326         * modules/same: Likewise.
2327
2328         maint.mk: include 4 more function names in alloca.h-checking regexp
2329         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
2330         regexp.  Before, we would give a false-positive (saying alloca.h
2331         is included unnecessarily) when the only uses involved omitted symbols.
2332
2333         xalloc.h: use consistent formatting
2334         * lib/xalloc.h: Move declarations to start in the first column.
2335
2336 2010-01-05  Eric Blake  <ebb9@byu.net>
2337
2338         mkdir: avoid xalloc
2339         * lib/mkdir.c (includes): Drop unused header.
2340         Reported by John W. Eaton.
2341
2342 2010-01-04  Jim Meyering  <meyering@redhat.com>
2343
2344         nl_langinfo: avoid configure-time syntax error
2345         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
2346         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
2347         the empty string.  Don't let that provoke a shell syntax error.
2348
2349         regcomp, regexec, fnmatch: avoid array bounds read error
2350         * lib/regcomp.c (build_equiv_class): From glibc:
2351         Use only the low 24 bits of a findidx return value as an index
2352         into the weights array.  Patch by Ulrich Drepper:
2353         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
2354         * lib/regexec.c (check_node_accept_bytes): Likewise.
2355         * lib/fnmatch_loop.c (FCT): Likewise.
2356
2357         regcomp: skip collseq lookup when there are no rules
2358         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
2359         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
2360
2361         regcomp: recognize ill-formed { } expressions
2362         * lib/regcomp.c (parse_dup_op): From glibc:
2363         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
2364
2365         regcomp: fix typo in comment
2366         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
2367         s/satisfy/satisfies/.
2368
2369         regcomp: sync from glibc: remove dead store
2370         * lib/regcomp.c (duplicate_node_closure): Remove useless
2371         search_duplicated_node call and dead store.
2372
2373         regcomp: sync from glibc; always use nl_langinfo
2374         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
2375         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
2376         * modules/regex (Depends-on): Add nl_langinfo.
2377
2378 2010-01-04  Eric Blake  <ebb9@byu.net>
2379
2380         fdopendir: fix configure test
2381         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
2382
2383 2010-01-01  Bruno Haible  <bruno@clisp.org>
2384
2385         wchar: Remove unused configure check.
2386         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
2387
2388 2010-01-01  Eric Blake  <ebb9@byu.net>
2389
2390         headers: make check of system header explicit
2391         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
2392         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
2393         ourselves.
2394         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2395         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2396         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
2397         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
2398         internals.
2399         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
2400         missing.
2401         Suggested by Bruno Haible.
2402
2403 2010-01-01  Jim Meyering  <meyering@redhat.com>
2404
2405         ChangeLog: tweak to eliminate unnecessary copyright line
2406         * ChangeLog: Remove a copyright line that was mistakenly updated
2407         by today's update-copyright run.  Reported by Eric Blake.
2408
2409         test-update-copyright: don't let envvar setting cause test failure
2410         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
2411
2412 2010-01-01  Bruno Haible  <bruno@clisp.org>
2413
2414         localename: Avoid gcc warning.
2415         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
2416         function if it is not used.
2417
2418 2010-01-01  Jim Meyering  <meyering@redhat.com>
2419
2420         update nearly all FSF copyright year lists to include 2010
2421         Use the same procedure as for 2009, outlined in
2422         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
2423
2424         version-etc: set COPYRIGHT_YEAR to 2010
2425         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
2426
2427 2009-12-31  Eric Blake  <ebb9@byu.net>
2428
2429         doc: correct availability of cygwin 1.5.x getopt
2430         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
2431         variables.
2432         * doc/posix-functions/opterr.texi (opterr): Likewise.
2433         * doc/posix-functions/optind.texi (optind): Likewise.
2434         * doc/posix-functions/optopt.texi (optopt): Likewise.
2435         * doc/posix-functions/tzname.texi (tzname): Likewise.
2436
2437         openat: update maintainer
2438         * modules/openat (Maintainer): Add myself.
2439
2440         utimens: avoid shadowing warning
2441         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
2442         buffers into one, to avoid shadowing, as well as avoiding a
2443         redundant stat.
2444         Reported by Jim Meyering.
2445
2446         test-dup2: avoid compiler warning
2447         * tests/test-dup2.c (is_inheritable): Only define if used.
2448
2449 2010-01-01  Bruno Haible  <bruno@clisp.org>
2450
2451         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
2452         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
2453         defined, use wctomb instead of wcrtomb.
2454
2455 2010-01-01  Bruno Haible  <bruno@clisp.org>
2456
2457         iconv: Reject native Solaris iconv.
2458         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
2459         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
2460
2461 2009-12-31  Bruno Haible  <bruno@clisp.org>
2462
2463         * tests/test-signal.c (main): Remove test of 'SIG'.
2464
2465 2009-12-31  Bruno Haible  <bruno@clisp.org>
2466
2467         spawn: Fix incomplete fix.
2468         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
2469         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
2470         warnings for GNULIB_POSIXCHECK again.
2471         Reported by Eric Blake.
2472
2473 2009-12-31  Bruno Haible  <bruno@clisp.org>
2474
2475         Avoid namespace pollution on glibc systems.
2476         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
2477         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
2478         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
2479         glibc systems.
2480
2481 2009-12-31  Bruno Haible  <bruno@clisp.org>
2482
2483         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
2484         (gl_REPLACE_WCHAR_H): Turn into a no-op.
2485         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
2486         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
2487         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
2488         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
2489         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
2490
2491 2009-12-31  Bruno Haible  <bruno@clisp.org>
2492
2493         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
2494         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
2495         afterwards.
2496
2497 2009-12-31  Bruno Haible  <bruno@clisp.org>
2498
2499         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
2500         SYS_UTSNAME_H.
2501
2502 2009-12-31  Bruno Haible  <bruno@clisp.org>
2503
2504         spawn: Fix misapplied patch.
2505         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
2506         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
2507         warnings for GNULIB_POSIXCHECK.
2508
2509 2009-12-31  Bruno Haible  <bruno@clisp.org>
2510
2511         times: Update after sys_times changed.
2512         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
2513         * modules/times (Files): Add it.
2514         (configure.ac): Invoke gl_FUNC_TIMES.
2515
2516 2009-12-31  Bruno Haible  <bruno@clisp.org>
2517
2518         Use AC_C_INLINE where necessary.
2519         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
2520         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
2521         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
2522         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
2523         * m4/mbfile.m4 (gl_MBFILE): Likewise.
2524         * m4/mbiter.m4 (gl_MBITER): Likewise.
2525         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2526         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2527         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
2528         * modules/u64 (configure.ac): Likewise.
2529
2530 2009-12-31  Bruno Haible  <bruno@clisp.org>
2531
2532         Use AC_C_INLINE instead of module 'inline' where possible.
2533         * modules/inline (Description): Clarify purpose.
2534         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
2535         * modules/count-one-bits (Depends-on): Remove inline.
2536         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
2537         * modules/openat (Depends-on): Remove inline.
2538         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
2539         instead of depending on module 'inline'.
2540         * modules/filevercmp (Depends-on, configure.ac): Likewise.
2541         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
2542         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
2543         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
2544         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
2545         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
2546         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
2547         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
2548         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
2549         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
2550         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
2551         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
2552         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
2553         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
2554         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
2555         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
2556         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
2557         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
2558         Likewise.
2559         * modules/unictype/property-ascii-hex-digit (Depends-on,
2560         configure.ac): Likewise.
2561         * modules/unictype/property-bidi-arabic-digit (Depends-on,
2562         configure.ac): Likewise.
2563         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
2564         configure.ac): Likewise.
2565         * modules/unictype/property-bidi-block-separator (Depends-on,
2566         configure.ac): Likewise.
2567         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
2568         configure.ac): Likewise.
2569         * modules/unictype/property-bidi-common-separator (Depends-on,
2570         configure.ac): Likewise.
2571         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
2572         Likewise.
2573         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
2574         configure.ac): Likewise.
2575         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
2576         configure.ac): Likewise.
2577         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
2578         configure.ac): Likewise.
2579         * modules/unictype/property-bidi-european-digit (Depends-on,
2580         configure.ac): Likewise.
2581         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
2582         configure.ac): Likewise.
2583         * modules/unictype/property-bidi-left-to-right (Depends-on,
2584         configure.ac): Likewise.
2585         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
2586         configure.ac): Likewise.
2587         * modules/unictype/property-bidi-other-neutral (Depends-on,
2588         configure.ac): Likewise.
2589         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
2590         Likewise.
2591         * modules/unictype/property-bidi-segment-separator (Depends-on,
2592         configure.ac): Likewise.
2593         * modules/unictype/property-bidi-whitespace (Depends-on,
2594         configure.ac): Likewise.
2595         * modules/unictype/property-combining (Depends-on, configure.ac):
2596         Likewise.
2597         * modules/unictype/property-composite (Depends-on, configure.ac):
2598         Likewise.
2599         * modules/unictype/property-currency-symbol (Depends-on,
2600         configure.ac): Likewise.
2601         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
2602         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
2603         Likewise.
2604         * modules/unictype/property-default-ignorable-code-point (Depends-on,
2605         configure.ac): Likewise.
2606         * modules/unictype/property-deprecated (Depends-on, configure.ac):
2607         Likewise.
2608         * modules/unictype/property-diacritic (Depends-on, configure.ac):
2609         Likewise.
2610         * modules/unictype/property-extender (Depends-on, configure.ac):
2611         Likewise.
2612         * modules/unictype/property-format-control (Depends-on, configure.ac):
2613         Likewise.
2614         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
2615         Likewise.
2616         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
2617         Likewise.
2618         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
2619         Likewise.
2620         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
2621         Likewise.
2622         * modules/unictype/property-hyphen (Depends-on, configure.ac):
2623         Likewise.
2624         * modules/unictype/property-id-continue (Depends-on, configure.ac):
2625         Likewise.
2626         * modules/unictype/property-id-start (Depends-on, configure.ac):
2627         Likewise.
2628         * modules/unictype/property-ideographic (Depends-on, configure.ac):
2629         Likewise.
2630         * modules/unictype/property-ids-binary-operator (Depends-on,
2631         configure.ac): Likewise.
2632         * modules/unictype/property-ids-trinary-operator (Depends-on,
2633         configure.ac): Likewise.
2634         * modules/unictype/property-ignorable-control (Depends-on,
2635         configure.ac): Likewise.
2636         * modules/unictype/property-iso-control (Depends-on, configure.ac):
2637         Likewise.
2638         * modules/unictype/property-join-control (Depends-on, configure.ac):
2639         Likewise.
2640         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
2641         Likewise.
2642         * modules/unictype/property-line-separator (Depends-on, configure.ac):
2643         Likewise.
2644         * modules/unictype/property-logical-order-exception (Depends-on,
2645         configure.ac): Likewise.
2646         * modules/unictype/property-lowercase (Depends-on, configure.ac):
2647         Likewise.
2648         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
2649         * modules/unictype/property-non-break (Depends-on, configure.ac):
2650         Likewise.
2651         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
2652         Likewise.
2653         * modules/unictype/property-numeric (Depends-on, configure.ac):
2654         Likewise.
2655         * modules/unictype/property-other-alphabetic (Depends-on,
2656         configure.ac): Likewise.
2657         * modules/unictype/property-other-default-ignorable-code-point
2658         (Depends-on, configure.ac): Likewise.
2659         * modules/unictype/property-other-grapheme-extend (Depends-on,
2660         configure.ac): Likewise.
2661         * modules/unictype/property-other-id-continue (Depends-on,
2662         configure.ac): Likewise.
2663         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
2664         Likewise.
2665         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
2666         Likewise.
2667         * modules/unictype/property-other-math (Depends-on, configure.ac):
2668         Likewise.
2669         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
2670         Likewise.
2671         * modules/unictype/property-paired-punctuation (Depends-on,
2672         configure.ac): Likewise.
2673         * modules/unictype/property-paragraph-separator (Depends-on,
2674         configure.ac): Likewise.
2675         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
2676         Likewise.
2677         * modules/unictype/property-pattern-white-space (Depends-on,
2678         configure.ac): Likewise.
2679         * modules/unictype/property-private-use (Depends-on, configure.ac):
2680         Likewise.
2681         * modules/unictype/property-punctuation (Depends-on, configure.ac):
2682         Likewise.
2683         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
2684         Likewise.
2685         * modules/unictype/property-radical (Depends-on, configure.ac):
2686         Likewise.
2687         * modules/unictype/property-sentence-terminal (Depends-on,
2688         configure.ac): Likewise.
2689         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
2690         Likewise.
2691         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
2692         * modules/unictype/property-terminal-punctuation (Depends-on,
2693         configure.ac): Likewise.
2694         * modules/unictype/property-titlecase (Depends-on, configure.ac):
2695         Likewise.
2696         * modules/unictype/property-unassigned-code-value (Depends-on,
2697         configure.ac): Likewise.
2698         * modules/unictype/property-unified-ideograph (Depends-on,
2699         configure.ac): Likewise.
2700         * modules/unictype/property-uppercase (Depends-on, configure.ac):
2701         Likewise.
2702         * modules/unictype/property-variation-selector (Depends-on,
2703         configure.ac): Likewise.
2704         * modules/unictype/property-white-space (Depends-on, configure.ac):
2705         Likewise.
2706         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
2707         Likewise.
2708         * modules/unictype/property-xid-start (Depends-on, configure.ac):
2709         Likewise.
2710         * modules/unictype/property-zero-width (Depends-on, configure.ac):
2711         Likewise.
2712         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
2713         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
2714         Likewise.
2715
2716 2009-12-31  Bruno Haible  <bruno@clisp.org>
2717
2718         Remove unnecessary AC_C_INLINE invocation.
2719         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
2720         since 2009-08-21.
2721
2722 2009-12-31  Jim Meyering  <meyering@redhat.com>
2723
2724         maint.mk: don't require explicit gpg_key_ID in cfg.mk
2725         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
2726         With this change, we can all remove the gpg_key_ID = ... definition
2727         from our respective cfg.mk files.
2728
2729         maint.mk: create announcement template in ~/, not in /tmp
2730         * top/maint.mk (emit_upload_commands): Adjust.
2731         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
2732         Remove temporary file, .ci-msg.
2733
2734 2009-12-31  Eric Blake  <ebb9@byu.net>
2735
2736         link-warning: always build headers with link warnings
2737         * modules/arpa_inet (Makefile.am): Always build replacement
2738         header.
2739         * modules/ctype (Makefile.am): Likewise.
2740         * modules/dirent (Makefile.am): Likewise.
2741         * modules/inttypes (Makefile.am): Likewise.
2742         * modules/langinfo (Makefile.am): Likewise.
2743         * modules/locale (Makefile.am): Likewise.
2744         * modules/spawn (Makefile.am): Likewise.
2745         * modules/sys_file (Makefile.am): Likewise.
2746         * modules/sys_ioctl (Makefile.am): Likewise.
2747         * modules/sys_select (Makefile.am): Likewise.
2748         * modules/sys_socket (Makefile.am): Likewise.
2749         * modules/sys_times (Makefile.am): Likewise.
2750         * modules/sys_utsname (Makefile.am): Likewise.
2751         * modules/sys_wait (Makefile.am): Likewise.
2752         * modules/wchar (Makefile.am): Likewise.
2753         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
2754         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
2755         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
2756         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
2757         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
2758         Likewise.
2759         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2760         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2761         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
2762         Likewise.
2763         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
2764         Likewise.
2765         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
2766         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
2767         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
2768         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2769         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2770         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
2771         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
2772         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
2773         (gl_WCHAR_H_DEFAULTS): Likewise.
2774
2775 2009-12-31  Eric Blake  <ebb9@byu.net>
2776
2777         signal, spawn: use link warnings
2778         * lib/signal.in.h (sigset_t): Make unconditional.
2779         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
2780         (sigpending, sigprocmask, sigaction): Add link warnings.
2781         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
2782         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
2783         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
2784         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
2785         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
2786         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
2787         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
2788         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
2789         (posix_spawn_file_actions_destroy)
2790         (posix_spawn_file_actions_addopen)
2791         (posix_spawn_file_actions_addclose)
2792         (posix_spawwn_file_actions_adddup2): Likewise.
2793         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
2794         * tests/test-signal.c (main): Enhance test.
2795
2796         spawn: improve wrapper support
2797         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
2798         (gl_SPAWN_H_DEFAULTS): New defaults.
2799         * modules/spawn (Makefile.am): Substitute them.
2800         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
2801         Only declare if missing or broken.
2802
2803         sys_times, sys_utsname: use include_next
2804         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
2805         header.
2806         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
2807         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
2808         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
2809         * modules/sys_times (Depends-on): Add include_next.
2810         (Makefile.am): Substitute additional values.
2811         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
2812         * lib/sys_times.in.h (includes): Include native header, if
2813         available.
2814         * lib/sys_utsname.in.h (includes): Likewise.
2815         * tests/test-sys_times.c (main): Enhance test.
2816
2817         fdutimensat: revert prior patch
2818         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
2819         utimens.h.
2820         Reported by Bruno Haible.
2821
2822 2009-12-30  Eric Blake  <ebb9@byu.net>
2823
2824         sys_wait: drop link-warning dependency
2825         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
2826         link-warning efforts.
2827         * lib/sys_wait.in.h: Likewise.
2828
2829         fdutimensat: remove bogus dependency
2830         * modules/fdutimensat (Depends-on): Drop inline.
2831
2832         unistd: fix typo
2833         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
2834
2835 2009-12-30  Bruno Haible  <bruno@clisp.org>
2836
2837         Fix compilation error with Solaris cc.
2838         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
2839         * lib/unicase/u16-is-invariant.c: Likewise.
2840         * lib/unicase/u32-is-invariant.c: Likewise.
2841         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
2842
2843 2009-12-30  Bruno Haible  <bruno@clisp.org>
2844
2845         Fix test crash.
2846         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
2847         locales.
2848         Reported by Simon Josefsson <simon@josefsson.org>.
2849
2850 2009-12-30  Bruno Haible  <bruno@clisp.org>
2851
2852         Fix compilation error on most platforms.
2853         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
2854         Reported by Simon Josefsson <simon@josefsson.org>
2855         and Nelson H. F. Beebe <beebe@math.utah.edu>.
2856
2857 2009-12-30  Eric Blake  <ebb9@byu.net>
2858
2859         futimens, utimensat: work around ntfs-3g bug
2860         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
2861         a ctime bug is present, and expand workaround to cover ntfs-3g.
2862         * lib/utimens.c (fdutimens, lutimens): Likewise.
2863         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
2864         (validate_timespec): Adjust return value.
2865         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
2866         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2867         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
2868
2869 2009-12-29  Eric Blake  <ebb9@byu.net>
2870
2871         link-warning: make usage consistent
2872         * modules/ctype (Depends-on): Add link-warning.
2873         (Makefile.am): Update rules accordingly.
2874         * modules/langinfo (Depends-on, Makefile.am): Likewise.
2875         * modules/locale (Depends-on, Makefile.am): Likewise.
2876         * modules/sys_file (Makefile.am): Likewise.
2877         * modules/getopt-posix (Makefile.am): Delete unused link warning
2878         efforts.
2879         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
2880         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
2881         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
2882         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
2883
2884         stdio: remove unused variables
2885         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
2886         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
2887         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2888
2889         tests: test more substitute headers
2890         * modules/ctype-tests: New file.
2891         * modules/dirent-tests: Likewise.
2892         * modules/spawn-tests: Likewise.
2893         * modules/sys_file-tests: Likewise.
2894         * modules/sys_ioctl-tests: Likewise.
2895         * modules/sys_wait-tests: Likewise.
2896         * tests/test-ctype.c: Likewise.
2897         * tests/test-dirent.c: Likewise.
2898         * tests/test-spawn.c: Likewise.
2899         * tests/test-sys_file.c: Likewise.
2900         * tests/test-sys_ioctl.c: Likewise.
2901         * tests/test-sys_wait.c: Likewise.
2902         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
2903         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
2904         whether or not flock is in use.
2905
2906         tests: remove License section from module
2907         * modules/arpa_inet-tests: Remove unneeded section.
2908         * modules/byteswap-tests: Likewise.
2909         * modules/ceilf-tests: Likewise.
2910         * modules/ceill-tests: Likewise.
2911         * modules/crypto/des-tests: Likewise.
2912         * modules/crypto/gc-arcfour-tests: Likewise.
2913         * modules/crypto/gc-arctwo-tests: Likewise.
2914         * modules/crypto/gc-des-tests: Likewise.
2915         * modules/crypto/gc-hmac-md5-tests: Likewise.
2916         * modules/crypto/gc-hmac-sha1-tests: Likewise.
2917         * modules/crypto/gc-md2-tests: Likewise.
2918         * modules/crypto/gc-md4-tests: Likewise.
2919         * modules/crypto/gc-md5-tests: Likewise.
2920         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
2921         * modules/crypto/gc-rijndael-tests: Likewise.
2922         * modules/crypto/gc-sha1-tests: Likewise.
2923         * modules/crypto/gc-tests: Likewise.
2924         * modules/crypto/md2-tests: Likewise.
2925         * modules/crypto/md4-tests: Likewise.
2926         * modules/fcntl-h-tests: Likewise.
2927         * modules/floorf-tests: Likewise.
2928         * modules/floorl-tests: Likewise.
2929         * modules/frexp-nolibm-tests: Likewise.
2930         * modules/frexp-tests: Likewise.
2931         * modules/frexpl-nolibm-tests: Likewise.
2932         * modules/frexpl-tests: Likewise.
2933         * modules/getaddrinfo-tests: Likewise.
2934         * modules/inttypes-tests: Likewise.
2935         * modules/isfinite-tests: Likewise.
2936         * modules/isinf-tests: Likewise.
2937         * modules/ldexpl-tests: Likewise.
2938         * modules/locale-tests: Likewise.
2939         * modules/math-tests: Likewise.
2940         * modules/netdb-tests: Likewise.
2941         * modules/netinet_in-tests: Likewise.
2942         * modules/printf-frexp-tests: Likewise.
2943         * modules/printf-frexpl-tests: Likewise.
2944         * modules/priv-set-tests: Likewise.
2945         * modules/random_r-tests: Likewise.
2946         * modules/round-tests: Likewise.
2947         * modules/roundf-tests: Likewise.
2948         * modules/roundl-tests: Likewise.
2949         * modules/search-tests: Likewise.
2950         * modules/select-tests: Likewise.
2951         * modules/signal-tests: Likewise.
2952         * modules/stdbool-tests: Likewise.
2953         * modules/stddef-tests: Likewise.
2954         * modules/stdint-tests: Likewise.
2955         * modules/stdio-tests: Likewise.
2956         * modules/stdlib-tests: Likewise.
2957         * modules/string-tests: Likewise.
2958         * modules/strings-tests: Likewise.
2959         * modules/sys_select-tests: Likewise.
2960         * modules/sys_socket-tests: Likewise.
2961         * modules/sys_stat-tests: Likewise.
2962         * modules/sys_time-tests: Likewise.
2963         * modules/sys_utsname-tests: Likewise.
2964         * modules/sysexits-tests: Likewise.
2965         * modules/time-tests: Likewise.
2966         * modules/trunc-tests: Likewise.
2967         * modules/truncf-tests: Likewise.
2968         * modules/truncl-tests: Likewise.
2969         * modules/tsearch-tests: Likewise.
2970         * modules/unistd-tests: Likewise.
2971         * modules/wchar-tests: Likewise.
2972         * modules/wctype-tests: Likewise.
2973
2974         tests: fix license on several tests
2975         * tests/test-des.c: Update to GPLv3+.
2976         * tests/test-flock.c: Likewise.
2977         * tests/test-fsync.c: Likewise.
2978         * tests/test-futimens.h: Likewise.
2979         * tests/test-gc-arcfour.c: Likewise.
2980         * tests/test-gc-arctwo.c: Likewise.
2981         * tests/test-gc-des.c: Likewise.
2982         * tests/test-gc-hmac-md5.c: Likewise.
2983         * tests/test-gc-hmac-sha1.c: Likewise.
2984         * tests/test-gc-md2.c: Likewise.
2985         * tests/test-gc-md4.c: Likewise.
2986         * tests/test-gc-md5.c: Likewise.
2987         * tests/test-gc-pbkdf2-sha1.c: Likewise.
2988         * tests/test-gc-rijndael.c: Likewise.
2989         * tests/test-gc-sha1.c: Likewise.
2990         * tests/test-gc.c: Likewise.
2991         * tests/test-getcwd.c: Likewise.
2992         * tests/test-link.c: Likewise.
2993         * tests/test-link.h: Likewise.
2994         * tests/test-lutimens.h: Likewise.
2995         * tests/test-md2.c: Likewise.
2996         * tests/test-md4.c: Likewise.
2997         * tests/test-mkdir.h: Likewise.
2998         * tests/test-rename.c: Likewise.
2999         * tests/test-rename.h: Likewise.
3000         * tests/test-safe-alloc.c: Likewise.
3001         * tests/test-utimens-common.h: Likewise.
3002         * tests/test-utimens.h: Likewise.
3003
3004         maint: sync license texts
3005         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
3006         * doc/gpl-3.0.texi: Revert copyright year update.
3007         * doc/lgpl-3.0.texi: Likewise.
3008
3009 2009-12-29  Jim Meyering  <meyering@redhat.com>
3010
3011         update nearly all FSF copyright year lists to include 2009
3012         The files named by the following are exempted:
3013             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
3014               test -f "$dst" && { echo "$dst"; continue; }
3015               test -d "$dst" || continue
3016               echo "$dst"/$(basename "$src")
3017             done > exempt
3018             git ls-files tests/unictype >> exempt
3019         In the remaining files, convert to all-interval notation if
3020         - there is already at least one year interval like 2000-2003
3021         - the file is maintained by me
3022         - the file is in lib/uni*/, where that style already prevails
3023         Otherwise, use update-copyright's default.
3024
3025 2009-12-29  Simon Josefsson  <simon@josefsson.org>
3026         and Eric Blake  <ebb9@byu.net>
3027
3028         tests: don't require debug system() to pass
3029         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
3030         * tests/test-rmdir.h (test_rmdir_func): Likewise.
3031         * tests/test-unlink.h (test_unlink_func): Likewise.
3032         * tests/test-fstatat.c (main): ...into callers.
3033         * tests/test-lstat.c (main): Likewise.
3034         * tests/test-rmdir.c (main): Likewise.
3035         * tests/test-unlink.c (main): Likewise.
3036         * tests/test-unlinkat.c (main): Likewise.
3037         * tests/test-areadlink-with-size.c (main): Don't require a
3038         debug-only system call to pass, aiding cross-testing to mingw.
3039         * tests/test-areadlink.c (main): Likewise.
3040         * tests/test-areadlinkat-with-size.c (main): Likewise.
3041         * tests/test-areadlinkat.c (main): Likewise.
3042         * tests/test-canonicalize-lgpl.c (main): Likewise.
3043         * tests/test-canonicalize.c (main): Likewise.
3044         * tests/test-chown.c (main): Likewise.
3045         * tests/test-fchownat.c (main): Likewise.
3046         * tests/test-lchown.c (main): Likewise.
3047         * tests/test-fdutimensat.c (main): Likewise.
3048         * tests/test-futimens.c (main): Likewise.
3049         * tests/test-link.c (main): Likewise.
3050         * tests/test-linkat.c (main): Likewise.
3051         * tests/test-mkdir.c (main): Likewise.
3052         * tests/test-mkdirat.c (main): Likewise.
3053         * tests/test-mkfifo.c (main): Likewise.
3054         * tests/test-mkfifoat.c (main): Likewise.
3055         * tests/test-mknod.c (main): Likewise.
3056         * tests/test-readlink.c (main): Likewise.
3057         * tests/test-remove.c (main): Likewise.
3058         * tests/test-rename.c (main): Likewise.
3059         * tests/test-renameat.c (main): Likewise.
3060         * tests/test-symlink.c (main): Likewise.
3061         * tests/test-symlinkat.c (main): Likewise.
3062         * tests/test-utimens.c (main): Likewise.
3063         * tests/test-utimensat.c (main): Likewise.
3064
3065 2009-12-29  Simon Josefsson  <simon@josefsson.org>
3066
3067         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
3068         on $(UNUSED_PARAMETER_H) to avoid build failure.
3069
3070 2009-12-28  Jim Meyering  <meyering@redhat.com>
3071
3072         update-copyright: you may specify a max. line length other than 72
3073         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3074
3075         maint: use consistent FSF copyright line syntax
3076         * lib/posixtm.c: Add missing comma in FSF copyright line.
3077         * lib/posixtm.h: Likewise.
3078         * lib/getugroups.c: Add missing ", Inc.".
3079
3080         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
3081         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
3082         FSF copyright line.  Remove trailing blanks.
3083
3084 2009-12-28  Eric Blake  <ebb9@byu.net>
3085
3086         test-dup2: reduce dependencies
3087         * modules/cloexec (Configure.ac): Set witness.
3088         * modules/dup2-tests (Depends-on): Drop cloexec.
3089         * tests/test-dup2.c (main): Skip portion of test if cloexec module
3090         not present.
3091         Suggested by Bruno Haible.
3092
3093 2009-12-26  Bruno Haible  <bruno@clisp.org>
3094
3095         Remove an unneeded dependency.
3096         * modules/fseterr (Depends-on): Remove dup2.
3097
3098 2009-12-26  Eric Blake  <ebb9@byu.net>
3099
3100         tests: use macros.h in more places
3101         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
3102         (ASSERT_STREAM): Provide default of stderr.
3103         * tests/test-dirent-safer.c: Include macros.h, using alternate
3104         stream for assertions.
3105         * tests/test-dup-safer.c: Likewise.
3106         * tests/test-freopen-safer.c: Likewise.
3107         * tests/test-getopt.c: Likewise.
3108         * tests/test-openat-safer.c: Likewise.
3109         * tests/test-pipe.c: Likewise.
3110         * tests/test-popen-safer.c: Likewise.
3111         * modules/dirent-safer-tests (Files): Include macros.h.
3112         * modules/unistd-safer-tests (Files): Likewise.
3113         * modules/freopen-safer-tests (Files): Likewise.
3114         * modules/getopt-posix-tests (Files): Likewise.
3115         * modules/openat-safer-tests (Files): Likewise.
3116         * modules/pipe-tests (Files): Likewise.
3117
3118 2009-12-26  Bruno Haible  <bruno@clisp.org>
3119
3120         javacomp: Portability fix.
3121         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
3122         that it also works on Solaris.
3123
3124 2009-12-26  Bruno Haible  <bruno@clisp.org>
3125
3126         localename: Fix storage allocation of gl_locale_name_thread's result.
3127         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
3128         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
3129         all platforms that have 'uselocale'.
3130         (gl_locale_name_thread_unsafe): New function, extracted from
3131         gl_locale_name_thread.
3132         (gl_locale_name_thread): Call struniq on all platforms that have
3133         'uselocale'.
3134         * tests/test-localename.c (test_locale_name_thread): Check that the
3135         resulting strings are permanently allocated.
3136         * modules/localename-tests (Depends-on): Add strdup.
3137
3138 2009-12-26  Bruno Haible  <bruno@clisp.org>
3139
3140         * tests/test-localename.c (categories): Fill in the strings.
3141
3142 2009-12-26  Jim Meyering  <meyering@redhat.com>
3143
3144         isdir: complete the removal of m4/isdir.m4
3145         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
3146
3147         isdir: clean up, since at least grep still uses it
3148         * lib/isdir.c: Include "isdir.h".
3149         (S_ISDIR): Remove now-unneeded definition.
3150         * modules/isdir (Files): Add lib/isdir.h.
3151         * lib/isdir.h: New file, with declaration.
3152         * m4/isdir.m4: Remove file -- unneeded.
3153
3154 2009-12-25  Bruno Haible  <bruno@clisp.org>
3155
3156         selinux-h: Make generated .h files standalone.
3157         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
3158         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
3159         * lib/se-selinux.in.h: Likewise.
3160         * modules/selinux-h (Depends-on): Add unused-parameter.
3161         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
3162         selinux/selinux.h and selinux/context.h.
3163         Suggested by Eric Blake.
3164
3165 2009-12-25  Bruno Haible  <bruno@clisp.org>
3166
3167         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
3168         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
3169         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
3170         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
3171         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
3172
3173 2009-12-24  Bruno Haible  <bruno@clisp.org>
3174
3175         openat: Fix warning.
3176         * lib/openat-proc.c: Include <unistd.h>.
3177
3178 2009-12-24  Bruno Haible  <bruno@clisp.org>
3179
3180         New module 'unused-parameter'.
3181         * build-aux/unused-parameter.h: New file, extracted from earlier
3182         gnulib-common.m4.
3183         * modules/unused-parameter: New file.
3184         * lib/unistr.h: Include unused-parameter.h.
3185         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
3186         _GL_UNUSED.
3187         * modules/unistr/base (Depends-on): Add unused-parameter.
3188
3189 2009-12-24  Bruno Haible  <bruno@clisp.org>
3190
3191         Add missing dependencies to 'extensions' module.
3192         * m4/extensions.m4: Add comment.
3193         * modules/accept4 (Depends-on): Add extensions.
3194         * modules/dup3 (Depends-on): Likewise.
3195         * modules/fcntl (Depends-on): Likewise.
3196         * modules/futimens (Depends-on): Likewise.
3197         * modules/mknod (Depends-on): Likewise.
3198         * modules/pipe2 (Depends-on): Likewise.
3199         * modules/stat-time (Depends-on): Likewise.
3200         * modules/strcasestr-simple (Depends-on): Likewise.
3201         * modules/strsignal (Depends-on): Likewise.
3202         * modules/utimensat (Depends-on): Likewise.
3203         * modules/localcharset (Depends-on): Likewise. Needed because of
3204         gl_FCNTL_O_FLAGS.
3205         * modules/wcrtomb (Depends-on): Likewise. Needed because of
3206         AC_TYPE_MBSTATE_T.
3207         * modules/wcsnrtombs (Depends-on): Likewise.
3208         * modules/wcsrtombs (Depends-on): Likewise.
3209
3210 2009-12-24  Bruno Haible  <bruno@clisp.org>
3211
3212         binary-io: Avoid gcc warning due to SET_BINARY.
3213         * lib/binary-io.h (SET_BINARY): Cast the result to void.
3214         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
3215
3216 2009-12-24  Bruno Haible  <bruno@clisp.org>
3217
3218         Avoid future namespace pollution on glibc systems.
3219         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
3220         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
3221         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
3222         glibc systems.
3223
3224 2009-12-24  Bruno Haible  <bruno@clisp.org>
3225
3226         Refactor common macros used in tests.
3227         * tests/macros.h: New file.
3228         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
3229         and/or <stdlib.h>, if appropriate.
3230         (ASSERT, SIZEOF): Remove macros.
3231         * tests/test-areadlink-with-size.c: Likewise.
3232         * tests/test-areadlinkat.c: Likewise.
3233         * tests/test-areadlinkat-with-size.c: Likewise.
3234         * tests/test-argmatch.c: Likewise.
3235         * tests/test-argv-iter.c: Likewise.
3236         * tests/test-array-mergesort.c: Likewise.
3237         * tests/test-array_list.c: Likewise.
3238         * tests/test-array_oset.c: Likewise.
3239         * tests/test-avltree_list.c: Likewise.
3240         * tests/test-avltree_oset.c: Likewise.
3241         * tests/test-avltreehash_list.c: Likewise.
3242         * tests/test-base64.c: Likewise.
3243         * tests/test-binary-io.c: Likewise.
3244         * tests/test-bitrotate.c: Likewise.
3245         * tests/test-btowc.c: Likewise.
3246         * tests/test-byteswap.c: Likewise.
3247         * tests/test-c-ctype.c: Likewise.
3248         * tests/test-c-stack.c: Likewise.
3249         * tests/test-c-strcasecmp.c: Likewise.
3250         * tests/test-c-strcasestr.c: Likewise.
3251         * tests/test-c-strncasecmp.c: Likewise.
3252         * tests/test-c-strstr.c: Likewise.
3253         * tests/test-canonicalize-lgpl.c: Likewise.
3254         * tests/test-canonicalize.c: Likewise.
3255         * tests/test-carray_list.c: Likewise.
3256         * tests/test-ceilf1.c: Likewise.
3257         * tests/test-ceilf2.c: Likewise.
3258         * tests/test-ceill.c: Likewise.
3259         * tests/test-chown.c: Likewise.
3260         * tests/test-cloexec.c: Likewise.
3261         * tests/test-copy-acl.c: Likewise.
3262         * tests/test-copy-file.c: Likewise.
3263         * tests/test-count-one-bits.c: Likewise.
3264         * tests/test-dprintf-posix.c: Likewise.
3265         * tests/test-dup2.c: Likewise.
3266         * tests/test-dup3.c: Likewise.
3267         * tests/test-duplocale.c: Likewise.
3268         * tests/test-fbufmode.c: Likewise.
3269         * tests/test-fchdir.c: Likewise.
3270         * tests/test-fchownat.c: Likewise.
3271         * tests/test-fcntl-safer.c: Likewise.
3272         * tests/test-fcntl.c: Likewise.
3273         * tests/test-fdopendir.c: Likewise.
3274         * tests/test-fdutimensat.c: Likewise.
3275         * tests/test-fflush2.c: Likewise.
3276         * tests/test-file-has-acl.c: Likewise.
3277         * tests/test-filevercmp.c: Likewise.
3278         * tests/test-flock.c: Likewise.
3279         * tests/test-floorf1.c: Likewise.
3280         * tests/test-floorf2.c: Likewise.
3281         * tests/test-floorl.c: Likewise.
3282         * tests/test-fnmatch.c: Likewise.
3283         * tests/test-fopen.h: Likewise.
3284         * tests/test-fpending.c: Likewise.
3285         * tests/test-fprintf-posix.c: Likewise.
3286         * tests/test-fpurge.c: Likewise.
3287         * tests/test-freadable.c: Likewise.
3288         * tests/test-freadahead.c: Likewise.
3289         * tests/test-freading.c: Likewise.
3290         * tests/test-freadptr.c: Likewise.
3291         * tests/test-freadptr2.c: Likewise.
3292         * tests/test-freadseek.c: Likewise.
3293         * tests/test-freopen.c: Likewise.
3294         * tests/test-frexp.c: Likewise.
3295         * tests/test-frexpl.c: Likewise.
3296         * tests/test-fseek.c: Likewise.
3297         * tests/test-fseeko.c: Likewise.
3298         * tests/test-fstatat.c: Likewise.
3299         * tests/test-fstrcmp.c: Likewise.
3300         * tests/test-fsync.c: Likewise.
3301         * tests/test-ftell.c: Likewise.
3302         * tests/test-ftello.c: Likewise.
3303         * tests/test-func.c: Likewise.
3304         * tests/test-futimens.c: Likewise.
3305         * tests/test-fwritable.c: Likewise.
3306         * tests/test-fwriting.c: Likewise.
3307         * tests/test-getcwd.c: Likewise.
3308         * tests/test-getdate.c: Likewise.
3309         * tests/test-getdelim.c: Likewise.
3310         * tests/test-getdtablesize.c: Likewise.
3311         * tests/test-getgroups.c: Likewise.
3312         * tests/test-getline.c: Likewise.
3313         * tests/test-getndelim2.c: Likewise.
3314         * tests/test-glob.c: Likewise.
3315         * tests/test-hash.c: Likewise.
3316         * tests/test-i-ring.c: Likewise.
3317         * tests/test-iconv-utf.c: Likewise.
3318         * tests/test-iconv.c: Likewise.
3319         * tests/test-idpriv-drop.c: Likewise.
3320         * tests/test-idpriv-droptemp.c: Likewise.
3321         * tests/test-inet_ntop.c: Likewise.
3322         * tests/test-inet_pton.c: Likewise.
3323         * tests/test-isblank.c: Likewise.
3324         * tests/test-isfinite.c: Likewise.
3325         * tests/test-isinf.c: Likewise.
3326         * tests/test-isnan.c: Likewise.
3327         * tests/test-isnand.h: Likewise.
3328         * tests/test-isnanf.h: Likewise.
3329         * tests/test-isnanl.h: Likewise.
3330         * tests/test-lchown.c: Likewise.
3331         * tests/test-ldexpl.c: Likewise.
3332         * tests/test-link.c: Likewise.
3333         * tests/test-linkat.c: Likewise.
3334         * tests/test-linked_list.c: Likewise.
3335         * tests/test-linkedhash_list.c: Likewise.
3336         * tests/test-localename.c: Likewise.
3337         * tests/test-lseek.c: Likewise.
3338         * tests/test-lstat.c: Likewise.
3339         * tests/test-mbmemcasecmp.c: Likewise.
3340         * tests/test-mbmemcasecoll.c: Likewise.
3341         * tests/test-mbrtowc.c: Likewise.
3342         * tests/test-mbscasecmp.c: Likewise.
3343         * tests/test-mbscasestr1.c: Likewise.
3344         * tests/test-mbscasestr2.c: Likewise.
3345         * tests/test-mbscasestr3.c: Likewise.
3346         * tests/test-mbscasestr4.c: Likewise.
3347         * tests/test-mbschr.c: Likewise.
3348         * tests/test-mbscspn.c: Likewise.
3349         * tests/test-mbsinit.c: Likewise.
3350         * tests/test-mbsncasecmp.c: Likewise.
3351         * tests/test-mbsnrtowcs.c: Likewise.
3352         * tests/test-mbspbrk.c: Likewise.
3353         * tests/test-mbspcasecmp.c: Likewise.
3354         * tests/test-mbsrchr.c: Likewise.
3355         * tests/test-mbsrtowcs.c: Likewise.
3356         * tests/test-mbsspn.c: Likewise.
3357         * tests/test-mbsstr1.c: Likewise.
3358         * tests/test-mbsstr2.c: Likewise.
3359         * tests/test-mbsstr3.c: Likewise.
3360         * tests/test-memchr.c: Likewise.
3361         * tests/test-memchr2.c: Likewise.
3362         * tests/test-memcmp.c: Likewise.
3363         * tests/test-memmem.c: Likewise.
3364         * tests/test-memrchr.c: Likewise.
3365         * tests/test-mkdir.c: Likewise.
3366         * tests/test-mkdirat.c: Likewise.
3367         * tests/test-mkfifo.c: Likewise.
3368         * tests/test-mkfifoat.c: Likewise.
3369         * tests/test-mknod.c: Likewise.
3370         * tests/test-nanosleep.c: Likewise.
3371         * tests/test-nl_langinfo.c: Likewise.
3372         * tests/test-obstack-printf.c: Likewise.
3373         * tests/test-open.c: Likewise.
3374         * tests/test-openat.c: Likewise.
3375         * tests/test-pipe-filter-gi1.c: Likewise.
3376         * tests/test-pipe-filter-gi2-main.c: Likewise.
3377         * tests/test-pipe-filter-ii1.c: Likewise.
3378         * tests/test-pipe-filter-ii2-main.c: Likewise.
3379         * tests/test-pipe2.c: Likewise.
3380         * tests/test-popen.h: Likewise.
3381         * tests/test-posixtm.c: Likewise.
3382         * tests/test-pread.c: Likewise.
3383         * tests/test-printf-frexp.c: Likewise.
3384         * tests/test-printf-frexpl.c: Likewise.
3385         * tests/test-printf-posix.c: Likewise.
3386         * tests/test-priv-set.c: Likewise.
3387         * tests/test-quotearg.c: Likewise.
3388         * tests/test-random_r.c: Likewise.
3389         * tests/test-rawmemchr.c: Likewise.
3390         * tests/test-rbtree_list.c: Likewise.
3391         * tests/test-rbtree_oset.c: Likewise.
3392         * tests/test-rbtreehash_list.c: Likewise.
3393         * tests/test-readlink.c: Likewise.
3394         * tests/test-remove.c: Likewise.
3395         * tests/test-rename.c: Likewise.
3396         * tests/test-renameat.c: Likewise.
3397         * tests/test-rmdir.c: Likewise.
3398         * tests/test-round1.c: Likewise.
3399         * tests/test-roundf1.c: Likewise.
3400         * tests/test-roundl.c: Likewise.
3401         * tests/test-safe-alloc.c: Likewise.
3402         * tests/test-sameacls.c: Likewise.
3403         * tests/test-set-mode-acl.c: Likewise.
3404         * tests/test-setenv.c: Likewise.
3405         * tests/test-sigaction.c: Likewise.
3406         * tests/test-signbit.c: Likewise.
3407         * tests/test-sleep.c: Likewise.
3408         * tests/test-snprintf-posix.c: Likewise.
3409         * tests/test-snprintf.c: Likewise.
3410         * tests/test-sprintf-posix.c: Likewise.
3411         * tests/test-stat-time.c: Likewise.
3412         * tests/test-stat.c: Likewise.
3413         * tests/test-strcasestr.c: Likewise.
3414         * tests/test-strchrnul.c: Likewise.
3415         * tests/test-strerror.c: Likewise.
3416         * tests/test-striconv.c: Likewise.
3417         * tests/test-striconveh.c: Likewise.
3418         * tests/test-striconveha.c: Likewise.
3419         * tests/test-strsignal.c: Likewise.
3420         * tests/test-strstr.c: Likewise.
3421         * tests/test-strtod.c: Likewise.
3422         * tests/test-strverscmp.c: Likewise.
3423         * tests/test-symlink.c: Likewise.
3424         * tests/test-symlinkat.c: Likewise.
3425         * tests/test-trunc1.c: Likewise.
3426         * tests/test-trunc2.c: Likewise.
3427         * tests/test-truncf1.c: Likewise.
3428         * tests/test-truncf2.c: Likewise.
3429         * tests/test-truncl.c: Likewise.
3430         * tests/test-uname.c: Likewise.
3431         * tests/test-unlink.c: Likewise.
3432         * tests/test-unlinkat.c: Likewise.
3433         * tests/test-unsetenv.c: Likewise.
3434         * tests/test-usleep.c: Likewise.
3435         * tests/test-utimens.c: Likewise.
3436         * tests/test-utimensat.c: Likewise.
3437         * tests/test-vasnprintf-posix.c: Likewise.
3438         * tests/test-vasnprintf-posix2.c: Likewise.
3439         * tests/test-vasnprintf.c: Likewise.
3440         * tests/test-vasprintf-posix.c: Likewise.
3441         * tests/test-vasprintf.c: Likewise.
3442         * tests/test-vdprintf-posix.c: Likewise.
3443         * tests/test-vfprintf-posix.c: Likewise.
3444         * tests/test-vprintf-posix.c: Likewise.
3445         * tests/test-vsnprintf-posix.c: Likewise.
3446         * tests/test-vsnprintf.c: Likewise.
3447         * tests/test-vsprintf-posix.c: Likewise.
3448         * tests/test-wcrtomb.c: Likewise.
3449         * tests/test-wcsnrtombs.c: Likewise.
3450         * tests/test-wcsrtombs.c: Likewise.
3451         * tests/test-wctype.c: Likewise.
3452         * tests/test-wcwidth.c: Likewise.
3453         * tests/test-xfprintf-posix.c: Likewise.
3454         * tests/test-xmemdup0.c: Likewise.
3455         * tests/test-xprintf-posix.c: Likewise.
3456         * tests/test-xvasprintf.c: Likewise.
3457         * tests/unicase/test-locale-language.c: Likewise.
3458         * tests/unicase/test-mapping-part1.h: Likewise.
3459         * tests/unicase/test-predicate-part1.h: Likewise.
3460         * tests/unicase/test-u8-casecmp.c: Likewise.
3461         * tests/unicase/test-u8-casecoll.c: Likewise.
3462         * tests/unicase/test-u8-casefold.c: Likewise.
3463         * tests/unicase/test-u8-is-cased.c: Likewise.
3464         * tests/unicase/test-u8-is-casefolded.c: Likewise.
3465         * tests/unicase/test-u8-is-lowercase.c: Likewise.
3466         * tests/unicase/test-u8-is-titlecase.c: Likewise.
3467         * tests/unicase/test-u8-is-uppercase.c: Likewise.
3468         * tests/unicase/test-u8-tolower.c: Likewise.
3469         * tests/unicase/test-u8-totitle.c: Likewise.
3470         * tests/unicase/test-u8-toupper.c: Likewise.
3471         * tests/unicase/test-u16-casecmp.c: Likewise.
3472         * tests/unicase/test-u16-casecoll.c: Likewise.
3473         * tests/unicase/test-u16-casefold.c: Likewise.
3474         * tests/unicase/test-u16-is-cased.c: Likewise.
3475         * tests/unicase/test-u16-is-casefolded.c: Likewise.
3476         * tests/unicase/test-u16-is-lowercase.c: Likewise.
3477         * tests/unicase/test-u16-is-titlecase.c: Likewise.
3478         * tests/unicase/test-u16-is-uppercase.c: Likewise.
3479         * tests/unicase/test-u16-tolower.c: Likewise.
3480         * tests/unicase/test-u16-totitle.c: Likewise.
3481         * tests/unicase/test-u16-toupper.c: Likewise.
3482         * tests/unicase/test-u32-casecmp.c: Likewise.
3483         * tests/unicase/test-u32-casecoll.c: Likewise.
3484         * tests/unicase/test-u32-casefold.c: Likewise.
3485         * tests/unicase/test-u32-is-cased.c: Likewise.
3486         * tests/unicase/test-u32-is-casefolded.c: Likewise.
3487         * tests/unicase/test-u32-is-lowercase.c: Likewise.
3488         * tests/unicase/test-u32-is-titlecase.c: Likewise.
3489         * tests/unicase/test-u32-is-uppercase.c: Likewise.
3490         * tests/unicase/test-u32-tolower.c: Likewise.
3491         * tests/unicase/test-u32-totitle.c: Likewise.
3492         * tests/unicase/test-u32-toupper.c: Likewise.
3493         * tests/unicase/test-ulc-casecmp.c: Likewise.
3494         * tests/unicase/test-ulc-casecoll.c: Likewise.
3495         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
3496         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
3497         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
3498         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
3499         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
3500         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
3501         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
3502         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
3503         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
3504         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
3505         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
3506         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
3507         * tests/unictype/test-bidi_byname.c: Likewise.
3508         * tests/unictype/test-bidi_name.c: Likewise.
3509         * tests/unictype/test-bidi_of.c: Likewise.
3510         * tests/unictype/test-bidi_test.c: Likewise.
3511         * tests/unictype/test-block_list.c: Likewise.
3512         * tests/unictype/test-block_of.c: Likewise.
3513         * tests/unictype/test-block_test.c: Likewise.
3514         * tests/unictype/test-categ_and.c: Likewise.
3515         * tests/unictype/test-categ_and_not.c: Likewise.
3516         * tests/unictype/test-categ_byname.c: Likewise.
3517         * tests/unictype/test-categ_name.c: Likewise.
3518         * tests/unictype/test-categ_none.c: Likewise.
3519         * tests/unictype/test-categ_of.c: Likewise.
3520         * tests/unictype/test-categ_or.c: Likewise.
3521         * tests/unictype/test-categ_test_withtable.c: Likewise.
3522         * tests/unictype/test-combining.c: Likewise.
3523         * tests/unictype/test-decdigit.c: Likewise.
3524         * tests/unictype/test-digit.c: Likewise.
3525         * tests/unictype/test-mirror.c: Likewise.
3526         * tests/unictype/test-numeric.c: Likewise.
3527         * tests/unictype/test-pr_byname.c: Likewise.
3528         * tests/unictype/test-pr_test.c: Likewise.
3529         * tests/unictype/test-predicate-part1.h: Likewise.
3530         * tests/unictype/test-scripts.c: Likewise.
3531         * tests/unictype/test-sy_c_ident.c: Likewise.
3532         * tests/unictype/test-sy_java_ident.c: Likewise.
3533         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
3534         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
3535         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
3536         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
3537         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
3538         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
3539         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
3540         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
3541         * tests/uninorm/test-canonical-decomposition.c: Likewise.
3542         * tests/uninorm/test-compat-decomposition.c: Likewise.
3543         * tests/uninorm/test-composition.c: Likewise.
3544         * tests/uninorm/test-decomposing-form.c: Likewise.
3545         * tests/uninorm/test-decomposition.c: Likewise.
3546         * tests/uninorm/test-u8-nfc.c: Likewise.
3547         * tests/uninorm/test-u8-nfd.c: Likewise.
3548         * tests/uninorm/test-u8-nfkc.c: Likewise.
3549         * tests/uninorm/test-u8-nfkd.c: Likewise.
3550         * tests/uninorm/test-u8-normcmp.c: Likewise.
3551         * tests/uninorm/test-u8-normcoll.c: Likewise.
3552         * tests/uninorm/test-u16-nfc.c: Likewise.
3553         * tests/uninorm/test-u16-nfd.c: Likewise.
3554         * tests/uninorm/test-u16-nfkc.c: Likewise.
3555         * tests/uninorm/test-u16-nfkd.c: Likewise.
3556         * tests/uninorm/test-u16-normcmp.c: Likewise.
3557         * tests/uninorm/test-u16-normcoll.c: Likewise.
3558         * tests/uninorm/test-u32-nfc.c: Likewise.
3559         * tests/uninorm/test-u32-nfd.c: Likewise.
3560         * tests/uninorm/test-u32-nfkc.c: Likewise.
3561         * tests/uninorm/test-u32-nfkd.c: Likewise.
3562         * tests/uninorm/test-u32-normalize-big.c: Likewise.
3563         * tests/uninorm/test-u32-normcmp.c: Likewise.
3564         * tests/uninorm/test-u32-normcoll.c: Likewise.
3565         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
3566         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
3567         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
3568         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
3569         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
3570         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
3571         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
3572         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
3573         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
3574         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
3575         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
3576         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
3577         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
3578         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
3579         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
3580         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
3581         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
3582         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
3583         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
3584         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
3585         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
3586         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
3587         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
3588         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
3589         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
3590         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
3591         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
3592         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
3593         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
3594         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
3595         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
3596         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
3597         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
3598         * tests/uniwidth/test-u8-strwidth.c: Likewise.
3599         * tests/uniwidth/test-u8-width.c: Likewise.
3600         * tests/uniwidth/test-u16-strwidth.c: Likewise.
3601         * tests/uniwidth/test-u16-width.c: Likewise.
3602         * tests/uniwidth/test-u32-strwidth.c: Likewise.
3603         * tests/uniwidth/test-u32-width.c: Likewise.
3604         * tests/uniwidth/test-uc_width.c: Likewise.
3605         * tests/uniwidth/test-uc_width2.c: Likewise.
3606         * modules/acl-tests (Files): Add tests/macros.h.
3607         * modules/areadlink-tests (Files): Likewise.
3608         * modules/areadlink-with-size-tests (Files): Likewise.
3609         * modules/areadlinkat-tests (Files): Likewise.
3610         * modules/areadlinkat-with-size-tests (Files): Likewise.
3611         * modules/argmatch-tests (Files): Likewise.
3612         * modules/argv-iter-tests (Files): Likewise.
3613         * modules/array-list-tests (Files): Likewise.
3614         * modules/array-mergesort-tests (Files): Likewise.
3615         * modules/array-oset-tests (Files): Likewise.
3616         * modules/avltree-list-tests (Files): Likewise.
3617         * modules/avltree-oset-tests (Files): Likewise.
3618         * modules/avltreehash-list-tests (Files): Likewise.
3619         * modules/base64-tests (Files): Likewise.
3620         * modules/binary-io-tests (Files): Likewise.
3621         * modules/bitrotate-tests (Files): Likewise.
3622         * modules/btowc-tests (Files): Likewise.
3623         * modules/byteswap-tests (Files): Likewise.
3624         * modules/c-ctype-tests (Files): Likewise.
3625         * modules/c-stack-tests (Files): Likewise.
3626         * modules/c-strcase-tests (Files): Likewise.
3627         * modules/c-strcasestr-tests (Files): Likewise.
3628         * modules/c-strstr-tests (Files): Likewise.
3629         * modules/canonicalize-lgpl-tests (Files): Likewise.
3630         * modules/canonicalize-tests (Files): Likewise.
3631         * modules/carray-list-tests (Files): Likewise.
3632         * modules/ceilf-tests (Files): Likewise.
3633         * modules/ceill-tests (Files): Likewise.
3634         * modules/chown-tests (Files): Likewise.
3635         * modules/cloexec-tests (Files): Likewise.
3636         * modules/copy-file-tests (Files): Likewise.
3637         * modules/count-one-bits-tests (Files): Likewise.
3638         * modules/dprintf-posix-tests (Files): Likewise.
3639         * modules/dup2-tests (Files): Likewise.
3640         * modules/dup3-tests (Files): Likewise.
3641         * modules/duplocale-tests (Files): Likewise.
3642         * modules/fbufmode-tests (Files): Likewise.
3643         * modules/fchdir-tests (Files): Likewise.
3644         * modules/fcntl-safer-tests (Files): Likewise.
3645         * modules/fcntl-tests (Files): Likewise.
3646         * modules/fdopendir-tests (Files): Likewise.
3647         * modules/fdutimensat-tests (Files): Likewise.
3648         * modules/fflush-tests (Files): Likewise.
3649         * modules/filevercmp-tests (Files): Likewise.
3650         * modules/flock-tests (Files): Likewise.
3651         * modules/floorf-tests (Files): Likewise.
3652         * modules/floorl-tests (Files): Likewise.
3653         * modules/fnmatch-tests (Files): Likewise.
3654         * modules/fopen-safer-tests (Files): Likewise.
3655         * modules/fopen-tests (Files): Likewise.
3656         * modules/fpending-tests (Files): Likewise.
3657         * modules/fprintf-posix-tests (Files): Likewise.
3658         * modules/fpurge-tests (Files): Likewise.
3659         * modules/freadable-tests (Files): Likewise.
3660         * modules/freadahead-tests (Files): Likewise.
3661         * modules/freading-tests (Files): Likewise.
3662         * modules/freadptr-tests (Files): Likewise.
3663         * modules/freadseek-tests (Files): Likewise.
3664         * modules/freopen-tests (Files): Likewise.
3665         * modules/frexp-nolibm-tests (Files): Likewise.
3666         * modules/frexp-tests (Files): Likewise.
3667         * modules/frexpl-nolibm-tests (Files): Likewise.
3668         * modules/frexpl-tests (Files): Likewise.
3669         * modules/fseek-tests (Files): Likewise.
3670         * modules/fseeko-tests (Files): Likewise.
3671         * modules/fstrcmp-tests (Files): Likewise.
3672         * modules/fsync-tests (Files): Likewise.
3673         * modules/ftell-tests (Files): Likewise.
3674         * modules/ftello-tests (Files): Likewise.
3675         * modules/func-tests (Files): Likewise.
3676         * modules/futimens-tests (Files): Likewise.
3677         * modules/fwritable-tests (Files): Likewise.
3678         * modules/fwriting-tests (Files): Likewise.
3679         * modules/getcwd-tests (Files): Likewise.
3680         * modules/getdate-tests (Files): Likewise.
3681         * modules/getdelim-tests (Files): Likewise.
3682         * modules/getdtablesize-tests (Files): Likewise.
3683         * modules/getgroups-tests (Files): Likewise.
3684         * modules/getline-tests (Files): Likewise.
3685         * modules/getndelim2-tests (Files): Likewise.
3686         * modules/glob-tests (Files): Likewise.
3687         * modules/hash-tests (Files): Likewise.
3688         * modules/i-ring-tests (Files): Likewise.
3689         * modules/iconv-tests (Files): Likewise.
3690         * modules/iconv_open-utf-tests (Files): Likewise.
3691         * modules/idpriv-drop-tests (Files): Likewise.
3692         * modules/idpriv-droptemp-tests (Files): Likewise.
3693         * modules/inet_ntop-tests (Files): Likewise.
3694         * modules/inet_pton-tests (Files): Likewise.
3695         * modules/isblank-tests (Files): Likewise.
3696         * modules/isfinite-tests (Files): Likewise.
3697         * modules/isinf-tests (Files): Likewise.
3698         * modules/isnan-tests (Files): Likewise.
3699         * modules/isnand-nolibm-tests (Files): Likewise.
3700         * modules/isnand-tests (Files): Likewise.
3701         * modules/isnanf-nolibm-tests (Files): Likewise.
3702         * modules/isnanf-tests (Files): Likewise.
3703         * modules/isnanl-nolibm-tests (Files): Likewise.
3704         * modules/isnanl-tests (Files): Likewise.
3705         * modules/lchown-tests (Files): Likewise.
3706         * modules/ldexpl-tests (Files): Likewise.
3707         * modules/link-tests (Files): Likewise.
3708         * modules/linkat-tests (Files): Likewise.
3709         * modules/linked-list-tests (Files): Likewise.
3710         * modules/linkedhash-list-tests (Files): Likewise.
3711         * modules/localename-tests (Files): Likewise.
3712         * modules/lseek-tests (Files): Likewise.
3713         * modules/lstat-tests (Files): Likewise.
3714         * modules/mbmemcasecmp-tests (Files): Likewise.
3715         * modules/mbmemcasecoll-tests (Files): Likewise.
3716         * modules/mbrtowc-tests (Files): Likewise.
3717         * modules/mbscasecmp-tests (Files): Likewise.
3718         * modules/mbscasestr-tests (Files): Likewise.
3719         * modules/mbschr-tests (Files): Likewise.
3720         * modules/mbscspn-tests (Files): Likewise.
3721         * modules/mbsinit-tests (Files): Likewise.
3722         * modules/mbsncasecmp-tests (Files): Likewise.
3723         * modules/mbsnrtowcs-tests (Files): Likewise.
3724         * modules/mbspbrk-tests (Files): Likewise.
3725         * modules/mbspcasecmp-tests (Files): Likewise.
3726         * modules/mbsrchr-tests (Files): Likewise.
3727         * modules/mbsrtowcs-tests (Files): Likewise.
3728         * modules/mbsspn-tests (Files): Likewise.
3729         * modules/mbsstr-tests (Files): Likewise.
3730         * modules/memchr-tests (Files): Likewise.
3731         * modules/memchr2-tests (Files): Likewise.
3732         * modules/memcmp-tests (Files): Likewise.
3733         * modules/memmem-tests (Files): Likewise.
3734         * modules/memrchr-tests (Files): Likewise.
3735         * modules/mkdir-tests (Files): Likewise.
3736         * modules/mkfifo-tests (Files): Likewise.
3737         * modules/mkfifoat-tests (Files): Likewise.
3738         * modules/mknod-tests (Files): Likewise.
3739         * modules/nanosleep-tests (Files): Likewise.
3740         * modules/nl_langinfo-tests (Files): Likewise.
3741         * modules/obstack-printf-tests (Files): Likewise.
3742         * modules/open-tests (Files): Likewise.
3743         * modules/openat-tests (Files): Likewise.
3744         * modules/pipe-filter-gi-tests (Files): Likewise.
3745         * modules/pipe-filter-ii-tests (Files): Likewise.
3746         * modules/pipe2-tests (Files): Likewise.
3747         * modules/popen-safer-tests (Files): Likewise.
3748         * modules/popen-tests (Files): Likewise.
3749         * modules/posixtm-tests (Files): Likewise.
3750         * modules/pread-tests (Files): Likewise.
3751         * modules/printf-frexp-tests (Files): Likewise.
3752         * modules/printf-frexpl-tests (Files): Likewise.
3753         * modules/printf-posix-tests (Files): Likewise.
3754         * modules/priv-set-tests (Files): Likewise.
3755         * modules/quotearg-tests (Files): Likewise.
3756         * modules/random_r-tests (Files): Likewise.
3757         * modules/rawmemchr-tests (Files): Likewise.
3758         * modules/rbtree-list-tests (Files): Likewise.
3759         * modules/rbtree-oset-tests (Files): Likewise.
3760         * modules/rbtreehash-list-tests (Files): Likewise.
3761         * modules/readlink-tests (Files): Likewise.
3762         * modules/remove-tests (Files): Likewise.
3763         * modules/rename-tests (Files): Likewise.
3764         * modules/renameat-tests (Files): Likewise.
3765         * modules/rmdir-tests (Files): Likewise.
3766         * modules/round-tests (Files): Likewise.
3767         * modules/roundf-tests (Files): Likewise.
3768         * modules/roundl-tests (Files): Likewise.
3769         * modules/safe-alloc-tests (Files): Likewise.
3770         * modules/setenv-tests (Files): Likewise.
3771         * modules/sigaction-tests (Files): Likewise.
3772         * modules/signbit-tests (Files): Likewise.
3773         * modules/sleep-tests (Files): Likewise.
3774         * modules/snprintf-posix-tests (Files): Likewise.
3775         * modules/snprintf-tests (Files): Likewise.
3776         * modules/sprintf-posix-tests (Files): Likewise.
3777         * modules/stat-tests (Files): Likewise.
3778         * modules/stat-time-tests (Files): Likewise.
3779         * modules/strcasestr-tests (Files): Likewise.
3780         * modules/strchrnul-tests (Files): Likewise.
3781         * modules/strerror-tests (Files): Likewise.
3782         * modules/striconv-tests (Files): Likewise.
3783         * modules/striconveh-tests (Files): Likewise.
3784         * modules/striconveha-tests (Files): Likewise.
3785         * modules/strsignal-tests (Files): Likewise.
3786         * modules/strstr-tests (Files): Likewise.
3787         * modules/strtod-tests (Files): Likewise.
3788         * modules/strverscmp-tests (Files): Likewise.
3789         * modules/symlink-tests (Files): Likewise.
3790         * modules/symlinkat-tests (Files): Likewise.
3791         * modules/trunc-tests (Files): Likewise.
3792         * modules/truncf-tests (Files): Likewise.
3793         * modules/truncl-tests (Files): Likewise.
3794         * modules/uname-tests (Files): Likewise.
3795         * modules/unicase/cased-tests (Files): Likewise.
3796         * modules/unicase/ignorable-tests (Files): Likewise.
3797         * modules/unicase/locale-language-tests (Files): Likewise.
3798         * modules/unicase/tolower-tests (Files): Likewise.
3799         * modules/unicase/totitle-tests (Files): Likewise.
3800         * modules/unicase/toupper-tests (Files): Likewise.
3801         * modules/unicase/u8-casecmp-tests (Files): Likewise.
3802         * modules/unicase/u8-casecoll-tests (Files): Likewise.
3803         * modules/unicase/u8-casefold-tests (Files): Likewise.
3804         * modules/unicase/u8-is-cased-tests (Files): Likewise.
3805         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
3806         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
3807         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
3808         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
3809         * modules/unicase/u8-tolower-tests (Files): Likewise.
3810         * modules/unicase/u8-totitle-tests (Files): Likewise.
3811         * modules/unicase/u8-toupper-tests (Files): Likewise.
3812         * modules/unicase/u16-casecmp-tests (Files): Likewise.
3813         * modules/unicase/u16-casecoll-tests (Files): Likewise.
3814         * modules/unicase/u16-casefold-tests (Files): Likewise.
3815         * modules/unicase/u16-is-cased-tests (Files): Likewise.
3816         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
3817         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
3818         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
3819         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
3820         * modules/unicase/u16-tolower-tests (Files): Likewise.
3821         * modules/unicase/u16-totitle-tests (Files): Likewise.
3822         * modules/unicase/u16-toupper-tests (Files): Likewise.
3823         * modules/unicase/u32-casecmp-tests (Files): Likewise.
3824         * modules/unicase/u32-casecoll-tests (Files): Likewise.
3825         * modules/unicase/u32-casefold-tests (Files): Likewise.
3826         * modules/unicase/u32-is-cased-tests (Files): Likewise.
3827         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
3828         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
3829         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
3830         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
3831         * modules/unicase/u32-tolower-tests (Files): Likewise.
3832         * modules/unicase/u32-totitle-tests (Files): Likewise.
3833         * modules/unicase/u32-toupper-tests (Files): Likewise.
3834         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
3835         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
3836         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
3837         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
3838         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
3839         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
3840         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
3841         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
3842         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
3843         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
3844         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
3845         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
3846         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
3847         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
3848         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
3849         * modules/unictype/bidicategory-name-tests (Files): Likewise.
3850         * modules/unictype/bidicategory-of-tests (Files): Likewise.
3851         * modules/unictype/bidicategory-test-tests (Files): Likewise.
3852         * modules/unictype/block-list-tests (Files): Likewise.
3853         * modules/unictype/block-of-tests (Files): Likewise.
3854         * modules/unictype/block-test-tests (Files): Likewise.
3855         * modules/unictype/category-C-tests (Files): Likewise.
3856         * modules/unictype/category-Cc-tests (Files): Likewise.
3857         * modules/unictype/category-Cf-tests (Files): Likewise.
3858         * modules/unictype/category-Cn-tests (Files): Likewise.
3859         * modules/unictype/category-Co-tests (Files): Likewise.
3860         * modules/unictype/category-Cs-tests (Files): Likewise.
3861         * modules/unictype/category-L-tests (Files): Likewise.
3862         * modules/unictype/category-Ll-tests (Files): Likewise.
3863         * modules/unictype/category-Lm-tests (Files): Likewise.
3864         * modules/unictype/category-Lo-tests (Files): Likewise.
3865         * modules/unictype/category-Lt-tests (Files): Likewise.
3866         * modules/unictype/category-Lu-tests (Files): Likewise.
3867         * modules/unictype/category-M-tests (Files): Likewise.
3868         * modules/unictype/category-Mc-tests (Files): Likewise.
3869         * modules/unictype/category-Me-tests (Files): Likewise.
3870         * modules/unictype/category-Mn-tests (Files): Likewise.
3871         * modules/unictype/category-N-tests (Files): Likewise.
3872         * modules/unictype/category-Nd-tests (Files): Likewise.
3873         * modules/unictype/category-Nl-tests (Files): Likewise.
3874         * modules/unictype/category-No-tests (Files): Likewise.
3875         * modules/unictype/category-P-tests (Files): Likewise.
3876         * modules/unictype/category-Pc-tests (Files): Likewise.
3877         * modules/unictype/category-Pd-tests (Files): Likewise.
3878         * modules/unictype/category-Pe-tests (Files): Likewise.
3879         * modules/unictype/category-Pf-tests (Files): Likewise.
3880         * modules/unictype/category-Pi-tests (Files): Likewise.
3881         * modules/unictype/category-Po-tests (Files): Likewise.
3882         * modules/unictype/category-Ps-tests (Files): Likewise.
3883         * modules/unictype/category-S-tests (Files): Likewise.
3884         * modules/unictype/category-Sc-tests (Files): Likewise.
3885         * modules/unictype/category-Sk-tests (Files): Likewise.
3886         * modules/unictype/category-Sm-tests (Files): Likewise.
3887         * modules/unictype/category-So-tests (Files): Likewise.
3888         * modules/unictype/category-Z-tests (Files): Likewise.
3889         * modules/unictype/category-Zl-tests (Files): Likewise.
3890         * modules/unictype/category-Zp-tests (Files): Likewise.
3891         * modules/unictype/category-Zs-tests (Files): Likewise.
3892         * modules/unictype/category-and-not-tests (Files): Likewise.
3893         * modules/unictype/category-and-tests (Files): Likewise.
3894         * modules/unictype/category-byname-tests (Files): Likewise.
3895         * modules/unictype/category-name-tests (Files): Likewise.
3896         * modules/unictype/category-none-tests (Files): Likewise.
3897         * modules/unictype/category-of-tests (Files): Likewise.
3898         * modules/unictype/category-or-tests (Files): Likewise.
3899         * modules/unictype/category-test-withtable-tests (Files): Likewise.
3900         * modules/unictype/combining-class-tests (Files): Likewise.
3901         * modules/unictype/ctype-alnum-tests (Files): Likewise.
3902         * modules/unictype/ctype-alpha-tests (Files): Likewise.
3903         * modules/unictype/ctype-blank-tests (Files): Likewise.
3904         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
3905         * modules/unictype/ctype-digit-tests (Files): Likewise.
3906         * modules/unictype/ctype-graph-tests (Files): Likewise.
3907         * modules/unictype/ctype-lower-tests (Files): Likewise.
3908         * modules/unictype/ctype-print-tests (Files): Likewise.
3909         * modules/unictype/ctype-punct-tests (Files): Likewise.
3910         * modules/unictype/ctype-space-tests (Files): Likewise.
3911         * modules/unictype/ctype-upper-tests (Files): Likewise.
3912         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
3913         * modules/unictype/decimal-digit-tests (Files): Likewise.
3914         * modules/unictype/digit-tests (Files): Likewise.
3915         * modules/unictype/mirror-tests (Files): Likewise.
3916         * modules/unictype/numeric-tests (Files): Likewise.
3917         * modules/unictype/property-alphabetic-tests (Files): Likewise.
3918         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
3919         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
3920         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
3921         Likewise.
3922         * modules/unictype/property-bidi-block-separator-tests (Files):
3923         Likewise.
3924         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
3925         Likewise.
3926         * modules/unictype/property-bidi-common-separator-tests (Files):
3927         Likewise.
3928         * modules/unictype/property-bidi-control-tests (Files): Likewise.
3929         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
3930         Likewise.
3931         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
3932         Likewise.
3933         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
3934         Likewise.
3935         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
3936         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
3937         Likewise.
3938         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
3939         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
3940         Likewise.
3941         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
3942         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
3943         * modules/unictype/property-bidi-segment-separator-tests (Files):
3944         Likewise.
3945         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
3946         * modules/unictype/property-byname-tests (Files): Likewise.
3947         * modules/unictype/property-combining-tests (Files): Likewise.
3948         * modules/unictype/property-composite-tests (Files): Likewise.
3949         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
3950         * modules/unictype/property-dash-tests (Files): Likewise.
3951         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
3952         * modules/unictype/property-default-ignorable-code-point-tests (Files):
3953         Likewise.
3954         * modules/unictype/property-deprecated-tests (Files): Likewise.
3955         * modules/unictype/property-diacritic-tests (Files): Likewise.
3956         * modules/unictype/property-extender-tests (Files): Likewise.
3957         * modules/unictype/property-format-control-tests (Files): Likewise.
3958         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
3959         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
3960         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
3961         * modules/unictype/property-hex-digit-tests (Files): Likewise.
3962         * modules/unictype/property-hyphen-tests (Files): Likewise.
3963         * modules/unictype/property-id-continue-tests (Files): Likewise.
3964         * modules/unictype/property-id-start-tests (Files): Likewise.
3965         * modules/unictype/property-ideographic-tests (Files): Likewise.
3966         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
3967         * modules/unictype/property-ids-trinary-operator-tests (Files):
3968         Likewise.
3969         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
3970         * modules/unictype/property-iso-control-tests (Files): Likewise.
3971         * modules/unictype/property-join-control-tests (Files): Likewise.
3972         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
3973         * modules/unictype/property-line-separator-tests (Files): Likewise.
3974         * modules/unictype/property-logical-order-exception-tests (Files):
3975         Likewise.
3976         * modules/unictype/property-lowercase-tests (Files): Likewise.
3977         * modules/unictype/property-math-tests (Files): Likewise.
3978         * modules/unictype/property-non-break-tests (Files): Likewise.
3979         * modules/unictype/property-not-a-character-tests (Files): Likewise.
3980         * modules/unictype/property-numeric-tests (Files): Likewise.
3981         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
3982         * modules/unictype/property-other-default-ignorable-code-point-tests
3983         (Files): Likewise.
3984         * modules/unictype/property-other-grapheme-extend-tests (Files):
3985         Likewise.
3986         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
3987         * modules/unictype/property-other-id-start-tests (Files): Likewise.
3988         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
3989         * modules/unictype/property-other-math-tests (Files): Likewise.
3990         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
3991         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
3992         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
3993         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
3994         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
3995         * modules/unictype/property-private-use-tests (Files): Likewise.
3996         * modules/unictype/property-punctuation-tests (Files): Likewise.
3997         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
3998         * modules/unictype/property-radical-tests (Files): Likewise.
3999         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
4000         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
4001         * modules/unictype/property-space-tests (Files): Likewise.
4002         * modules/unictype/property-terminal-punctuation-tests (Files):
4003         Likewise.
4004         * modules/unictype/property-test-tests (Files): Likewise.
4005         * modules/unictype/property-titlecase-tests (Files): Likewise.
4006         * modules/unictype/property-unassigned-code-value-tests (Files):
4007         Likewise.
4008         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
4009         * modules/unictype/property-uppercase-tests (Files): Likewise.
4010         * modules/unictype/property-variation-selector-tests (Files): Likewise.
4011         * modules/unictype/property-white-space-tests (Files): Likewise.
4012         * modules/unictype/property-xid-continue-tests (Files): Likewise.
4013         * modules/unictype/property-xid-start-tests (Files): Likewise.
4014         * modules/unictype/property-zero-width-tests (Files): Likewise.
4015         * modules/unictype/scripts-tests (Files): Likewise.
4016         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
4017         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
4018         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
4019         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
4020         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
4021         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
4022         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
4023         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
4024         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
4025         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
4026         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
4027         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
4028         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
4029         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
4030         * modules/uninorm/composition-tests (Files): Likewise.
4031         * modules/uninorm/decomposing-form-tests (Files): Likewise.
4032         * modules/uninorm/decomposition-tests (Files): Likewise.
4033         * modules/uninorm/filter-tests (Files): Likewise.
4034         * modules/uninorm/nfc-tests (Files): Likewise.
4035         * modules/uninorm/nfd-tests (Files): Likewise.
4036         * modules/uninorm/nfkc-tests (Files): Likewise.
4037         * modules/uninorm/nfkd-tests (Files): Likewise.
4038         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
4039         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
4040         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
4041         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
4042         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
4043         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
4044         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
4045         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
4046         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
4047         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
4048         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
4049         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
4050         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
4051         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
4052         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
4053         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
4054         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
4055         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
4056         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
4057         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
4058         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
4059         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
4060         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
4061         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
4062         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
4063         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
4064         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
4065         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
4066         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
4067         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
4068         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
4069         * modules/uniwidth/u8-width-tests (Files): Likewise.
4070         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
4071         * modules/uniwidth/u16-width-tests (Files): Likewise.
4072         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
4073         * modules/uniwidth/u32-width-tests (Files): Likewise.
4074         * modules/uniwidth/width-tests (Files): Likewise.
4075         * modules/unlink-tests (Files): Likewise.
4076         * modules/unsetenv-tests (Files): Likewise.
4077         * modules/usleep-tests (Files): Likewise.
4078         * modules/utimens-tests (Files): Likewise.
4079         * modules/utimensat-tests (Files): Likewise.
4080         * modules/vasnprintf-posix-tests (Files): Likewise.
4081         * modules/vasnprintf-tests (Files): Likewise.
4082         * modules/vasprintf-posix-tests (Files): Likewise.
4083         * modules/vasprintf-tests (Files): Likewise.
4084         * modules/vdprintf-posix-tests (Files): Likewise.
4085         * modules/vfprintf-posix-tests (Files): Likewise.
4086         * modules/vprintf-posix-tests (Files): Likewise.
4087         * modules/vsnprintf-posix-tests (Files): Likewise.
4088         * modules/vsnprintf-tests (Files): Likewise.
4089         * modules/vsprintf-posix-tests (Files): Likewise.
4090         * modules/wcrtomb-tests (Files): Likewise.
4091         * modules/wcsnrtombs-tests (Files): Likewise.
4092         * modules/wcsrtombs-tests (Files): Likewise.
4093         * modules/wctype-tests (Files): Likewise.
4094         * modules/wcwidth-tests (Files): Likewise.
4095         * modules/xmemdup0-tests (Files): Likewise.
4096         * modules/xprintf-posix-tests (Files): Likewise.
4097         * modules/xvasprintf-tests (Files): Likewise.
4098
4099 2009-12-24  Eric Blake  <ebb9@byu.net>
4100
4101         test-nanosleep: fix typo
4102         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
4103         patch.
4104         Reported by Bruno Haible.
4105
4106 2009-12-24  Bruno Haible  <bruno@clisp.org>
4107
4108         Reduce namespace pollution on glibc systems.
4109         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
4110         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
4111         systems.
4112         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
4113         <getopt.h> on glibc systems.
4114         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
4115         systems.
4116         * lib/fcntl.c: Include <unistd.h> here instead.
4117
4118 2009-12-24  Bruno Haible  <bruno@clisp.org>
4119
4120         * lib/stdlib.in.h (includes): Fix typo in today's commit.
4121
4122 2009-12-24  Eric Blake  <ebb9@byu.net>
4123
4124         tests: add signature checks
4125         * tests/signature.h (SIGNATURE_CHECK): New file.
4126         * modules/atexit-tests (Files): Use it.
4127         * modules/btowc-tests (Files): Likewise.
4128         * modules/canonicalize-lgpl-tests (Files): Likewise.
4129         * modules/ceilf-tests (Files): Likewise.
4130         * modules/ceill-tests (Files): Likewise.
4131         * modules/chown-tests (Files): Likewise.
4132         * modules/dprintf-posix-tests (Files): Likewise.
4133         * modules/dup2-tests (Files): Likewise.
4134         * modules/dup3-tests (Files): Likewise.
4135         * modules/duplocale-tests (Files): Likewise.
4136         * modules/fchdir-tests (Files): Likewise.
4137         * modules/fcntl-tests (Files): Likewise.
4138         * modules/fdopendir-tests (Files): Likewise.
4139         * modules/fflush-tests (Files): Likewise.
4140         * modules/flock-tests (Files): Likewise.
4141         * modules/floorf-tests (Files): Likewise.
4142         * modules/floorl-tests (Files): Likewise.
4143         * modules/fnmatch-tests (Files): Likewise.
4144         * modules/fopen-tests (Files): Likewise.
4145         * modules/fprintf-posix-tests (Files): Likewise.
4146         * modules/freopen-tests (Files): Likewise.
4147         * modules/frexp-nolibm-tests (Files): Likewise.
4148         * modules/frexp-tests (Files): Likewise.
4149         * modules/frexpl-nolibm-tests (Files): Likewise.
4150         * modules/frexpl-tests (Files): Likewise.
4151         * modules/fseek-tests (Files): Likewise.
4152         * modules/fseeko-tests (Files): Likewise.
4153         * modules/fsync-tests (Files): Likewise.
4154         * modules/ftell-tests (Files): Likewise.
4155         * modules/ftello-tests (Files): Likewise.
4156         * modules/futimens-tests (Files): Likewise.
4157         * modules/getaddrinfo-tests (Files): Likewise.
4158         * modules/getcwd-tests (Files): Likewise.
4159         * modules/getdelim-tests (Files): Likewise.
4160         * modules/getdtablesize-tests (Files): Likewise.
4161         * modules/getgroups-tests (Files): Likewise.
4162         * modules/gethostname-tests (Files): Likewise.
4163         * modules/getline-tests (Files): Likewise.
4164         * modules/getopt-posix-tests (Files): Likewise.
4165         * modules/gettimeofday-tests (Files): Likewise.
4166         * modules/glob-tests (Files): Likewise.
4167         * modules/iconv-tests (Files): Likewise.
4168         * modules/inet_ntop-tests (Files): Likewise.
4169         * modules/inet_pton-tests (Files): Likewise.
4170         * modules/isblank-tests (Files): Likewise.
4171         * modules/lchown-tests (Files): Likewise.
4172         * modules/ldexpl-tests (Files): Likewise.
4173         * modules/link-tests (Files): Likewise.
4174         * modules/linkat-tests (Files): Likewise.
4175         * modules/lseek-tests (Files): Likewise.
4176         * modules/lstat-tests (Files): Likewise.
4177         * modules/mbrtowc-tests (Files): Likewise.
4178         * modules/mbsinit-tests (Files): Likewise.
4179         * modules/mbsnrtowcs-tests (Files): Likewise.
4180         * modules/mbsrtowcs-tests (Files): Likewise.
4181         * modules/memchr-tests (Files): Likewise.
4182         * modules/memcmp-tests (Files): Likewise.
4183         * modules/memmem-tests (Files): Likewise.
4184         * modules/memrchr-tests (Files): Likewise.
4185         * modules/mkdir-tests (Files): Likewise.
4186         * modules/mkfifo-tests (Files): Likewise.
4187         * modules/mkfifoat-tests (Files): Likewise.
4188         * modules/mknod-tests (Files): Likewise.
4189         * modules/nanosleep-tests (Files): Likewise.
4190         * modules/nl_langinfo-tests (Files): Likewise.
4191         * modules/obstack-printf-tests (Files): Likewise.
4192         * modules/open-tests (Files): Likewise.
4193         * modules/openat-tests (Files): Likewise.
4194         * modules/perror-tests (Files): Likewise.
4195         * modules/pipe2-tests (Files): Likewise.
4196         * modules/poll-tests (Files): Likewise.
4197         * modules/popen-tests (Files): Likewise.
4198         * modules/posix_spawn-tests (Files): Likewise.
4199         * modules/posix_spawnp-tests (Files): Likewise.
4200         * modules/pread-tests (Files): Likewise.
4201         * modules/printf-posix-tests (Files): Likewise.
4202         * modules/pty-tests (Files): Likewise.
4203         * modules/random_r-tests (Files): Likewise.
4204         * modules/rawmemchr-tests (Files): Likewise.
4205         * modules/readlink-tests (Files): Likewise.
4206         * modules/remove-tests (Files): Likewise.
4207         * modules/rename-tests (Files): Likewise.
4208         * modules/renameat-tests (Files): Likewise.
4209         * modules/rmdir-tests (Files): Likewise.
4210         * modules/round-tests (Files): Likewise.
4211         * modules/roundf-tests (Files): Likewise.
4212         * modules/roundl-tests (Files): Likewise.
4213         * modules/select-tests (Files): Likewise.
4214         * modules/setenv-tests (Files): Likewise.
4215         * modules/sigaction-tests (Files): Likewise.
4216         * modules/sleep-tests (Files): Likewise.
4217         * modules/snprintf-posix-tests (Files): Likewise.
4218         * modules/snprintf-tests (Files): Likewise.
4219         * modules/sprintf-posix-tests (Files): Likewise.
4220         * modules/stat-tests (Files): Likewise.
4221         * modules/strcasestr-tests (Files): Likewise.
4222         * modules/strchrnul-tests (Files): Likewise.
4223         * modules/strerror-tests (Files): Likewise.
4224         * modules/strsignal-tests (Files): Likewise.
4225         * modules/strstr-tests (Files): Likewise.
4226         * modules/strtod-tests (Files): Likewise.
4227         * modules/strverscmp-tests (Files): Likewise.
4228         * modules/symlink-tests (Files): Likewise.
4229         * modules/symlinkat-tests (Files): Likewise.
4230         * modules/times-tests (Files): Likewise.
4231         * modules/trunc-tests (Files): Likewise.
4232         * modules/truncf-tests (Files): Likewise.
4233         * modules/truncl-tests (Files): Likewise.
4234         * modules/tsearch-tests (Files): Likewise.
4235         * modules/uname-tests (Files): Likewise.
4236         * modules/unlink-tests (Files): Likewise.
4237         * modules/unsetenv-tests (Files): Likewise.
4238         * modules/usleep-tests (Files): Likewise.
4239         * modules/utimensat-tests (Files): Likewise.
4240         * modules/vasprintf-tests (Files): Likewise.
4241         * modules/vdprintf-posix-tests (Files): Likewise.
4242         * modules/vfprintf-posix-tests (Files): Likewise.
4243         * modules/vprintf-posix-tests (Files): Likewise.
4244         * modules/vsnprintf-posix-tests (Files): Likewise.
4245         * modules/vsnprintf-tests (Files): Likewise.
4246         * modules/vsprintf-posix-tests (Files): Likewise.
4247         * modules/wcrtomb-tests (Files): Likewise.
4248         * modules/wcsnrtombs-tests (Files): Likewise.
4249         * modules/wcsrtombs-tests (Files): Likewise.
4250         * modules/wcwidth-tests (Files): Likewise.
4251         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
4252         * tests/test-isinf.c (isinf): Likewise.
4253         * tests/test-isnan.c (isnan): Likewise.
4254         * tests/test-signbit.c (signbit): Likewise.
4255         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
4256         declaration, either as macro or with correct signature.
4257         (select): Ensure function under test is declared with correct
4258         signature in correct header.
4259         * tests/test-atexit.c (atexit): Likewise.
4260         * tests/test-btowc.c (btowc): Likewise.
4261         * tests/test-canonicalize-lgpl.c (realpath)
4262         (canonicalize_file_name): Likewise.
4263         * tests/test-ceilf1.c (ceilf): Likewise.
4264         * tests/test-ceill.c (ceill): Likewise.
4265         * tests/test-chown.c (chown): Likewise.
4266         * tests/test-dprintf-posix.c (dprintf): Likewise.
4267         * tests/test-dup2.c (dup2): Likewise.
4268         * tests/test-dup3.c (dup3): Likewise.
4269         * tests/test-duplocale.c (duplocale): Likewise.
4270         * tests/test-fchdir.c (fchdir): Likewise.
4271         * tests/test-fchownat.c (fchownat): Likewise.
4272         * tests/test-fcntl.c (fcntl): Likewise.
4273         * tests/test-fdopendir.c (fdopendir): Likewise.
4274         * tests/test-fflush.c (fflush): Likewise.
4275         * tests/test-flock.c (flock): Likewise.
4276         * tests/test-floorf1.c (floorf): Likewise.
4277         * tests/test-floorl.c (floorl): Likewise.
4278         * tests/test-fnmatch.c (fnmatch): Likewise.
4279         * tests/test-fopen.c (fopen): Likewise.
4280         * tests/test-fprintf-posix.c (fprintf): Likewise.
4281         * tests/test-freopen.c (freopen): Likewise.
4282         * tests/test-frexp.c (frexp): Likewise.
4283         * tests/test-frexpl.c (frexpl): Likewise.
4284         * tests/test-fseek.c (fseek): Likewise.
4285         * tests/test-fseeko.c (fseeko): Likewise.
4286         * tests/test-fstatat.c (fstatat): Likewise.
4287         * tests/test-fsync.c (fsync): Likewise.
4288         * tests/test-ftell.c (ftell): Likewise.
4289         * tests/test-ftello.c (ftello): Likewise.
4290         * tests/test-futimens.c (futimens): Likewise.
4291         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
4292         (gai_strerror): Likewise.
4293         * tests/test-getcwd.c (getcwd): Likewise.
4294         * tests/test-getdelim.c (getdelim): Likewise.
4295         * tests/test-getdtablesize.c (getdtablesize): Likewise.
4296         * tests/test-getgroups.c (getgroups): Likewise.
4297         * tests/test-gethostname.c (gethostname): Likewise.
4298         * tests/test-getline.c (getline): Likewise.
4299         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
4300         Likewise.
4301         * tests/test-gettimeofday.c (gettimeofday): Likewise.
4302         * tests/test-glob.c (glob, globfree): Likewise.
4303         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
4304         * tests/test-inet_ntop.c (inet_ntop): Likewise.
4305         * tests/test-inet_pton.c (inet_pton): Likewise.
4306         * tests/test-isblank.c (isblank): Likewise.
4307         * tests/test-lchown.c (lchown): Likewise.
4308         * tests/test-ldexpl.c (ldexpl): Likewise.
4309         * tests/test-link.c (link): Likewise.
4310         * tests/test-linkat.c (linkat): Likewise.
4311         * tests/test-lseek.c (lseek): Likewise.
4312         * tests/test-lstat.c (lstat): Likewise.
4313         * tests/test-mbrtowc.c (mbrtowc): Likewise.
4314         * tests/test-mbsinit.c (mbsinit): Likewise.
4315         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
4316         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
4317         * tests/test-memchr.c (memchr): Likewise.
4318         * tests/test-memcmp.c (memcmp): Likewise.
4319         * tests/test-memmem.c (memmem): Likewise.
4320         * tests/test-memrchr.c (memrchr): Likewise.
4321         * tests/test-mkdir.c (mkdir): Likewise.
4322         * tests/test-mkdirat.c (mkdirat): Likewise.
4323         * tests/test-mkfifo.c (mkfifo): Likewise.
4324         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
4325         * tests/test-mknod.c (mknod): Likewise.
4326         * tests/test-nanosleep.c (nanosleep): Likewise.
4327         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
4328         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
4329         Likewise.
4330         * tests/test-open.c (open): Likewise.
4331         * tests/test-openat.c (openat): Likewise.
4332         * tests/test-perror.c (perror): Likewise.
4333         * tests/test-pipe2.c (pipe2): Likewise.
4334         * tests/test-poll.c (poll): Likewise.
4335         * tests/test-popen.c (popen, pclose): Likewise.
4336         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
4337         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
4338         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
4339         (posix_spawn_file_actions_destroy)
4340         (posix_spawn_file_actions_addclose)
4341         (posix_spawn_file_actions_addopen)
4342         (posix_spawn_file_actions_adddup2): Likewise.
4343         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
4344         * tests/test-pread.c (pread): Likewise.
4345         * tests/test-printf-posix.c (printf): Likewise.
4346         * tests/test-pty.c (openpty, forkpty): Likewise.
4347         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
4348         (random_r): Likewise.
4349         * tests/test-rawmemchr.c (rawmemchr): Likewise.
4350         * tests/test-readlink.c (readlink): Likewise.
4351         * tests/test-remove.c (remove): Likewise.
4352         * tests/test-rename.c (rename): Likewise.
4353         * tests/test-renameat.c (renameat): Likewise.
4354         * tests/test-rmdir.c (rmdir): Likewise.
4355         * tests/test-round1.c (round): Likewise.
4356         * tests/test-roundf1.c (roundf): Likewise.
4357         * tests/test-roundl.c (roundl): Likewise.
4358         * tests/test-setenv.c (setenv): Likewise.
4359         * tests/test-sigaction.c (sigaction): Likewise.
4360         * tests/test-sleep.c (sleep): Likewise.
4361         * tests/test-snprintf.c (snprintf): Likewise.
4362         * tests/test-sprintf-posix.c (sprintf): Likewise.
4363         * tests/test-stat.c (stat): Likewise.
4364         * tests/test-stpncpy.c (stpncpy): Likewise.
4365         * tests/test-strcasestr.c (strcasestr): Likewise.
4366         * tests/test-strchrnul.c (strchrnul): Likewise.
4367         * tests/test-strerror.c (strerror): Likewise.
4368         * tests/test-strsignal.c (strsignal): Likewise.
4369         * tests/test-strstr.c (strstr): Likewise.
4370         * tests/test-strtod.c (strtod): Likewise.
4371         * tests/test-strverscmp.c (strverscmp): Likewise.
4372         * tests/test-symlink.c (symlink): Likewise.
4373         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
4374         * tests/test-times.c (times): Likewise.
4375         * tests/test-trunc1.c (trunc): Likewise.
4376         * tests/test-truncf1.c (truncf): Likewise.
4377         * tests/test-truncl.c (truncl): Likewise.
4378         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
4379         Likewise.
4380         * tests/test-uname.c (uname): Likewise.
4381         * tests/test-unlink.c (unlink): Likewise.
4382         * tests/test-unlinkat.c (unlinkat): Likewise.
4383         * tests/test-unsetenv.c (unsetenv): Likewise.
4384         * tests/test-usleep.c (usleep): Likewise.
4385         * tests/test-utimensat.c (utimensat): Likewise.
4386         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
4387         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
4388         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
4389         * tests/test-vprintf-posix.c (vprintf): Likewise.
4390         * tests/test-vsnprintf.c (vsnprintf): Likewise.
4391         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
4392         * tests/test-wcrtomb.c (wcrtomb): Likewise.
4393         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
4394         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
4395         * tests/test-wcwidth.c (wcwidth): Likewise.
4396
4397         build: pull in conditional headers during GNULIB_POSIXCHECK
4398         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
4399         definitions from any conditionally-included headers.
4400         * lib/stdlib.in.h (includes): Likewise.
4401         * lib/unistd.in.h (includes): Likewise.
4402
4403 2009-12-24  Bruno Haible  <bruno@clisp.org>
4404
4405         * tests/test-argv-iter.c: Include header file being tested immediately
4406         after config.h.
4407         * tests/test-base64.c: Likewise.
4408         * tests/test-flock.c: Likewise.
4409         * tests/test-fsync.c: Likewise.
4410         * tests/test-getdate.c: Likewise.
4411         * tests/test-getndelim2.c: Likewise.
4412         * tests/test-isfinite.c: Likewise.
4413         * tests/test-isinf.c: Likewise.
4414         * tests/test-strerror.c: Likewise.
4415         * tests/test-strsignal.c: Likewise.
4416
4417 2009-12-23  Eric Blake  <ebb9@byu.net>
4418
4419         unistd: work around cygwin bug
4420         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
4421         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
4422         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
4423
4424 2009-12-23  Bruno Haible  <bruno@clisp.org>
4425
4426         localename: More tests.
4427         * tests/test-localename.c (SIZEOF): New macro.
4428         (categories): New variable.
4429         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
4430         test_locale_name_default): Add test w.r.t. thread locale.
4431         (test_locale_name_thread): New function.
4432         (main): Invoke it.
4433
4434         localename: Make aware of thread locale.
4435         * lib/localename.h (gl_locale_name_thread): New declaration.
4436         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
4437         behaviour with respect to thread locale.
4438         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
4439         <langinfo.h>, glthread/lock.h.
4440         (SIZE_BITS): New macro.
4441         (string_hash): New function.
4442         (struct hash_node): New type.
4443         (HASH_TABLE_SIZE): New macro.
4444         (struniq_hash_table, struniq_lock): New variables.
4445         (struniq): New function.
4446         (gl_locale_name_thread): New function.
4447         (gl_locale_name): Invoke it.
4448         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
4449         * modules/localename (Depends-on): Add lock.
4450         Reported by Mike Gran <spk121@yahoo.com>.
4451
4452 2009-12-23  Eric Blake  <ebb9@byu.net>
4453
4454         va-args: new module
4455         * modules/va-args: New file.
4456         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
4457         * MODULES.html.sh (Core language properties): Mention it.
4458
4459         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
4460         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
4461         named alias for __attribute__((__unused__)).
4462         * lib/chown.c: Update client.
4463         * lib/fchmodat.c: Likewise.
4464         * lib/fts.c: Likewise.
4465         * lib/getdate.y: Likewise.
4466         * lib/getgroups.c: Likewise.
4467         * lib/getopt.c: Likewise.
4468         * lib/getugroups.c: Likewise.
4469         * lib/mkdir.c: Likewise.
4470         * lib/mkfifo.c: Likewise.
4471         * lib/mkfifoat.c: Likewise.
4472         * lib/mknod.c: Likewise.
4473         * lib/mknodat.c: Likewise.
4474         * lib/readlink.c: Likewise.
4475         * lib/se-context.in.h: Likewise.
4476         * lib/se-selinux.in.h: Likewise.
4477         * lib/sockets.c: Likewise.
4478         * lib/symlink.c: Likewise.
4479         * lib/symlinkat.c: Likewise.
4480         * lib/unicodeio.c: Likewise.
4481         * lib/unistr.h: Likewise.
4482         * tests/test-areadlink.c: Likewise.
4483         * tests/test-areadlinkat.c: Likewise.
4484         * tests/test-filenamecat.c: Likewise.
4485         * tests/test-fseeko.c: Likewise.
4486         * tests/test-ftello.c: Likewise.
4487         * tests/test-getdate.c: Likewise.
4488         * tests/test-getgroups.c: Likewise.
4489         * tests/test-gethostname.c: Likewise.
4490         * tests/test-quotearg.c: Likewise.
4491         * tests/test-version-etc.c: Likewise.
4492         * tests/test-xalloc-die.c: Likewise.
4493         * tests/test-xfprintf-posix.c: Likewise.
4494         * tests/test-xprintf-posix.c: Likewise.
4495         * tests/test-xvasprintf.c: Likewise.
4496
4497         tests: avoid compiler warnings
4498         * tests/test-fcntl.c (main): Delete unused parameters.
4499         * tests/test-freopen-safer.c (main): Likewise.
4500         * tests/test-xalloc-die.c (main): Mark unused parameters.
4501         * tests/test-fseeko.c (main): Likewise.
4502         * tests/test-ftello.c (main): Likewise.
4503         * tests/test-nanosleep.c (main): Avoid declaration warning.
4504         * tests/test-sleep.c (main): Likewise.
4505         * tests/test-unsetenv.c (main): Silence warning about string
4506         literal.
4507         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
4508
4509 2009-12-23  Bruno Haible  <bruno@clisp.org>
4510
4511         * tests/test-localename.c (test_locale_name): New function, extracted
4512         from main. Also test mixed situations.
4513         (test_locale_name_posix, test_locale_name_environ,
4514         test_locale_name_default): New functions.
4515         (main): Invoke them all.
4516         * modules/localename-tests (configure.ac): Test for newlocale.
4517
4518 2009-12-23  Bruno Haible  <bruno@clisp.org>
4519
4520         unistd: Ensure getcwd gets declared before being overridden.
4521         * lib/unistd.in.h: Conditionally include <io.h>.
4522
4523 2009-12-22  Bruno Haible  <bruno@clisp.org>
4524
4525         wchar: Diagnose broken combination of glibc and gcc versions and flags.
4526         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
4527         (gl_WCHAR_H): Invoke it.
4528         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
4529         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
4530         Reported by Karl Berry <karl@freefriends.org>.
4531
4532 2009-12-22  Eric Blake  <ebb9@byu.net>
4533
4534         math, unistd: avoid redundant includes
4535         * lib/math.in.h (isnan): No need to re-include <math.h>.
4536         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
4537
4538         getsubopt: work around cygwin bug
4539         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
4540         avoid conflicting with system getsubopt.
4541         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
4542         bug.
4543
4544         getopt: synchronize from glibc
4545         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
4546         parameter order.  Adjust all callers.
4547         (_getopt_internal_r, main): Adjust quoting in error messages.
4548         Drop considerations for outdated POSIX 1003.2 error message.
4549         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
4550         callers.
4551         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
4552
4553         test-getopt: test stderr behavior
4554         * modules/getopt-posix-tests (Depends-on): Add dup2.
4555         * tests/test-getopt.c (ASSERT): Avoid stderr.
4556         (main): Move stderr to a temporary file.
4557         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
4558         Instead, add parameter to inform caller if output occurred.
4559         (test_getopt): Adjust all existing tests to expect silence, and
4560         add new tests of leading ":".
4561         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
4562         glibc shortcomings with leading "-:" or "+:" in optstring.
4563         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4564         Likewise.
4565         * doc/posix-functions/getopt.texi (getopt): Likewise.
4566
4567         test-getopt: enhance test
4568         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
4569         supports optind=0.
4570         * tests/test-getopt.c (OPTIND_MIN): Move...
4571         * tests/test-getopt.h (OPTIND_MIN): ...here.
4572         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
4573         Require that optind=0 works, since modern BSD supports it in
4574         addition to optreset, and since coreutils expects it.
4575         (test_getopt_long_only): New test.
4576         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
4577         glibc shortcomings with 'W;', and enforcement of optind=0.
4578         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4579         Likewise.
4580
4581 2009-12-21  Bruno Haible  <bruno@clisp.org>
4582
4583         localename: Improvements for MacOS X and Cygwin.
4584         * lib/localename.h (gl_locale_name_environ): New declaration.
4585         * lib/localename.c (gl_locale_name_environ): New function, extracted from
4586         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
4587         (gl_locale_name_posix): Invoke it.
4588         (gl_locale_name_default): Add comments. Use Windows native API also on
4589         Cygwin.
4590
4591 2009-12-21  Bruno Haible  <bruno@clisp.org>
4592
4593         Update list of Win32 locale ids.
4594         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
4595         (LANG_SAMI): Renamed from LANG_SAAMI.
4596         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
4597         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
4598         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
4599         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
4600         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
4601         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
4602         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
4603         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
4604         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
4605         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
4606         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
4607         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
4608         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
4609         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
4610         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
4611         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
4612         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
4613         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
4614         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
4615         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
4616         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
4617         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
4618         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
4619         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
4620         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
4621         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
4622         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
4623         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
4624         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
4625         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
4626         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
4627         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
4628         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
4629         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
4630         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
4631         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
4632         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
4633         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
4634         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
4635         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
4636         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
4637         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
4638         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
4639         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
4640         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
4641         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
4642         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
4643         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
4644         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
4645         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
4646         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
4647         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
4648         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
4649         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
4650         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
4651         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
4652         Add more languages and countries for Sami, Sorbian. Add more countries
4653         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
4654         for Pashto. Change country for Syriac, Tswana.
4655
4656 2009-12-21  Eric Blake  <ebb9@byu.net>
4657
4658         test-utimens: avoid spurious failure
4659         * tests/test-chown.h (nap): Factor...
4660         * tests/nap.h: ...into new file.
4661         * tests/test-lchown.h (nap): Avoid duplication.
4662         * tests/test-utimens-common.h (nap): Use shared implementation,
4663         necessary on file systems with 1-second resolution.
4664         * modules/chown-tests (Files): Include new file.
4665         * modules/fdutimensat-tests (Files): Likewise.
4666         * modules/futimens-tests (Files): Likewise.
4667         * modules/lchown-tests (Files): Likewise.
4668         * modules/openat-tests (Files): Likewise.
4669         * modules/utimens-tests (Files): Likewise.
4670         * modules/utimensat-tests (Files): Likewise.
4671
4672 2009-12-19  Eric Blake  <ebb9@byu.net>
4673
4674         futimens, utimensat: work around Linux bug
4675         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
4676         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4677         * lib/utimensat.c (rpl_utimensat): Work around it.
4678         * lib/futimens.c (rpl_futimens): Adjust comment.
4679
4680         utimens: work around Linux ctime bug
4681         * lib/utimens.c (detect_ctime_bug): New helper function.
4682         (update_timespec): Differentiate between workaround needed for
4683         this bug vs. what is needed for systems that lack utimensat.
4684         (fdutimens, lutimens): Work around bug.
4685
4686         utimens: check for ctime update
4687         * tests/test-utimens-common.h (check_ctime): Define.
4688         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
4689         * tests/test-futimens.h (test_futimens): Likewise.
4690         * tests/test-lutimens.h (test_lutimens): Likewise.
4691         * doc/posix-functions/futimens.texi (futimens): Document the bug.
4692         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
4693
4694 2009-12-19  Bruno Haible  <bruno@clisp.org>
4695
4696         dprintf-posix: Check against memory leak fixed on 2009-12-15.
4697         * tests/test-dprintf-posix2.sh: New file.
4698         * tests/test-dprintf-posix2.c: New file.
4699         * modules/dprintf-posix-tests (Files): Add them.
4700         (configure.ac): Check for getrlimit and setrlimit.
4701         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
4702
4703 2009-12-19  Bruno Haible  <bruno@clisp.org>
4704
4705         fprintf-posix: Check against memory leak fixed on 2009-12-15.
4706         * tests/test-fprintf-posix3.sh: New file.
4707         * tests/test-fprintf-posix3.c: New file.
4708         * modules/fprintf-posix-tests (Files): Add them.
4709         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
4710
4711 2009-12-19  Eric Blake  <ebb9@byu.net>
4712
4713         dirfd: fix prototype
4714         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
4715         * lib/dirfd.c (dirfd): Likewise.
4716
4717         canonicalize: reduce memory usage
4718         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
4719         allocation to size.
4720         Reported by Solar Designer <solar@openwall.com>.
4721
4722 2009-12-19  Bruno Haible  <bruno@clisp.org>
4723
4724         New module attribute 'Applicability'.
4725         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
4726         * gnulib-tool: New option --extract-applicability.
4727         (func_usage): Document it.
4728         (sed_extract_prog): Recognize it.
4729         (func_get_applicability): New function.
4730         (func_import): Generalize handling of 'link-warning' module.
4731         * modules/link-warning (Applicability): New section.
4732         * modules/arg-nonnull (Applicability): New section.
4733         Repoted by Simon Josefsson <simon@josefsson.org>.
4734
4735 2009-12-19  Bruno Haible  <bruno@clisp.org>
4736
4737         fflush: tweak
4738         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
4739         * lib/fseeko.c (rpl_fseeko): Likewise.
4740
4741 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
4742
4743         * lib/gl_list.h: Fix typo in comment.
4744
4745 2009-12-16  Eric Blake  <ebb9@byu.net>
4746
4747         fcntl: use to simplify other modules
4748         * modules/cloexec (Depends-on): Add fcntl.
4749         * modules/fchdir (Depends-on): Likewise.
4750         * modules/fd-safer-flag (Depends-on): Likewise.
4751         * modules/unistd-safer (Depends-on): Likewise.
4752         * modules/dup3 (configure.ac): Set module indicator.
4753         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
4754         missing.
4755         * lib/fchdir.c (_gl_register_dup): Fix comment.
4756         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
4757         * lib/dup-safer.c (dup_safer): Likewise.
4758         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
4759         * lib/dup3.c (dup3): Likewise.
4760         * tests/test-fchdir.c (main): Enhance test.
4761         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
4762
4763         fcntl: port portions of fcntl to mingw
4764         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
4765         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
4766         replacement for mingw.
4767         * modules/fcntl (Description): Update.
4768         (Depends-on): Add dup2.
4769         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
4770         * modules/fcntl-h (Makefile.am): Substitute it.
4771         * lib/fcntl.in.h (fcntl): Update declaration.
4772         (F_DUPFD, F_GETFD): New macros, when needed.
4773         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
4774         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
4775         * tests/test-fcntl.c (check_flags, main): Enhance test for items
4776         we now guarantee.
4777
4778         fcntl: work around cygwin bug in F_DUPFD
4779         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
4780         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
4781         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
4782         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
4783         * doc/posix-functions/fcntl.texi (fcntl): Document it.
4784
4785         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
4786         * modules/fcntl (Files): List new files.
4787         (configure.ac): Run a test.
4788         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
4789         * lib/fcntl.c (rpl_fcntl): Likewise.
4790         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
4791         (gl_FCNTL_H): Always replace fcntl.h.
4792         * modules/fcntl-h (Makefile.am): Substitute witnesses.
4793         * lib/fcntl.in.h (fcntl): Declare replacement.
4794         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
4795         needed, plus a witness.
4796         * doc/posix-functions/fcntl.texi (fcntl): Document this.
4797         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
4798         * tests/test-fcntl.c: New file.
4799         * modules/fcntl-tests: Likewise.
4800
4801         binary-io: avoid potential compilation warning
4802         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
4803         directives.
4804
4805         fflush: avoid compilation error on NetBSD
4806         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
4807         between off_t and fpos_t, since the latter is sometimes a struct.
4808         * lib/fseeko.c (rpl_fseeko): Likewise.
4809         Reported by Alexander Nasonov <alnsn@yandex.ru>.
4810
4811 2009-12-15  Eric Blake  <ebb9@byu.net>
4812
4813         fcntl-h, stdio, sys_ioctl: fix declarations
4814         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
4815         function must not take arguments.
4816         * lib/sys_ioctl.in.h (ioctl): Likewise.
4817         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
4818         (open): Add a link warning.
4819
4820 2009-12-15  Jim Meyering  <meyering@redhat.com>
4821
4822         areadlink, areadlink-with-size: relax license to LGPLv2+
4823         * modules/areadlink (License): Relax to LGPLv2+.
4824         * modules/areadlink-with-size (License): Likewise.
4825
4826 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
4827             Bruno Haible  <bruno@clisp.org>
4828
4829         *printf: Fix memory leak.
4830         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
4831         * lib/vfprintf.c (vfprintf): Likewise.
4832         * lib/dprintf.c (dprintf): Likewise.
4833         * lib/vdprintf.c (vdprintf): Likewise.
4834
4835 2009-12-14  Eric Blake  <ebb9@byu.net>
4836
4837         accept4: adjust module dependencies
4838         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
4839
4840         utimens: one more try at avoiding compiler warning
4841         * lib/utimens.c (lutimens): Lower scope of result.
4842
4843 2009-12-13  Bruno Haible  <bruno@clisp.org>
4844
4845         Move the malloc checking from module 'list' to new module 'xlist'.
4846         * modules/xlist: New file.
4847         * lib/gl_xlist.h: New file.
4848         * lib/gl_xlist.c: New file.
4849         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
4850         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
4851         gl_list_add_last, gl_list_add_before, gl_list_add_after,
4852         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
4853         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
4854         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
4855         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
4856         gl_sortedlist_nx_add): New declarations.
4857         (struct gl_list_implementation): Rename and change methods accordingly.
4858         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
4859         (gl_list_nx_create): Renamed from gl_list_create.
4860         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
4861         (gl_list_nx_set_at): Renamed from gl_list_set_at.
4862         (gl_list_nx_add_first): Renamed from gl_list_add_first.
4863         (gl_list_nx_add_last): Renamed from gl_list_add_last.
4864         (gl_list_nx_add_before): Renamed from gl_list_add_before.
4865         (gl_list_nx_add_after): Renamed from gl_list_add_after.
4866         (gl_list_nx_add_at): Renamed from gl_list_add_at.
4867         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
4868         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
4869         gl_list_create_empty.
4870         (gl_list_nx_create): Renamed from gl_list_create.
4871         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
4872         (gl_list_nx_set_at): Renamed from gl_list_set_at.
4873         (gl_list_nx_add_first): Renamed from gl_list_add_first.
4874         (gl_list_nx_add_last): Renamed from gl_list_add_last.
4875         (gl_list_nx_add_before): Renamed from gl_list_add_before.
4876         (gl_list_nx_add_after): Renamed from gl_list_add_after.
4877         (gl_list_nx_add_at): Renamed from gl_list_add_at.
4878         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
4879         * lib/gl_array_list.c: Don't include xalloc.h.
4880         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
4881         NULL upon out-of-memory.
4882         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
4883         out-of-memory.
4884         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
4885         Change return type to 'int'.
4886         (gl_array_nx_set_at): Renamed from gl_array_set_at.
4887         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
4888         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
4889         upon out-of-memory.
4890         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
4891         upon out-of-memory.
4892         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
4893         upon out-of-memory.
4894         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
4895         upon out-of-memory.
4896         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
4897         out-of-memory.
4898         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
4899         Update.
4900         (gl_array_list_implementation): Update.
4901         * lib/gl_carray_list.c: Don't include xalloc.h.
4902         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
4903         Return NULL upon out-of-memory.
4904         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
4905         out-of-memory.
4906         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
4907         Change return type to 'int'.
4908         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
4909         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
4910         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
4911         upon out-of-memory.
4912         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
4913         upon out-of-memory.
4914         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
4915         out-of-memory.
4916         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
4917         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
4918         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
4919         Update.
4920         (gl_carray_list_implementation): Update.
4921         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
4922         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
4923         gl_linked_create_empty. Return NULL upon out-of-memory.
4924         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
4925         out-of-memory.
4926         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
4927         Change return type to 'int'. Return -1 upon out-of-memory.
4928         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
4929         out-of-memory.
4930         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
4931         upon out-of-memory.
4932         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
4933         upon out-of-memory.
4934         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
4935         NULL upon out-of-memory.
4936         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
4937         upon out-of-memory.
4938         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
4939         out-of-memory.
4940         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
4941         Update.
4942         * lib/gl_linked_list.c: Don't include xalloc.h.
4943         (gl_linked_list_implementation): Update.
4944         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
4945         (add_to_bucket): Change return type to 'int'.
4946         (gl_linkedhash_list_implementation): Update.
4947         * lib/gl_anytree_list1.h (free_subtree): New function.
4948         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
4949         gl_tree_create_empty. Return NULL upon out-of-memory.
4950         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
4951         Change return type to 'int'. Return -1 upon out-of-memory.
4952         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
4953         out-of-memory.
4954         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
4955         (gl_tree_remove_node): New function, moved here from
4956         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
4957         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
4958         Update.
4959         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
4960         malloc, not xmalloc. Return NULL upon out-of-memory.
4961         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
4962         out-of-memory.
4963         (gl_tree_remove_node_from_tree): New function, extracted from
4964         gl_tree_remove_node.
4965         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
4966         upon out-of-memory.
4967         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
4968         out-of-memory.
4969         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
4970         upon out-of-memory.
4971         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
4972         upon out-of-memory.
4973         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
4974         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
4975         not xmalloc. Return NULL upon out-of-memory.
4976         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
4977         out-of-memory.
4978         (gl_tree_remove_node_from_tree): New function, extracted from
4979         gl_tree_remove_node.
4980         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
4981         upon out-of-memory.
4982         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
4983         out-of-memory.
4984         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
4985         upon out-of-memory.
4986         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
4987         upon out-of-memory.
4988         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
4989         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
4990         gl_anytree_list1.h before gl_anyavltree_list2.h.
4991         (gl_avltree_list_implementation): Update.
4992         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
4993         gl_anytree_list1.h before gl_anyavltree_list2.h.
4994         (gl_rbtree_list_implementation): Update.
4995         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
4996         Change return type to 'int'. Return -1 upon out-of-memory. Use
4997         __builtin_expect.
4998         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
4999         (gl_avltreehash_list_implementation): Update.
5000         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
5001         (gl_rbtreehash_list_implementation): Update.
5002         * modules/array-list (Depends-on): Remove xalloc.
5003         * modules/carray-list (Depends-on): Likewise.
5004         * modules/linked-list (Depends-on): Likewise.
5005         * modules/linkedhash-list (Depends-on): Likewise.
5006         * modules/avltree-list (Depends-on): Likewise.
5007         * modules/rbtree-list (Depends-on): Likewise.
5008         * modules/avltreehash-list (Depends-on): Likewise.
5009         * modules/rbtreehash-list (Depends-on): Likewise.
5010
5011         * modules/xsublist: New file.
5012         * lib/gl_xsublist.h: New file.
5013         * lib/gl_xsublist.c: New file.
5014         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
5015         (gl_sublist_nx_create): New declaration.
5016         * lib/gl_sublist.c: Don't include xalloc.h.
5017         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
5018         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
5019         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
5020         Change return type to 'int'. Return -1 upon out-of-memory.
5021         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
5022         upon out-of-memory.
5023         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
5024         NULL upon out-of-memory.
5025         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
5026         upon out-of-memory.
5027         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
5028         NULL upon out-of-memory.
5029         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
5030         NULL upon out-of-memory.
5031         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
5032         upon out-of-memory.
5033         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
5034         (gl_sublist_list_implementation): Update.
5035         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
5036         upon out-of-memory.
5037         * modules/sublist (Depends-on): Remove xalloc.
5038
5039         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
5040         * tests/test-carray_list.c: Likewise.
5041         * tests/test-linked_list.c: Likewise.
5042         * tests/test-linkedhash_list.c: Likewise.
5043         * tests/test-avltree_list.c: Likewise.
5044         * tests/test-rbtree_list.c: Likewise.
5045         * tests/test-avltreehash_list.c: Likewise.
5046         * tests/test-rbtreehash_list.c: Likewise.
5047         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
5048         * modules/carray-list-tests (Makefile.am): Likewise.
5049         * modules/linked-list-tests (Makefile.am): Likewise.
5050         * modules/linkedhash-list-tests (Makefile.am): Likewise.
5051         * modules/avltree-list-tests (Makefile.am): Likewise.
5052         * modules/rbtree-list-tests (Makefile.am): Likewise.
5053         * modules/avltreehash-list-tests (Makefile.am): Likewise.
5054         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
5055
5056         * NEWS: Mention the changes.
5057
5058         * lib/clean-temp.c: Include gl_xlist.h.
5059         * modules/clean-temp (Depends-on): Add xlist.
5060
5061         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
5062         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
5063
5064         * tests/test-array_oset.c: Include gl_xlist.h.
5065         * modules/array-oset-tests (Depends-on): Add xlist.
5066
5067         Reported by José E. Marchesi <jemarch@gnu.org>.
5068
5069 2009-12-13  Bruno Haible  <bruno@clisp.org>
5070
5071         Move the malloc checking from module 'oset' to new module 'xoset'.
5072         * modules/xoset: New file.
5073         * lib/gl_xoset.h: New file.
5074         * lib/gl_xoset.c: New file.
5075         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
5076         declarations.
5077         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
5078         (struct gl_oset_implementation): Rename and change methods accordingly.
5079         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
5080         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5081         'int'. Mark as __warn_unused_result__.
5082         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
5083         gl_oset_create_empty.
5084         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5085         'int'.
5086         * lib/gl_array_oset.c: Don't include xalloc.h.
5087         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
5088         malloc, not xmalloc.
5089         (grow): Change return type to 'int'. Don't call xalloc_die.
5090         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
5091         to 'int'.
5092         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
5093         'int'.
5094         (gl_array_oset_implementation): Update.
5095         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
5096         gl_tree_create_empty.
5097         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
5098         'int'.
5099         * lib/gl_avltree_oset.c: Don't include xalloc.h.
5100         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5101         xmalloc.
5102         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5103         not xmalloc.
5104         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5105         xmalloc.
5106         (gl_avltree_oset_implementation): Update.
5107         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
5108         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5109         xmalloc.
5110         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5111         not xmalloc.
5112         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5113         xmalloc.
5114         (gl_rbtree_oset_implementation): Update.
5115         * modules/array-oset (Depends-on): Remove xalloc.
5116         * modules/avltree-oset (Depends-on): Likewise.
5117         * modules/rbtree-oset (Depends-on): Likewise.
5118         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
5119         * tests/test-avltree_oset.c: Likewise.
5120         * tests/test-rbtree_oset.c: Likewise.
5121         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
5122         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
5123         * modules/rbtree-oset-tests (Makefile.am): Likewise.
5124         * NEWS: Mention the change.
5125
5126 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
5127
5128         maint.mk: allow a project to override release-prep commands
5129         * top/maint.mk (alpha, beta, stable): Move release-preparatory
5130         commands into a new rule.
5131         (release-prep): New rule.
5132         (release-prep-hook): New overridable variable.
5133
5134 2009-12-13  Bruno Haible  <bruno@clisp.org>
5135
5136         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
5137
5138 2009-12-13  Jim Meyering  <meyering@redhat.com>
5139
5140         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
5141         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
5142
5143 2009-12-12  Bruno Haible  <bruno@clisp.org>
5144
5145         duplocale: Tweak.
5146         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
5147
5148 2009-12-12  Karl Berry  <karl@gnu.org>
5149
5150         * config/srclist.txt (strtoll.c): tab changes, no more sync.
5151
5152 2009-12-12  Bruno Haible  <bruno@clisp.org>
5153
5154         * m4/po.m4: Undo incorrect untabification.
5155
5156 2009-12-12  Bruno Haible  <bruno@clisp.org>
5157
5158         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
5159         * modules/c-strtod (Depends-on): Add locale.
5160         * modules/c-strtold (Depends-on): Likewise.
5161
5162 2009-12-12  Bruno Haible  <bruno@clisp.org>
5163
5164         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
5165
5166 2009-12-11  Eric Blake  <ebb9@byu.net>
5167
5168         setenv: relax requirement in light of POSIX ruling
5169         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
5170         not NULL.
5171         * tests/test-setenv.c (main): Relax test.
5172         * tests/test-unsetenv.c (main): Likewise.
5173         * doc/posix-functions/setenv.texi (setenv): Document this.
5174         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
5175
5176 2009-12-11  Bruno Haible  <bruno@clisp.org>
5177
5178         New module 'fd-safer-flag'.
5179         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
5180         * lib/dup-safer.c (dup_safer_flag): Remove function.
5181         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
5182         * lib/fd-safer.c (fd_safer_flag): Remove function.
5183         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
5184         * modules/cloexec (configure.ac): Drop indicator macro.
5185         * modules/fd-safer-flag: New file.
5186         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
5187         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
5188         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
5189
5190 2009-12-11  Bruno Haible  <bruno@clisp.org>
5191
5192         Tests for module 'nl_langinfo'.
5193         * modules/nl_langinfo-tests: New file.
5194         * tests/test-nl_langinfo.sh: New file.
5195         * tests/test-nl_langinfo.c: New file.
5196
5197         New module 'nl_langinfo'.
5198         * lib/nl_langinfo.c: New file.
5199         * m4/nl_langinfo.m4: New file.
5200         * modules/nl_langinfo: New file.
5201         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
5202
5203 2009-12-11  Bruno Haible  <bruno@clisp.org>
5204
5205         Tests for module 'langinfo'.
5206         * modules/langinfo-tests: New file.
5207         * tests/test-langinfo.c: New file.
5208
5209         New module 'langinfo'.
5210         * lib/langinfo.in.h: New file.
5211         * m4/langinfo_h.m4: New file.
5212         * modules/langinfo: New file.
5213         * doc/posix-headers/langinfo.texi: Mention the new module.
5214
5215 2009-12-11  Bruno Haible  <bruno@clisp.org>
5216
5217         * lib/config.charset: Untabify.
5218
5219 2009-12-11  Bruno Haible  <bruno@clisp.org>
5220
5221         * modules/unistd-safer (configure.ac): Drop indicator macro.
5222
5223 2009-12-11  Bruno Haible  <bruno@clisp.org>
5224
5225         Move pipe2-safer code to its own file.
5226         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
5227         * lib/pipe-safer.c (pipe2_safer): Remove function.
5228         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
5229         (Makefile.am): Add it to lib_SOURCES.
5230
5231 2009-12-10  Bruno Haible  <bruno@clisp.org>
5232
5233         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
5234
5235 2009-12-10  Bruno Haible  <bruno@clisp.org>
5236
5237         Declare which arguments expect non-NULL values, for GCC and clang.
5238         * build-aux/arg-nonnull.h: New file.
5239         * modules/arg-nonnull: New file.
5240         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
5241         (inet_ntop, inet_pton): Use it.
5242         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
5243         (closedir, dirfd, opendir, scandir, alphasort): Use it.
5244         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
5245         (open, openat): Use it.
5246         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
5247         (fnmatch): Use it.
5248         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
5249         (getopt, getopt_long, getopt_long_only): Use it.
5250         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
5251         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
5252         Use it.
5253         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
5254         (iconv_open): Use it.
5255         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
5256         (strtoimax, strtoumax): Use it.
5257         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
5258         (duplocale): Use it.
5259         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
5260         (frexp, frexpl): Use it.
5261         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
5262         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
5263         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
5264         (tsearch, tfind, tdelete, twalk): Use it.
5265         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
5266         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
5267         sigpending): Use it.
5268         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
5269         (posix_spawn, posix_spawnp, posix_spawnattr_init,
5270         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
5271         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
5272         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
5273         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
5274         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
5275         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
5276         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
5277         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
5278         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
5279         Use it.
5280         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
5281         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
5282         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
5283         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
5284         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
5285         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
5286         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
5287         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
5288         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
5289         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
5290         strtoull, unsetenv): Use it.
5291         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
5292         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
5293         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
5294         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
5295         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
5296         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
5297         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
5298         (strcasecmp, strncasecmp): Use it.
5299         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
5300         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
5301         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
5302         rpl_setsockopt): Use it.
5303         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
5304         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
5305         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
5306         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
5307         (gettimeofday): Use it.
5308         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
5309         (times): Use it.
5310         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
5311         (uname): Use it.
5312         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
5313         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
5314         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
5315         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
5316         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
5317         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
5318         unlinkat, write): Use it.
5319         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
5320         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
5321         * lib/argv-iter.h: Include arg-nonnull.h.
5322         (_ATTRIBUTE_NONNULL_): Remove macro.
5323         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
5324         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
5325         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
5326         optimization.
5327         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
5328         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
5329         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
5330         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
5331         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
5332         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
5333         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
5334         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
5335         * modules/arpa_inet (Depends-on): Add arg-nonnull.
5336         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
5337         * modules/dirent (Depends-on): Add arg-nonnull.
5338         (Makefile.am): Insert arg-nonnull.h into dirent.h.
5339         * modules/fcntl-h (Depends-on): Add arg-nonnull.
5340         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
5341         * modules/fnmatch (Depends-on): Add arg-nonnull.
5342         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
5343         * modules/getopt-posix (Depends-on): Add arg-nonnull.
5344         (Makefile.am): Insert arg-nonnull.h into getopt.h.
5345         * modules/glob (Depends-on): Add arg-nonnull.
5346         (Makefile.am): Insert arg-nonnull.h into glob.h.
5347         * modules/iconv_open (Depends-on): Add arg-nonnull.
5348         (Makefile.am): Insert arg-nonnull.h into iconv.h.
5349         * modules/inttypes (Depends-on): Add arg-nonnull.
5350         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
5351         * modules/locale (Depends-on): Add arg-nonnull.
5352         (Makefile.am): Insert arg-nonnull.h into locale.h.
5353         * modules/math (Depends-on): Add arg-nonnull.
5354         (Makefile.am): Insert arg-nonnull.h into math.h.
5355         * modules/netdb (Depends-on): Add arg-nonnull.
5356         (Makefile.am): Insert arg-nonnull.h into netdb.h.
5357         * modules/search (Depends-on): Add arg-nonnull.
5358         (Makefile.am): Insert arg-nonnull.h into search.h.
5359         * modules/signal (Depends-on): Add arg-nonnull.
5360         (Makefile.am): Insert arg-nonnull.h into signal.h.
5361         * modules/spawn (Depends-on): Add arg-nonnull.
5362         (Makefile.am): Insert arg-nonnull.h into spawn.h.
5363         * modules/stdio (Depends-on): Add arg-nonnull.
5364         (Makefile.am): Insert arg-nonnull.h into stdio.h.
5365         * modules/stdlib (Depends-on): Add arg-nonnull.
5366         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
5367         * modules/string (Depends-on): Add arg-nonnull.
5368         (Makefile.am): Insert arg-nonnull.h into string.h.
5369         * modules/strings (Depends-on): Add arg-nonnull.
5370         (Makefile.am): Insert arg-nonnull.h into strings.h.
5371         * modules/sys_socket (Depends-on): Add arg-nonnull.
5372         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
5373         * modules/sys_stat (Depends-on): Add arg-nonnull.
5374         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
5375         * modules/sys_time (Depends-on): Add arg-nonnull.
5376         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
5377         * modules/sys_times (Depends-on): Add arg-nonnull.
5378         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
5379         * modules/sys_utsname (Depends-on): Add arg-nonnull.
5380         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
5381         * modules/time (Depends-on): Add arg-nonnull.
5382         (Makefile.am): Insert arg-nonnull.h into time.h.
5383         * modules/unistd (Depends-on): Add arg-nonnull.
5384         (Makefile.am): Insert arg-nonnull.h into unistd.h.
5385         * modules/wchar (Depends-on): Add arg-nonnull.
5386         (Makefile.am): Insert arg-nonnull.h into wchar.h.
5387         * modules/argv-iter (Depends-on): Add arg-nonnull.
5388         * tests/test-canonicalize.c (null_ptr): New function.
5389         (main): Use it.
5390         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
5391         (main): Use it.
5392         * tests/test-memmem.c (null_ptr): New function.
5393         (main): Use it.
5394         Reported by Jim Meyering.
5395
5396 2009-12-10  Bruno Haible  <bruno@clisp.org>
5397
5398         Use spaces for indentation, not tabs.
5399         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
5400         * m4/*.m4: Untabify.
5401         * build-aux/*.h: Untabify.
5402         * tests/**/*.[hc]: Untabify.
5403         * README: New section "Indent with spaces, not TABs", based on
5404         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
5405         * NEWS: Mention the change.
5406
5407 2009-12-10  Bruno Haible  <bruno@clisp.org>
5408
5409         pty test: Fix link error.
5410         * modules/pty-tests (Makefile.am): Add the default LDADD value to
5411         test_pty_LDADD.
5412
5413 2009-12-07  Simon Josefsson  <simon@josefsson.org>
5414
5415         * modules/pty: New file.
5416         * modules/pty-tests: New file.
5417         * m4/pty.m4: New file.
5418         * tests/test-pty.c: New file.
5419         * doc/glibc-headers/pty.texi: Modified.
5420         * doc/glibc-functions/forkpty.texi: Modified.
5421         * doc/glibc-functions/openpty.texi: Modified.
5422
5423 2009-12-10  Bruno Haible  <bruno@clisp.org>
5424
5425         Avoid syntax error in C++ mode.
5426         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
5427
5428 2009-12-10  Bruno Haible  <bruno@clisp.org>
5429
5430         Use sed with option -e.
5431         * gnulib-tool (func_version, func_emit_copyright_notice,
5432         func_emit_initmacro_end, func_import, func_create_testdir): Pass
5433         option -e to sed.
5434         * modules/link-warning (Makefile.am): Likewise.
5435
5436 2009-12-10  Jim Meyering  <meyering@redhat.com>
5437
5438         mgetgroups: do not write bytes beyond end of malloc'd buffer
5439         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
5440         username, we call getgroups with a one-element-shorter buffer,
5441         but still told it the length was original, max_n_groups.
5442
5443 2009-12-09  Eric Blake  <ebb9@byu.net>
5444
5445         cloexec: relax license
5446         * modules/cloexec (Maintainer): Add myself.
5447         (License): Use LGPL, not GPL.
5448
5449         link-warning: optimize generation
5450         * modules/link-warning (Makefile.am): Reduce process usage.
5451
5452 2009-12-09  Bruno Haible  <bruno@clisp.org>
5453
5454         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
5455         workaround was added on 2009-11-17.
5456
5457 2009-12-09  Jim Meyering  <meyering@redhat.com>
5458             Bruno Haible  <bruno@clisp.org>
5459
5460         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
5461         * modules/link-warning (Makefile.am): Make the comment-removing sed
5462         command more robust in the face of bootstrap-prepended comment lines.
5463
5464 2009-12-09  Bruno Haible  <bruno@clisp.org>
5465
5466         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
5467         most one group.
5468
5469 2009-12-09  Simon Josefsson <simon@josefsson.org>
5470             Bruno Haible  <bruno@clisp.org>
5471
5472         * build-aux/link-warning.h: Add copyright notice.
5473         * modules/link-warning (Makefile.am): Generate link-warning.h from
5474         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
5475         * NEWS: Mention change in link-warning module.
5476         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
5477         * modules/dirent (Makefile.am): Add dependency to dirent.h.
5478         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
5479         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
5480         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
5481         * modules/math (Makefile.am): Add dependency to math.h.
5482         * modules/search (Makefile.am): Add dependency to search.h.
5483         * modules/signal (Makefile.am): Add dependency to signal.h.
5484         * modules/spawn (Makefile.am): Add dependency to spawn.h.
5485         * modules/stdio (Makefile.am): Add dependency to stdio.h.
5486         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
5487         * modules/string (Makefile.am): Add dependency to string.h.
5488         * modules/strings (Makefile.am): Add dependency to strings.h.
5489         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
5490         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
5491         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
5492         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
5493         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
5494         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
5495         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
5496         * modules/unistd (Makefile.am): Add dependency to unistd.h.
5497         * modules/wchar (Makefile.am): Add dependency to wchar.h.
5498
5499 2009-12-09  Bruno Haible  <bruno@clisp.org>
5500
5501         fchdir: Optimize away rpl_fstat when possible.
5502         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
5503         REPLACE_OPEN_DIRECTORY.
5504         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
5505
5506 2009-12-09  Bruno Haible  <bruno@clisp.org>
5507
5508         * lib/fchdir.c: Update comment.
5509
5510 2009-12-09  Bruno Haible  <bruno@clisp.org>
5511
5512         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
5513
5514 2009-12-08  Eric Blake  <ebb9@byu.net>
5515
5516         fchdir: avoid memory leak on re-registration.
5517         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
5518
5519 2009-12-08  Jim Meyering  <meyering@redhat.com>
5520
5521         init.sh: avoid Solaris 10 /bin/sh portability problem
5522         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
5523         sourced script:
5524           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
5525           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
5526           bar
5527         tests/init.sh relied on that, accepting a --set-path=DIR argument,
5528         and two tests used that idiom.
5529         * tests/init.sh: Update suggested usage comments.
5530         (path_prepend_): New function, to be used in place
5531         of the --src-path=DIR option.
5532         (setup_): Move PATH-prepending code into path_prepend_.
5533         * tests/test-pread.sh: Adapt to new usage.
5534         * tests/test-xalloc-die.sh: Likewise.
5535
5536 2009-12-08  Simon Josefsson  <simon@josefsson.org>
5537
5538         * doc/gnulib.texi (Glibc pty.h): Add.
5539         * doc/glibc-functions/forkpty.texi: Add.
5540         * doc/glibc-functions/openpty.texi: Add.
5541         Suggested by Bruno Haible.
5542
5543 2009-12-08  Eric Blake  <ebb9@byu.net>
5544
5545         fchdir: fix logic bugs
5546         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
5547         * tests/test-fchdir.c (main): Enhance test.
5548         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
5549         is in use.
5550
5551         dup2: fix logic bugs
5552         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
5553         REPLACE_DUP2 to decide when rpl_dup2 is needed.
5554         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
5555         exists.
5556         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
5557
5558 2009-12-07  Eric Blake  <ebb9@byu.net>
5559
5560         unlink: fix m4 detection
5561         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
5562
5563         unistd-safer: add unit test
5564         * modules/unistd-safer-tests: New file.
5565         * tests/test-dup-safer.c: Likewise.
5566         * tests/test-cloexec.c (setmode): Avoid compiler warning.
5567         * tests/test-dup2.c (setmode): Likewise.
5568         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
5569
5570         cloexec: preserve text vs. binary across dup_cloexec
5571         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
5572         mode.
5573         * modules/dup2-tests (Depends-on): Add binary-io.
5574         * modules/cloexec-tests (Depends-on): Likewise.
5575         * tests/test-dup2.c (setmode, is_mode): New helpers.
5576         (main): Add tests that translation mode is preserved.
5577         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
5578         Reported by Bruno Haible.
5579
5580         mgetgroups: reduce duplicate listings
5581         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
5582         resulting array.
5583         * tests/test-chown.h (test_chown): Simplify client.
5584         * tests/test-lchown.h (test_lchown): Likewise.
5585
5586 2009-12-06  Bruno Haible  <bruno@clisp.org>
5587
5588         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
5589         value.
5590
5591 2009-12-06  Bruno Haible  <bruno@clisp.org>
5592
5593         * lib/progname.c: Include stdio.h, stdlib.h.
5594         (set_program_name): Reject a NULL argument.
5595
5596 2009-12-05  Eric Blake  <ebb9@byu.net>
5597
5598         pipe2-safer: new module
5599         * modules/pipe2-safer: New file.
5600         * lib/unistd-safer.h (pipe2_safer): New prototype.
5601         * lib/unistd--.h (pipe2): New wrapper.
5602         * lib/pipe-safer.c (pipe2_safer): New function.
5603         * modules/pipe (Depends-on): Add pipe2-safer.
5604         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
5605
5606         stdlib-safer: preserve cloexec flag for mkostemp[s]
5607         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
5608         fd_safer_flag.
5609
5610         unistd-safer: allow preservation of cloexec status via flag
5611         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
5612         prototypes.
5613         * lib/dup-safer.c (dup_safer_flag): New function.
5614         * lib/fd-safer.c (fd_safer_flag): Likewise.
5615         * modules/cloexec (configure.ac): Set witness.
5616
5617         test-dup2: enhance test
5618         * modules/dup2-tests (Depends-on): Add cloexec.
5619         * tests/test-dup2.c (main): Enhance test.
5620
5621         cloexec: add dup_cloexec
5622         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
5623         header and comments.
5624         * lib/cloexec.c (set_cloexec_flag): Add comments.
5625         (dup_cloexec): New function, with mingw implementation borrowed
5626         from...
5627         * lib/w32spawn.h (dup_noinherit): ...here.
5628         * modules/execute (Depends-on): Add cloexec.
5629         * modules/pipe (Depends-on): Likewise.
5630         * modules/cloexec (Depends-on): Add dup2.
5631         * modules/cloexec-tests (Files): New file.
5632         * tests/test-cloexec.c: Likewise.
5633
5634         test-xalloc-die: fix test for mingw
5635         * modules/xalloc-die-tests (Files): Add tests/init.sh.
5636         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
5637         directory and .exe suffix off argv[0] output.
5638
5639         test-fseeko: fix test for mingw
5640         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
5641         than undefining fseek, so test will pass on mingw.
5642
5643 2009-12-05  Bruno Haible  <bruno@clisp.org>
5644
5645         * lib/progname.h (set_program_name): Clarify specification.
5646         * lib/progname.c (set_program_name): Likewise.
5647         Reported by Jim Meyering.
5648
5649 2009-12-05  Jim Meyering  <meyering@redhat.com>
5650
5651         maint.mk: backslash-escape parens in default regexp
5652         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
5653         backslash-escape the literal parentheses.
5654
5655         maint.mk: news-date-check: use grep -E
5656         * top/maint.mk (today): Define a Make variable, not a...
5657         (news-date-check): ...shell variable.
5658         (news-date-regexp): Use the Make variable.
5659         Use grep's -E option.  Change the failing diagnostic to mention
5660         the variable, $(news-date-regexp).
5661
5662 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
5663
5664         maintainer-makefile: allow customization of NEWS entry format
5665         * top/maint.mk (news-date-regexp): New overridable variable.
5666         (news-date-check): Use it.
5667
5668 2009-12-04  Eric Blake  <ebb9@byu.net>
5669
5670         mgetgroups: add xgetgroups, and avoid ENOSYS failures
5671         * lib/mgetgroups.h (xgetgroups): New prototype.
5672         * lib/mgetgroups.c (xgetgroups): New wrapper.
5673         (mgetgroups): Handle ENOSYS.
5674         * modules/mgetgroups (Depends-on): Add realloc.
5675         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
5676
5677         mgetgroups: avoid argument promotion issues with -1
5678         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
5679         for invalid gid_t.
5680         * tests/test-chown.h (getegid, test_chown): Likewise.
5681         * tests/test-lchown.h (getegid, test_lchown): Likewise.
5682
5683 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
5684
5685         exclude: Fix header file problems.
5686         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
5687
5688 2009-12-01  Jim Meyering  <meyering@redhat.com>
5689
5690         fts: fts_open: do not let an empty string cause immediate failure
5691         This is required in support of GNU rm, for which the command
5692         "rm A '' B" must process and remove both A and B, in spite of
5693         the empty string argument.
5694         * lib/fts.c (fts_open): Do not let the presence of an empty string
5695         cause fts_open to fail immediately.  Most fts-using tools must be
5696         able to process all arguments, in order, and can be expected to
5697         diagnose such arguments themselves.
5698
5699 2009-11-30  Eric Blake  <ebb9@byu.net>
5700
5701         utimens: fix compilation error
5702         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
5703         Declare variable at right scope.
5704
5705 2009-11-29  Jim Meyering  <meyering@redhat.com>
5706
5707         bootstrap: handle perl-5.11's changed --version output
5708         * build-aux/bootstrap (get_version): Handle perl separately,
5709         since perl-5.11's --version output is different.
5710
5711 2009-11-28  Jim Meyering  <meyering@redhat.com>
5712
5713         userspec: depend on the inttostr module, too
5714         * modules/userspec (Depends-on): Add inttostr.
5715
5716         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
5717         * lib/userspec.c (parse_with_separator): Do not accept a user ID
5718         number of MAXUID when it evaluates to (uid_t) -1.
5719         Likewise for group ID.  Reported by Matt McCutchen in
5720         <http://savannah.gnu.org/bugs/?28113>
5721
5722         userspec: reformat to use spaces, not TABs
5723         * lib/userspec.c: Expand TABs to spaces.
5724         Add Emacs' "indent-tabs-mode: nil" hint.
5725
5726 2009-11-27  Eric Blake  <ebb9@byu.net>
5727
5728         getopt-gnu: flush out another BSD bug
5729         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
5730         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
5731         flush out BSD bug.
5732         * tests/test-getopt.h (test_getopt): End lists with NULL.
5733         * tests/test-getopt_long.h (test_getopt_long): Likewise.
5734         (test_getopt_long_posix): Enhance test.
5735         * modules/getopt-posix-tests (Depends-on): Add stdbool.
5736         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
5737         getopt-gnu.
5738         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5739         Likewise.
5740
5741 2009-11-27  Simon Josefsson  <simon@josefsson.org>
5742
5743         * modules/idpriv-droptemp-tests (Notice): Fix text.
5744
5745 2009-11-27  Jim Meyering  <meyering@redhat.com>
5746
5747         test-xalloc-die: avoid spurious failure due to libtool argv difference
5748         In a libtool-enabled project, this test would fail due to a difference
5749         in the emitted program name, e.g.,
5750         -test-xalloc-die: memory exhausted
5751         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
5752         Use program to avoid that.
5753         * modules/xalloc-die-tests (Depends-on): Add progname.
5754         * tests/test-xalloc-die.c: Include progname.h".
5755         (program_name): Remove decl.
5756         (main): Call set_program_name.
5757         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
5758
5759 2009-11-26  Richard Jones  <rjones@redhat.com>
5760
5761         w32sock: leave win32 error in place.
5762         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
5763
5764 2009-11-26  Eric Blake  <ebb9@byu.net>
5765
5766         init.sh: suggest to use skip_ and fail_ functions in comments
5767         * tests/init.sh: Add a sentence.
5768
5769 2009-11-25  Bruno Haible  <bruno@clisp.org>
5770
5771         init.sh: add documentation in comments
5772         * tests/init.sh: Add some developer and user documentation.
5773
5774 2009-11-26  Jim Meyering  <meyering@redhat.com>
5775
5776         init.sh: accommodate even those who specify bogus srcdir manually
5777         * tests/init.sh: Normally, srcdir is guaranteed by automake and
5778         configure-time tests to be sanitized, so that there is no need to
5779         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
5780         (with no double quotes) suffices.  However, since tests may be
5781         invoked manually, and since you may explicitly set srcdir to the
5782         name of a directory containing spaces, do quote its uses here.
5783         * tests/test-pread.sh: Likewise.
5784         Suggested by Bruno Haible.
5785
5786         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
5787         * tests/test-pread.sh: Write no data into the pipe, because
5788         test-pread actually reads none.  This avoids a diagnostic,
5789         "bash: echo: write error: Broken pipe", that arises in the unusual
5790         event something is ignoring SIGPIPE, and might be interpreted
5791         as some sort of failure.  Reported by Bruno Haible.
5792
5793 2009-11-25  Jim Meyering  <meyering@redhat.com>
5794
5795         test-pread: cover failure with ESPIPE and EINVAL
5796         * tests/test-pread.c (main): Test for failure, too.
5797         * tests/test-pread.sh: Invoke with stdin on a pipe.
5798         Suggested by Eric Blake.
5799
5800         pread: improvement and fix
5801         * modules/pread (Depends-on): Depend on lseek, for portability to
5802         e.g., mingw.  Suggested by Eric Blake.
5803         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
5804
5805         unistd.in.h: correct declaration of pread
5806         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
5807         Reported by Richard W.M. Jones.
5808
5809         test-pread.sh: distribute the test script
5810         * modules/pread-tests (Files): Include test-pread.sh.
5811
5812         test-pread.sh: clean up
5813         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
5814         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
5815         That is unnecessary, since it's always ".".
5816         Suggestion from Eric Blake.
5817
5818         test-pread.sh: make executable
5819         * tests/test-pread.sh: Set executable bit.
5820         Reported by Eric Blake.
5821
5822         correct typo in test-pread.sh
5823         * tests/test-pread.sh: Add #! line.
5824
5825         test pread
5826         * tests/test-pread.c: New file.
5827         * tests/test-pread.sh: Likewise.
5828         * modules/pread-tests: Likewise.
5829
5830         pread: new module
5831         * modules/pread: New file.
5832         * lib/unistd.in.h (pread): Define/declare.
5833         * lib/pread.c (pread): New file.
5834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
5835         * modules/unistd (Makefile.am): Substitute witnesses.
5836         * doc/posix-functions/pread.texi (pread): Update.
5837         * MODULES.html.sh: Add pread.
5838
5839 2009-11-25  Jim Meyering  <meyering@redhat.com>
5840
5841         tests/init.sh: new file to be used via most *.sh tests
5842         * tests/init.sh: New file.
5843
5844 2009-11-25  Eric Blake  <ebb9@byu.net>
5845
5846         utimens: work around older Linux failure with symlinks
5847         * lib/utimens.c (lutimensat_works_really): New variable.
5848         (fdutimens, lutimens): Use it to manage kernels that support
5849         nanosecond times on files, but not on symlinks.
5850         Reported by OndÅ™ej Vašík.
5851
5852         utimes: fix configure grammar
5853         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
5854
5855 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
5856
5857         regex: Fix fastmap for multibyte character ranges.
5858         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
5859         characters when a multibyte character range is included.
5860
5861 2009-11-22  Andy Wingo  <wingo@pobox.com>
5862
5863         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
5864         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
5865
5866 2009-11-24  Bruno Haible  <bruno@clisp.org>
5867
5868         doc: Most *_l functions exist in MacOS X 10.5.
5869         * doc/posix-functions/duplocale.texi: Update platforms list.
5870         * doc/posix-functions/freelocale.texi: Likewise.
5871         * doc/posix-functions/newlocale.texi: Likewise.
5872         * doc/posix-functions/uselocale.texi: Likewise.
5873         * doc/posix-functions/isalnum_l.texi: Likewise.
5874         * doc/posix-functions/isalpha_l.texi: Likewise.
5875         * doc/posix-functions/isblank_l.texi: Likewise.
5876         * doc/posix-functions/iscntrl_l.texi: Likewise.
5877         * doc/posix-functions/isdigit_l.texi: Likewise.
5878         * doc/posix-functions/isgraph_l.texi: Likewise.
5879         * doc/posix-functions/islower_l.texi: Likewise.
5880         * doc/posix-functions/isprint_l.texi: Likewise.
5881         * doc/posix-functions/ispunct_l.texi: Likewise.
5882         * doc/posix-functions/isspace_l.texi: Likewise.
5883         * doc/posix-functions/isupper_l.texi: Likewise.
5884         * doc/posix-functions/iswalnum_l.texi: Likewise.
5885         * doc/posix-functions/iswalpha_l.texi: Likewise.
5886         * doc/posix-functions/iswblank_l.texi: Likewise.
5887         * doc/posix-functions/iswcntrl_l.texi: Likewise.
5888         * doc/posix-functions/iswctype_l.texi: Likewise.
5889         * doc/posix-functions/iswdigit_l.texi: Likewise.
5890         * doc/posix-functions/iswgraph_l.texi: Likewise.
5891         * doc/posix-functions/iswlower_l.texi: Likewise.
5892         * doc/posix-functions/iswprint_l.texi: Likewise.
5893         * doc/posix-functions/iswpunct_l.texi: Likewise.
5894         * doc/posix-functions/iswspace_l.texi: Likewise.
5895         * doc/posix-functions/iswupper_l.texi: Likewise.
5896         * doc/posix-functions/iswxdigit_l.texi: Likewise.
5897         * doc/posix-functions/isxdigit_l.texi: Likewise.
5898         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
5899         * doc/posix-functions/strcasecmp_l.texi: Likewise.
5900         * doc/posix-functions/strcoll_l.texi: Likewise.
5901         * doc/posix-functions/strfmon_l.texi: Likewise.
5902         * doc/posix-functions/strftime_l.texi: Likewise.
5903         * doc/posix-functions/strncasecmp_l.texi: Likewise.
5904         * doc/posix-functions/strxfrm_l.texi: Likewise.
5905         * doc/posix-functions/tolower_l.texi: Likewise.
5906         * doc/posix-functions/toupper_l.texi: Likewise.
5907         * doc/posix-functions/towctrans_l.texi: Likewise.
5908         * doc/posix-functions/towlower_l.texi: Likewise.
5909         * doc/posix-functions/towupper_l.texi: Likewise.
5910         * doc/posix-functions/wcscoll_l.texi: Likewise.
5911         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
5912         * doc/posix-functions/wctrans_l.texi: Likewise.
5913         * doc/posix-functions/wctype_l.texi: Likewise.
5914         * doc/glibc-functions/strptime_l.texi: Likewise.
5915         * doc/glibc-functions/strtod_l.texi: Likewise.
5916         * doc/glibc-functions/strtof_l.texi: Likewise.
5917         * doc/glibc-functions/strtol_l.texi: Likewise.
5918         * doc/glibc-functions/strtold_l.texi: Likewise.
5919         * doc/glibc-functions/strtoll_l.texi: Likewise.
5920         * doc/glibc-functions/strtoul_l.texi: Likewise.
5921         * doc/glibc-functions/strtoull_l.texi: Likewise.
5922         * doc/glibc-functions/wcsftime_l.texi: Likewise.
5923         * doc/glibc-functions/wcstod_l.texi: Likewise.
5924         * doc/glibc-functions/wcstof_l.texi: Likewise.
5925         * doc/glibc-functions/wcstol_l.texi: Likewise.
5926         * doc/glibc-functions/wcstold_l.texi: Likewise.
5927         * doc/glibc-functions/wcstoll_l.texi: Likewise.
5928         * doc/glibc-functions/wcstoul_l.texi: Likewise.
5929         * doc/glibc-functions/wcstoull_l.texi: Likewise.
5930
5931 2009-11-24  Bruno Haible  <bruno@clisp.org>
5932
5933         duplocale: Fix logic bug.
5934         * lib/duplocale.c: Don't include <langinfo.h>.
5935         (_NL_LOCALE_NAME): Remove macro.
5936         (rpl_duplocale): Use setlocale instead of nl_langinfo.
5937         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
5938
5939 2009-11-23  Jim Meyering  <meyering@redhat.com>
5940
5941         test-update-copyright: don't hard-code /usr/bin/perl
5942         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
5943         perl to print the current year.  Gilles Espinasse reported that
5944         the replaced use of perl was hard-coded as /usr/bin/perl.
5945
5946 2009-11-23  Bruno Haible  <bruno@clisp.org>
5947
5948         duplocale: Add support for glibc 2.3.x.
5949         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
5950
5951 2009-11-22  Bruno Haible  <bruno@clisp.org>
5952
5953         vasnprintf: Tiny optimization.
5954         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
5955         MacOS X.
5956
5957 2009-11-22  Bruno Haible  <bruno@clisp.org>
5958
5959         Tests for module 'duplocale'.
5960         * modules/duplocale-tests: New file.
5961         * tests/test-duplocale.c: New file.
5962
5963         New module 'duplocale'.
5964         * m4/duplocale.m4: New file.
5965         * lib/locale.in.h (duplocale): New declaration.
5966         * lib/duplocale.c: New file.
5967         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
5968         gl_LOCALE_H_DEFAULTS): New macros.
5969         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
5970         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
5971         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
5972         REPLACE_DUPLOCALE.
5973         * modules/duplocale: New file.
5974         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
5975
5976 2009-11-22  Bruno Haible  <bruno@clisp.org>
5977
5978         * modules/locale-tests (configure.ac): Test for newlocale function.
5979         * tests/test-locale.c: When the system has extended locale functions,
5980         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
5981
5982         locale: Make locale_t available when possible.
5983         * lib/locale.in.h: Include <xlocale.h> when it exists.
5984         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
5985         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
5986         * modules/locale (Depends-on): Add extensions.
5987         (Makefile.am): Also substitute HAVE_XLOCALE_H.
5988         * doc/posix-headers/locale.texi: Document the problem with locale_t.
5989
5990 2009-11-22  Bruno Haible  <bruno@clisp.org>
5991
5992         Add comments.
5993         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
5994         invocation.
5995         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
5996         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5997         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
5998
5999 2009-11-22  Bruno Haible  <bruno@clisp.org>
6000
6001         error: account for the possibility of freopen (stdout).
6002         * lib/error.c: Include <unistd.h>.
6003         (flush_stdout): New function, extracted from error and error_at_line.
6004         Determine stdout's fd dynamically.
6005         (error, error_at_line): Invoke flush_stdout.
6006         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
6007         * modules/error (Depends-on): Add unistd.
6008
6009 2009-11-22  Bruno Haible  <bruno@clisp.org>
6010
6011         diffseq: Add comment.
6012         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
6013
6014 2009-11-22  Jim Meyering  <meyering@redhat.com>
6015
6016         c-stack: avoid defining an unused static function
6017         * lib/c-stack.c (find_stack_direction): Do not define this function
6018         when it will not be used.
6019
6020         diffseq: avoid spurious gcc warnings
6021         * lib/diffseq.h (IF_LINT2): Define.
6022         (compareseq): Use it to initialize two members of "part".
6023         This avoids two used-uninitialized warnings.
6024
6025 2009-11-21  Jim Meyering  <meyering@redhat.com>
6026
6027         c-stack: avoid "ignoring return value of `write'" warning
6028         * lib/c-stack.c: Include "ignore-value.h".
6029         (die): Explicitly ignore each write return value.
6030         * modules/c-stack (Depends-on): Add ignore-value.
6031
6032 2009-11-21  Bruno Haible  <bruno@clisp.org>
6033
6034         diffseq: reduce scope of variable 'best'.
6035         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
6036         variable, earlier used for two different purposes.
6037
6038 2009-11-21  Jim Meyering  <meyering@redhat.com>
6039
6040         diffseq: remove useless assignment to "best"
6041         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
6042         assignment.  At that point "best" is already guaranteed to be zero.
6043
6044 2009-11-20  Eric Blake  <ebb9@byu.net>
6045
6046         build: mention ftp redirector in release announcements
6047         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
6048         values that used to come from cfg.mk; mention FTP redirect URL.
6049         * build-aux/announce-gen: Mention the mirror list.
6050         Suggested by Karl Berry.
6051
6052         nanosleep: improve port to mingw
6053         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
6054         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
6055         LIB_NANOSLEEP, but only when needed.
6056         * modules/select (Link): Document LIBSOCKET.
6057         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
6058         enough.
6059
6060         nanosleep: work around cygwin bug
6061         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
6062         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
6063         bug.
6064         (getnow): Delete, not needed.
6065         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
6066         LIB_CLOCK_GETTIME.
6067         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
6068         clock-time, gettime.
6069         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
6070         bug.
6071         * modules/nanosleep-tests: New test.
6072         * tests/test-nanosleep.c: New file.
6073
6074         sleep: work around cygwin bug
6075         * lib/sleep.c (rpl_sleep): Work around the bug.
6076         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
6077         (gl_PREREQ_SLEEP): Delete unused macro.
6078         * modules/sleep (Depends-on): Add verify.
6079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6080         * modules/unistd (Makefile.am): Substitute witness.
6081         * lib/unistd.in.h (sleep): Update prototype.
6082         * doc/posix-functions/sleep.texi (sleep): Document the bug.
6083         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
6084         * modules/sleep-tests (Depends-on): Check for alarm.
6085
6086 2009-11-20  Jim Meyering  <meyering@redhat.com>
6087
6088         maint.mk: improve sc_prohibit_magic_number_exit
6089         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
6090         so it does not match uses like System.exit(1).
6091         Add comments showing how to correct all offenders.
6092
6093 2009-11-19  Eric Blake  <ebb9@byu.net>
6094
6095         xalloc-die-tests: add missing library
6096         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
6097
6098         test-xvasprintf: silence compiler warnings
6099         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
6100         empty string from gcc.
6101
6102 2009-11-19  Jim Meyering  <meyering@redhat.com>
6103
6104         xfreopen: new module, from coreutils
6105         * modules/xfreopen: New module.
6106         * lib/xfreopen.c: New file.
6107         * lib/xfreopen.h: New file.
6108         * MODULES.html.sh (File stream based Input/Output"): Add it.
6109
6110 2009-11-19  Eric Blake  <ebb9@byu.net>
6111
6112         manywarnings: depend on warnings
6113         * modules/manywarnings (Depends-on): Add warnings.
6114
6115         build: avoid compiler warnings
6116         * lib/select.c (rpl_select): Delete unused variable.
6117         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
6118
6119 2009-11-18  Eric Blake  <ebb9@byu.net>
6120
6121         tests: avoid false negative with --with-packager
6122         * tests/test-version-etc.sh: Discard packager information.
6123         * tests/test-argp-version-etc-1.sh: Likewise.
6124         Reported by Mike Frysinger.
6125
6126         utimens: fix regression on Solaris
6127         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
6128         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
6129         can only change fd timestamps via futimesat.  Instead, use an
6130         additional witness macro to avoid BSD bug.
6131         Reported by Jim Meyering.
6132
6133 2009-11-17  Eric Blake  <ebb9@byu.net>
6134
6135         usleep: use it to simplify tests
6136         * modules/stat-time-tests (Depends-on): Add usleep.
6137         (configure.ac): Drop usleep check.
6138         * modules/chown-tests (Depends-on, configure.ac): Likewise.
6139         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
6140         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
6141         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
6142         * modules/openat-tests (Depends-on, configure.ac): Likewise.
6143         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
6144         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
6145         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
6146         Likewise.
6147         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
6148         * tests/test-lchown.h (nap): Likewise.
6149         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
6150         * tests/test-stat-time.c (nap): Likewise.
6151         * tests/test-utimens-common.h (nap): Update comments.
6152
6153         usleep: new module
6154         * modules/usleep: New file.
6155         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
6156         * lib/usleep.c (usleep): Likewise.
6157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
6158         * modules/unistd (Makefile.am): Substitute witnesses.
6159         * lib/unistd.in.h (usleep): Add declaration.
6160         * doc/pastposix-functions/usleep.texi (usleep): Document this.
6161         * MODULES.html.sh (Date and time): Likewise.
6162         * modules/usleep-tests (Depends-on): New test.
6163         * tests/test-usleep.c: New file.
6164
6165         chown: work around OpenBSD bug
6166         * lib/chown.c (rpl_chown): Work around the bug.
6167         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
6168         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
6169         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
6170         * modules/chown (Depends-on): Add stdbool.
6171         * modules/lchown (Depends-on): Likewise.
6172         * doc/posix-functions/chown.texi (chown): Document the bug.
6173         * doc/posix-functions/lchown.texi (lchown): Likewise.
6174         * tests/test-lchown.h (test_chown): Relax test.
6175
6176         mkstemp: avoid conflict with C++ keyword template
6177         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
6178         * lib/mkostemp.c (mkostemp): Likewise.
6179         * lib/mkostemps.c (mkostemps): Likewise.
6180         * lib/mkstemp.c (mkstemp): Likewise.
6181         * lib/mkstemps.c (mkstemps): Likewise.
6182
6183         xalloc-die-tests: optimize
6184         * tests/test-xalloc-die.sh: Reduce number of processes.
6185
6186 2009-11-17  Simon Josefsson  <simon@josefsson.org>
6187
6188         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
6189         patch from ludo@gnu.org (Ludovic Courtès).
6190
6191 2009-11-17  Jim Meyering  <meyering@redhat.com>
6192
6193         version-etc: use proper license string
6194         * modules/version-etc (License): Use LGPL, not LGPLv3+.
6195         * modules/version-etc-fsf: Likewise.
6196
6197 2009-11-17  Simon Josefsson  <simon@josefsson.org>
6198
6199         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
6200         printed to stdout.  Deal with EOL differences.
6201
6202 2009-11-17  Eric Blake  <ebb9@byu.net>
6203
6204         unsetenv: work around Solaris bug
6205         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
6206         * lib/unsetenv.c (rpl_unsetenv): Work around it.
6207         Reported by Jim Meyering.
6208
6209         vasnprintf: avoid compiler warnings
6210         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
6211         variables.
6212         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
6213
6214 2009-11-17  Simon Josefsson  <simon@josefsson.org>
6215
6216         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
6217         settings since xalloc-die is no longer the self test,
6218         xalloc-die.sh is.
6219
6220 2009-11-17  Jim Meyering  <meyering@redhat.com>
6221
6222         test-xalloc-die.sh: make the code agree with the commit log
6223         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
6224         at the end, just in case you happen to have a test-xalloc-die
6225         program in some other PATH directory.
6226
6227         test-xalloc-die.sh: fix a portability bug
6228         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
6229         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
6230         Otherwise, argv[0] (as often seen in diagnostics) would be too
6231         system-dependent, sometimes with, and sometimes without the leading "./".
6232
6233         version-etc-fsf: relax license to LGPLv3+
6234         * modules/version-etc-fsf (License): Relax license.
6235
6236 2009-11-16  Eric Blake  <ebb9@byu.net>
6237
6238         xalloc-die-tests: avoid printing null pointer
6239         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
6240         shell script.
6241         * tests/test-xalloc-die.c (program_name): Declare.
6242         * tests/test-xalloc-die.sh (tmpfiles): New file.
6243
6244         setenv, unsetenv: work around various bugs
6245         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
6246         (setenv) [HAVE_SETENV]: Work around bugs.
6247         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
6248         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
6249         for bugs.
6250         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
6251         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
6252         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
6253         * modules/stdlib (Makefile.am): Update substitutions.
6254         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
6255         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
6256         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6257         * modules/setenv-tests: New test.
6258         * modules/unsetenv-tests: Likewise.
6259         * tests/test-setenv.c: New file.
6260         * tests/test-unsetenv.c: Likewise.
6261
6262 2009-11-16  Jim Meyering  <meyering@redhat.com>
6263
6264         version-etc: relax license to LGPLv3+
6265         * modules/version-etc (License): Relax license.
6266
6267         better AC_REQUIRE expanded-before-required-warning avoidance
6268         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
6269         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
6270         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
6271         which is no longer needed.
6272
6273 2009-11-16  Eric Blake  <ebb9@byu.net>
6274
6275         test-freading: clean up temporary file
6276         * tests/test-freading.c (main): Remove file on success, and use
6277         ASSERT more liberally.
6278         Reported by Jim Meyering.
6279
6280 2009-11-16  Jim Meyering  <meyering@redhat.com>
6281
6282         avoid new AC_REQUIRE expanded-before-required warnings
6283         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
6284         merely using it.
6285         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
6286         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
6287
6288 2009-11-15  Simon Josefsson  <simon@josefsson.org>
6289
6290         * tests/test-xalloc-die.c: New file.
6291         * modules/xalloc-die-tests: New file.
6292         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
6293         XFAIL_TESTS so it can be appended by modules.
6294
6295 2009-11-15  Simon Josefsson  <simon@josefsson.org>
6296
6297         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
6298         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
6299
6300 2009-11-14  Eric Blake  <ebb9@byu.net>
6301
6302         fnmatch: avoid compiler warning
6303         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
6304         to silence compiler warning about mismatch signedness in ?:.
6305         Reported by Robert Millan.
6306
6307         intprops: add double-inclusion guard
6308         * lib/intprops.h: Allow idempotent includes.
6309         Suggested by Bruce Korb.
6310
6311         openat: detect Solaris fchownat bug
6312         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
6313         penalizing glibc chownat when only lchownat is broken.
6314         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
6315         trailing slash bugs.
6316         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
6317         * modules/openat-tests (Files): Include more files.
6318         (Depends-on): Add mgetgroups, sleep, stat-time.
6319         (configure.ac): Add additional checks.
6320         (Makefile.am): Build new test.
6321         * tests/test-fchownat.c: New file.
6322
6323         lchown: detect Solaris and FreeBSD bug
6324         * lib/lchown.c (rpl_lchown): Work around bug.
6325         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
6326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6327         * modules/unistd (Makefile.am): Populate it.
6328         * lib/unistd.in.h (lchown): Update declaration.
6329         * doc/posix-functions/lchown.texi (lchown): Document the bug.
6330         * modules/lchown-tests: New file.
6331         * tests/test-lchown.h (test_lchown): Likewise.
6332         * tests/test-lchown.c (main): Likewise.
6333
6334         chown: detect Solaris and FreeBSD bug
6335         * lib/chown.c (rpl_chown): Work around bug.
6336         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
6337         (gl_PREREQ_CHOWN): Delete.
6338         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6339         * modules/unistd (Makefile.am): Populate it.
6340         * lib/unistd.in.h (chown): Update declaration.
6341         * lib/lchown.c (chown): Update client.
6342         * modules/lchown (Depends-on): Add lstat.
6343         * doc/posix-functions/chown.texi (chown): Document the bug.
6344         * doc/posix-functions/getgroups.texi (getgroups): Document
6345         getgroups pitfall.
6346         * modules/chown-tests: New file.
6347         * tests/test-chown.h (test_chown): Likewise.
6348         * tests/test-chown.c (main): Likewise.
6349
6350 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
6351
6352         gnulib-tool: correctly detect absence of m4 directories
6353         * gnulib-tool: Avoid extra newline on data passed to wc -l.
6354
6355 2009-11-14  Jim Meyering  <meyering@redhat.com>
6356
6357         maint.mk: Prohibit inclusion of "xalloc.h" without use.
6358         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
6359
6360 2009-11-14  John W. Eaton  <jwe@gnu.org>
6361
6362         strftime.h: wrap funtion declaration in extern "C" block
6363         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
6364
6365 2009-11-13  Eric Blake  <ebb9@byu.net>
6366
6367         getgroups: avoid compiler warning
6368         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
6369
6370         getgroups: work around FreeBSD bug
6371         * lib/getgroups.c (rpl_getgroups): Work around the bug.
6372         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
6373         * doc/posix-functions/getgroups.texi (getgroups): Document it.
6374         * tests/test-getgroups.c (main): Fix buffer overrun.
6375
6376         getgroups: avoid compilation failure
6377         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
6378         * modules/getgroups (Depends-on): Add stdint.
6379
6380 2009-11-13  Jim Meyering  <meyering@redhat.com>
6381
6382         test-getgroups: avoid compilation failure
6383         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
6384
6385 2009-11-13  Eric Blake  <ebb9@byu.net>
6386
6387         mgetgroups: new module, taken from coreutils
6388         * modules/mgetgroups: New file.
6389         * lib/mgetgroups.h: Likewise.
6390         * lib/mgetgroups.c (mgetgroups): Likewise.
6391         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
6392         * MODULES.html.sh (Users and groups): Mention it.
6393
6394         getgroups: don't expose GETGROUPS_T to user
6395         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
6396         an element at a time if GETGROUPS_T is wrong size.
6397         * lib/getugroups.h (getugroups): Change signature.
6398         * lib/unistd.in.h (getgroups): Likewise.
6399         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
6400         signature needs fixing.
6401         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
6402         AC_TYPE_GETGROUPS.
6403         * modules/group-member (Depends-on): Add getgroups.
6404         * lib/group-member.c (group_info, get_group_info): Use gid_t.
6405         (group_member): Rely on getgroups replacement.
6406         * lib/getugroups.c (getugroups): Use gid_t.
6407         * tests/test-getgroups.c (main): Likewise.
6408         * NEWS: Mention the signature change.
6409         * doc/posix-functions/getgroups.texi (getgroups): Mention the
6410         problem with signature.
6411         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
6412         GETGROUPS_T is still useful for setgroups.
6413
6414         getgroups, getugroups: provide stubs for mingw
6415         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
6416         * lib/getugroups.c (getugroups): Likewise.
6417         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
6418         function.  Modernize replacement scheme.
6419         (gl_PREREQ_GETGROUPS): Delete.
6420         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
6421         * modules/getgroups (configure.ac): Declare witness.
6422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6423         * modules/unistd (Depends-on): Substitute witness.
6424         * lib/unistd.in.h (getgroups): Declare replacement.
6425
6426         getgroups: avoid calling exit
6427         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
6428         drop xalloc.
6429         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
6430         dependencies.
6431         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
6432         exiting, in the rare case of malloc failure.
6433
6434         getgroups: fix logic error
6435         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
6436         has more than 20 groups.
6437         * modules/getgroups-tests: New test.
6438         * tests/test-getgroups.c: New file.
6439
6440 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6441
6442         * tests/test-base64.c: Improve.
6443
6444 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6445
6446         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
6447         Blake <ebb9@byu.net>.
6448
6449 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6450
6451         * tests/test-xvasprintf.c: Add %s%s related checks.
6452
6453 2009-11-12  Eric Blake  <ebb9@byu.net>
6454
6455         version-etc: match standards.texi style
6456         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
6457         and use <> only for URLs.
6458
6459 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
6460
6461         fts: do not fail on a submount during traversal
6462         * lib/fts.c (fts_build): Read the stat info again after opening
6463         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
6464         Original report at http://bugzilla.redhat.com/501848.
6465
6466 2009-11-12  Jim Meyering  <meyering@redhat.com>
6467
6468         bootstrap: sync from coreutils
6469         * build-aux/bootstrap (bootstrap_epilogue): New function.
6470         Use git_modules_config in one more place.  This make bootstrap's
6471         --gnulib-srcdir option more useful for testing.
6472
6473         bootstrap: generalize autoheader check
6474         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
6475         AC_CONFIG_HEADERS.
6476
6477 2009-11-11  Eric Blake  <ebb9@byu.net>
6478
6479         mkfifoat: use new modules for Solaris and BSD bugs
6480         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
6481         * lib/mkfifoat.c (mknodat): Split...
6482         * lib/mknodat.c (mknodat): ...into new file.
6483         * modules/mkfifoat (Files): Ship new file.
6484         (Depends-on): Add mkfifo, mknod.
6485         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
6486         (Depends-on): Add symlink.
6487         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
6488         redundant with test_mkfifo.h.
6489         (do_mkfifoat, do_mknodat): New helpers.
6490
6491         mknod: new module
6492         * modules/mknod: New file.
6493         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
6494         * lib/mknod.c (mknod): Likewise.
6495         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
6496         defaults.
6497         * modules/sys_stat (Makefile.am): Substitute them.
6498         * lib/sys_stat.in.h (mknod): Declare replacement.
6499         * MODULES.html.sh (Support for systems lacking POSIX:2008):
6500         Document it.
6501         * doc/posix-functions/mknod.texi (mknod): Likewise.
6502         * modules/mknod-tests: New test.
6503         * tests/test-mknod.c: Likewise.
6504
6505         mkfifo: new module
6506         * modules/mkfifo: New file.
6507         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
6508         * lib/mkfifo.c (mkfifo): Likewise.
6509         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
6510         defaults.
6511         * modules/sys_stat (Makefile.am): Substitute them.
6512         * lib/sys_stat.in.h (mkfifo): Declare replacement.
6513         * MODULES.html.sh (Support for systems lacking POSIX:2008):
6514         Document it.
6515         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
6516         * modules/mkfifo-tests: New test.
6517         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
6518         from test-mkfifoat.c.
6519         * tests/test-mkfifo.c: New file.
6520
6521         readlink: detect FreeBSD bug
6522         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
6523         slash on symlink.
6524         * doc/posix-functions/readlink.texi (readlink): Document the bug.
6525         * tests/test-readlink.h (test_readlink): Enhance test.
6526
6527         symlink: detect FreeBSD bug
6528         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
6529         slash on symlink.
6530         * doc/posix-functions/symlink.texi (symlink): Document the bug.
6531         * tests/test-symlink.h (test_symlink): Enhance test.
6532
6533 2009-11-10  Eric Blake  <ebb9@byu.net>
6534
6535         link: detect FreeBSD bug
6536         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
6537         symlink.
6538         * doc/posix-functions/link.texi (link): Document the bug.
6539         * tests/test-link.h (test_link): Enhance test.
6540         * tests/test-linkat.c (main): Update caller.
6541
6542         unlink, remove: detect FreeBSD bug
6543         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
6544         slash on symlink.
6545         * doc/posix-functions/unlink.texi (unlink): Document the bug.
6546         * doc/posix-functions/remove.texi (remove): Likewise.
6547         * tests/test-unlink.h (test_unlink): Enhance test.
6548         * tests/test-remove.c (main): Likewise.
6549
6550 2009-11-09  Eric Blake  <ebb9@byu.net>
6551
6552         rename: detect FreeBSD bug
6553         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
6554         slash on symlink.
6555         * modules/renameat-tests (Depends-on): Add filenamecat.
6556         * tests/test-rename.h (test_rename): Allow one more errno.
6557         * tests/test-renameat.c (main): Likewise.
6558         * doc/posix-functions/rename.texi (rename): Document the bug.
6559
6560         open: detect FreeBSD bug
6561         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
6562         symlink.
6563         * doc/posix-functions/open.texi (open): Document the bug.
6564         * doc/posix-functions/utimes.texi (utimes): Likewise.
6565         * tests/test-open.h (test_open): Add parameters, and test symlink
6566         handling.
6567         * tests/test-open.c (main): Adjust caller.
6568         * tests/test-fcntl-safer.c (main): Likewise.
6569         * modules/open-tests (Depends-on): Add stdbool, symlink.
6570         * modules/fcntl-safer-tests (Depends-on): Likewise.
6571         * tests/test-openat.c (main): Add test-open tests.
6572
6573         stat: detect FreeBSD bug
6574         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
6575         symlink.
6576         * doc/posix-functions/stat.texi (stat): Document the bug.
6577         * tests/test-stat.h (test_stat_func): Add argument.
6578         * tests/test-stat.c (main): Adjust caller.
6579         * tests/test-fstatat.c (main): Likewise.
6580         * modules/stat-tests (Depends-on): Add stdbool, symlink.
6581         Reported by Jim Meyering.
6582
6583 2009-11-09  James Youngman  <jay@gnu.org>
6584
6585         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
6586         * lib/strftime.c: Correct placement of #include "ignore-value.h".
6587
6588 2009-11-08  Jim Meyering  <meyering@redhat.com>
6589
6590         utimens: remove invalid futimesat call
6591         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
6592         It used the file descriptor of the target file as the DIR_FD
6593         parameter and NULL as the file name.  That caused failure with
6594         errno == EFAULT on FreeBSD-8.0-rc2
6595
6596 2009-11-07  Eric Blake  <ebb9@byu.net>
6597
6598         fflush, freadseek: use fseeko, not fseek
6599         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
6600         (clear_ungetc_buffer): Avoid potential problems on large files.
6601         * lib/freadseek.c (freadseek): Likewise.
6602         * modules/freadseek (Depends-on): Add fseeko.
6603         * modules/fseek (configure.ac): Set a witness.
6604         * tests/test-fflush.c (main): Use fseeko.
6605         * tests/test-fpurge.c (fseek): Disable link warning.
6606         * tests/test-freadable.c (fseek): Likewise.
6607         * tests/test-freading.c (fseek): Likewise.
6608         * tests/test-fseeko.c (fseek): Likewise.
6609         * tests/test-ftell.c (fseek): Likewise.
6610         * tests/test-ftello.c (fseek): Likewise.
6611         * tests/test-fwritable.c (fseek): Likewise.
6612         * tests/test-fwriting.c (fseek): Likewise.
6613
6614 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6615
6616         * modules/memchr (Depends-on): Drop getpagesize dependency.
6617
6618 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6619
6620         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
6621         Reported by Ludovic Courtès.
6622         * build-aux/pmccabe2html: Improve example usage.
6623         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
6624
6625 2009-11-06  Jim Meyering  <meyering@redhat.com>
6626
6627         do-release-commit-and-tag: New module.
6628         Automate the release-commit and tag process.
6629         * build-aux/do-release-commit-and-tag: New script, from coreutils.
6630         * modules/do-release-commit-and-tag: New file.
6631         * MODULES.html.sh (Support for maintaining and releasing): Add it.
6632
6633 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6634
6635         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
6636         because test-select.c uses inet_pton.
6637
6638 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6639
6640         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
6641         GETADDRINFO_LIB.  Bump serial number.
6642         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
6643         Suggested by Eric Blake <ebb9@byu.net>.
6644
6645 2009-11-05  Eric Blake  <ebb9@byu.net>
6646
6647         strtod: detect darwin bug
6648         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
6649         Reported by Leo Davis.
6650
6651         freopen-safer: new module
6652         * modules/freopen-safer: New module.
6653         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
6654         * lib/freopen-safer.c (freopen_safer): New file.
6655         * lib/stdio-safer.h (freopen_safer): New declaration.
6656         * lib/stdio--.h (freopen): New override.
6657         * MODULES.html.sh (File stream based Input/Output): Mention it.
6658         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
6659         freopen-safer module.
6660         * doc/posix-functions/stderr.texi (stderr): Likewise.
6661         * doc/posix-functions/stdin.texi (stdin): Likewise.
6662         * doc/posix-functions/stdout.texi (stdout): Likewise.
6663         * modules/freopen-safer-tests: New test.
6664         * tests/test-reopen-safer.c: New file.
6665
6666 2009-11-05  Jim Meyering  <meyering@redhat.com>
6667
6668         maint.mk: Prohibit inclusion of "close-stream.h" without use.
6669         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
6670
6671 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6672
6673         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
6674
6675 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6676
6677         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
6678
6679 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6680
6681         Fix link error.
6682         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
6683         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
6684
6685 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6686
6687         * tests/test-func.c: Also test value of __func__.
6688
6689 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6690
6691         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
6692         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
6693
6694 2009-11-05  Bruno Haible  <bruno@clisp.org>
6695
6696         Fix link error.
6697         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
6698         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
6699         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
6700
6701 2009-11-05  Bruno Haible  <bruno@clisp.org>
6702
6703         Tests for module 'inet_pton'.
6704         * modules/inet_pton-tests: New file.
6705         * tests/test-inet_pton.c: New file.
6706
6707 2009-11-05  Bruno Haible  <bruno@clisp.org>
6708
6709         Tests for module 'inet_ntop'.
6710         * modules/inet_ntop-tests: New file.
6711         * tests/test-inet_ntop.c: New file.
6712
6713 2009-11-04  Eric Blake  <ebb9@byu.net>
6714
6715         stdlib-safer: wrap all mkstemp variants
6716         * modules/mkostemp (configure.ac): Set witness.
6717         * modules/mkostemps (configure.ac): Likewise.
6718         * modules/mkstemps (configure.ac): Likewise.
6719         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
6720         (mkstemps_safer): Wrap more functions.
6721         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
6722         wrapping.
6723         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
6724         (mkstemps_safer): Implement the wrappers.
6725
6726         mkstemps, mkostemps: new modules
6727         * modules/mkostemps: New module.
6728         * modules/mkstemps: Likewise.
6729         * lib/mkostemps.c (mkostemps): New file.
6730         * lib/mkstemps.c (mkstemps): Likewise.
6731         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
6732         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
6733         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
6734         * modules/stdlib (Makefile.am): Substitute them.
6735         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
6736         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
6737         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
6738         * doc/gnulib.texi (Glibc stdlib.h): Include them.
6739         * MODULES.html.sh (File system functions): Mention them.
6740
6741         tempname: resync from glibc
6742         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
6743         same values for __GT_FILE as glibc.  Abort even when assertions
6744         are disabled.
6745         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
6746         match its value otherwise.  Allow idempotent inclusion.
6747         * lib/mkdtemp.c (mkdtemp): Adjust caller.
6748         * lib/mkostemp.c (mkostemp): Likewise.
6749         * lib/mkstemp.c (mkstemp): Likewise.
6750         * lib/tmpfile.c (tmpfile): Likewise.
6751         * NEWS: Document this.
6752
6753         utimens: fix use of futimens on older Linux
6754         * lib/utimens.c (fdutimens): Use updated, rather than original,
6755         timespec to avoid bug in older Linux kernel.
6756         Reported by Simon Josefsson.
6757
6758 2009-11-04  Bruno Haible  <bruno@clisp.org>
6759
6760         Make num_processors more flexible and consistent.
6761         * lib/nproc.h (enum nproc_query): New type.
6762         (num_processors): Add a 'query' argument.
6763         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
6764         (num_processors): Add a 'query' argument. Test the value of the
6765         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
6766         mingw, count the number of CPUs available for the current process.
6767         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
6768         Check for sched_getaffinity and sched_getaffinity_np.
6769         * modules/nproc (Depends-on): Add c-ctype, extensions.
6770         * NEWS: Mention the change.
6771
6772 2009-11-03  Bruno Haible  <bruno@clisp.org>
6773
6774         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
6775
6776 2009-11-03  Jim Meyering  <meyering@redhat.com>
6777
6778         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
6779         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
6780         if it is defined.
6781
6782 2009-11-02  Eric Blake  <ebb9@byu.net>
6783
6784         mktime, timegm: share common declaration
6785         * lib/mktime-internal.h: New file.
6786         * lib/mktime.c: Use it rather than open-coding a declaration.
6787         * lib/timegm.c: Likewise.
6788         * modules/mktime (Files): Ship it.
6789         * modules/timegm (Files): Likewise.
6790         Suggested by Bruno Haible.
6791
6792         test-update-copyright: update test to match script changes
6793         * tests/test-update-copyright.sh: Avoid hard-coding perl
6794         location.  Don't update *.bak created by earlier runs.
6795
6796 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
6797             Simon Josefsson  <simon@josefsson.org>
6798             Bruno Haible  <bruno@clisp.org>
6799
6800         Fix link error on Solaris 8.
6801         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
6802         also in libnsl. Define also INET_PTON_LIB.
6803         * modules/inet_pton (Link): New section.
6804
6805 2009-11-02  Simon Josefsson  <simon@josefsson.org>
6806             Bruno Haible  <bruno@clisp.org>
6807
6808         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
6809         * modules/inet_ntop (Link): New section.
6810         Reported by Boyan Kasarov <bkasarov@gmail.com>.
6811
6812 2009-11-02  Eric Blake  <ebb9@byu.net>
6813
6814         maint: avoid compiler warnings in m4 macros
6815         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
6816         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
6817
6818 2009-11-02  Simon Josefsson  <simon@josefsson.org>
6819
6820         * m4/pmccabe2html.m4: Remove file.
6821         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
6822         function.  Change maintainer.
6823         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
6824         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
6825         Courtès).
6826
6827 2009-10-31  Eric Blake  <ebb9@byu.net>
6828
6829         fseeko: fix m4 regression
6830         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
6831         regression from 2009-10-27.
6832         Reported by Ralf Wildenhues.
6833
6834 2009-10-31  Jim Meyering  <meyering@redhat.com>
6835
6836         inttostr: aesthetics and improved (compile-time) safety
6837         Define inttype_is_signed rather than inttype_is_unsigned,
6838         since the sole use is via "#if inttype_is_signed".
6839         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
6840         inttype_is_unsigned.
6841         * lib/offtostr.c (inttype_is_signed): Likewise.
6842         * lib/uinttostr.c (inttype_is_signed): Likewise.
6843         * lib/umaxtostr.c (inttype_is_signed): Likewise.
6844         * lib/inttostr.c (inttostr): Use verify to cross-check the
6845         inttype_is_signed value and the signedness of the actual type.
6846         * modules/inttostr (Depends-on): Add verify.
6847
6848 2009-10-30  Eric Blake  <ebb9@byu.net>
6849
6850         build: avoid compiler warnings
6851         * lib/fchmodat.c (lchmod): Mark unused variables.
6852         * lib/getopt.c (_getopt_initialize): Likewise.
6853         * lib/mktime.c (__mktime_internal): Provide prototype.
6854         * lib/inttostr.c (inttostr): Avoid compiler warning even with
6855         older gcc that do not understand #pragma GCC diagnostic.
6856         * lib/uinttostr.c (inttype_is_unsigned): Define.
6857         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
6858
6859 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
6860
6861         stat: fix compilation on AIX
6862         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
6863         only see struct stat64.
6864
6865 2009-10-30  Eric Blake  <ebb9@byu.net>
6866
6867         exclude: make more robust
6868         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
6869         rather than masking a coding bug.
6870         Suggested by Bruno Haible.
6871
6872 2009-10-30  Jim Meyering  <meyering@redhat.com>
6873
6874         perl scripts: remove #!/usr/bin/perl in favor of more portable...
6875         Rather than putting #!/usr/bin/perl on the first line,
6876         start with a variant of what's recommended by "man perlrun" that
6877         invokes the first "perl" program from your shell's search path.
6878         * build-aux/gitlog-to-changelog: Replace #!... as above.
6879         Add a "Local Variables" perl mode setting.
6880         Prompted by a patch from Ludovic Courtès.
6881         Improved by Eric Blake.
6882         * build-aux/useless-if-before-free: Likewise.
6883         * build-aux/announce-gen: Likewise.
6884         * build-aux/update-copyright: Likewise.
6885
6886 2009-10-29  Eric Blake  <ebb9@byu.net>
6887
6888         filenamecat-lgpl: adjust clients
6889         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
6890         filenamecat.
6891         * modules/renameat (Depends-on): Likewise.
6892
6893         filenamecat: split into filenamecat-lgpl
6894         * modules/filenamecat-lgpl: New module.
6895         * modules/filenamecat (Files): Move library-safe files into
6896         filenamecat-lgpl.
6897         (Depends-on): Add filenamecat-lgpl.
6898         (configure.ac): Declare witness.
6899         * lib/filenamecat.h (file_name_concat): Only declare when using
6900         GPL module.
6901         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
6902         Move...
6903         * lib/filenamecat-lgpl.c: ...into new file.
6904         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
6905         (gl_FILE_NAME_CONCAT): Use it.
6906         * MODULES.html.sh (File system functions): Mention new module.
6907
6908         argp: avoid memory leak
6909         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
6910         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
6911         base_name, since the latter malloc()s and can call exit().
6912         Leak introduced 2006-07-03.
6913
6914         dirname-lgpl: adjust clients that don't need full dirname
6915         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
6916         * modules/filenamecat (Depends-on): Likewise.
6917         * modules/linkat (Depends-on): Likewise.
6918         * modules/mkancesdirs (Depends-on): Likewise.
6919         * modules/mkdir (Depends-on): Likewise.
6920         * modules/openat (Depends-on): Likewise.
6921         * modules/savewd (Depends-on): Likewise.
6922         * modules/rename (Depends-on): Likewise.
6923         (License): Relax license.
6924         * modules/mkdir-tests (Depends-on): Drop progname.
6925         (Makefile.am): Delete unneeded LDADD.
6926         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
6927
6928         dirname: split into dirname-lgpl
6929         * modules/dirname-lgpl: New module.
6930         * modules/dirname (Files): Move library-safe files into
6931         dirname-lgpl.
6932         (Depends-on): Add dirname-lgpl.
6933         (configure.ac): Declare witness.
6934         * modules/double-slash-root (License): Relax license.
6935         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
6936         module.
6937         * lib/dirname.c (dir_len, mdir_name): Move...
6938         * lib/dirname-lgpl.c: ...into new file.
6939         * lib/basename.c (last_component, base_len): Move...
6940         * lib/basename-lgpl.c: ...into new file.
6941         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
6942         (gl_DIRNAME): Use it.
6943         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
6944         Mention new module.
6945         * modules/dirname-tests (Depends-on): Add progname.
6946         * tests/test-dirname.c (program_name): Delete.
6947
6948         mkdir: make safe for libraries
6949         * modules/mkdir (Depends-on): Drop xalloc.
6950         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
6951         exit.
6952
6953         tests: avoid some compiler warnings
6954         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
6955         literals.
6956         * tests/test-memchr.c (main): Avoid type mismatch.
6957         * tests/test-arpa_inet.c (main): Avoid unused parameters.
6958         * tests/test-base64.c (main): Likewise.
6959         * tests/test-getdelim.c (main): Likewise.
6960         * tests/test-gethostname.c (main): Likewise.
6961         * tests/test-getline.c (main): Likewise.
6962         * tests/test-netinet_in.c (main): Likewise.
6963         * tests/test-select.c (open_server_socket, main): Likewise.
6964         * tests/test-select-stdin.c (main): Likewise.
6965         * tests/test-sockets.c (main): Likewise.
6966         * tests/test-strsignal.c (main): Likewise.
6967         * tests/test-sys_select.c (main): Likewise.
6968         * tests/test-sys_socket.c (main): Likewise.
6969         * tests/test-u64.c (main): Likewise.
6970         * tests/test-xfprintf-posix.c (main): Likewise.
6971         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
6972
6973         sockets: avoid compiler warning
6974         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
6975
6976         maint: detect usage(1) and other suspicious exits
6977         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
6978
6979 2009-10-29  Jim Meyering  <meyering@redhat.com>
6980
6981         timespec: long-to-int truncation could make timespec_cmp malfunction
6982         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
6983         a multiple of 2^32 nanoseconds as no difference.
6984
6985 2009-10-28  Jim Meyering  <meyering@redhat.com>
6986
6987         fprintftime: wrap macro code argument in "do {...} while(0)"
6988         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
6989         cpy macro must be a statement that can be followed by a semicolon.
6990         Now that the else clause contains a comment and is hence longer
6991         than one line, I require curly braces.  That in turn requires
6992         that we wrap this code block in the standard do...while(0).
6993
6994         fprintftime: remove stray semicolon from previous change
6995         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
6996
6997         fprintftime: avoid a warning about ignored fwrite return value
6998         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
6999         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
7000         that is unsafe.
7001         * modules/fprintftime (Depends-on): Add ignore-value.
7002
7003         exclude: avoid an unwarranted warning
7004         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
7005
7006 2009-10-27  Eric Blake  <ebb9@byu.net>
7007
7008         fseek: avoid compilation failure when fflush is replaced
7009         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
7010         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
7011         module is in use.
7012         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
7013         module is not in use; since REPLACE_FSEEK worked otherwise.
7014         (GNULIB_FTELLO): Likewise for ftell.
7015         Reported by Ian Beckwith and others.
7016
7017 2009-10-27  Bruno Haible  <bruno@clisp.org>
7018
7019         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
7020         Reported by Jim Meyering.
7021
7022 2009-10-27  Jim Meyering  <jim@meyering.net>
7023             Bruno Haible  <bruno@clisp.org>
7024
7025         Avoid warning despite dropping the return value of fwrite.
7026         * lib/unicodeio.c: Include ignore-value.h.
7027         (fwrite_success_callback): Explicitly ignore fwrite's return value.
7028         * modules/unicodeio (Depends-on): Add ignore-value.
7029
7030 2009-10-26  Eric Blake  <ebb9@byu.net>
7031
7032         areadlinkat: fix fallback path
7033         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
7034         pointer and zero.
7035
7036 2009-10-22  Pádraig Brady  <P@draigBrady.com>
7037
7038         Use a better IO block size for modern systems
7039         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
7040         * lib/md2.c: Likewise.
7041         * lib/md4.c: Likewise.
7042         * lib/md5.c: Likewise.
7043         * lib/sha1.c: Likewise.
7044         * lib/sha256.c: Likewise.
7045         * lib/sha512.c: Likewise.
7046
7047 2009-10-22  Eric Blake  <ebb9@byu.net>
7048
7049         tests: avoid several compiler warnings
7050         * tests/test-getcwd.c (main): Avoid buffer underflow.
7051         * tests/test-getdate.c (main): String literals are not safe with
7052         putenv, so use setenv.  Declare unused argument.
7053         * modules/getdate-tests (Depends-on): Add setenv.
7054         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
7055         problems with string literals in char *.
7056         * tests/test-hash.c (main): Avoid shadowing declaration.
7057         (insert_new): Treat string literals as char const *.
7058         * tests/test-getopt.h (test_getopt): Likewise.
7059         (getopt_loop): Alter types to minimize casting elsewhere.
7060         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
7061         (test_getopt_long_posix): Likewise.
7062         (do_getopt_long): Add wrapper to minimize casting.
7063         * tests/test-atexit.c (clear_temp_file): Use void.
7064         * tests/test-areadlink-with-size.c (main): Declare unused
7065         arguments.
7066         * tests/test-areadlink.c (main): Likewise.
7067         * tests/test-areadlinkat-with-size.c (main): Likewise.
7068         * tests/test-areadlinkat.c (main): Likewise.
7069         * tests/test-canonicalize-lgpl.c (main): Likewise.
7070         * tests/test-canonicalize.c (main): Likewise.
7071         * tests/test-dirent-safer.c (main): Likewise.
7072         * tests/test-dirname.c (main): Likewise.
7073         * tests/test-dup2.c (main): Likewise.
7074         * tests/test-fchdir.c (main): Likewise.
7075         * tests/test-fcntl-h.c (main): Likewise.
7076         * tests/test-fcntl-safer.c (main): Likewise.
7077         * tests/test-fdopendir.c (main): Likewise.
7078         * tests/test-fdutimensat.c (main): Likewise.
7079         * tests/test-fflush.c (main): Likewise.
7080         * tests/test-filenamecat.c (main): Likewise.
7081         * tests/test-filevercmp.c (main): Likewise.
7082         * tests/test-fopen-safer.c (main): Likewise.
7083         * tests/test-fopen.c (main): Likewise.
7084         * tests/test-fpending.c (main): Likewise.
7085         * tests/test-fpurge.c (main): Likewise.
7086         * tests/test-freading.c (main): Likewise.
7087         * tests/test-fstatat.c (main): Likewise.
7088         * tests/test-fsync.c (main): Likewise.
7089         * tests/test-futimens.c (main): Likewise.
7090         * tests/test-getndelim2.c (main): Likewise.
7091         * tests/test-gettimeofday.c (main): Likewise.
7092         * tests/test-getopt.c (main): Likewise.
7093         * tests/test-i-ring.c (main): Likewise.
7094         * tests/test-inttypes.c (main): Likewise.
7095         * tests/test-link.c (main): Likewise.
7096         * tests/test-lstat.c (main): Likewise.
7097         * tests/test-math.c (main): Likewise.
7098         * tests/test-md5.c (main): Likewise.
7099         * tests/test-memchr2.c (main): Likewise.
7100         * tests/test-memrchr.c (main): Likewise.
7101         * tests/test-mkdir.c (main): Likewise.
7102         * tests/test-mkdirat.c (main): Likewise.
7103         * tests/test-mkfifoat.c (main): Likewise.
7104         * tests/test-open.c (main): Likewise.
7105         * tests/test-openat-safer.c (main): Likewise.
7106         * tests/test-openat.c (main): Likewise.
7107         * tests/test-quotearg.c (main): Likewise.
7108         * tests/test-rawmemchr.c (main): Likewise.
7109         * tests/test-readlink.c (main): Likewise.
7110         * tests/test-remove.c (main): Likewise.
7111         * tests/test-rename.c (main): Likewise.
7112         * tests/test-renameat.c (main): Likewise.
7113         * tests/test-rmdir.c (main): Likewise.
7114         * tests/test-sha1.c (main): Likewise.
7115         * tests/test-signal.c (main): Likewise.
7116         * tests/test-sigaction.c (main): Likewise.
7117         * tests/test-stat.c (main): Likewise.
7118         * tests/test-stat-time.c (main): Likewise.
7119         * tests/test-stddef.c (main): Likewise.
7120         * tests/test-stdint.c (main): Likewise.
7121         * tests/test-stdio.c (main): Likewise.
7122         * tests/test-stdlib.c (main): Likewise.
7123         * tests/test-strchrnul.c (main): Likewise.
7124         * tests/test-strerror.c (main): Likewise.
7125         * tests/test-string.c (main): Likewise.
7126         * tests/test-strtod.c (main): Likewise.
7127         * tests/test-strverscmp.c (main): Likewise.
7128         * tests/test-symlink.c (main): Likewise.
7129         * tests/test-symlinkat.c (main): Likewise.
7130         * tests/test-sys_stat.c (main): Likewise.
7131         * tests/test-sys_time.c (main): Likewise.
7132         * tests/test-time.c (main): Likewise.
7133         * tests/test-unistd.c (main): Likewise.
7134         * tests/test-unlink.c (main): Likewise.
7135         * tests/test-unlinkat.c (main): Likewise.
7136         * tests/test-utimens.c (main): Likewise.
7137         * tests/test-utimensat.c (main): Likewise.
7138         * tests/test-version-etc.c (main): Likewise.
7139         * tests/test-wchar.c (main): Likewise.
7140         * tests/test-wctype.c (main): Likewise.
7141         * tests/test-xprintf-posix.c (main): Likewise.
7142         * tests/test-posixtm.c (main): Likewise.
7143         (STREQ): Delete unused macro.
7144         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
7145         shadowed variables.
7146         * tests/test-memchr.c (main): Likewise.
7147
7148 2009-10-21  Eric Blake  <ebb9@byu.net>
7149
7150         areadlinkat: avoid failure on older glibc
7151         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
7152         rather than mis-comparing 0 against FUNC_RESULT of char*.
7153
7154 2009-10-21  Bruno Haible  <bruno@clisp.org>
7155
7156         * modules/stpncpy (License): Relicense under LGPLv2+.
7157         Reported by David Lutterkort <lutter@redhat.com>.
7158
7159 2009-10-20  Eric Blake  <ebb9@byu.net>
7160
7161         utimensat: work around Solaris 9 bug
7162         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
7163         has trailing slash bugs.
7164         * tests/test-lutimens.h (test_lutimens): Enhance test.
7165         * tests/test-utimens.h (test_utimens): Likewise.
7166         * doc/posix-functions/utime.texi (utime): Enhance documentation.
7167         * doc/posix-functions/utimes.texi (utimes): Likewise.
7168         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7169         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
7170         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
7171         * doc/posix-functions/futimens.texi (futimens): Likewise.
7172
7173         fdutimensat: new module
7174         * modules/fdutimensat: New file.
7175         * lib/fdutimensat.c (fdutimensat): Likewise.
7176         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
7177         * MODULES.html.sh (File system functions): Mention module.
7178         * modules/fdutimensat-tests: New test.
7179         * tests/test-fdutimensat.c: Likewise.
7180
7181         doc: regenerate INSTALL
7182         * doc/INSTALL: Reflect recent autoconf update.
7183         * doc/INSTALL.ISO: Likewise.
7184         * doc/INSTALL.UTF-8: Likewise.
7185
7186 2009-10-20  Pádraig Brady  <P@draigBrady.com>
7187
7188         acl: warn if ACL support is not detected
7189         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
7190
7191 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
7192
7193         * lib/nproc.h: Add extern "C" block for C++.
7194
7195 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
7196             Bruno Haible  <bruno@clisp.org>
7197
7198         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
7199         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
7200         * doc/posix-functions/isalpha.texi: Likewise.
7201         * doc/posix-functions/isblank.texi: Likewise.
7202         * doc/posix-functions/iscntrl.texi: Likewise.
7203         * doc/posix-functions/isdigit.texi: Likewise.
7204         * doc/posix-functions/isgraph.texi: Likewise.
7205         * doc/posix-functions/islower.texi: Likewise.
7206         * doc/posix-functions/isprint.texi: Likewise.
7207         * doc/posix-functions/ispunct.texi: Likewise.
7208         * doc/posix-functions/isspace.texi: Likewise.
7209         * doc/posix-functions/isupper.texi: Likewise.
7210         * doc/posix-functions/isxdigit.texi: Likewise.
7211
7212 2009-10-18  Bruno Haible  <bruno@clisp.org>
7213
7214         Tests for module 'isblank'.
7215         * modules/isblank-tests: New file.
7216         * tests/test-isblank.c: New file.
7217
7218         New module 'isblank'.
7219         * lib/isblank.c: New file.
7220         * m4/isblank.m4: New file.
7221         * modules/isblank: New file.
7222         * doc/posix-functions/isblank.texi: Mention the new module.
7223
7224 2009-10-18  Bruno Haible  <bruno@clisp.org>
7225
7226         New module 'ctype'.
7227         * lib/ctype.in.h: New file.
7228         * m4/ctype.m4: New file.
7229         * modules/ctype: New file.
7230         * doc/posix-headers/ctype.texi: Mention the new module.
7231
7232 2009-10-18  Jim Meyering  <meyering@redhat.com>
7233
7234         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
7235         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
7236         right after its initialization, rather than farther down.
7237         Keeping these in close proximity makes it easier to ensure
7238         that each such variable is initialized.  E.g.,
7239
7240             LIB_CLOCK_GETTIME=
7241             AC_SUBST([LIB_CLOCK_GETTIME])
7242
7243         This change also increments these serial numbers.
7244         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
7245         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7246         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7247
7248 2009-10-18  Bruno Haible  <bruno@clisp.org>
7249
7250         Don't let environment variables perturb build.
7251         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
7252         (gl_PREREQ_GETHRXTIME): ... not here.
7253
7254 2009-10-18  Bruno Haible  <bruno@clisp.org>
7255
7256         Avoid symlink attack in localcharset module.
7257         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
7258         (O_NOFOLLOW): Define fallback.
7259         (get_charset_aliases): Don't open the file if it is a symbolic link.
7260         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
7261         gl_FCNTL_H.
7262         (gl_FCNTL_H): Require it.
7263         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
7264         * modules/localcharset (Files): Add m4/fcntl_h.m4.
7265         Reported by Fergal Glynn <fglynn@veracode.com>.
7266
7267 2009-10-18  Bruno Haible  <bruno@clisp.org>
7268
7269         Implement nproc for mingw.
7270         * lib/nproc.c: Include <windows.h>
7271         (num_processors): On native Windows platforms, try GetSystemInfo.
7272
7273 2009-10-18  Bruno Haible  <bruno@clisp.org>
7274
7275         Implement nproc for IRIX.
7276         * lib/nproc.c: Include <sys/sysmp.h>.
7277         (num_processors): On IRIX systems, try sysmp.
7278         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
7279
7280 2009-10-18  Bruno Haible  <bruno@clisp.org>
7281
7282         Implement nproc for HP-UX.
7283         * lib/nproc.c: Include <sys/pstat.h>
7284         (num_processors): On HP-UX systems, try pstat_getdynamic.
7285         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
7286         pstat_getdynamic.
7287
7288 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
7289             Bruno Haible  <bruno@clisp.org>
7290
7291         Implement nproc for NetBSD, OpenBSD.
7292         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
7293         (ARRAY_SIZE): New macro.
7294         (num_processors): On BSD systems, try sysctl of HW_NCPU.
7295         * m4/nproc.m4: New file.
7296         * modules/nproc (Files): Add m4/nproc.m4.
7297         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
7298         (Makefile.am): Instead, augment lib_SOURCES.
7299
7300 2009-10-18  Bruno Haible  <bruno@clisp.org>
7301
7302         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
7303         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
7304         sys/param.h.
7305
7306 2009-10-16  Eric Blake  <ebb9@byu.net>
7307
7308         utimensat: new module
7309         * modules/utimensat: New file.
7310         * lib/utimensat.c (utimensat): Likewise.
7311         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7312         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
7313         so we can work around Linux bugs.
7314         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7315         * modules/sys_stat (Makefile.am): Substitute them.
7316         * lib/sys_stat.in.h (utimensat): Declare it.
7317         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7318         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7319         * modules/utimensat-tests: New test.
7320         * tests/test-utimensat.c: Likewise.
7321
7322         utimens: let lutimens work on non-symlinks
7323         * lib/utimens.c (lutimens): Fall back to utimens rather than
7324         failing with ENOSYS, when file is not a symlink.
7325         (utimens): Reduce redirection.
7326         * tests/test-lutimens.h (test_lutimens): Update test to cover
7327         non-symlinks.
7328         * tests/test-utimens.h (test_utimens): Update test to cover
7329         symlinks.
7330         * tests/test-utimens.c (main): Update caller.
7331
7332         utimens: cache whether utimensat syscall works
7333         * lib/utimens.c (utimensat_works_really): New cache variable.
7334         (fdutimens, lutimens): Use it to avoid failing syscall.
7335
7336         test-stat-time, test-utimens: improve portability
7337         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
7338         ext4 on alpha, and for cygwin.
7339         * tests/test-utimens-common.h: New file.
7340         (nap): Factor delays into single function.
7341         * tests/test-lutimens.h (test_lutimens): Use new header.
7342         * tests/test-futimens.h (test_futimens): Likewise.
7343         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
7344         timestamps to occur from same machine, as was done previously for
7345         test_utimens.
7346         * modules/utimens-tests (Files): Ship new file.
7347         * modules/futimens-tests (Files): Likewise.
7348         Reported in part by Jim Meyering.
7349
7350         sys_stat: sort replacement declarations
7351         * lib/sys_stat.in.h: Sort declarations.
7352         * lib/futimens.c (futimens): Fix typo.
7353
7354 2009-10-15  Jim Meyering  <meyering@redhat.com>
7355
7356         don't let environment settings perturb build
7357         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
7358         could cause a configure-time and/or build-time malfunction.
7359         Typically, a configure-time function-in-library test is performed
7360         via code like this:
7361
7362           LIB_VAR=
7363           AC_SUBST([LIB_VAR])
7364           prefix_saved_LIBS=$LIBS
7365             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
7366                        [test "$ac_cv_search_FUNC" = "none required" ||
7367                         LIB_VAR=$ac_cv_search_FUNC])
7368           LIBS=$prefix_saved_LIBS
7369
7370         However, in each of the files affected by this change, the LIB_VAR=
7371         initialization was omitted.  Thus, when set in the environment, its
7372         value would propagate into generated Makefiles when FUNC is not found
7373         in LIB_NAME.
7374         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
7375         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7376         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7377
7378 2009-10-14  Eric Blake  <ebb9@byu.net>
7379
7380         fchdir: avoid infinite recursion in mingw
7381         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
7382         recursing.
7383
7384         test-stat-time: port to mingw
7385         * tests/test-stat-time.c (force_unlink): Return a value.
7386         (test_ctime) [W32]: Fix compilation error.
7387         (nap): Don't call usleep with too large an argument.  Use
7388         force_unlink.
7389         * doc/pastposix-functions/usleep.texi (usleep): Document the
7390         portability issue.
7391
7392 2009-10-13  Jim Meyering  <meyering@redhat.com>
7393
7394         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
7395         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
7396         * modules/pipe-filter-ii: Likewise.
7397         * modules/sys_socket-tests: Likewise.
7398         * modules/tsearch-tests: Likewise.
7399         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
7400         (check): Depend on it.
7401
7402 2009-10-12  Eric Blake  <ebb9@byu.net>
7403
7404         utimens-tests: port to NFS file systems
7405         * tests/test-utimens.h (test_utimens): Refactor utimecmp
7406         comparisons to avoid spurious failures from timestamp drift
7407         between NFS machines.
7408
7409 2009-10-12  Eric Blake  <ebb9@byu.net>
7410
7411         stat-time-tests: minor cleanups
7412         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
7413         * tests/test-stat-time.c (nap): Separate assignment from call.
7414         Suggested by Paolo Bonzini and Bruno Haible.
7415
7416         sys_stat: guarantee struct timespec
7417         * lib/sys_stat.in.h (includes): Always include <time.h>
7418         * modules/sys_stat (Depends-on): Add time.
7419         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
7420         mode_t permission values.
7421         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
7422         get at subsecond timestamps.
7423
7424 2009-10-10  Eric Blake  <ebb9@byu.net>
7425
7426         futimens: new module
7427         * modules/futimens: New file.
7428         * lib/futimens.c (futimens): Likewise.
7429         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
7430         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
7431         we can work around Linux bugs.
7432         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7433         * modules/sys_stat (Makefile.am): Substitute them.
7434         * lib/sys_stat.in.h (futimens): Declare it.
7435         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7436         * doc/posix-functions/futimens.texi (futimens): Likewise.
7437         * modules/futimens-tests: New test.
7438         * tests/test-futimens.c: Likewise.
7439
7440         utimens: introduce fdutimens
7441         * lib/utimens.h (fdutimens): New prototype.
7442         * lib/utimens.c (gl_futimens): Move guts...
7443         (fdutimens): ...to new interface.
7444         * tests/test-utimens.c (do_fdutimens): Use it.
7445
7446         utimens: add UTIME_NOW and UTIME_OMIT support
7447         * lib/utimens.c (validate_timespec, update_timespec): New helper
7448         functions.
7449         (gl_futimens, lutimens): Use them.
7450         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
7451         stdbool, sys_stat.
7452         (Link): Mention resulting library dependency.
7453         * modules/utimecmp (Link): Likewise.
7454         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
7455         (Makefile.am): Pick up library dependency.
7456         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
7457         definition.
7458         * tests/test-sys_stat.c: Test the definitions.
7459         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
7460         * NEWS: Document library dependency.
7461
7462         utimecmp: support symlink timestamps
7463         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
7464         hashing when possible.  Use pathconf when available.
7465         (SYSCALL_RESOLUTION): Recognize tighter resolution.
7466         * modules/utimecmp (Depends-on): Add lstat.
7467
7468         utimens: add lutimens interface
7469         * lib/utimens.c (lutimens): New function.
7470         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
7471         * lib/utimens.h (lutimens): Declare new interface.
7472         * tests/test-utimens.c (main): Enhance test.
7473         * tests/test-lutimens.h (test_lutimens): New file.
7474         * modules/utimens-tests (Files): Distribute it.
7475         (Depends-on): Add symlink.
7476         (configure.ac): Check for usleep.
7477
7478         utimens: validate futimens usage
7479         * lib/utimens.c (gl_futimens): Require valid fd up front, using
7480         fewer syscalls on failure later on.  Avoid compiler warning on
7481         mingw.
7482         * modules/utimens (Depends-on): Add dup2.
7483
7484         utimens: add test
7485         * modules/utimens-tests: New test.
7486         * tests/test-utimens.h: New file.
7487         * tests/test-futimens.h: Likewise.
7488         * tests/test-utimens.c: Likewise.
7489
7490         doc: mention timestamp portability issues
7491         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
7492         instead.
7493         * doc/posix-functions/utime.texi (utime): Likewise.
7494         * doc/posix-functions/utimes.texi (utimes): Likewise.
7495         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
7496         instead.
7497         * doc/posix-functions/futimens.texi (futimens): Mention utimens
7498         module.
7499         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7500         Mention weakness with symlink timestamps.
7501         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
7502         to utimensat/futimens instead.
7503         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
7504
7505         test-dup2: enhance test
7506         * tests/test-dup2.c (main): Also check AT_FDCWD.
7507
7508         test-stat-time: avoid more spurious failures
7509         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
7510         xfs; and avoid race if the two timestamps cross quantization edge.
7511
7512         relocatable: prefer 'file system' over 'filesystem'
7513         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
7514         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
7515         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
7516         * doc/relocatable.texi (Enabling Relocatability): Likewise.
7517         * lib/relocatable.c (compute_curr_prefix): Likewise.
7518
7519 2009-10-10  Jim Meyering  <meyering@redhat.com>
7520
7521         stat-time-tests: check for the usleep function
7522         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
7523
7524 2009-10-10  Bruno Haible  <bruno@clisp.org>
7525
7526         * modules/xnanosleep: Put the Link section after the Include section.
7527
7528 2009-10-09  Eric Blake  <ebb9@byu.net>
7529
7530         dup2: work around FreeBSD 6.1 bug
7531         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
7532         * doc/posix-functions/dup2.texi (dup2): Document it.
7533         Reported by Nelson H. F. Beebe and Jim Meyering.
7534
7535         test-stat-time: port to buggy NFS clients
7536         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
7537         (test_ctime): Also skip test if mtime and ctime are skewed.
7538
7539         maint: prefer 'file system' over 'filesystem'
7540         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
7541         * doc/posix-functions/lstat.texi (lstat): Likewise.
7542         * lib/file-has-acl.c (file_has_acl): Likewise.
7543         * lib/fwriteerror.c [TEST]: Likewise.
7544         * tests/test-areadlink.h (test_areadlink): Likewise.
7545         * tests/test-areadlinkat-with-size.c (main): Likewise.
7546         * tests/test-areadlinkat.c (main): Likewise.
7547         * tests/test-canonicalize-lgpl.c (main): Likewise.
7548         * tests/test-canonicalize.c (main): Likewise.
7549         * tests/test-fstatat.c (main): Likewise.
7550         * tests/test-linkat.c (main): Likewise.
7551         * tests/test-lstat.h (test_lstat_func): Likewise.
7552         * tests/test-mkdir.h (test_mkdir): Likewise.
7553         * tests/test-readlink.h (test_readlink): Likewise.
7554         * tests/test-remove.c (main): Likewise.
7555         * tests/test-rename.h (test_rename): Likewise.
7556         * tests/test-renameat.c (main): Likewise.
7557         * tests/test-rmdir.h (test_rmdir_func): Likewise.
7558         * tests/test-symlink.h (test_symlink): Likewise.
7559         * tests/test-symlinkat.c (main): Likewise.
7560         * tests/test-unlink.h (test_unlink_func): Likewise.
7561         * tests/test-unlinkat.c (main): Likewise.
7562
7563         maint: make realtime library usage explicit
7564         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
7565         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
7566         * modules/settime (Link): Likewise.
7567         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
7568
7569         test-stat-time: speed up execution
7570         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
7571         warning on mingw.
7572         (nap): New helper function.
7573         (prepare_test): Use it to reduce sleep time.
7574         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
7575         execution.
7576         * modules/stat-time-tests (configure.ac): Check for usleep.
7577
7578 2009-10-09  Jim Meyering  <meyering@redhat.com>
7579
7580         selinux-h: always use getfilecon wrappers
7581         * lib/getfilecon.c: New file.
7582         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
7583         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
7584         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
7585         (fgetfilecon): Provide a stub.
7586         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
7587         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
7588         file unconditionally.
7589         When <selinux/selinux.h> is found, arrange to use wrappers.
7590         * modules/selinux-h (Files): Add getfilecon.c.
7591         (Makefile.am): Substitute include-next-related bits
7592         into the now-always-generated selinux/selinux.h file.
7593         * doc/glibc-functions/lgetfilecon.texi: New file.
7594         * doc/glibc-functions/fgetfilecon.texi: New file.
7595         * doc/glibc-functions/getfilecon.texi: New file.
7596         * doc/glibc-functions/getfilecon-desc.texi: New file.
7597         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
7598         which to pull in the new files.
7599         * MODULES.html.sh (Misc): Add selinux-h.
7600
7601 2009-10-08  Jim Meyering  <meyering@redhat.com>
7602
7603         unistd: fix comment typo
7604         * lib/unistd.in.h (euidaccess): Fix a comment typo.
7605
7606 2009-10-08  Eric Blake  <ebb9@byu.net>
7607
7608         areadlink: use SIZE_MAX consistently
7609         * modules/areadlink (Depends-on): Add stdint.
7610         * modules/areadlink-with-size (Depends-on): Likewise.
7611         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
7612         gives NULL; drop sys/types, since unistd gives size_t; and add
7613         stdint for SIZE_MAX.
7614         (SIZE_MAX): Rely on headers.
7615         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
7616         and add stdint.
7617         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
7618         (SIZE_MAX): Likewise.
7619         (INITIAL_BUF_SIZE): Turn into enum.
7620         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
7621
7622 2009-10-08  Jim Meyering  <meyering@redhat.com>
7623
7624         areadlinkat: avoid compilation failure
7625         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
7626         Fix typo in comment.
7627
7628 2009-10-07  Eric Blake  <ebb9@byu.net>
7629
7630         areadlinkat-with-size: new module
7631         * modules/areadlinkat-with-size: New module.
7632         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
7633         * lib/areadlink.h (areadlinkat): Declare it.
7634         * MODULES.html.sh (File system functions): Mention it.
7635         * modules/areadlinkat-with-size-tests: New test.
7636         * tests/test-areadlinkat-with-size.c: New file.
7637
7638         xreadlinkat: new module
7639         * modules/xreadlinkat: New module.
7640         * lib/xreadlinkat.c (xreadlinkat): New file.
7641         * lib/xreadlink.h (xreadlinkat): Declare it.
7642         * MODULES.html.sh (File system functions): Mention it.
7643
7644         areadlinkat: new module
7645         * lib/at-func.c (FUNC_FAIL): New define.
7646         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
7647         * modules/areadlinkat: New module.
7648         * lib/linkat.c (areadlinkat): Move...
7649         * lib/areadlinkat.c (areadlinkat): ...to new file.
7650         * lib/areadlink.h (areadlinkat): Declare it.
7651         * modules/linkat (Depends-on): Add areadlinkat.
7652         * MODULES.html.sh (File system functions): Mention it.
7653         * modules/areadlinkat-tests: New test.
7654         * tests/test-areadlinkat.c: New file.
7655
7656         areadlink, areadlink-with-size: add tests
7657         * modules/areadlink-tests: New test.
7658         * modules/areadlink-with-size-tests: Likewise.
7659         * tests/test-areadlink.h: New file.
7660         * tests/test-areadlink.c: Likewise.
7661         * tests/test-areadlink-with-size.c: Likewise.
7662
7663         maint: minor cleanups
7664         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
7665         _UNUSED_PARAMETER_ instead.
7666         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
7667         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
7668         * modules/linkat-tests (Files): Distribute test-link.h.
7669
7670         openat, utimens: whitespace cleanup
7671         * lib/openat.c: Prefer space throughout, rather than mix of 8
7672         spaces vs. tabs.
7673         * lib/at-func.c: Likewise.
7674         * lib/utimens.c: Likewise.
7675
7676         openat: avoid using wrong fd
7677         * lib/openat.c (openat_permissive): Reject user's fd if saving the
7678         working directory chooses same fd.
7679         * lib/at-func.c (AT_FUNC_NAME): Likewise.
7680
7681         mkdir, mkdirat: fix cygwin 1.5.x bug
7682         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
7683         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
7684         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
7685         bug.
7686         (gl_PREREQ_MKDIR): Delete unused macro.
7687         * modules/mkdir (Files): Track file rename.
7688         (configure.ac): Update macro name.
7689         * modules/openat (Depends-on): Add mkdir.
7690         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
7691
7692         mkdir, mkdirat: add tests
7693         * modules/mkdir-tests: New test.
7694         * tests/test-mkdir.h: New file.
7695         * tests/test-mkdir.c: Likewise.
7696         * tests/test-mkdirat.c: Likewise.
7697         * modules/openat-tests (Files): Add new files.
7698         (Makefile.am): Run new test.
7699
7700 2009-10-06  Eric Blake  <ebb9@byu.net>
7701
7702         doc: tweak *at function documentation
7703         * doc/posix-functions/faccessat.texi (faccessat): Mention
7704         known issue with replacement.
7705         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
7706         * doc/posix-functions/linkat.texi (linkat): Likewise.
7707         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
7708         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
7709         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7710         * doc/posix-functions/renameat.texi (renameat): Likewise.
7711         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
7712
7713         openat: fix GNU/Hurd bug in unlinkat
7714         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
7715         broken.
7716         * doc/posix-functions/unlink.texi (unlink): Document this.
7717         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
7718
7719         fdopendir: fix GNU/Hurd bug
7720         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
7721         allowing non-directory fds.
7722         * lib/fdopendir.c (rpl_fdopendir): Work around it.
7723         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
7724         * modules/dirent (Makefile.am): Substitute it.
7725         * lib/dirent.in.h (fdopendir): Declare replacement.
7726         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
7727         * tests/test-fdopendir.c (main): Test something other than
7728         /dev/null, since on Hurd that behaves like a directory.
7729
7730         test-symlink: port to GNU/Hurd
7731         * tests/test-symlink.h (test_symlink): Relax expected errno.
7732
7733         doc: tweak more cygwin information
7734         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
7735         now compatible with glibc.
7736         * doc/posix-functions/getopt.texi (getopt): Likewise.
7737
7738         getopt-gnu: add another test
7739         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
7740         guarantee behavior relied on by m4.
7741         * tests/test-getopt.c (main): Use it.
7742         * modules/getopt-posix-tests (Depends-on): Add setenv.
7743         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
7744
7745         getopt: fix compilation on darwin
7746         * lib/getopt.in.h (includes): Leave breadcrumbs during system
7747         include.
7748         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
7749         Reported by Ludovic Courtès.
7750
7751 2009-10-06  Bruno Haible  <bruno@clisp.org>
7752
7753         * modules/size_max (Description): Discourage its use.
7754         Reported by Simon Josefsson.
7755
7756 2009-10-06  Jim Meyering  <meyering@redhat.com>
7757
7758         linkat: avoid compilation failure
7759         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
7760
7761 2009-10-05  Eric Blake  <ebb9@byu.net>
7762
7763         linkat: support Linux 2.6.17
7764         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
7765         linkat on Linux, but allow cache variable override.
7766         * lib/linkat.c (rpl_linkat): Define override.
7767         * modules/linkat (Depends-on): Add symlinkat.
7768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
7769         * modules/unistd (Makefile.am): Substitute it.
7770         * lib/unistd.in.h (linkat): Declare replacement.
7771         Reported by Pádraig Brady.
7772
7773         quotearg: port test to systems with C.UTF-8 locale
7774         * tests/test-quotearg.c (struct result_strings): Add another
7775         member, differentiating between C.ASCII and C.UTF-8 handling.
7776         (compare_strings): Add parameter.
7777         (main): Adjust all callers.
7778
7779         getopt: avoid clash with FreeBSD _getopt_internal
7780         * lib/getopt.in.h (_getopt_internal): Override the name.
7781         * lib/getopt_int.h (includes): Pick up any overrides.
7782         Reported by Reuben Thomas.
7783
7784         hash: allow C89 compilation
7785         * lib/hash.c (check_tuning): Move declaration before statement.
7786         Reported by Reuben Thomas.
7787
7788 2009-10-05  Karl Berry  <karl@gnu.org>
7789
7790         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
7791
7792 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
7793             Bruno Haible  <bruno@clisp.org>
7794
7795         * lib/uname.c (uname): Use a table-driven algorithm to compute
7796         Windows NT versions.
7797
7798 2009-10-04  Bruno Haible  <bruno@clisp.org>
7799
7800         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
7801         program_invocation_short_name.
7802         * modules/progname (configure.ac): Test for presence of
7803         program_invocation_short_name.
7804         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
7805
7806 2009-10-04  Bruno Haible  <bruno@clisp.org>
7807
7808         * lib/progname.c (set_program_name): Fix comment.
7809         Reported by Jim Meyering.
7810
7811 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
7812             Bruno Haible  <bruno@clisp.org>
7813
7814         * lib/uname.c: Include <string.h>.
7815         (uname): Do only one call to GetVersionEx in the common case.
7816
7817 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
7818             Bruno Haible  <bruno@clisp.org>
7819
7820         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
7821         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
7822         (uname): Add support for Windows CE and various non-x86 CPU types.
7823
7824 2009-10-03  Bruno Haible  <bruno@clisp.org>
7825
7826         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
7827         invocation to tests/configure.ac.
7828         Reported by Ian Beckwith <ianb@erislabs.net>.
7829
7830 2009-10-02  Eric Blake  <ebb9@byu.net>
7831
7832         fchdir: avoid compiler warning
7833         * lib/fchdir.c (canonicalize_file_name)
7834         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
7835
7836         test-open: support mingw errno values
7837         * tests/test-open.h (test_open): Relax test.
7838         * tests/test-fopen.h (test_fopen): Likewise.
7839         * tests/test-openat-safer.c (main): Likewise.
7840
7841         open: fix opening directory on mingw
7842         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
7843
7844         test-open: on GNU/Hurd, /dev/null is a directory
7845         * tests/test-fopen.h (main): Rename...
7846         (test_fopen): ...to this.  Use a guaranteed non-directory when
7847         confirming open behavior on trailing slash.
7848         * tests/test-openat-safer.c (main): Likewise.
7849         * tests/test-open.h (main): Likewise....
7850         (test_open): ...to this.
7851         * tests/test-fopen.c (main): Adjust caller.
7852         * tests/test-fopen-safer.c (main): Likewise.
7853         * tests/test-open.c (main): Likewise.
7854         * tests/test-fcntl-safer.c (main): Likewise.
7855         Reported by Samuel Thibault.
7856
7857         rename, fchdir: don't ignore chdir failure
7858         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
7859         * lib/rename.c (rpl_rename) [W32]: Likewise.
7860         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
7861         an empty destination directory if source cannot be renamed,
7862         although there is still possibility for failure.
7863         * doc/posix-functions/rename.texi (rename): Document the race.
7864         Reported by Jim Meyering.
7865
7866         maint: cleanup whitespace in recent commits
7867         * lib/rename.c (rpl_rename): Remove tabs.
7868         * tests/test-link.h (test_link): Likewise.
7869         * lib/fchdir.c (get_name): Likewise.
7870         Reported by Jim Meyering.
7871
7872 2009-10-02  Ben Pfaff  <blp@gnu.org>
7873
7874         relocatable-prog-wrapper: Add missing dependency on
7875         double-slash-root.
7876         * modules/relocatable-prog-wrapper: Add dependency.
7877         Reported by Ian Beckwith <ianb@erislabs.net>.
7878
7879 2009-10-02  Eric Blake  <ebb9@byu.net>
7880
7881         renameat: fix Solaris bugs
7882         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
7883         needed fixing.
7884         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
7885         * modules/stdio (Makefile.am): Substitute it.
7886         * lib/stdio.in.h (renameat): Declare replacement.
7887         * lib/renameat.c (rpl_renameat): Implement fix.
7888
7889         renameat: new module
7890         * modules/renameat: New file.
7891         * lib/renameat.c (renameat): Likewise.
7892         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
7893         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
7894         * modules/stdio (Makefile.am): Substitute them.
7895         * lib/stdio.in.h (renameat): Declare it.
7896         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7897         * doc/posix-functions/renameat.texi (renameat): Likewise.
7898         * modules/renameat-tests: New test.
7899         * tests/test-renameat.c: Likewise.
7900
7901         rename: fix mingw bugs
7902         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
7903         directory overwrite bugs.
7904
7905         rename: fix another cygwin 1.5 bug
7906         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
7907         checks.
7908         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
7909         unnecessary cygwin workarounds.  Also work around bug with moving
7910         full directory onto an empty one.
7911         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
7912
7913         rename-dest-slash: merge into rename module
7914         * modules/rename-dest-slash (Status): Mark obsolete.
7915         (Depends-on): Add rename.
7916         (Files): Let rename do it all.
7917         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
7918         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
7919         * m4/rename-dest-slash.m4: ...so this file can be deleted.
7920         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
7921         * lib/rename.c (rpl_rename): Update comments.
7922
7923         rename: fix cygwin 1.5.x bugs
7924         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
7925         * lib/rename.c (rpl_rename): Work around them.
7926         * modules/rename (Depends-on): Add same-inode.
7927
7928         rename: fix Solaris 10 bug
7929         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
7930         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
7931         was the only bug.
7932
7933         rename: fix Solaris 9 bug
7934         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
7935         on non-directory.  Avoid calling exit.
7936         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
7937         strdup.
7938         * modules/rename-tests (Depends-on): Drop lstat.
7939         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
7940         (gl_PREREQ_RENAME): Delete unused macro.
7941
7942         rename-dest-slash: fix NetBSD bug
7943         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
7944         links.
7945         * modules/rename-dest-slash (Depends-on): Add same-inode.
7946
7947         rename-tests: new test, exposes several platform bugs
7948         * modules/rename-tests: New file.
7949         * tests/test-rename.h: Likewise.
7950         * tests/test-rename.c: Likewise.
7951         * doc/posix-functions/rename.texi (rename): Improve documentation,
7952         including bugs that will eventually be fixed in gnulib.
7953
7954 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
7955
7956         * lib/uname.c: Include <stdlib.h>
7957         (uname): Assume version info is available.
7958
7959 2009-10-02  Jim Meyering  <meyering@redhat.com>
7960
7961         gnu-web-doc-update: correct --help output
7962         * build-aux/gnu-web-doc-update: Make --help output relevant.
7963
7964         gnu-web-doc-update: add standard options
7965         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
7966
7967         gnu-web-doc-update: New module.
7968         Use this script to automatically update the on-line web documentation
7969         for your GNU project at http://www.gnu.org/software/$pkg/manual/
7970         * modules/gnu-web-doc-update: New file, from coreutils.
7971         * build-aux/gnu-web-doc-update: New script.
7972
7973 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
7974
7975         link: LoadLibrary is not needed.
7976         * lib/link.c: Use GetModuleHandle.
7977
7978 2009-10-01  Eric Blake  <ebb9@byu.net>
7979
7980         getopt: bump serial number
7981         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
7982         change.
7983
7984         tests: tighten link, rmdir, and remove tests
7985         * tests/test-link.h (includes): No need to use <config.h> here.
7986         Clean up if directory hard link was created, otherwise test for
7987         trailing '.'.
7988         * tests/test-linkat.c (main): Simplify.
7989         * tests/test-remove.c (main): Enhance test for trailing '.'.
7990         * tests/test-rmdir.h (test_rmdir_func): Likewise.
7991
7992 2009-10-01  Jim Meyering  <meyering@redhat.com>
7993
7994         maint.mk: requiring "make major" was annoying, for a "minor" release.
7995         What is intended is "stable", to contrast with alpha and beta,
7996         so require "make stable", not "make major".
7997         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
7998         (get_tool_versions): Likewise.
7999         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
8000
8001 2009-09-30  Ben Pfaff  <blp@gnu.org>
8002
8003         Fix broken build of replacement for Windows tmpfile().
8004         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
8005         flags argument added along with the 'mkostemp' module.
8006
8007 2009-09-28  Bruno Haible  <bruno@clisp.org>
8008
8009         Avoid identifier clash with POSIX function 'remove' defined as a macro.
8010         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
8011         to 'remove_elt'.
8012         (gl_list_remove): Update.
8013         * lib/gl_list.c (gl_list_remove): Update.
8014         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
8015         to 'remove_elt'.
8016         (gl_oset_remove): Update.
8017         * lib/gl_list.c (gl_oset_remove): Update.
8018         Reported by Eric Blake.
8019
8020 2009-09-28  Eric Blake  <ebb9@byu.net>
8021
8022         doc: mention yet more cygwin 1.7 status
8023         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
8024         cygwin.
8025         * doc/glibc-functions/execvpe.texi (execvpe): New file.
8026         * doc/gnulib.texi (Glibc unistd.h): Mention it.
8027
8028         argp: fix test failure
8029         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
8030         that are not upper-case.  Pass correct range to tolower.
8031
8032 2009-09-27  Jim Meyering  <meyering@redhat.com>
8033
8034         test-yesno: work around sparc-dash here-document infelicity
8035         Without this change, the literal \177 byte in a here document
8036         would make dash 0.5.5.1-3 access uninitialized memory.
8037         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
8038         Instead, use a marker, "@", and filter through tr to create the desired
8039         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
8040
8041 2009-09-27  Bruno Haible  <bruno@clisp.org>
8042
8043         Disable untested support for new flavours of ACLs on AIX.
8044         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
8045         progress.
8046         * lib/set-mode-acl.c (qset_acl): Likewise.
8047
8048 2008-12-07  Bruno Haible  <bruno@clisp.org>
8049
8050         Add support for new flavours of ACLs on AIX. (Untested.)
8051         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
8052         (file_has_acl): Add support for newer AIX.
8053         * lib/set-mode-acl.c (qset_acl): Likewise.
8054         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
8055         Rainer Tammer <tammer@tammer.net>.
8056
8057 2009-09-26  Eric Blake  <ebb9@byu.net>
8058
8059         argp: fix compilation of getopt
8060         * lib/getopt.in.h (includes): Use different guard than glibc.
8061         Reported by Sergey Poznyakoff.
8062
8063         doc: mention more cygwin 1.7 status
8064         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
8065         bug.
8066         * doc/posix-functions/execl.texi (execl): Likewise.
8067         * doc/posix-functions/execle.texi (execle): Likewise.
8068         * doc/posix-functions/execlp.texi (execlp): Likewise.
8069         * doc/posix-functions/execv.texi (execv): Likewise.
8070         * doc/posix-functions/execve.texi (execve): Likewise.
8071         * doc/posix-functions/execvp.texi (execvp): Likewise.
8072         * doc/glibc-functions/canonicalize_file_name.texi
8073         (canonicalize_file_name): Cygwin 1.7 now provides this.
8074         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
8075         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
8076         on AT_SYMLINK_NOFOLLOW.
8077
8078 2009-09-24  Eric Blake  <ebb9@byu.net>
8079
8080         test-linkat: make test more robust
8081         * tests/test-linkat.c (main): Avoid collision with EEXIST.
8082
8083         getopt: fix inclusion guards for cygwin
8084         * modules/getopt-posix (Depends-on): Add include-next.
8085         (Makefile.am): Substitute more items in replacement header.
8086         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
8087         <getopt.h>.
8088         * lib/getopt.in.h (includes): Use split inclusion guard, and
8089         prefer <getopt.h> over include <unistd.h> when one is present.
8090         (option): Also override name of 'struct option'.
8091
8092         same-inode: revert prior change; it is not yet ready
8093         * NEWS: Undo mention of this change.
8094         * lib/same-inode.h (same-inode.h): Undo tri-state change.
8095         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8096         * lib/cycle-check.c (cycle_check): Likewise.
8097         * lib/same.c (same_name): Likewise.
8098         * lib/at-func2.c (at_func2): Likewise.
8099
8100 2009-09-23  Eric Blake  <ebb9@byu.net>
8101
8102         linkat: new module
8103         * modules/linkat: New file.
8104         * lib/at-func2.c (at_func2): Likewise.
8105         * lib/linkat.c (linkat): Likewise.
8106         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8107         * lib/openat-priv.h (at_func2): Add declaration.
8108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8109         * modules/unistd (Makefile.am): Substitute them.
8110         * lib/unistd.in.h (linkat): Declare it.
8111         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8112         * doc/posix-functions/linkat.texi (linkat): Likewise.
8113         * doc/posix-functions/link.texi (link): Tweak wording.
8114         * tests/test-link.c (main): Move guts...
8115         * tests/test-link.h (test_link): ...into new file.
8116         * modules/linkat-tests: New test.
8117         * tests/test-linkat.c: Likewise.
8118         * modules/link-tests (Files): Ship new file.
8119         (Depends-on): Add stdbool.
8120
8121         dirname: add library-safe mdir_name
8122         * lib/dirname.h (mdir_name): New prototype.
8123         * lib/dirname.c (dir_name): Move guts...
8124         (mdir_name): ...to new function that avoids xalloc_die.
8125
8126         fchdir: another mingw fix
8127         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
8128         * lib/fchdir.c (get_name): New helper method; skips canonicalize
8129         on mingw (where it has not yet been ported), and make it optional
8130         elsewhere.
8131         (_gl_register_fd): Use it.
8132
8133         same-inode: make SAME_INODE tri-state, to port to mingw
8134         * NEWS: Mention this change.
8135         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
8136         st_ino always being 0.
8137         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8138         * lib/cycle-check.c (cycle_check): Likewise.
8139         * lib/same.c (same_name): Likewise.
8140
8141         lstat: avoid mingw compilation error
8142         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
8143         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
8144         lstat ourselves.
8145         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
8146         was adequate.
8147         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
8148         the checks for lstat.
8149         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
8150
8151         link: fix test failure on Solaris 9
8152         * lib/link.c (rpl_link): Don't assume link will catch bogus
8153         trailing slash on source.
8154
8155         test-symlinkat: enhance test
8156         * tests/test-readlink.c (main): Move guts...
8157         * tests/test-readlink.h (test_readlink): ...into new file.
8158         * tests/test-symlink.c (main): Move guts...
8159         * tests/test-symlink.h (test_symlink): ...into new file.
8160         * tests/test-symlinkat.c (main): Use new files for further
8161         coverage.
8162         (do_symlink, do_readlink): New helper functions.
8163         * modules/symlink-tests (Files): Ship new file.
8164         (Depends-on): Add stdbool.
8165         * modules/readlink-tests (Files): Ship new file.
8166         (Depends-on): Add stdbool.
8167         * modules/symlinkat-tests (Files): Use new files.
8168
8169 2009-09-23  Eric Blake  <ebb9@byu.net>
8170
8171         readlink: document portability issue with symlink length
8172         * doc/posix-functions/lstat.texi (lstat): Mention that some file
8173         systems have bogus st_size on symlinks, and mention the
8174         areadlink-with-size module.
8175         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8176         * doc/posix-functions/readlink.texi (readlink): Mention the
8177         areadlink module, and ERANGE failure.
8178         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8179         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
8180
8181         readlink: fix Solaris 9 bug with trailing slash
8182         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
8183         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
8184         * doc/posix-functions/readlink.texi (readlink): Document this.
8185         * modules/readlink-tests: New test.
8186         * tests/test-readlink.c: Likewise.
8187
8188         readlink: fix cygwin 1.5.x bug with return type
8189         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
8190         * lib/unistd.in.h (readlink): Use ssize_t.
8191         * lib/readlink.c (readlink): Likewise.
8192         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8193         * modules/unistd (Makefile.am): Substitute it.
8194         * lib/unistd.in.h (readlink): Declare replacement.
8195         * doc/posix-functions/readlink.texi (readlink): Document this.
8196
8197         symlink: use throughout gnulib
8198         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
8199         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
8200         symlink is not used.
8201         * modules/symlinkat (Depends-on): Add symlink.
8202         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8203         * modules/canonicalize-tests (Depends-on): Likewise.
8204         * modules/lstat-tests (Depends-on): Likewise.
8205         * modules/openat-tests (Depends-on): Likewise.
8206         * modules/remove-tests (Depends-on): Likewise.
8207         * modules/rmdir-tests (Depends-on): Likewise.
8208         * modules/unlink-tests (Depends-on): Likewise.
8209         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
8210         * tests/test-canonicalize.c (symlink): Likewise.
8211         * tests/test-fstatat.c (symlink): Likewise.
8212         * tests/test-lstat.c (symlink): Likewise.
8213         * tests/test-remove.c (symlink): Likewise.
8214         * tests/test-rmdir.c (symlink): Likewise.
8215         * tests/test-unlink.c (symlink): Likewise.
8216         * tests/test-unlinkat.c (symlink): Likewise.
8217
8218         symlink: new module, for Solaris 9 bug
8219         * modules/symlink: New file.
8220         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8221         * lib/symlink.c: Likewise.
8222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8223         * modules/unistd (Makefile.am): Substitute them.
8224         * lib/unistd.in.h (symlink): Declare replacement.
8225         * MODULES.html.sh (File system functions): Mention it.
8226         * doc/posix-functions/symlink.texi (symlink): Likewise.
8227         * modules/symlink-tests: New test.
8228         * tests/test-symlink.c: Likewise.
8229
8230 2009-09-23  Bruno Haible  <bruno@clisp.org>
8231
8232         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
8233         when needed.
8234         Test case: gnulib-tool --import --with-tests atexit inttypes.
8235         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
8236
8237 2009-09-23  Bruno Haible  <bruno@clisp.org>
8238
8239         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
8240         subcommand, not in a subshell.
8241
8242 2009-09-22  Eric Blake  <ebb9@byu.net>
8243
8244         unistd: sort replacement declarations
8245         * lib/unistd.in.h: Sort declarations.
8246
8247         open, openat: minor optimization
8248         * lib/open.c (open): If open succeeded, len is non-zero.
8249         * lib/openat.c (rpl_openat): Likewise.
8250
8251         link-follow: ensure correct result
8252         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
8253         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
8254         distinguish between possible failures.
8255
8256 2009-09-21  Eric Blake  <ebb9@byu.net>
8257
8258         fts: avoid compiler warning
8259         * lib/fts.c (dirent_inode_sort_may_be_useful)
8260         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
8261
8262 2009-09-19  Bruno Haible  <bruno@clisp.org>
8263
8264         * lib/progreloc.c (canonicalize_file_name): New declaration.
8265
8266 2009-09-19  Eric Blake  <ebb9@byu.net>
8267
8268         link: fix quoting
8269         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
8270
8271         openat: fix openat bugs on Solaris 9
8272         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
8273         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
8274         * modules/openat (Depends-on): Add open.
8275         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
8276         * modules/fcntl-h (Makefile.am): Substitute it.
8277         * lib/fcntl.in.h (openat): Declare replacement.
8278         * doc/posix-functions/openat.texi (openat): Document this.
8279
8280         openat: move fstatat and unlinkat into correct files
8281         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
8282         compiled.
8283         * lib/openat.c (fstatat, unlinkat): Move...
8284         * lib/fstatat.c (fstatat): ...into correct files.
8285         * lib/unlinkat.c (unlinkat): Likewise.
8286
8287         openat: fix unlinkat bugs on Solaris 9
8288         * lib/unlinkat.c (unlinkat): New file.
8289         * modules/openat (Depends-on): Add unlink.
8290         (Files): Distribute it.
8291         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
8292         trailing slash behavior is broken.
8293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8294         * modules/unistd (Makefile.am): Substitute it.
8295         * lib/unistd.in.h (unlinkat): Declare replacement.
8296         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
8297
8298         openat: fix fstatat bugs on Solaris 9
8299         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
8300         stat.
8301         * doc/posix-functions/fstatat.texi (fstatat): Document this.
8302
8303         test-unlinkat: enhance test, to expose Solaris 9 bug
8304         * tests/test-unlink.c (main): Factor guts...
8305         * tests/test-unlink.h (test_rmdir_func): ...into new file.
8306         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
8307         * tests/test-rmdir.c (main): Adjust caller.
8308         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
8309         (unlinker): New helper function.
8310         (rmdirat): Enhance check.
8311         * modules/rmdir-tests (Depends-on): Add stdbool.
8312         * modules/unlink-tests (Depends-on): Likewise.
8313         (Files): Add test-unlink.h.
8314         * modules/openat-tests (Files): Likewise.
8315         (Depends-on): Add unlinkdir.
8316
8317         test-fstatat: new test, to expose Solaris 9 bugs
8318         * tests/test-stat.c (main): Factor guts...
8319         * tests/test-stat.h (test_stat_func): ...into new file.
8320         * tests/test-lstat.c (main): Factor guts...
8321         * tests/test-lstat.h (test_lstat_func): ...into new file.
8322         * tests/test-fstatat.c: New file.
8323         * modules/stat-tests (Files): Add test-stat.h.
8324         * modules/lstat-tests (Files): Add test-lstat.h.
8325         (Depends-on): Add stdbool.
8326         * modules/openat-tests (Depends-on): Add pathmax.
8327         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
8328         (Makefile.am): Run new test.
8329
8330         remove: new module, for mingw and Solaris 9 bugs
8331         * modules/remove: New file.
8332         * lib/remove.c: Likewise.
8333         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
8334         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8335         * modules/stdio (Makefile.am): Use them.
8336         * lib/stdio.in.h (remove): Declare replacement.
8337         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8338         * doc/posix-functions/remove.texi (remove): Likewise.
8339         * modules/remove-tests: New test.
8340         * tests/test-remove.c: Likewise.
8341
8342         unlink: new module, for Solaris 9 bug
8343         * modules/unlink: New file.
8344         * lib/unlink.c: Likewise.
8345         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8347         * modules/unistd (Makefile.am): Use them.
8348         * lib/unistd.in.h (stat): Declare replacement.
8349         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8350         * doc/posix-functions/unlink.texi (unlink): Likewise.
8351         * modules/unlink-tests: New test.
8352         * tests/test-unlink.c: Likewise.
8353
8354         lstat: fix Solaris 9 bug
8355         * lib/lstat.c (lstat): Also check for trailing slash on
8356         non-symlink, non-directories.  Use stat module to simplify logic.
8357         * doc/posix-functions/lstat.texi (lstat): Document it.
8358         * modules/lstat-tests (Depends-on): Add errno, same-inode.
8359         (configure.ac): Check for symlink.
8360         * tests/test-lstat.c (main): Add more tests.
8361
8362         stat: add as dependency to other modules
8363         * modules/chown (Depends-on): Add stat.
8364         * modules/euidaccess (Depends-on): Likewise.
8365         * modules/fchdir (Depends-on): Likewise.
8366         * modules/isdir (Depends-on): Likewise.
8367         * modules/link (Depends-on): Likewise.
8368         * modules/lstat (Depends-on): Likewise.
8369         * modules/mkdir-p (Depends-on): Likewise.
8370         * modules/modechange (Depends-on): Likewise.
8371         * modules/open (Depends-on): Likewise.
8372         * modules/readlink (Depends-on): Likewise.
8373         * modules/same (Depends-on): Likewise.
8374
8375         stat: fix Solaris 9 bug
8376         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
8377         slash.
8378         * lib/stat.c (rpl_stat): Work around it.
8379         * doc/posix-functions/stat.texi (stat): Update documentation.
8380
8381         stat: new module, for mingw bug
8382         * modules/stat: New file.
8383         * lib/stat.c: Likewise.
8384         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8385         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8386         * modules/sys_stat (Makefile.am): Use them.
8387         * lib/sys_stat.in.h (stat): Declare replacement.
8388         * lib/openat.c (fstatat): Deal with lstat and stat being function
8389         macros.
8390         * modules/openat (Depends-on): Add inline.
8391         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8392         * doc/posix-functions/stat.texi (stat): Likewise.
8393         * modules/stat-tests: New test.
8394         * tests/test-stat.c: Likewise.
8395
8396 2009-09-19  Jim Meyering  <meyering@redhat.com>
8397
8398         syntax-check: detect unnecessary inclusion of canonicalize.h
8399         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
8400
8401 2009-09-19  Eric Blake  <ebb9@byu.net>
8402
8403         canonicalize-lgpl: adjust clients to use correct header
8404         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
8405         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
8406         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
8407         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
8408         * lib/progreloc.c (includes): Likewise.
8409
8410 2009-09-19  Jim Meyering  <meyering@redhat.com>
8411
8412         test-posixtm.c: correct a comment
8413         * tests/test-posixtm.c: Correct first-line comment.
8414         Spotted by Eric Blake.
8415
8416 2009-09-16  Jim Meyering  <meyering@redhat.com>
8417
8418         posixtm-tests: make T const-correct; add a test case
8419         * tests/test-posixtm.c (T): Declare const.
8420         Add a test for -(2^31+1).
8421         Remove useless can-succeed-only-in-2002 test.
8422
8423         posixtm-tests: adjust the sole failing test
8424         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
8425         expected output matches what mktime now produces.  Cross-checked via
8426         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
8427
8428         posixtm: move #ifdef'd tests into a new module
8429         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
8430         * tests/test-posixtm.c: ... this new file.
8431         * modules/posixtm-tests: New module.
8432
8433 2009-09-19  Eric Blake  <ebb9@byu.net>
8434
8435         openat: simplify use of at-func.c
8436         * lib/at-func.c (includes): Include prerequisites here, to
8437         simplify requirements on client files.
8438         * lib/openat-priv.h: Add double-inclusion guard.
8439         * lib/faccessat.c (includes): Simplify.
8440         * lib/fchmodat.c (includes): Likewise.
8441         * lib/fchownat.c (includes): Likewise.
8442         * lib/mkdirat.c (includes): Likewise.
8443         * lib/mkfifoat.c (includes): Likewise.
8444         * lib/symlinkat.c (includes): Likewise.
8445
8446         openat: allow return of fd 0
8447         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
8448         * modules/save-cwd (Depends-on): Replace fcntl-safer with
8449         unistd-safer.
8450         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
8451         <fcntl.h>; this module does not leak fds.
8452         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
8453         must be allowed to return 0, leaving openat_safer to add the
8454         safety.
8455         (openat_permissive): Avoid writing to just-opened fd 2 if
8456         restoring the current directory fails.
8457         * lib/openat-die.c (openat_restore_fail): Add comment.
8458         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
8459         (save_cwd): Guarantee safe fd, but without use of open_safer.
8460         * tests/test-openat.c: New test.
8461         * modules/openat-tests (Files, Makefile.am): Distribute and build
8462         new file.
8463
8464         relocatable-prog-wrapper: fix build
8465         * modules/relocatable-prog-wrapper (Files): Update name of
8466         canonicalize m4 file, broken on 2009-09-17.
8467         Reported by emad hajjar <aleppos@hotmail.com>.
8468
8469 2009-09-19  Bruno Haible  <bruno@clisp.org>
8470
8471         * lib/safe-alloc.h: Use the standard header with GPL copyright.
8472         * lib/safe-alloc.c: Likewise.
8473         Reported by Ian Beckwith <ianb@erislabs.net>.
8474
8475 2009-09-18  Bruno Haible  <bruno@clisp.org>
8476
8477         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
8478         Reported by <erobles@sensacd.com.mx>.
8479
8480 2009-09-17  Eric Blake  <ebb9@byu.net>
8481
8482         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
8483         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
8484         slashes when checking if last component is missing.
8485         * tests/test-canonicalize.c (main): Test this.
8486
8487         canonicalize, canonicalize-lgpl: honor // if distinct from /
8488         * modules/canonicalize (Files): Add double-slash-root.m4.
8489         * modules/canonicalize-lgpl (Files): Likewise.
8490         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
8491         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
8492         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
8493         fallback definition.
8494         (canonicalize_filename_mode): Use it to protect //.
8495         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
8496         (__realpath): Likewise.
8497         * tests/test-canonicalize.c (main): Test this.
8498         * tests/test-canonicalize-lgpl.c (main): Likewise.
8499         * modules/canonicalize-tests (Depends-on): Add same-inode.
8500         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8501
8502         canonicalize-lgpl: fix glibc bug with trailing slash
8503         * m4/canonicalize-lgpl.m4: Move contents...
8504         * m4/canonicalize.m4: ...here.
8505         (gl_CANONICALIZE_LGPL): Factor realpath check...
8506         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
8507         glibc 2.3.5 bug, fixed 2005-04-27.
8508         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
8509         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
8510         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
8511         * modules/canonicalize-lgpl (Files): Manage file rename.
8512         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
8513         * modules/stdlib (Makefile.am): Substitute witness.
8514         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
8515         is needed.
8516         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
8517         replacement is required.
8518         * lib/canonicalize.c (canonicalize_file_name): Likewise.
8519         * doc/glibc-functions/canonicalize_file_name.texi
8520         (canonicalize_file_name): Document this.
8521         * doc/posix-functions/realpath.texi (realpath): Likewise.
8522
8523         canonicalize-lgpl: reject non-directory with trailing slash
8524         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
8525         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
8526         catches failures in glibc 2.3.5.
8527         * tests/test-canonicalize.c (main): Likewise.
8528
8529         canonicalize-lgpl: use native realpath if it works
8530         * lib/canonicalize-lgpl.c (realpath): Guard with
8531         FUNC_REALPATH_WORKS.
8532         * lib/stdlib.in.h (realpath): Make declaration optional based on
8533         HAVE_REALPATH.
8534         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
8535         native realpath works.
8536         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
8537         * modules/stdlib (Makefile.am): Substitute witness.
8538
8539         canonicalize, canonicalize-lgpl: use <stdlib.h>
8540         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
8541         (Include): Mention <stdlib.h>.
8542         (configure.ac): Mention functions we provide.
8543         * modules/canonicalize (configure.ac): Likewise.
8544         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
8545         realpath if canonicalize_file_name is missing.
8546         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
8547         * modules/stdlib (Makefile.am): Substitute witnesses.
8548         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
8549         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
8550         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
8551         * NEWS: Document this.
8552         * doc/glibc-functions/canonicalize_file_name.texi
8553         (canonicalize_file_name): Likewise.
8554         * doc/posix-functions/realpath.texi (realpath): Likewise.
8555         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
8556
8557         test-canonicalize: consolidate into single C program
8558         * tests/test-canonicalize.sh: Delete; move setup into...
8559         * tests/test-canonicalize.c (main): ...the program, making it
8560         easier to run in debugger.  Add some tests.
8561         * modules/canonicalize-tests (Files): Remove unused file.
8562         (Depends-on): Add progname.
8563         (configure.ac, Makefile.am): Simplify.
8564
8565         test-canonicalize-lgpl: consolidate into single C program
8566         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
8567         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
8568         easier to run in debugger.  Add some tests.
8569         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
8570         (configure.ac, Makefile.am): Simplify.
8571
8572         canonicalize: avoid resolvepath
8573         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
8574         unnecessary checks.
8575         * lib/canonicalize.c (includes): Simplify.
8576         (canonicalize_file_name): Drop resolvepath implementation.
8577         * modules/canonicalize (Depends-on): Drop filenamecat.
8578
8579         canonicalize: don't lose errno
8580         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
8581         over calls to free.
8582
8583         canonicalize: simplify errno handling
8584         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
8585         assignment.
8586
8587         canonicalize, canonicalize-lgpl: update module dependencies
8588         * modules/canonicalize (Depends-on): Add extensions, lstat,
8589         pathmax, stdlib.
8590         (Files): Drop pathmax.h.
8591         (configure.ac): Adjust macro name.
8592         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
8593         lstat, stdlib, sys_stat.
8594         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
8595         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
8596         extensions.
8597         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
8598         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
8599         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
8600         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
8601         declaration, if available.
8602         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
8603         we can rely on the readlink module.
8604         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
8605         (includes): Use <unistd.h> unconditionally.
8606
8607 2009-09-17  Eric Blake  <ebb9@byu.net>
8608
8609         maint: make Include sections of modules consistent
8610         * modules/alloca: Use only header name; no need to list #include.
8611         * modules/alloca-opt: Likewise.
8612         * modules/arpa_inet: Likewise.
8613         * modules/canon-host: Likewise.
8614         * modules/configmake: Likewise.
8615         * modules/dirent: Likewise.
8616         * modules/eealloc: Likewise.
8617         * modules/environ: Likewise.
8618         * modules/fchdir: Likewise.
8619         * modules/fcntl: Likewise.
8620         * modules/fcntl-h: Likewise.
8621         * modules/gethrxtime: Likewise.
8622         * modules/gettime: Likewise.
8623         * modules/ignore-value: Likewise.
8624         * modules/inet_ntop: Likewise.
8625         * modules/inet_pton: Likewise.
8626         * modules/inttypes: Likewise.
8627         * modules/isnand-nolibm: Likewise.
8628         * modules/isnanf-nolibm: Likewise.
8629         * modules/mbchar: Likewise.
8630         * modules/mbfile: Likewise.
8631         * modules/mbiter: Likewise.
8632         * modules/mbuiter: Likewise.
8633         * modules/netdb: Likewise.
8634         * modules/netinet_in: Likewise.
8635         * modules/nproc: Likewise.
8636         * modules/pagealign_alloc: Likewise.
8637         * modules/poll: Likewise.
8638         * modules/printf-frexp: Likewise.
8639         * modules/pthread: Likewise.
8640         * modules/putenv: Likewise.
8641         * modules/random_r: Likewise.
8642         * modules/relocatable-prog: Likewise.
8643         * modules/search: Likewise.
8644         * modules/select: Likewise.
8645         * modules/selinux-h: Likewise.
8646         * modules/settime: Likewise.
8647         * modules/signal: Likewise.
8648         * modules/size_max: Likewise.
8649         * modules/socklen: Likewise.
8650         * modules/ssize_t: Likewise.
8651         * modules/stdarg: Likewise.
8652         * modules/stdbool: Likewise.
8653         * modules/stddef: Likewise.
8654         * modules/stdint: Likewise.
8655         * modules/stdio: Likewise.
8656         * modules/stdlib: Likewise.
8657         * modules/string: Likewise.
8658         * modules/strings: Likewise.
8659         * modules/sys_file: Likewise.
8660         * modules/sys_ioctl: Likewise.
8661         * modules/sys_select: Likewise.
8662         * modules/sys_socket: Likewise.
8663         * modules/sys_stat: Likewise.
8664         * modules/sys_time: Likewise.
8665         * modules/sys_times: Likewise.
8666         * modules/sys_utsname: Likewise.
8667         * modules/sys_wait: Likewise.
8668         * modules/sysexits: Likewise.
8669         * modules/time: Likewise.
8670         * modules/times: Likewise.
8671         * modules/tmpfile: Likewise.
8672         * modules/trim: Likewise.
8673         * modules/unistd: Likewise.
8674         * modules/wchar: Likewise.
8675         * modules/wctype: Likewise.
8676
8677 2009-09-17  Bruno Haible  <bruno@clisp.org>
8678
8679         Make getdate.y compile on QNX and NetBSD 5 / i386.
8680         * m4/getdate.m4 (gl_GETDATE): Conditionally define
8681         TIME_T_FITS_IN_LONG_INT.
8682         * lib/getdate.y (long_time_t): New type.
8683         (relative_time): Change type of 'seconds' field to long_time_t.
8684         (get_date): Update types of local variables. Check against overflow
8685         during conversion from long_time_t to time_t.
8686         Reported by Matt Kraai <kraai@ftbfs.org>
8687         and Hasso Tepper <hasso@netbsd.org>.
8688
8689 2009-09-17  Bruno Haible  <bruno@clisp.org>
8690
8691         * modules/COPYING: Update copyright years.
8692         * modules/README: Likeiwse.
8693         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
8694         Reported by Ian Beckwith <ianb@erislabs.net>.
8695
8696 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
8697
8698         * users.txt: Update references for gnuit package.
8699
8700 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
8701
8702         * m4/getdelim.m4: Fix typo in copyright line.
8703
8704 2009-09-17  Bruno Haible  <bruno@clisp.org>
8705
8706         * lib/atoll.c: Use the standard header with GPL copyright.
8707         * lib/argz.in.h: Likewise.
8708         * lib/glob.c: Likewise.
8709         * lib/glob-libc.h: Likewise.
8710         * lib/random_r.c: Likewise.
8711         * lib/siglist.h: Likewise.
8712         * lib/strsignal.c: Likewise.
8713         Reported by Ian Beckwith <ianb@erislabs.net>.
8714
8715 2009-09-17  Eric Blake  <ebb9@byu.net>
8716
8717         rmdir: ensure correct dependency order
8718         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
8719
8720 2009-09-17  Bruno Haible  <bruno@clisp.org>
8721
8722         Disable assertion that fails on NetBSD 5 / i386.
8723         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
8724         Reported by Sam Steingold <sds@gnu.org>
8725         and Hasso Tepper <hasso@netbsd.org>.
8726
8727 2009-09-16  Eric Blake  <ebb9@byu.net>
8728
8729         unlinkdir: port to mingw
8730         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
8731         on which no one can unlink a directory.
8732
8733         stdlib: sort witness names
8734         * modules/stdlib (Makefile.am): Sort replacements.
8735         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
8736         * lib/stdlib.in.h: Likewise.
8737
8738         parse-duration-tests: avoid link failure
8739         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
8740         LIBINTL.
8741         Reported by Tom G. Christensen.
8742
8743         openat-tests: ensure unlinkat behaves like rmdir
8744         * tests/test-rmdir.c (main): Factor guts...
8745         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
8746         * modules/rmdir-tests (Files): Ship new file.
8747         * modules/openat-tests: New test.
8748         * tests/test-unlinkat.c: Likewise.
8749
8750         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
8751         * modules/rmdir-errno (Status, Notice): Now obsolete.
8752
8753         rmdir: work around cygwin 1.5.x and mingw bugs
8754         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
8755         * lib/rmdir.c (rmdir): Work around it.
8756         * modules/rmdir (Status, Notice): No longer obsolete.
8757         (Files): Add dos.m4.
8758         (Depends-on): Add unistd.
8759         (configure.ac): Set witnesses.
8760         (License): Relax to LGPLv2+.
8761         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
8762         * modules/unistd (Makefile.am): Substitute witnesses.
8763         * lib/unistd.in.h (rmdir): Declare replacement.
8764         * doc/posix-functions/rmdir.texi (rmdir): Document this.
8765         * modules/rmdir-tests: New tests.
8766         * tests/test-rmdir.c: Likewise.
8767
8768 2009-09-15  Eric Blake  <ebb9@byu.net>
8769
8770         fchdir: improve use of replacement functions
8771         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
8772         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
8773         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
8774         REPLACE_CLOSEDIR.
8775         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
8776         * modules/sys_stat (Makefile.am): Substitute correct witness.
8777         * modules/dirent (Makefile.am): Likewise.
8778         * modules/unistd (Makefile.am): Likewise.
8779         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
8780         * lib/unistd.in.h (dup): Likewise.
8781         * lib/sys_stat.in.h (fstat): Likewise.
8782
8783         maint: ignore gnulib-tool temp files
8784         * .gitignore: Ignore files created during gnulib-tool --test.
8785
8786 2009-09-13  Jim Meyering  <meyering@redhat.com>
8787
8788         posixtm: don't reject a time that specify "60" as the number of seconds
8789         * lib/posixtm.c (posixtime): The code to reject invalid dates
8790         would also reject a time specified with the .60 suffix.
8791         But POSIX allows that, in order to accommodate leap seconds.
8792         So don't reject it.
8793         (main): Adjust tests accordingly.
8794         * modules/posixtm (Depends-on): Add stpcpy.
8795
8796 2009-09-11  Jim Meyering  <meyering@redhat.com>
8797
8798         announce-gen: include [$release_type] in emitted Subject:
8799         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
8800         e.g., [stable] in the emitted Subject: line.
8801
8802 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8803
8804         Remove obsolete macros from several modules.
8805         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
8806         obsolete Autoconf macros with their modern counterparts.
8807         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
8808         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
8809         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
8810         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
8811         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
8812         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8813         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
8814         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
8815         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
8816         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
8817         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8818         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8819         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
8820         * m4/sockets.m4 (gl_SOCKETS): Likewise.
8821         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
8822         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
8823         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
8824         * m4/time_r.m4 (gl_TIME_R): Likewise.
8825         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
8826         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
8827         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
8828
8829         Fix copyright header in build-aux scripts.
8830         * build-aux/git-version-gen: Fix copyright header to match GPLv3
8831         recommendation.
8832         * build-aux/ncftpput-ftp: Likewise.
8833         * build-aux/update-copyright: Likewise.
8834
8835 2009-09-09  Eric Blake  <ebb9@byu.net>
8836
8837         test-link: allow Linux choice of errno
8838         * tests/test-link.c (main): Relax test for alternate error.
8839
8840         strndup: fix improper m4 caching
8841         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
8842         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
8843         (gl_PREREQ_STRNDUP): Delete.
8844         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
8845         * modules/string (Makefile.am): Substitute it.
8846         * lib/string.in.h (strndup): Modernize prototype.
8847
8848         getcwd: port to mingw
8849         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
8850         different from the POSIX assumptions made throughout the getcwd
8851         module; fortunately, the mingw getcwd does not need replacement.
8852         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
8853         * modules/getcwd-tests: New test.
8854         * tests/test-getcwd.c: Likewise.
8855
8856         link: fix platform bugs
8857         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
8858         * lib/link.c (link): Work around them.  Fix related mingw bug.
8859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
8860         * modules/unistd (Makefile.am): Substitute it.
8861         * lib/unistd.in.h (link): Declare replacement.
8862         * doc/posix-functions/link.texi (link): Document this.
8863         * modules/link (Depends-on): Add strdup-posix, sys_stat.
8864
8865         test-link: consolidate into single C program, test more cases
8866         * tests/test-link.sh: Delete.
8867         * tests/test-link.c: Test more error conditions.  Exposes bugs on
8868         at least Cygwin and Solaris.
8869         * modules/link-tests (Files): Remove unused file.
8870         (Depends-on): Add errno, sys_stat.
8871         (Makefile.am): Simplify.
8872
8873 2009-09-08  Bruno Haible  <bruno@clisp.org>
8874
8875         Work around towlower, towupper bug on mingw.
8876         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
8877         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
8878         * doc/posix-functions/towlower.texi: Mention the mingw bug.
8879         * doc/posix-functions/towupper.texi: Likewise.
8880         Reported by Eric Blake.
8881
8882 2009-09-08  Jim Meyering  <meyering@redhat.com>
8883
8884         build: don't try to run autoheader if we don't use it
8885         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
8886         is not used in configure.ac.
8887
8888 2009-09-08  Eric Blake  <ebb9@byu.net>
8889
8890         euidaccess: fix compilation error
8891         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
8892
8893         rawmemchr: relax license
8894         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
8895         okay.
8896         Reported by Jim Meyering.
8897
8898         mkfifoat: new module
8899         * modules/mkfifoat: New file.
8900         * lib/mkfifoat.c: Likewise.
8901         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
8902         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8903         * modules/sys_stat (Makefile.am): Use them.
8904         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
8905         * MODULES.html.sh (File system functions): Mention module.
8906         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
8907         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
8908         * modules/mkfifoat-tests: New test.
8909         * tests/test-mkfifoat.c: Likewise.
8910
8911         strchrnul: relax license
8912         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
8913         okay.
8914         Reported by Jim Meyering.
8915
8916 2009-09-08  Eric Blake  <ebb9@byu.net>
8917
8918         fstatat: fix compilation on Solaris
8919         * lib/fstatat.c (includes): Add fcntl.h.
8920         Reported by Pádraig Brady.
8921
8922 2009-09-07  Eric Blake  <ebb9@byu.net>
8923
8924         rename: modernize replacement
8925         * modules/rename (Depends-on): Add stdio.
8926         (configure.ac): Declare witness.
8927         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
8928         stdio take care of replacement.
8929         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
8930         * modules/stdio (Makefile.am): Substitute them.
8931         * lib/stdio.in.h (rename): Declare replacement.
8932         * lib/rename.c (includes): Allow cross-compilation to non-windows
8933         machines.
8934         * doc/posix-functions/rename.texi (rename): Improve
8935         documentation.
8936
8937         stdio: sort witness names
8938         * modules/stdio (Makefile.am): Sort replacements.
8939         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
8940         * lib/stdio.in.h: Likewise.
8941
8942         getcwd: minor cleanups
8943         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
8944         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
8945
8946         openat: provide more convenience names
8947         * modules/faccessat (configure.ac): Add C witness.
8948         * lib/unistd.in.h (readlinkat): Fix typo.
8949         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
8950         convenience wrappers.
8951         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
8952         wrappers in syntax checks.
8953
8954 2009-09-06  Eric Blake  <ebb9@byu.net>
8955
8956         doc: fix comments in recent patches
8957         * lib/faccessat.c: Mention correct function.
8958         * lib/fchmodat.c: Likewise.
8959         * lib/fchownat.c: Likewise.
8960         * lib/symlinkat.c: Likewise.
8961         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
8962         constants.
8963
8964         faccessat, symlinkat: continue cleanup of previous patch
8965         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
8966         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
8967         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
8968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
8969         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
8970         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
8971         set.
8972
8973 2009-09-06  Bruno Haible  <bruno@clisp.org>
8974
8975         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
8976         (fstatat): Declare if GNULIB_FSTATAT is set.
8977         (mkdirat): Declare if GNULIB_MKDIRAT is set.
8978         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
8979         (unlinkat): Declare if GNULIB_UNLINKAT is set.
8980         * modules/fcntl-h (Files): Remove m4/openat.m4.
8981         * modules/sys_stat (Files): Remove m4/openat.m4.
8982         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
8983         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
8984         * modules/unistd (Files): Remove m4/openat.m4.
8985         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
8986         GNULIB_OPENAT.
8987         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
8988         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
8989         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
8990         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
8991         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
8992         gl_OPENAT_DEFAULTS.
8993         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
8994         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
8995         Don't require gl_OPENAT_DEFAULTS.
8996         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
8997         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
8998         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
8999         (gl_OPENAT_DEFAULTS): Remove macro.
9000
9001 2009-09-06  Bruno Haible  <bruno@clisp.org>
9002
9003         * modules/openat (configure.ac): Remove unneeded witness.
9004
9005 2009-09-06  Bruno Haible  <bruno@clisp.org>
9006
9007         Set errno to ENOSYS when a function is entirely unsupported.
9008         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
9009         EOPNOTSUPP.
9010         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9011         * modules/chown (Depends-on): Remove errno.
9012
9013 2009-09-06  Bruno Haible  <bruno@clisp.org>
9014
9015         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
9016
9017 2009-09-06  Bruno Haible  <bruno@clisp.org>
9018
9019         * lib/sys_stat.in.h: Fix preprocessor command indentation.
9020
9021 2009-09-06  Ben Pfaff  <blp@gnu.org>
9022             Bruno Haible  <bruno@clisp.org>
9023
9024         Work around a glibc bug in strtok_r.
9025         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
9026         Undefine if UNDEFINE_STRTOK_R is set.
9027         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
9028         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9029         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
9030         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
9031         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
9032         UNDEFINE_STRTOK_R.
9033         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
9034
9035 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
9036
9037         exclude: minor fix
9038         * lib/exclude.c: Include wctype.h
9039
9040 2009-09-06  Akim Demaille  <demaille@gostai.com>
9041
9042         bootstrap: improve error message
9043         * build-aux/bootstrap (find_tool): Upon failure, report the list
9044         of candidates.
9045         Honor the initial value of the envvar.
9046
9047 2009-09-05  Eric Blake  <ebb9@byu.net>
9048
9049         symlinkat: new module
9050         * modules/symlinkat: New file.
9051         * lib/symlinkat.c: Likewise.
9052         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
9053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9054         * modules/unistd (Makefile.am): Use them.
9055         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
9056         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
9057         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
9058         * MODULES.html.sh (File system functions): Mention module.
9059         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9060         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9061         * modules/symlinkat-tests: New test.
9062         * tests/test-symlinkat.c: Likewise.
9063
9064         test-openat-safer: add more checks
9065         * tests/test-openat-safer.c (main): Check more code paths.
9066
9067 2009-09-05  Jim Meyering  <meyering@redhat.com>
9068
9069         syntax-check: detect unnecessary inclusion of openat.h
9070         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
9071
9072 2009-09-05  Bruno Haible  <bruno@clisp.org>
9073
9074         Support towlower, towupper.
9075         * doc/posix-functions/towlower.texi: Mention module wctype.
9076         * doc/posix-functions/towupper.texi: Likewise.
9077         * lib/wctype.in.h (towlower, towupper): New functions.
9078         * tests/test-wctype.c: Include stdio.h, stdlib.h.
9079         (ASSERT): New macro.
9080         (e): New variable.
9081         (main): Test also towlower, towupper. Test WEOF argument.
9082         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9083
9084 2009-09-05  Bruno Haible  <bruno@clisp.org>
9085
9086         Fix conversion behaviour when the input is invalid.
9087         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
9088         mark occurring in first pass of indirect conversion.
9089         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
9090         input.
9091         Found by clang's static analyzer.
9092
9093 2009-09-05  Bruno Haible  <bruno@clisp.org>
9094
9095         * tests/test-striconveh.c (main): Test indirect conversion on platforms
9096         where direct conversion is possible.
9097
9098 2009-09-04  Eric Blake  <ebb9@byu.net>
9099
9100         openat: fail with ENOENT on empty name
9101         * lib/openat-proc.c (openat_proc_name): Special-case the empty
9102         buffer.
9103
9104         link-follow: fix logic bug in prior patch
9105         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
9106         reversed sense of yes and no in prior patch.  Avoid confusing
9107         compilation failure with desired semantics.
9108
9109         link-follow: accomodate mingw and cross-compilation
9110         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
9111         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
9112         cross-compilation results to -1, to make linkat easier to
9113         implement when cross-compiling.  Trivially support mingw.
9114         * modules/link-follow (configure.ac): Call new name.
9115         * NEWS: Mention this.
9116
9117 2009-09-03  Eric Blake  <ebb9@byu.net>
9118
9119         faccessat: compile replacement
9120         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
9121         needed.
9122
9123         fts: fix compilation error
9124         * lib/fts.c (includes): Re-add "openat.h", for
9125         openat_needs_fchdir.
9126
9127         faccessat: new module
9128         * modules/faccessat: New file.
9129         * lib/faccessat.c: Likewise.
9130         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9132         * modules/unistd (Makefile.am): Use it.
9133         * lib/unistd.in.h (faccessat): Declare it.
9134         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
9135         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
9136         * MODULES.html.sh (File system functions): Mention it.
9137         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
9138         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
9139
9140         euidaccess: prefer POSIX over non-standard implementation
9141         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
9142         * lib/euidaccess.c (euidaccess): Use it if available.
9143
9144         openat: make template easier to use
9145         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
9146         AT_FUNC_F2 to be undefined.
9147         (VALIDATE_FLAG): New macro; use it to reject bad flags.
9148         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
9149         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
9150         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
9151         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
9152         Likewise.
9153         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
9154         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
9155         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
9156         Likewise.
9157
9158         openat: declare in POSIX headers
9159         * NEWS: Mention this.
9160         * modules/openat (configure.ac): Declare witnesses.
9161         (Depends-on): Add fcntl-h, sys_stat, unistd.
9162         (Include): Mention correct headers.
9163         * modules/fcntl-h (Depends-on): Add link-warning.
9164         (Files): Add openat.m4.
9165         (Makefile.am): Substitute witnesses.
9166         * modules/sys_stat (Files, Makefile.am): Likewise.
9167         * modules/unistd (Files, Makefile.am): Likewise.
9168         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
9169         (gl_OPENAT_DEFAULTS): New macro.
9170         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
9171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
9172         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
9173         (SYS_STAT_H): Remove unused variable.
9174         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
9175         * lib/fcntl--.h (includes): Remove unneeded header.
9176         * lib/openat-safer.c (includes): Likewise.
9177         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
9178         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
9179         appropriate headers.
9180         (__OPENAT_PREFIX): Delete.
9181         * lib/fcntl.in.h (openat): Provide declaration.
9182         (AT_FDCWD): Fix Solaris bug.
9183         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
9184         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
9185         * lib/fchmodat.c (includes):  Adjust to find declaration.
9186         * lib/fchownat.c (includes): Likewise.
9187         * lib/mkdirat.c (includes): Likewise.
9188         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
9189         still visible.
9190
9191 2009-09-02  Eric Blake  <ebb9@byu.net>
9192
9193         errno: use consistently
9194         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
9195         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
9196         * lib/canonicalize.c (ELOOP): Likewise.
9197         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
9198         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
9199         * lib/lchown.c (EOPNOTSUPP): Likewise.
9200         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
9201         * lib/savewd.c (ESTALE): Likewise.
9202         * lib/settime.c (ENOSYS): Likewise.
9203         * lib/utimens.c (ENOSYS): Likewise.
9204         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
9205         * lib/chdir-safer.c (ELOOP): Likewise.
9206         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
9207         * modules/c-stack (Depends-on): Add errno.
9208         * modules/canonicalize (Depends-on): Likewise.
9209         * modules/chdir-safer (Depends-on): Likewise.
9210         * modules/fdopendir (Depends-on): Likewise.
9211         * modules/inet_ntop (Depends-on): Likewise.
9212         * modules/inet_pton (Depends-on): Likewise.
9213         * modules/lchown (Depends-on): Likewise.
9214         * modules/openat (Depends-on): Likewise.
9215         * modules/savewd (Depends-on): Likewise.
9216         * modules/settime (Depends-on): Likewise.
9217         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
9218
9219         fts: avoid leaking fds
9220         * modules/fts (Depends-on): Add cloexec.
9221         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
9222         flag.
9223
9224         fts: make directory fds more robust
9225         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
9226         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
9227
9228         backupfile, chdir-long, fts, savedir: make safer
9229         * lib/backupfile.c (includes): Use "dirent--.h", since
9230         numbered_backup can write to stderr during readdir.
9231         * lib/savedir.c (includes): Likewise.
9232         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
9233         emulation can write to stderr on failure.
9234         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
9235         * lib/getcwd.c: Document why opendir_safer is unused.
9236         * lib/glob.c: Likewise.
9237         * lib/scandir.c: Likewise.
9238         * lib/openat-proc.c: Likewise, for open_safer.
9239         * modules/backupfile (Depends-on): Add dirent-safer.
9240         * modules/savedir (Depends-on): Likewise.
9241         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
9242         * modules/chdir-long (Depends-on): Add openat-safer.
9243
9244         openat-safer: new module
9245         * modules/openat-safer: New file.
9246         * lib/openat-safer.c: Likewise.
9247         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
9248         * lib/fcntl-safer.h (openat_safer): Declare.
9249         * lib/fcntl--.h (openat): Override.
9250         * MODULES.html.sh (File descriptor based I/O): Mention it.
9251         * lib/openat.h: Add double-inclusion guards.
9252         * lib/openat.c (includes): Only include "fcntl-safer.h", not
9253         "fcntl--.h", so we can implement openat.
9254         * modules/openat-safer-tests: New test.
9255         * tests/test-openat-safer.c: New file.
9256
9257         dirent-safer: new module
9258         * modules/dirent-safer: New file.
9259         * lib/dirent--.h: Likewise.
9260         * lib/dirent-safer.h: Likewise.
9261         * lib/opendir-safer.c: Likewise.
9262         * m4/dirent-safer.m4: Likewise.
9263         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
9264         * modules/dirent-safer-tests: New test.
9265         * tests/test-dirent-safer.c: New file.
9266         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
9267
9268         fdopendir: optimize on mingw
9269         * lib/unistd.in.h (_gl_directory_name): New prototype.
9270         * lib/fchdir.c (_gl_directory_name): Implement it.
9271         (fchdir): Use it to simplify implementation.
9272         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
9273         fchdir, when available, to avoid calling [f]chdir().
9274
9275         fdopendir: split into its own module
9276         * lib/openat.c (fdopendir): Move...
9277         * lib/fdopendir.c: ...into new file.
9278         * modules/fdopendir: New module.
9279         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
9280         * modules/openat (Depends-on): Add fdopendir.
9281         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
9282         fdopendir here.
9283         * modules/savedir (Depends-on): Only need fdopendir, not full
9284         openat.
9285         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
9286         * lib/openat.h (fdopendir): Drop prototype.
9287         * lib/dirent.in.h (fdopendir): Provide prototype.
9288         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
9289         * modules/dirent (Makefile.am): Substitute them.
9290         * MODULES.html.sh (File system functions): Mention it.
9291         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
9292         * modules/fdopendir-tests: New file.
9293         * tests/test-fdopendir.c: Likewise.
9294
9295         fchdir: use more consistent macro convention
9296         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
9297         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
9298         REPLACE_FCHDIR, rather than relying on config.h macros.
9299         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
9300         inside a single make-time REPLACE_FCHDIR block, rather than using
9301         the config.h FCHDIR_REPLACEMENT.
9302         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
9303         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
9304         Manage fstat replacement.
9305         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
9306         REPLACE_FCHDIR.
9307         * modules/sys_stat (Files): Add m4/unistd_h.m4.
9308         (Makefile.am): Substitute REPLACE_FCHDIR.
9309         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
9310         FCHDIR_REPLACEMENT.
9311         * lib/dup-safer.c (dup_safer): Likewise.
9312         * lib/dup2.c (rpl_dup2): Likewise.
9313         * lib/dup3.c (rpl_dup3): Likewise.
9314         * lib/open.c (rpl_open): Likewise.
9315
9316         fchdir: simplify error handling, and support dup3
9317         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
9318         stdbool, malloc-posix, realloc-posix.
9319         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
9320         (ensure_dirs_slot): Return false on allocation failure.
9321         (rpl_dup2): Delete.
9322         (_gl_register_dup): New function.
9323         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
9324         (_gl_register_fd): Close fd on allocation failure.
9325         * lib/fcntl.in.h (_gl_register_fd): Update signature.
9326         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
9327         prototype.
9328         (rpl_dup2_fchdir): Delete prototype.
9329         * lib/open.c (open): Update caller.
9330         * lib/dup2.c (dup2): Track fchdir metadata.
9331         * lib/dup3.c (dup3): Likewise.
9332         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
9333         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
9334
9335 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9336
9337         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
9338         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
9339         don't pass arguments to AC_OUTPUT.
9340
9341 2009-09-02  Bruno Haible  <bruno@clisp.org>
9342
9343         * modules/mkdtemp (License): Relicense under LGPLv2+.
9344         Reported by Paolo Bonzini.
9345
9346 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9347
9348         Replace uses of obsolete autoconf macros in Jim's modules.
9349         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
9350         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
9351         can evoke a warning from autoconf when run with -Wobsolete
9352         enabled.  They were declared obsolete for good reasons (see
9353         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
9354         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
9355         should not continue using the deprecated macros.
9356         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
9357         obsolete Autoconf macros with modern counterparts.
9358         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9359         * m4/dos.m4 (gl_AC_DOS): Likewise.
9360         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
9361         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9362         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
9363         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
9364         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
9365         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
9366         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
9367         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
9368         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
9369         Likewise.
9370         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
9371         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
9372         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
9373         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
9374         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
9375         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
9376
9377 2009-09-01  Eric Blake  <ebb9@byu.net>
9378
9379         fchdir: fix off-by-one bug in previous patch
9380         * lib/fchdir.c (rpl_fstat): Use correct bounds.
9381         (_gl_unregister_fd): Delete useless if.
9382
9383 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
9384
9385         maint.mk: sort the list of syntax-check rules
9386         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
9387         easier to get a sense of progress when the rules are run sequentially
9388         and take a long time.
9389
9390 2009-09-01  Simon Josefsson  <simon@josefsson.org>
9391
9392         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
9393         * modules/netinet_in: Likewise.
9394         * modules/sys_file: Likewise.
9395         * modules/sys_ioctl: Likewise.
9396         * modules/sys_select: Likewise.
9397         * modules/sys_socket: Likewise.
9398         * modules/sys_stat: Likewise.
9399         * modules/sys_time: Likewise.
9400         * modules/sys_times: Likewise.
9401         * modules/sys_utsname: Likewise.
9402         * modules/sys_wait: Likewise.
9403
9404 2009-09-01  Jim Meyering  <meyering@redhat.com>
9405
9406         fts: help ensure that return values are not ignored
9407         * lib/fts_.h (__GNUC_PREREQ): Define.
9408         (__attribute_warn_unused_result__): Define.
9409         (fts_children, fts_close, fts_open, fts_read): Declare with
9410         __attribute_warn_unused_result__.
9411
9412         fts: fts_close now fails also when closing a dir file descriptor fails
9413         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
9414         and propagate to caller, along with errno.
9415
9416         announce-gen: correct formatting in --help output
9417         * build-aux/announce-gen (usage): Move the one-line description in
9418         --help output "up", to where it belongs, just after Usage:.
9419
9420 2009-08-31  Eric Blake  <ebb9@byu.net>
9421
9422         fchdir: port to mingw
9423         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
9424         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
9425         opened, then use a substitute.
9426         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
9427         replacement.
9428         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
9429         (_gl_register_fd): No need to check stat if open already filters
9430         all directories.
9431         (fchdir): Fix error condition to match POSIX.
9432         * modules/fchdir (Depends-on): Add sys_stat.
9433         * doc/posix-functions/open.texi (open): Document the limitation.
9434         * modules/fchdir-tests: New file.
9435         * tests/test-fchdir.c: Likewise.
9436
9437         canonicalize: allow cross-testing from cygwin to mingw
9438         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
9439         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
9440         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
9441         Likewise.
9442         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
9443         target does not support symlinks.
9444         * tests/test-canonicalize-lgpl.sh: Likewise.
9445
9446         chown: avoid compilation warning on mingw
9447         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
9448         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
9449         mingw.
9450         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9451         * modules/chown (Depends-on): Add errno.
9452
9453 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9454
9455         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
9456         command.
9457
9458 2009-08-31  Jim Meyering  <meyering@redhat.com>
9459
9460         canonicalize: remove useless initialization
9461         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
9462         initialization of local, "end".
9463
9464 2009-08-30  Bruno Haible  <bruno@clisp.org>
9465
9466         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
9467         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
9468         ENOSYS.
9469
9470 2009-08-30  Bruno Haible  <bruno@clisp.org>
9471
9472         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
9473         /usr/xpg4/bin/tr when it exists.
9474         * tests/test-pipe-filter-gi1.sh: Likewise.
9475
9476 2009-08-30  Bruno Haible  <bruno@clisp.org>
9477
9478         Work around deficient /usr/bin/id program on Solaris.
9479         * tests/test-file-has-acl.sh (ID): New variable.
9480         * tests/test-set-mode-acl.sh (ID): Likewise.
9481         * tests/test-copy-acl.sh (ID): Likewise.
9482         * tests/test-copy-file.sh (ID): Likewise.
9483
9484 2009-08-30  Bruno Haible  <bruno@clisp.org>
9485
9486         New module 'xstriconveh'.
9487         * lib/xstriconveh.h: New file.
9488         * lib/xstriconveh.c: New file.
9489         * modules/xstriconveh: New file.
9490
9491 2009-08-30  Bruno Haible  <bruno@clisp.org>
9492
9493         Make it easier to use mem_cd_iconveh.
9494         * lib/striconveh.h (iconveh_t): New type.
9495         (iconveh_open, iconveh_close): New declarations.
9496         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
9497         with a single 'const iconveh_t *' argument.
9498         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
9499         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
9500         with a single 'const iconveh_t *' argument.
9501         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
9502         * tests/test-striconveh.c (main): Update.
9503         * NEWS: Mention the change.
9504
9505 2009-08-30  Bruno Haible  <bruno@clisp.org>
9506
9507         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
9508         problem.
9509
9510 2009-08-30  Bruno Haible  <bruno@clisp.org>
9511
9512         Work around iconv_open problem on Solaris.
9513         * lib/iconv_open-solaris.gperf: New file.
9514         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
9515         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
9516         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
9517         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
9518         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
9519         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
9520
9521 2009-08-29  Jim Meyering  <meyering@redhat.com>
9522
9523         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
9524         * top/maint.mk (cvs-check): Remove target; it was just an alias
9525         to the better-named vc-diff-check.
9526         (maintainer-distcheck): Remove rule.  It was used only from
9527         the (alpha/beta/major) target, and all of its commands but one
9528         were coreutils-specific.
9529         (vc-dist): Remove rule.
9530         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
9531         Run vc-diff-check, not vc-dist.
9532         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
9533
9534 2009-08-27  Bruno Haible  <bruno@clisp.org>
9535
9536         * tests/test-bitrotate.c (main): Remove test that uses a shift count
9537         of 0.
9538
9539 2009-08-27  Bruno Haible  <bruno@clisp.org>
9540
9541         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
9542         compilers.
9543         * doc/func.texi: Document the SunPRO C bug.
9544
9545 2009-08-27  Bruno Haible  <bruno@clisp.org>
9546
9547         Fix link error on Solaris.
9548         * tests/test-parse-duration.c (xstrdup): Remove function.
9549
9550 2009-08-26  Pádraig Brady  <P@draigbrady.com>
9551
9552         ignore-value: handle pointer types, too
9553         * lib/ignore-value.h (__attribute__): Remove definition.
9554         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
9555         of a more concise and more-often effective "(void) i" statement.
9556         (ignore_ptr): New function to suppress warnings from functions that
9557         return pointers, and to make it explicit that one function doesn't
9558         handle all cases.
9559
9560 2009-08-25  Bruno Haible  <bruno@clisp.org>
9561
9562         dup2: work around a Linux bug.
9563         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
9564         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
9565         * doc/posix-functions/dup2.texi: Mention the Linux bug.
9566         Reported by Simon Josefsson.
9567
9568 2009-08-25  Jim Meyering  <meyering@redhat.com>
9569
9570         libguestfs uses gnulib
9571         * users.txt: Add libguestfs.
9572
9573 2009-08-24  Eric Blake  <ebb9@byu.net>
9574
9575         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
9576         * lib/pipe2.c (includes): Add binary-io.h.
9577         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
9578
9579 2009-08-24  Bruno Haible  <bruno@clisp.org>
9580
9581         Tolerate declared but missing accept4 syscall.
9582         * lib/accept4.c (accept4): Invoke original accept4 function first, if
9583         available.
9584         * lib/sys_socket.in.h (accept4): If the function is already present,
9585         override it.
9586         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
9587         * modules/accept4 (Makefile.am): Compile accept4.c always.
9588         Reported by Paolo Bonzini and Eric Blake.
9589
9590 2009-08-23  Bruno Haible  <bruno@clisp.org>
9591
9592         New module 'accept4'.
9593         * lib/sys_socket.in.h (accept4): New declaration.
9594         * lib/accept4.c: New file.
9595         * m4/accept4.m4: New file.
9596         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
9597         GNULIB_ACCEPT4, HAVE_ACCEPT4.
9598         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
9599         HAVE_ACCEPT4.
9600         * modules/accept4: New file.
9601         * doc/glibc-functions/accept4.texi: Mention the new module.
9602
9603 2009-08-24  Jim Meyering  <meyering@redhat.com>
9604
9605         progname: also set global program_invocation_name, when possible
9606         Before this change, a libtool-enabled program that calls glibc's
9607         error function would report the program name as
9608         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
9609         * modules/progname (configure.ac): Check for a declaration of
9610         program_invocation_name.
9611         * lib/progname.c:  Include <errno.h>.
9612         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
9613         Set program_invocation_name.
9614
9615 2009-08-23  Bruno Haible  <bruno@clisp.org>
9616
9617         * lib/dup3.c: Include <string.h>.
9618
9619 2009-08-23  Bruno Haible  <bruno@clisp.org>
9620
9621         * lib/dup3.c (dup3): Test only once whether the system actually exists.
9622         * lib/pipe2.c (pipe2): Likewise.
9623         Suggested by Eric Blake.
9624
9625 2009-08-23  Bruno Haible  <bruno@clisp.org>
9626
9627         Tolerate declared but missing dup3 syscall.
9628         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
9629         * lib/unistd.in.h (dup3): If the function is already present,
9630         override it.
9631         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
9632         * modules/dup3 (Makefile.am): Compile dup3.c always.
9633         Reported by Paolo Bonzini.
9634
9635 2009-08-23  Bruno Haible  <bruno@clisp.org>
9636
9637         Tolerate declared but missing pipe2 syscall.
9638         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
9639         available.
9640         * lib/unistd.in.h (pipe2): If the function is already present,
9641         override it.
9642         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
9643         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
9644         Reported by Paolo Bonzini.
9645
9646 2009-08-23  Bruno Haible  <bruno@clisp.org>
9647
9648         * lib/pipe2.c (pipe2): Move #ifs inside function.
9649
9650 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
9651
9652         quotearg: document limitations of quote_these_too
9653         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
9654         those limitations are created.
9655         * lib/quotearg.h (set_char_quoting): Document that digits and
9656         letters that are special after backslash are not permitted.
9657         (quotearg_char): Cross-reference set_char_quoting documentation.
9658
9659 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
9660
9661         quotearg: implement custom_quoting_style
9662         * lib/quotearg.c: (struct quoting_options): Add left_quote and
9663         right_quote fields.
9664         (set_custom_quoting): New public function.
9665         (quotearg_buffer_restyled): Add left_quote and right_quote
9666         arguments, handle them very much like locale quoting, and update
9667         all uses.
9668         (quotearg_n_custom): New public function.
9669         (quotearg_n_custom_mem): New public function.
9670         (quotearg_custom): New public function.
9671         (quotearg_custom_mem): New public function.
9672         * lib/quotearg.h: Prototype and document new public functions.
9673         (enum quoting_style): For escape_quoting_style and
9674         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
9675         ignored even though they're otherwise like c_quoting_style.
9676         Add custom_quoting_style member and document with comparison to
9677         clocale_quoting_style.
9678         * tests/test-quotearg.c (custom_quotes): New array.
9679         (custom_results): New array.
9680         (main): Extend to test custom quoting.
9681
9682 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
9683
9684         quotearg: fix right quote escaping when it's in quote_these_too
9685         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
9686         quote, be sure to prepend only one backslash.
9687         * tests/test-quotearg.c (use_quote_double_quotes): New function.
9688         (main): Test it.
9689
9690 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
9691
9692         quotearg-tests: test escaping of embedded locale quotes
9693         * tests/test-quotearg.c (struct result_strings): Add member for
9694         new input.
9695         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
9696         (inputs): Add new input.
9697         (results_g): Add expected results.
9698         (flag_results): Likewise.
9699         (locale_results): Likewise.
9700         (compare_strings): Check those.
9701
9702 2009-08-23  Bruno Haible  <bruno@clisp.org>
9703
9704         Tests for module 'dup3'.
9705         * modules/dup3-tests: New file.
9706         * tests/test-dup3.c: New file.
9707
9708         New module 'dup3'.
9709         * lib/unistd.in.h (dup3): New declaration.
9710         * lib/dup3.c: New file.
9711         * m4/dup3.m4: New file.
9712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
9713         HAVE_DUP3.
9714         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
9715         * modules/dup3: New file.
9716         * doc/glibc-functions/dup3.texi: Mention the new module.
9717
9718 2009-08-23  Bruno Haible  <bruno@clisp.org>
9719
9720         Tweak the dup2 test.
9721         * tests/test-dup2.c (main): Create the test file empty. Verify that an
9722         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
9723         the test file is still empty. Fix argument order of lseek.
9724
9725 2009-08-23  Bruno Haible  <bruno@clisp.org>
9726
9727         Avoid test link errors when the modules getopt-gnu, gettext are used.
9728         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
9729         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9730
9731 2009-08-23  Bruno Haible  <bruno@clisp.org>
9732
9733         Fix getdtablesize() on mingw.
9734         * lib/getdtablesize.c (getdtablesize): Implement differently.
9735         * lib/unistd.in.h (getdtablesize): Improve comment.
9736
9737 2009-08-23  Bruno Haible  <bruno@clisp.org>
9738
9739         New module 'mkostemp'.
9740         Based on Ulrich Drepper's 2007-08-10 change in glibc.
9741         * lib/stdlib.in.h (mksotemp): New declaration.
9742         * lib/mkostemp.c: New file, from glibc with modifications.
9743         * lib/tempname.h (GT_FILE): Remove outdated comment.
9744         (gen_tempname): Add flags argument.
9745         * lib/tempname.c (__GT_BIGFILE): Remove macro.
9746         (__GT_FILE): Map to 1.
9747         (small_open, large_open): Remove macros.
9748         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
9749         * lib/mkstemp.c (mkstemp): Update.
9750         * lib/mkdtemp.c (mkdtemp): Likewise.
9751         * m4/mkostemp.m4: New file.
9752         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
9753         HAVE_MKOSTEMP.
9754         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
9755         HAVE_MKOSTEMP.
9756         * modules/mkostemp: New file, based on modules/mkstemp.
9757         * doc/glibc-functions/mkostemp.texi: Mention the new module.
9758         * NEWS: Mention the change.
9759
9760 2009-08-23  Bruno Haible  <bruno@clisp.org>
9761
9762         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
9763         Reported by Eric Blake.
9764
9765 2009-08-23  Bruno Haible  <bruno@clisp.org>
9766
9767         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
9768         Reported by Eric Blake.
9769
9770 2009-08-23  Bruno Haible  <bruno@clisp.org>
9771
9772         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
9773         * modules/pipe2 (Depends-on): Likewise.
9774
9775 2009-08-23  Eric Blake  <ebb9@byu.net>
9776
9777         fcntl-h: add O_TTY_INIT support
9778         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
9779         * tests/test-fcntl-h.c (o): Test it.
9780         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
9781
9782         fcntl-h: rename from fcntl, in preparation for fcntl(2)
9783         * modules/fcntl: Move <fcntl.h> header replacement...
9784         * modules/fcntl-h: ...to new name, so as not to collide with
9785         like-named function.
9786         * tests/test-fcntl.c: Rename...
9787         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
9788         * modules/fcntl-tests: Rename...
9789         * modules/fcntl-h-tests: ...to this.  Update test file name.
9790         * modules/chdir-long (Depends-on): Update clients.
9791         * modules/chdir-safer (Depends-on): Likewise.
9792         * modules/fcntl-safer (Depends-on): Likewise.
9793         * modules/fts (Depends-on): Likewise.
9794         * modules/mkancesdirs (Depends-on): Likewise.
9795         * modules/mkdir-p (Depends-on): Likewise.
9796         * modules/open (Depends-on): Likewise.
9797         * modules/savewd (Depends-on): Likewise.
9798         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
9799         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
9800
9801 2009-08-22  Bruno Haible  <bruno@clisp.org>
9802
9803         * modules/binary-io (License): Relicense under LGPL.
9804         * modules/pipe2 (License): Likewise.
9805
9806 2009-08-22  Bruno Haible  <bruno@clisp.org>
9807
9808         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
9809         return value.
9810         * lib/pipe-filter-gi.c (filter_init): Likewise.
9811         Reported by Eric Blake.
9812
9813 2009-08-22  Bruno Haible  <bruno@clisp.org>
9814
9815         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
9816         * modules/pipe (Depends-on): Add pipe2.
9817
9818 2009-08-22  Bruno Haible  <bruno@clisp.org>
9819
9820         Tests for module 'pipe2'.
9821         * modules/pipe2-tests: New file.
9822         * tests/test-pipe2.c: New file.
9823
9824         New module 'pipe2'.
9825         * lib/unistd.in.h (pipe2): New declaration.
9826         * lib/pipe2.c: New file.
9827         * m4/pipe2.m4: New file.
9828         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
9829         HAVE_PIPE2.
9830         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
9831         * modules/pipe2: New file.
9832         * doc/glibc-functions/pipe2.texi: Mention the new module.
9833
9834 2009-08-22  Bruno Haible  <bruno@clisp.org>
9835
9836         Reference some new glibc functions.
9837         * doc/glibc-functions/accept4.texi: New file.
9838         * doc/glibc-functions/dup3.texi: New file.
9839         * doc/glibc-functions/mkostemp.texi: New file.
9840         * doc/glibc-functions/pipe2.texi: New file.
9841         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
9842         (Glibc sys/socket.h): Refer to accept4.
9843         (Glibc unistd.h): Refer to dup3, pipe2.
9844         Reported by Eric Blake.
9845
9846 2009-08-22  Jim Meyering  <meyering@redhat.com>
9847             Bruno Haible  <bruno@clisp.org>
9848
9849         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
9850         This makes it so packages using automake-1.11's silent-rules option
9851         can print e.g., a single "GEN    configmake.h" line, rather than
9852         the 30+ statements that perform the job.  If you want to see the
9853         actual commands, you can still run "make V=1".
9854         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
9855         so that make output is abbreviated when those variables are defined
9856         appropriately.
9857         * modules/argz: Likewise.
9858         * modules/arpa_inet: Likewise.
9859         * modules/byteswap: Likewise.
9860         * modules/configmake: Likewise.
9861         * modules/dirent: Likewise.
9862         * modules/errno: Likewise.
9863         * modules/fcntl: Likewise.
9864         * modules/float: Likewise.
9865         * modules/fnmatch: Likewise.
9866         * modules/getopt-posix: Likewise.
9867         * modules/glob: Likewise.
9868         * modules/iconv_open: Likewise.
9869         * modules/inttypes: Likewise.
9870         * modules/localcharset: Likewise.
9871         * modules/locale: Likewise.
9872         * modules/math: Likewise.
9873         * modules/netdb: Likewise.
9874         * modules/netinet_in: Likewise.
9875         * modules/poll: Likewise.
9876         * modules/posix_spawnp-tests: Likewise.
9877         * modules/sched: Likewise.
9878         * modules/search: Likewise.
9879         * modules/selinux-h: Likewise.
9880         * modules/signal: Likewise.
9881         * modules/spawn: Likewise.
9882         * modules/stdarg: Likewise.
9883         * modules/stdbool: Likewise.
9884         * modules/stddef: Likewise.
9885         * modules/stdint: Likewise.
9886         * modules/stdio: Likewise.
9887         * modules/stdlib: Likewise.
9888         * modules/string: Likewise.
9889         * modules/strings: Likewise.
9890         * modules/sys_file: Likewise.
9891         * modules/sys_ioctl: Likewise.
9892         * modules/sys_select: Likewise.
9893         * modules/sys_socket: Likewise.
9894         * modules/sys_stat: Likewise.
9895         * modules/sys_time: Likewise.
9896         * modules/sys_times: Likewise.
9897         * modules/sys_utsname: Likewise.
9898         * modules/sys_wait: Likewise.
9899         * modules/sysexits: Likewise.
9900         * modules/time: Likewise.
9901         * modules/unistd: Likewise.
9902         * modules/wchar: Likewise.
9903         * modules/wctype: Likewise.
9904
9905 2009-08-22  Jim Meyering  <meyering@redhat.com>
9906
9907         announce-gen: detect write failure
9908         * build-aux/announce-gen: Add Coda at end.
9909         Remove equivalent-but-more-verbose block at top.
9910
9911 2009-08-19  Akim Demaille  <demaille@gostai.com>
9912
9913         bootstrap: --help to stdout.
9914         * bootstrap (usage): Don't send --help to stderr.
9915         Use a here doc instead of a long string.
9916
9917 2009-08-21  Eric Blake  <ebb9@byu.net>
9918
9919         test-popen-safer: split from test-popen
9920         * tests/test-popen.c (main): Move...
9921         * tests/test-popen.h: ...into new file.
9922         * tests/test-popen-safer2.c: New file.
9923         * modules/popen-tests (Files): Add test-popen.h.
9924         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
9925         Suggested by Bruno Haible.
9926
9927         test-fcntl-safer: split from test-open
9928         * tests/test-open.c (main): Move...
9929         * tests/test-open.h: ...into new file.
9930         * tests/test-fcntl-safer.c: New file.
9931         * modules/open-tests (Files): Add test-open.h.
9932         * modules/fcntl-safer-tests: New file.
9933         Suggested by Bruno Haible.
9934
9935         test-fopen-safer: split from test-fopen
9936         * tests/test-fopen.c (main): Move...
9937         * tests/test-fopen.h: ...into new file.
9938         * tests/test-fopen-safer.c: New file.
9939         * modules/fopen-tests (Files): Add test-fopen.h.
9940         * modules/fopen-safer-tests: New file.
9941         Suggested by Bruno Haible.
9942
9943 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
9944
9945         popen-safer: test O_CLOEXEC at run-time.
9946         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
9947
9948 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
9949
9950         fcntl: move more flags to the header
9951         * lib/cloexec.c: Do not define FD_CLOEXEC here.
9952         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
9953         * lib/fcntl.in.h: Do both things here.
9954
9955 2009-08-21  Jim Meyering  <meyering@redhat.com>
9956
9957         consistently remove $@-t before redirecting to it
9958         * modules/argz: Remove $@-t and $@ before redirecting to the former.
9959         * modules/alloca-opt: Likewise.
9960         * modules/byteswap: Likewise.
9961         * modules/fnmatch: Likewise.
9962         * modules/getopt-posix: Likewise.
9963         * modules/glob: Likewise.
9964         * modules/poll: Likewise.
9965         * modules/posix_spawnp-tests: Likewise.
9966         * modules/sys_socket: Likewise.
9967         * modules/sysexits: Likewise.
9968
9969 2009-08-21  Eric Blake  <ebb9@byu.net>
9970
9971         popen: simplify access to original popen
9972         * lib/popen.c (rpl_popen): No need to worry about popen being a
9973         macro.
9974         Reported by Bruno Haible.
9975
9976 2009-08-20  Eric Blake  <ebb9@byu.net>
9977
9978         build: avoid some compiler warnings
9979         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
9980         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
9981         type.
9982         (new_exclude_segment, excluded_file_pattern_p)
9983         (excluded_file_name_p): Reduce scope.
9984         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
9985         old-style declaration.
9986
9987 2009-08-20  Simon Josefsson  <simon@josefsson.org>
9988
9989         * tests/test-exclude1.sh: Handle Windows EOL.
9990         * tests/test-exclude2.sh: Likewise.
9991         * tests/test-exclude3.sh: Likewise.
9992         * tests/test-exclude4.sh: Likewise.
9993         * tests/test-exclude5.sh: Likewise.
9994         * tests/test-exclude6.sh: Likewise.
9995         * tests/test-exclude7.sh: Likewise.
9996
9997 2009-08-19  Akim Demaille  <demaille@gostai.com>
9998
9999         bootstrap: find sha1sum when named gsha1sum.
10000         * bootstrap (find_tool): New.
10001         ($SHA1SUM): New.
10002         Use it.
10003
10004 2009-08-20  Jim Meyering  <meyering@redhat.com>
10005
10006         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
10007         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
10008         expression that converts "." in a file name to "\." in the resulting
10009         regexp.  Start with a dummy statement, so that prior shell variable
10010         definitions are expanded portably.  Reported by Simon Josefsson.
10011
10012 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
10013
10014         Fix polling for writeability of a screen buffer.
10015         * lib/poll.c: Distinguish input and screen buffers for the
10016         Win32 implementation.
10017         * lib/select.c: Likewise.
10018
10019 2009-08-19  Eric Blake  <ebb9@byu.net>
10020
10021         popen-safer: prevent popen from clobbering std descriptors
10022         * modules/popen-safer: New file.
10023         * lib/popen-safer.c: Likewise.
10024         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
10025         * lib/stdio--.h (popen): Provide override.
10026         * lib/stdio-safer.h (popen_safer): Provide declaration.
10027         * tests/test-popen.c (includes): Partially test this.
10028         * modules/popen-safer-tests: New file, for more tests.
10029         * tests/test-popen-safer.c: Likewise.
10030         * MODULES.html.sh (file stream based Input/Output): Mention it.
10031
10032         tests: test some of the *-safer modules
10033         * modules/fopen-safer (Depends-on): Add fopen.
10034         * modules/fcntl-safer (Depends-on): Add fcntl.
10035         * modules/stdlib-safer (Depends-on): Add stdlib.
10036         (configure.ac): Set indicator.
10037         * modules/unistd-safer (configure.ac): Likewise.
10038         * modules/tmpfile-safer (configure.ac): Likewise.
10039         (Depends-on): Add tmpfile.
10040         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
10041         active.
10042         * tests/test-fopen.c (includes): Test safer versions when they are
10043         in use.
10044         * tests/test-open.c (includes): Likewise.
10045
10046         popen: fix cygwin 1.5 bug when stdin closed
10047         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
10048         * modules/popen: New file.
10049         * modules/popen-tests: Likewise.
10050         * tests/test-popen.c: Likewise.
10051         * m4/popen.m4: Likewise.
10052         * lib/popen.c: Likewise.
10053         * lib/stdio.in.h (popen): New declaration.
10054         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
10055         * modules/stdio (Makefile.am): Likewise.
10056         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
10057
10058 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
10059
10060         maint.mk: give full control over update-copyright exclusions
10061         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
10062         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
10063         (update-copyright): Don't force inclusion of top-level
10064         ChangeLog.  Don't force exclusion of all COPYING files, but make
10065         them the default exclusion instead.
10066
10067 2009-08-16  Bruno Haible  <bruno@clisp.org>
10068
10069         Fix test failures on Solaris 10.
10070         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
10071         tests when Solaris iconv() is used.
10072         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
10073         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
10074         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
10075         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
10076         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
10077
10078 2009-08-16  Bruno Haible  <bruno@clisp.org>
10079
10080         Fix test failures on Solaris 10.
10081         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
10082         'tr' program and pass it as first argument.
10083         * tests/test-pipe-filter-gi1.sh: Likewise.
10084         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
10085         program as first argument.
10086         * tests/test-pipe-filter-gi1.c (main): Likewise.
10087
10088 2009-08-16  Eric Blake  <ebb9@byu.net>
10089
10090         fpurge: fix previous commits
10091         * modules/fpurge (Makefile.am): Make replacement conditional,
10092         partially reverting 2007-04-29 change; missed in previous
10093         attempt.
10094         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
10095         is missing.
10096
10097 2009-08-16  Bruno Haible  <bruno@clisp.org>
10098
10099         Clarify fpurge's effect on the file position.
10100         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
10101         * tests/test-fpurge.c (main): Make a second pass for checking the file
10102         position.
10103
10104 2009-08-16  Bruno Haible  <bruno@clisp.org>
10105
10106         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
10107         declaration of fpurge is missing.
10108         * tests/test-fpurge.c (main): Check that the file has not more contents
10109         than expected. Close the file before removing it.
10110
10111 2009-08-15  Eric Blake  <ebb9@byu.net>
10112
10113         fpurge: don't wrap working cygwin implementation
10114         * lib/fpurge.c (fpurge): Fix comment typo.
10115         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
10116         1.7 to avoid replacement.
10117         * tests/test-fpurge.c (main): Enhance test.
10118
10119 2009-08-15  Eric Blake  <ebb9@byu.net>
10120         and Jim Meyering  <meyering@redhat.com>
10121
10122         test-update-copyright: skip if perl is insufficient
10123         * tests/test-update-copyright.sh: Failure to run maintainer tool
10124         should not cause testsuite failure on cygwin 1.5.
10125
10126 2009-08-14  Eric Blake  <ebb9@byu.net>
10127
10128         doc: mention more functions added in cygwin 1.7.0
10129         * doc/posix-headers/limits.texi (limits.h): Update for recent
10130         cygwin additions.
10131         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
10132         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10133         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
10134         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
10135         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
10136
10137 2009-08-14  Eric Blake  <ebb9@byu.net>
10138
10139         maint.mk: simplify update-copyright rule
10140         * top/maint.mk (update-copyright-local): Delete, and document how
10141         to do it in cfg.mk instead.
10142         (update-copyright-exclude-regexp): Delete, and document how to do
10143         it in .x-update-copyright instead.
10144         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
10145         exclude ChangeLog.
10146
10147 2009-08-14  Bruno Haible  <bruno@clisp.org>
10148
10149         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
10150
10151 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
10152
10153         maint.mk: support update-copyright-env
10154         * top/maint.mk (update-copyright-env): Define place-holder.
10155         (update-copyright): Expand $(update-copyright-env) before
10156         invoking update-copyright.
10157
10158 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
10159
10160         update-copyright: implement forced reformatting
10161         * build-aux/update-copyright: Implement and document
10162         UPDATE_COPYRIGHT_FORCE.
10163         * tests/test-update-copyright.sh: Test it.
10164
10165 2009-08-14  Eric Blake  <ebb9@byu.net>
10166         and Bruno Haible  <bruno@clisp.org>
10167
10168         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
10169         * tests/test-locale.c: Revert previous patch related to NULL.
10170         * tests/test-stdio.c: Likewise.
10171         * tests/test-stdlib.c: Likewise.
10172         * tests/test-string.c: Likewise.
10173         * tests/test-unistd.c: Likewise.
10174         * modules/time-tests (Depends-on): Add verify.
10175         * modules/wchar-tests (Depends-on): Likewise.
10176         * tests/test-time.c: Test for NULL compliance.
10177         * tests/test-wchar.c: Likewise.
10178         * modules/locale (Depends-on): Add stddef.
10179         * modules/stdio (Depends-on): Likewise.
10180         * modules/stdlib (Depends-on): Likewise.
10181         * modules/string (Depends-on): Likewise.
10182         * modules/time (Depends-on): Likewise.
10183         * modules/unistd (Depends-on): Likewise.
10184         * modules/wchar (Depends-on): Likewise.
10185         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
10186         * lib/stdlib.in.h (includes): Likewise.
10187         * lib/string.in.h (includes): Likewise.
10188         * lib/time.in.h (includes): Likewise.
10189         * lib/unistd.in.h (includes): Likewise.
10190         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
10191         replaced.
10192         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
10193         * m4/stddef_h.m4: New file.
10194         * modules/stddef: Likewise.
10195         * lib/stddef.in.h: Likewise.
10196         * modules/stddef-tests: Likewise.
10197         * tests/test-stddef.c: Likewise.
10198         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
10199         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
10200         * doc/posix-headers/locale.texi (locale.h): Likewise.
10201         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
10202         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10203         * doc/posix-headers/string.texi (string.h): Likewise.
10204         * doc/posix-headers/time.texi (time.h): Likewise.
10205         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
10206         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
10207
10208 2009-08-14  Eric Blake  <ebb9@byu.net>
10209
10210         doc: improve git diff of texinfo files
10211         * .gitattributes: Add rule for *.texi files, with hint on how to
10212         use it.
10213         Copied from m4, and based on a report by Bruno Haible.
10214
10215 2009-08-14  Bruno Haible  <bruno@clisp.org>
10216
10217         Disable multithread support by default on Cygwin 1.5.x for real.
10218         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
10219
10220 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
10221
10222         update-copyright: much ado about intervals
10223         * build-aux/update-copyright: Implement and document
10224         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
10225         of copyright year intervals.
10226         Also, document UPDATE_COPYRIGHT_YEAR.
10227         * tests/test-update-copyright.sh: Test it.
10228
10229         update-copyright: convert 2-digit to 4-digit years
10230         * build-aux/update-copyright: Implement and document.
10231         * tests/test-update-copyright.sh: Update.
10232
10233 2009-08-14  Jim Meyering  <meyering@redhat.com>
10234
10235         test-exclude: avoid coreutils "make check" failure
10236         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
10237         just as in test-argmatch.c.
10238
10239 2009-08-13  Eric Blake  <ebb9@byu.net>
10240
10241         test-dup2: fix bad assumption
10242         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
10243         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
10244
10245         test-version-etc: fix CRLF portability issue
10246         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
10247         recognize \r.
10248         * tests/test-argp-version-etc-1.sh: Likewise.
10249
10250         getopt: update client modules
10251         * modules/argp (Depends-on): Use getopt-gnu.
10252         * modules/git-merge-changelog (Depends-on): Likewise.
10253         * modules/long-options (Depends-on): Likewise.
10254         * modules/xstrtol (Depends-on): Likewise.
10255
10256 2009-08-13  Simon Josefsson  <simon@josefsson.org>
10257
10258         * tests/test-version-etc.sh: Don't fail on different
10259         project/version.  Don't fail on CRLF differences.  Rewrite to use
10260         multiple -e instead of multiple sed forks, suggested by Eric Blake
10261         <ebb9@byu.net>.
10262         * tests/test-argp-version-etc-1.sh: Likewise.
10263
10264 2009-08-13  Simon Josefsson  <simon@josefsson.org>
10265
10266         * tests/test-version-etc.sh: Don't fail on different
10267         project/version.
10268
10269 2009-08-12  Bruno Haible  <bruno@clisp.org>
10270
10271         Tests for modules 'getopt-posix', 'getopt-gnu'.
10272         * modules/getopt-posix-tests: New file.
10273         * tests/test-getopt.c: New file.
10274         * tests/test-getopt.h: New file.
10275         * tests/test-getopt_long.h: New file.
10276
10277         New modules 'getopt-posix', 'getopt-gnu'.
10278         * modules/getopt-gnu: New file, renamed from modules/getopt.
10279         * modules/getopt-posix: New file.
10280         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
10281         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
10282         (gl_GETOPT): Remove macro.
10283         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
10284         Disable the test against BSD systems that declare optreset. Test
10285         against mingw bug. Test against lack of support of optional arguments
10286         on many platforms.
10287         * doc/glibc-headers/getopt.texi: Update module name and list of
10288         relevant platforms.
10289         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
10290         'getopt-gnu' and more portability problems.
10291         * NEWS: Mention the changes.
10292
10293 2009-08-12  Bruno Haible  <bruno@clisp.org>
10294
10295         Ensure that optarg etc. get declared by <unistd.h>.
10296         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
10297         AC_USE_SYSTEM_EXTENSIONS.
10298         * modules/getopt (Depends-on): Add 'extensions'.
10299
10300 2009-08-12  Bruno Haible  <bruno@clisp.org>
10301
10302         Avoid test link errors.
10303         * modules/pipe-filter-ii-tests (Makefile.am): Define
10304         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
10305         * modules/pipe-filter-gi-tests (Makefile.am): Define
10306         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
10307         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10308
10309 2009-08-12  Bruno Haible  <bruno@clisp.org>
10310
10311         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
10312         gl_GETOPT_SUBSTITUTE before.
10313         (gl_GETOPT): Use it.
10314         * m4/argp.m4 (gl_ARGP): Update.
10315         Reported by Sergey Poznyakoff.
10316
10317         * m4/getopt.m4: Reorder macros.
10318         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
10319         (gl_GETOPT_SUBSTITUTE): Remove macro.
10320
10321 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
10322
10323         Minor improvement in gitlog-to-changelog
10324
10325         * build-aux/gitlog-to-changelog: New option `--format' makes
10326         output format string configurable.
10327
10328 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
10329
10330         Optimize exclude: use hash tables for non-wildcard patterns.
10331
10332         * lib/exclude.c: Include hash.h and mbuiter.h
10333         (struct exclude_pattern, exclude_segment): New data types.
10334         (struct exclude): Rewrite.
10335         (fnmatch_pattern_has_wildcards): New function.
10336         (new_exclude_segment, free_exclude_segment): New functions.
10337         (excluded_file_pattern_p, excluded_file_name_p): New functions.
10338         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
10339         * lib/exclude.h (is_fnmatch_pattern): New prototype.
10340         * modules/exclude: Depend on hash and mbuiter.
10341
10342         * modules/exclude-tests: New file.
10343         * tests/test-exclude.c: New file.
10344         * tests/test-exclude1.sh: New file.
10345         * tests/test-exclude2.sh: New file.
10346         * tests/test-exclude3.sh: New file.
10347         * tests/test-exclude4.sh: New file.
10348         * tests/test-exclude5.sh: New file.
10349         * tests/test-exclude6.sh: New file.
10350         * tests/test-exclude7.sh: New file.
10351
10352 2009-08-12  Bruno Haible  <bruno@clisp.org>
10353
10354         Ensure that getopt() gets declared by <unistd.h>.
10355         * lib/unistd.in.h: Conditionally include getopt.h.
10356         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
10357         Set GNULIB_UNISTD_H_GETOPT.
10358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10359         GNULIB_UNISTD_H_GETOPT.
10360         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
10361
10362 2009-08-12  Bruno Haible  <bruno@clisp.org>
10363
10364         Clarify logic.
10365         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
10366         gl_replace_getopt instead of GETOPT_H.
10367
10368 2009-08-12  Bruno Haible  <bruno@clisp.org>
10369
10370         * m4/getopt.m4: Add comments.
10371
10372 2009-08-12  Bruno Haible  <bruno@clisp.org>
10373
10374         Disable multithread support by default on Cygwin 1.5.x.
10375         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
10376         set gl_use_threads=no if not specified otherwise.
10377
10378 2009-08-11  Bruno Haible  <bruno@clisp.org>
10379
10380         Avoid compilation error on NetBSD 5.0.
10381         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
10382         * tests/test-stdio.c: Likewise.
10383         * tests/test-stdlib.c: Likewise.
10384         * tests/test-string.c: Likewise.
10385         * tests/test-unistd.c: Likewise.
10386         Reported by Greg Troxel <gdt@ir.bbn.com>
10387         at <https://savannah.gnu.org/support/?106973>.
10388
10389 2009-08-11  Bruno Haible  <bruno@clisp.org>
10390
10391         * modules/dup2-tests (Depends-on): Remove close.
10392
10393         Undo 2009-07-19 commit.
10394         * modules/acl-tests (Depends-on): Remove close.
10395         * modules/binary-io-tests (Depends-on): Likewise.
10396         * modules/closein-tests (Depends-on): Likewise.
10397         * modules/flock-tests (Depends-on): Likewise.
10398         * modules/fsync-tests (Depends-on): Likewise.
10399         * modules/lseek-tests (Depends-on): Likewise.
10400         * modules/pipe-tests (Depends-on): Likewise.
10401         * modules/posix_spawn-tests (Depends-on): Likewise.
10402         * modules/posix_spawnp-tests (Depends-on): Likewise.
10403         * modules/stat-time-tests (Depends-on): Likewise.
10404         * modules/yesno-tests (Depends-on): Likewise.
10405
10406 2009-08-10  Bruno Haible  <bruno@clisp.org>
10407
10408         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
10409
10410 2009-08-10  Bruno Haible  <bruno@clisp.org>
10411
10412         Fix a gcc warning.
10413         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
10414
10415 2009-08-10  Bruno Haible  <bruno@clisp.org>
10416
10417         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
10418         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
10419         not only the first time.
10420         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
10421         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
10422         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
10423         is 1, not only the the first time.
10424
10425 2009-08-10  Bruno Haible  <bruno@clisp.org>
10426
10427         Make it possible to use module 'gethostname' without module 'close'.
10428         * lib/unistd.in.h (close): Evoke a link error only if
10429         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10430         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10431         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10432         * modules/unistd (Makefile.am): Substitute
10433         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10434         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
10435         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10436         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
10437         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10438         * modules/sys_ioctl (Makefile.am): Substitute
10439         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10440         * modules/socket (configure.ac): On native Windows, set
10441         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
10442         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10443         Reported by Sam Steingold <sds@gnu.org>.
10444
10445 2009-08-10  Bruno Haible  <bruno@clisp.org>
10446
10447         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
10448         * modules/ioctl (configure.ac): Likewise.
10449
10450 2009-08-10  Bruno Haible  <bruno@clisp.org>
10451
10452         Avoid collision between gnulib wrapper and libintl wrapper.
10453         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
10454         already defined in intl/printf.c.
10455         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
10456         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
10457
10458 2009-08-09  Bruno Haible  <bruno@clisp.org>
10459
10460         Make <sys/select.h> really self-contained, also on Solaris 10.
10461         * lib/sys_select.in.h: Include <string.h>.
10462         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
10463         Solaris 10 problem.
10464         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
10465         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
10466         Reported by Jim Meyering.
10467
10468 2009-08-09  Bruno Haible  <bruno@clisp.org>
10469
10470         Avoid warnings from 'aclocal' that are due to a use of macro name
10471         AM_XGETTEXT_OPTION that is not defined in automake.
10472         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
10473         automake.
10474         * modules/error (configure.ac): Likewise.
10475         * modules/propername (configure.ac): Likewise.
10476         * modules/vasprintf (configure.ac): Likewise.
10477         * modules/verror (configure.ac): Likewise.
10478         * modules/xprintf (configure.ac): Likewise.
10479         * modules/xvasprintf (configure.ac): Likewise.
10480
10481 2009-08-08  Bruno Haible  <bruno@clisp.org>
10482
10483         Avoid compilation error in C++ mode.
10484         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
10485         Reported by Sam Steingold <sds@gnu.org>.
10486
10487 2009-08-08  Bruno Haible  <bruno@clisp.org>
10488
10489         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
10490         for the various Unix platforms.
10491         * doc/posix-headers/limits.texi: Update platforms list regarding
10492         HOST_NAME_MAX.
10493         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10494
10495 2009-08-07  Jim Meyering  <meyering@redhat.com>
10496
10497         selinux-at: fix typo in a comment
10498         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
10499         Spotted by Paolo Bonzini.
10500
10501         selinux-at: remove redundant m4 code, add documentation
10502         * modules/selinux-at (configure.ac): Remove redundant code.
10503         LIB_SELINUX is already set via the dependent module, selinux-h.
10504         (Include): Add quotes around selinux-at.h.
10505         * lib/selinux-at.h: Add documentation.
10506         Reported by Bruno Haible in
10507         http://marc.info/?l=gnulib-bug&m=124958988300749
10508
10509 2009-08-07  Bruno Haible  <bruno@clisp.org>
10510
10511         Avoid link error on MacOS X 10.3 and 10.4.
10512         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
10513         on non-ELF systems.
10514         * lib/argp-pv.c (argp_program_version): Likewise.
10515         Reported by Simon Josefsson.
10516
10517 2009-08-07  Simon Josefsson  <simon@josefsson.org>
10518
10519         * tests/test-version-etc.sh: Use $EXEEXT.
10520
10521 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
10522
10523         update-copyright: update documentation to point to maint.mk
10524         * build-aux/update-copyright: Here.
10525
10526 2009-08-06  Jim Meyering  <meyering@redhat.com>
10527
10528         maint.mk: support update-copyright-local
10529         * top/maint.mk (update-copyright-local): Define place-holder.
10530         (update-copyright): Depend on $(update-copyright-local).
10531
10532 2009-08-06  Jim Meyering  <meyering@redhat.com>
10533
10534         selinux-at: new module
10535         Initially written for coreutils, this module will soon be
10536         used by findutils, too.
10537         * MODULES.html.sh [Misc]: Add selinux-at.
10538         * lib/selinux-at.h: New file, from coreutils.
10539         * lib/selinux-at.c: Likewise.
10540         * modules/selinux-at: Likewise.
10541         (License): Change from LGPL to GPL, since it depends
10542         on the GPL'd openat module.
10543
10544         doc: update README
10545         * README: Remove references to cogito.
10546         Remove cvs-repo-updating instructions from 2007.
10547         Don't imply that CVS is better if you have limited disk space.
10548
10549 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10550
10551         update-copyright: support C-style comments
10552         * build-aux/update-copyright: Implement and document.
10553         * tests/test-update-copyright.sh: Test.
10554
10555 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10556
10557         update-copyright: support omitted "(C)"
10558         * build-aux/update-copyright: Implement and document.  Also,
10559         allow variable whitespace before "(C)".
10560         * tests/test-update-copyright.sh: Test.
10561
10562 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10563
10564         update-copyright: don't trip on non-FSF copyright statements
10565         * build-aux/update-copyright: Fix so that the first correctly
10566         formatted FSF copyright statement is recognized no matter what
10567         appears before it.  Update documentation.
10568         * tests/test-update-copyright.sh: Test that.
10569
10570 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10571
10572         update-copyright: clean up code a little
10573         * build-aux/update-copyright: Append "_re" to the name of any
10574         variable holding a regular expression.
10575         Replace "old" and "new" with "stmt" in variable names.
10576         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
10577         handled correctly.
10578         Format code more consistently.
10579
10580 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10581
10582         update-copyright-tests: improve portability
10583         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
10584         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
10585
10586 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
10587
10588         update-copyright: support @copyright{} and &copy;
10589         * build-aux/update-copyright: Implement and document.
10590         * tests/test-update-copyright.sh: Test.
10591
10592 2009-08-04  Jim Meyering  <meyering@redhat.com>
10593
10594         update-copyright-tests: correctly test EOL=\r\n handling
10595         * tests/test-update-copyright.sh: Put \r at the end of some lines
10596         for the dos-eol tests.  Based on a patch by Joel E. Denny.
10597
10598         maint.mk: make update-copyright exclusion list more configurable
10599         * top/maint.mk (update-copyright): Default to excluding COPYING,
10600         but allow an override, in case someone does want to update that file.
10601
10602         maint.mk: don't update copyright date in COPYING
10603         * top/maint.mk (update-copyright): Exclude COPYING.
10604
10605         maint.mk: add a copyright-updating rule
10606         * top/maint.mk (update-copyright): New rule.
10607         Derived from coreutils/Makefile.am.
10608
10609         update-copyright: rename some variables
10610         * build-aux/update-copyright: Rename a few variables for clarity.
10611         Tweak syntax.  List Joel E. Denny as coauthor.
10612
10613 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
10614
10615         update-copyright: fix bug for 2-digit last year and add tests
10616         * build-aux/update-copyright: Fix bug.
10617         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
10618         specified.
10619         * modules/update-copyright-tests: New
10620         * tests/test-update-copyright.sh: New.
10621
10622 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
10623
10624         update-copyright: handle leading tabs in line prefix
10625         * build-aux/update-copyright: Count leading tabs as 8 spaces
10626         when computing margin.  This helps with the formatting of
10627         ChangeLogs, for example.
10628         Fix documentation a little.
10629
10630 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
10631
10632         update-copyright: support EOL=\r\n
10633         * build-aux/update-copyright: Implement that.
10634
10635 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
10636
10637         update-copyright: automatically format copyright statements
10638         * build-aux/update-copyright: Implement that.
10639         Also, be a little more predictable and safer by always failing
10640         when the full copyright format is not perfectly recognized as an
10641         unbroken whole.  Discussed at
10642         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
10643         Rewrite documentation.
10644
10645 2009-08-03  Bruno Haible  <bruno@clisp.org>
10646
10647         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
10648
10649 2009-08-02  Bruno Haible  <bruno@clisp.org>
10650
10651         Tests for module 'uname'.
10652         * modules/uname-tests: New file.
10653         * tests/test-uname.c: New file.
10654
10655         New module 'uname'.
10656         * lib/uname.c: New file.
10657         * m4/uname.m4: New file.
10658         * modules/uname: New file.
10659         * doc/posix-functions/uname.texi: Mention the new module.
10660
10661 2009-08-02  Bruno Haible  <bruno@clisp.org>
10662
10663         Tests for module 'sys_utsname'.
10664         * modules/sys_utsname-tests: New file.
10665         * tests/test-sys_utsname.c: New file.
10666
10667         New module 'sys_utsname'.
10668         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
10669         * m4/sys_utsname_h.m4: New file.
10670         * modules/sys_utsname: New file.
10671         * doc/posix-headers/sys_utsname.texi: Mention the new module.
10672
10673 2009-08-02  Bruno Haible  <bruno@clisp.org>
10674
10675         Implicitly initialize the sockets library.
10676         * lib/gethostname.c: Include sockets.h.
10677         (rpl_gethostname): Invoke gl_sockets_startup.
10678         * lib/socket.c: Include sockets.h.
10679         (rpl_socket): Invoke gl_sockets_startup.
10680         * modules/gethostname (Depends-on): Add sockets.
10681         * modules/socket (Depends-on): Likewise.
10682         * tests/test-poll.c: Don't include sockets.h.
10683         (main): Don't invoke gl_sockets_startup.
10684         * tests/test-select.c: Don't include sockets.h.
10685         (main): Don't invoke gl_sockets_startup.
10686
10687 2009-08-02  Bruno Haible  <bruno@clisp.org>
10688
10689         Allow multiple calls to gl_sockets_startup.
10690         * lib/sockets.c (initialized_sockets_version): New variable.
10691         (gl_sockets_startup): Do nothing if already called for this or a higher
10692         version.
10693         (gl_sockets_cleanup): Reset initialized_sockets_version.
10694
10695 2009-08-03  Simon Josefsson  <simon@josefsson.org>
10696
10697         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
10698         different project/version.
10699
10700 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
10701             Bruno Haible  <bruno@clisp.org>
10702
10703         Tests for module 'pipe-filter-gi'.
10704         * modules/pipe-filter-gi-tests: New file.
10705         * tests/test-pipe-filter-gi1.sh: New file.
10706         * tests/test-pipe-filter-gi1.c: New file.
10707         * tests/test-pipe-filter-gi2.sh: New file.
10708         * tests/test-pipe-filter-gi2-main.c: New file.
10709         * tests/test-pipe-filter-gi2-child.c: New file.
10710
10711         New module 'pipe-filter-gi'.
10712         * lib/pipe-filter-gi.c: New file.
10713         * modules/pipe-filter-gi: New file.
10714
10715 2009-08-02  Bruno Haible  <bruno@clisp.org>
10716             Paolo Bonzini  <bonzini@gnu.org>
10717
10718         Tests for module 'pipe-filter-ii'.
10719         * modules/pipe-filter-ii-tests: New file.
10720         * tests/test-pipe-filter-ii1.sh: New file.
10721         * tests/test-pipe-filter-ii1.c: New file.
10722         * tests/test-pipe-filter-ii2.sh: New file.
10723         * tests/test-pipe-filter-ii2-main.c: New file.
10724         * tests/test-pipe-filter-ii2-child.c: New file.
10725
10726         New module 'pipe-filter-ii'.
10727         * lib/pipe-filter.h: New file.
10728         * lib/pipe-filter-ii.c: New file.
10729         * lib/pipe-filter-aux.h: New file.
10730         * modules/pipe-filter-ii: New file.
10731
10732 2009-08-02  Simon Josefsson  <simon@josefsson.org>
10733
10734         * lib/gc-libgcrypt.c: Change copyright to FSF.
10735         * lib/gc-gnulib.c: Likewise.
10736
10737 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
10738
10739         * lib/gethostname.c: Include limits.h.
10740
10741 2009-08-02  Simon Josefsson  <simon@josefsson.org>
10742             Bruno Haible  <bruno@clisp.org>
10743
10744         Ensure HOST_NAME_MAX as part of the gethostname module.
10745         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
10746         define also HOST_NAME_MAX.
10747         * tests/test-gethostname.c: Include <limits.h>.
10748         (main): Check also HOST_NAME_MAX.
10749         * doc/posix-headers/limits.texi: Document the mingw problem.
10750
10751 2009-08-02  Bruno Haible  <bruno@clisp.org>
10752
10753         * lib/gethostname.c (gethostname): Fix handling of large len argument.
10754         Add comments.
10755
10756 2009-03-31  Simon Josefsson  <simon@josefsson.org>
10757
10758         * lib/gethostname.c: Add Windows wrapper.
10759         * m4/gethostname.m4: Look for gethostname in -lws2_32.
10760         * modules/gethostname: Depend on sys_socket & errno, for also
10761         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
10762         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
10763
10764 2009-07-31  Jim Meyering  <meyering@redhat.com>
10765
10766         getloadavg: fix symbol name in comment
10767         * lib/getloadavg.c: Correct a typo I introduced when adding
10768         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
10769         Matt Kraai spotted the problem.
10770
10771 2009-07-29  Matt Kraai  <mkraai@beckman.com>
10772
10773         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
10774         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
10775         code also if ! defined N_NAME_POINTER.
10776         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
10777         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
10778         but the n_name member is a 12-byte array.
10779
10780 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
10781
10782         update-copyright: generalize comment handling
10783         * build-aux/update-copyright: Handle copyright statements
10784         within more comment styles.
10785         Document usage.
10786         Report any file with an external copyright holder or parse failure.
10787
10788 2009-07-29  Jim Meyering  <meyering@redhat.com>
10789
10790         mktime: correct setting of REPLACE_MKTIME
10791         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
10792
10793         update-copyright: new module
10794         * modules/update-copyright: New file.
10795         * build-aux/update-copyright: New file.
10796         * MODULES.html.sh (maint+release support): Add update-copyright.
10797
10798 2009-07-27  Bruno Haible  <bruno@clisp.org>
10799
10800         Fix compilation error when <ctime> is used and mktime is replaced.
10801         * lib/time.in.h (mktime): New declaration.
10802         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
10803         REPLACE_MKTIME instead of defining mktime in config.h.
10804         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
10805         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
10806         Reported by Ross McFarland <rwmcfa1@neces.com>.
10807
10808 2009-07-27  Bruno Haible  <bruno@clisp.org>
10809
10810         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
10811         Reported by Matt Kraai <mkraai@beckman.com>.
10812
10813 2009-07-25  Jim Meyering  <meyering@redhat.com>
10814
10815         maint.mk: avoid warnings about missing files
10816         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
10817         diagnostic when .prev-version does not exist.
10818         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
10819         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
10820         nonexistent cfg.mk.
10821         Suggestions from Simon Josefsson.
10822
10823 2009-07-25  Bruno Haible  <bruno@clisp.org>
10824
10825         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
10826         defined as macros. Needed on QNX 6.4.1.
10827         Reported by Matt Kraai <mkraai@beckman.com>.
10828
10829 2009-07-23  Jim Meyering  <meyering@redhat.com>
10830
10831         maint.mk: invoke "make dist" with a working value of XZ_OPT
10832         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
10833
10834 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
10835
10836         Make fseeko.c compile on QNX.
10837         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
10838
10839 2009-07-22  Peter Simons  <simons@cryp.to>
10840
10841         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
10842         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
10843         * lib/md4.h: Likewise.
10844         * lib/md5.h: Likewise.
10845         * lib/sha1.h: Likewise.
10846         * lib/sha256.h: Likewise.
10847         * lib/sha512.h: Likewise.
10848
10849         tests-sha1: don't assign literal string to 'char *' variable
10850         * tests/test-sha1.c (main): Declare locals with "const" to match
10851         attributes of the right hand side.
10852
10853 2009-07-21  Eric Blake  <ebb9@byu.net>
10854
10855         dup2: fix more mingw problems
10856         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
10857         fd to itself.
10858         * doc/posix-functions/dup2.texi (dup2): Document the bug.
10859         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
10860         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
10861         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
10862         care of mingw bugs.
10863
10864 2009-07-21  Jim Meyering  <meyering@redhat.com>
10865
10866         vc-list-files: avoid failure when /bin/sh is dash
10867         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
10868         On some Debian based systems, /bin/sh is a symlink to dash, and running
10869         this command would omit the "/" following each 'tests' prefix:
10870           dash -x build-aux/vc-list-files -C . tests
10871         That is because bash and dash work differently:
10872           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
10873           bash ok
10874           dash odd
10875
10876 2009-07-21  Eric Blake  <ebb9@byu.net>
10877
10878         dup2-tests: test previous patch
10879         * modules/dup2-tests: New file.
10880         * tests/test-dup2.c: Likewise.
10881         * tests/test-open.c (main): Avoid unspecified behavior.
10882         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
10883         test.
10884
10885         dup2: work around mingw and cygwin 1.5 bug
10886         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
10887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10888         * modules/unistd (Makefile.am): Substitute it.
10889         * lib/unistd.in.h (dup2): Declare the replacement.
10890         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
10891         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
10892         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
10893         * modules/execute (Depends-on): Add dup2.
10894         * modules/fseterr (Depends-on): Likewise.
10895         * modules/pipe (Depends-on): Likewise.
10896         * modules/posix_spawn-internal (Depends-on): Likewise.
10897
10898 2009-07-21  Bruno Haible  <bruno@clisp.org>
10899
10900         * modules/.gitattributes: New file.
10901
10902 2009-07-20  Bruno Haible  <bruno@clisp.org>
10903
10904         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
10905         (main): Use it.
10906
10907 2009-07-20  Eric Blake  <ebb9@byu.net>
10908
10909         test-pipe: make a bit more robust.
10910         * tests/test-pipe.c (myerr): Allow error messages regardless of
10911         what we do to stderr.
10912         (test_pipe): Rearrange to avoid deadlock.
10913         (child_main): Try a larger read, to ensure we avoided deadlock.
10914         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
10915         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
10916         if misused.
10917
10918 2009-07-19  Jim Meyering  <meyering@redhat.com>
10919
10920         fts: avoid false-positive cycle-detection
10921         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
10922         for each new command line argument.
10923
10924 2009-07-19  Bruno Haible  <bruno@clisp.org>
10925
10926         Fix build error on mingw with the modules sys_select and unistd.
10927         * modules/acl-tests (Depends-on): Add close.
10928         * modules/binary-io-tests (Depends-on): Likewise.
10929         * modules/closein-tests (Depends-on): Likewise.
10930         * modules/flock-tests (Depends-on): Likewise.
10931         * modules/fsync-tests (Depends-on): Likewise.
10932         * modules/lseek-tests (Depends-on): Likewise.
10933         * modules/pipe-tests (Depends-on): Likewise.
10934         * modules/posix_spawn-tests (Depends-on): Likewise.
10935         * modules/posix_spawnp-tests (Depends-on): Likewise.
10936         * modules/stat-time-tests (Depends-on): Likewise.
10937         * modules/yesno-tests (Depends-on): Likewise.
10938
10939 2009-07-19  Bruno Haible  <bruno@clisp.org>
10940
10941         Unify conditionals.
10942         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
10943         macros, not at the compiler macros.
10944         * lib/pipe.c: Likewise.
10945         * lib/execute.c: Likewise.
10946         * lib/spawni.c: Likewise.
10947
10948 2009-07-19  Bruno Haible  <bruno@clisp.org>
10949
10950         Fix handling of closed stdin/stdout/stderr on mingw.
10951         * lib/w32spawn.h: Include unistd.h.
10952         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
10953         file descriptor with O_NOINHERIT flag.
10954         (fd_safer_noinherit): New function, based on fd-safer.c.
10955         (dup_safer_noinherit): New function, based on dup-safer.c.
10956         (undup_safer_noinherit): New function.
10957         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
10958         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
10959         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
10960         instead of fd_safer.
10961         * tests/test-pipe.c: Include <windows.h>.
10962         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
10963
10964         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
10965         from main.
10966         (test_pipe): Pass an extra argument for disambiguation.
10967         (main): Invoke parent_main or child_main.
10968
10969         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
10970         consistently.
10971
10972 2009-07-18  Eric Blake  <ebb9@byu.net>
10973
10974         test-pipe: fix mingw build
10975         * tests/test-pipe.c (main): Avoid fcntl on mingw.
10976
10977 2009-07-18  Bruno Haible  <bruno@clisp.org>
10978
10979         * modules/pipe-tests (Makefile.am): Fix typo.
10980
10981 2009-07-18  Eric Blake  <ebb9@byu.net>
10982
10983         error: fix mingw build
10984         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
10985         Reported by Bruno Haible.
10986
10987         error: avoid undefined use of stdout
10988         * lib/error.c (error, error_at_line): Check that fd 1 is open
10989         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
10990         is handling faults and the close_stdout module wants to report the
10991         detection of closed stdout as an error.
10992
10993 2009-07-17  Eric Blake  <ebb9@byu.net>
10994
10995         pipe: be robust in face of closed fds
10996         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
10997         should cause child to misbehave.
10998         * modules/pipe-tests: New module.
10999         * tests/test-pipe.c: New file.
11000         * tests/test-pipe.sh: New file.
11001         Reported by Akim Demaille.
11002
11003 2009-07-14  Bruno Haible  <bruno@clisp.org>
11004
11005         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
11006         Reported by anonymous kc.
11007
11008 2009-07-07  Jim Meyering  <meyering@redhat.com>
11009
11010         maint.mk: don't look for translatable strings in *.m4 or *.mk
11011         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
11012         when searching for translatable strings.
11013
11014 2009-07-05  Jim Meyering  <meyering@redhat.com>
11015
11016         remove superfluous parentheses in STREQ definition
11017         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
11018         * lib/getugroups.c (STREQ): Likewise.
11019         * lib/fnmatch.c (STREQ): Likewise.
11020         Spotted by Bruno Haible.
11021
11022 2009-07-04  Jim Meyering  <meyering@redhat.com>
11023
11024         argv-iter: new module
11025         * MODULES.html.sh: Add argv-iter.
11026         * lib/argv-iter.c, lib/argv-iter.h: New files.
11027         * modules/argv-iter: New file.
11028         * modules/argv-iter-tests: New file.
11029         * tests/test-argv-iter.c: Test it.
11030
11031 2009-07-04  Bruno Haible  <bruno@clisp.org>
11032
11033         Fix assertion.
11034         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
11035         contains more exact copies of a given entry than file2, leave the extra
11036         copies unpaired rather than aborting.
11037         Reported by Eric Blake.
11038
11039 2009-07-02  Bruno Haible  <bruno@clisp.org>
11040
11041         Speedup git-merge-changelog for git cherry-pick.
11042         * lib/git-merge-changelog.c (struct entries_mapping): New type.
11043         (entries_mapping_get): New function, extracted from compute_mapping.
11044         (entries_mapping_reverse_get): New function.
11045         (compute_mapping): Add a 'full' argument. Return the result in a
11046         'struct entries_mapping'.
11047         (main): Update. Access the mappings through entries_mapping_get.
11048         Reported by Eric Blake.
11049
11050 2009-07-02  Bruno Haible  <bruno@clisp.org>
11051
11052         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
11053         best_i.
11054
11055 2009-07-02  Bruno Haible  <bruno@clisp.org>
11056
11057         Speed up approximate search for matching ChangeLog entries.
11058         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
11059         argument. Call fstrcmp_bounded instead of fstrcmp.
11060         (compute_mapping, try_split_merged_entry, main): Update callers.
11061
11062 2009-07-02  Bruno Haible  <bruno@clisp.org>
11063
11064         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
11065
11066 2009-06-30  Bruno Haible  <bruno@clisp.org>
11067
11068         Reduce the number of uc_is_cased calls.
11069         * lib/unicase.h (casing_suffix_context_t): Add
11070         'first_char_except_ignorable' field.
11071         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
11072         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
11073         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
11074         Update initializer.
11075         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
11076         case-ignorable characters.
11077         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
11078         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
11079         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
11080         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
11081         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
11082
11083 2009-06-30  Bruno Haible  <bruno@clisp.org>
11084
11085         Tests for module 'unicase/ignorable'.
11086         * modules/unicase/ignorable-tests: New file.
11087         * tests/unicase/test-ignorable.c: New file, generated by
11088         gen-uni-tables.
11089
11090         Tests for module 'unicase/cased'.
11091         * modules/unicase/cased-tests: New file.
11092         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
11093         * tests/unicase/test-predicate-part1.h: New file, derived from
11094         tests/unictype/test-predicate-part1.h.
11095         * tests/unicase/test-predicate-part2.h: New file, same as
11096         tests/unictype/test-predicate-part2.h.
11097
11098         Fix evaluation of "Before C" condition of FINAL_SIGMA.
11099         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
11100         (output_casing_properties): New function.
11101         (main): Call it.
11102         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
11103         * lib/unicase/cased.c: Include unictype/bitmap.h.
11104         (uc_is_cased): Define through a bitmap lookup.
11105         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
11106         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
11107         (uc_is_case_ignorable): Define through a bitmap lookup.
11108         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
11109         lib/unictype/bitmap.h.
11110         (Depends-on): Add inline. Clean up.
11111         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
11112         lib/unictype/bitmap.h.
11113         (Depends-on): Add inline. Clean up.
11114         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
11115         recognition.
11116         * tests/unicase/test-u16-tolower.c (main): Likewise.
11117         * tests/unicase/test-u32-tolower.c (main): Likewise.
11118
11119 2009-06-30  Bruno Haible  <bruno@clisp.org>
11120
11121         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
11122         * lib/unicase/u16-casemap.c: Likewise.
11123         * lib/unicase/u32-casemap.c: Likewise.
11124
11125 2009-06-29  Bruno Haible  <bruno@clisp.org>
11126
11127         Define u32_casefold as a wrapper around u32_ct_casefold.
11128         * lib/unicase/u32-casefold.c: Update.
11129         * modules/unicase/u32-casefold (Depends-on): Add
11130         unicase/u32-ct-casefold, unicase/empty-prefix-context,
11131         unicase/empty-suffix-context. Clean up.
11132
11133         Define u16_casefold as a wrapper around u16_ct_casefold.
11134         * lib/unicase/u16-casefold.c: Update.
11135         * modules/unicase/u16-casefold (Depends-on): Add
11136         unicase/u16-ct-casefold, unicase/empty-prefix-context,
11137         unicase/empty-suffix-context. Clean up.
11138
11139         Define u8_casefold as a wrapper around u8_ct_casefold.
11140         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
11141         * lib/unicase/u8-casefold.c: Update.
11142         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
11143         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11144
11145         Define u32_totitle as a wrapper around u32_ct_totitle.
11146         * lib/unicase/u32-totitle.c: Update.
11147         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
11148         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11149
11150         Define u16_totitle as a wrapper around u16_ct_totitle.
11151         * lib/unicase/u16-totitle.c: Update.
11152         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
11153         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11154
11155         Define u8_totitle as a wrapper around u8_ct_totitle.
11156         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
11157         functions.
11158         (FUNC): Delegate to U_CT_TOTITLE.
11159         * lib/unicase/u8-totitle.c: Update.
11160         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
11161         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11162
11163         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
11164         invocation.
11165         * modules/unicase/u32-tolower (Depends-on): Add
11166         unicase/empty-prefix-context, unicase/empty-suffix-context.
11167
11168         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
11169         invocation.
11170         * modules/unicase/u16-tolower (Depends-on): Add
11171         unicase/empty-prefix-context, unicase/empty-suffix-context.
11172
11173         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
11174         * modules/unicase/u8-tolower (Depends-on): Add
11175         unicase/empty-prefix-context, unicase/empty-suffix-context.
11176
11177         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
11178         invocation.
11179         * modules/unicase/u32-toupper (Depends-on): Add
11180         unicase/empty-prefix-context, unicase/empty-suffix-context.
11181
11182         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
11183         invocation.
11184         * modules/unicase/u16-toupper (Depends-on): Add
11185         unicase/empty-prefix-context, unicase/empty-suffix-context.
11186
11187         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
11188         * modules/unicase/u8-toupper (Depends-on): Add
11189         unicase/empty-prefix-context, unicase/empty-suffix-context.
11190
11191         New module 'unicase/u32-ct-casefold'.
11192         * lib/unicase/u32-ct-casefold.c: New file.
11193         * modules/unicase/u32-ct-casefold: New file.
11194
11195         New module 'unicase/u16-ct-casefold'.
11196         * lib/unicase/u16-ct-casefold.c: New file.
11197         * modules/unicase/u16-ct-casefold: New file.
11198
11199         New module 'unicase/u8-ct-casefold'.
11200         * lib/unicase/u8-ct-casefold.c: New file.
11201         * lib/unicase/u-ct-casefold.h: New file, derived from
11202         lib/unicase/u-casefold.h.
11203         * modules/unicase/u8-ct-casefold: New file.
11204
11205         New module 'unicase/u32-ct-totitle'.
11206         * lib/unicase/u32-ct-totitle.c: New file.
11207         * modules/unicase/u32-ct-totitle: New file.
11208
11209         New module 'unicase/u16-ct-totitle'.
11210         * lib/unicase/u16-ct-totitle.c: New file.
11211         * modules/unicase/u16-ct-totitle: New file.
11212
11213         New module 'unicase/u8-ct-totitle'.
11214         * lib/unicase/u8-ct-totitle.c: New file.
11215         * lib/unicase/u-ct-totitle.h: New file, derived from
11216         lib/unicase/u-totitle.h.
11217         * modules/unicase/u8-ct-totitle: New file.
11218
11219         New module 'unicase/u32-ct-tolower'.
11220         * lib/unicase/u32-ct-tolower.c: New file.
11221         * modules/unicase/u32-ct-tolower: New file.
11222
11223         New module 'unicase/u16-ct-tolower'.
11224         * lib/unicase/u16-ct-tolower.c: New file.
11225         * modules/unicase/u16-ct-tolower: New file.
11226
11227         New module 'unicase/u8-ct-tolower'.
11228         * lib/unicase/u8-ct-tolower.c: New file.
11229         * modules/unicase/u8-ct-tolower: New file.
11230
11231         New module 'unicase/u32-ct-toupper'.
11232         * lib/unicase/u32-ct-toupper.c: New file.
11233         * modules/unicase/u32-ct-toupper: New file.
11234
11235         New module 'unicase/u16-ct-toupper'.
11236         * lib/unicase/u16-ct-toupper.c: New file.
11237         * modules/unicase/u16-ct-toupper: New file.
11238
11239         New module 'unicase/u8-ct-toupper'.
11240         * lib/unicase/u8-ct-toupper.c: New file.
11241         * modules/unicase/u8-ct-toupper: New file.
11242
11243         Add context arguments to u*_casemap functions.
11244         * lib/unicase/unicasemap.h: Include unicase.h.
11245         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
11246         suffix_context arguments.
11247         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
11248         functions.
11249         (FUNC): Add prefix_context and suffix_context arguments. Use
11250         uc_is_cased and uc_is_case_ignorable.
11251         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
11252         * lib/unicase/u16-casemap.c: Likewise.
11253         * lib/unicase/u32-casemap.c: Likewise.
11254         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
11255         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11256         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
11257         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11258         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
11259         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11260
11261         New module 'unicase/u32-suffix-context'.
11262         * lib/unicase/u32-suffix-context.c: New file.
11263         * modules/unicase/u32-suffix-context: New file.
11264
11265         New module 'unicase/u16-suffix-context'.
11266         * lib/unicase/u16-suffix-context.c: New file.
11267         * modules/unicase/u16-suffix-context: New file.
11268
11269         New module 'unicase/u8-suffix-context'.
11270         * lib/unicase/u8-suffix-context.c: New file.
11271         * lib/unicase/u-suffix-context.h: New file.
11272         * modules/unicase/u8-suffix-context: New file.
11273
11274         New module 'unicase/empty-suffix-context'.
11275         * lib/unicase/empty-suffix-context.c: New file.
11276         * modules/unicase/empty-suffix-context: New file.
11277
11278         New module 'unicase/u32-prefix-context'.
11279         * lib/unicase/u32-prefix-context.c: New file.
11280         * modules/unicase/u32-prefix-context: New file.
11281
11282         New module 'unicase/u16-prefix-context'.
11283         * lib/unicase/u16-prefix-context.c: New file.
11284         * modules/unicase/u16-prefix-context: New file.
11285
11286         New module 'unicase/u8-prefix-context'.
11287         * lib/unicase/u8-prefix-context.c: New file.
11288         * lib/unicase/u-prefix-context.h: New file.
11289         * lib/unicase/context.h: New file.
11290         * modules/unicase/u8-prefix-context: New file.
11291
11292         New module 'unicase/empty-prefix-context'.
11293         * lib/unicase/empty-prefix-context.c: New file.
11294         * modules/unicase/empty-prefix-context: New file.
11295
11296         New module 'unicase/ignorable'.
11297         * lib/unicase/ignorable.c: New file.
11298         * modules/unicase/ignorable: New file.
11299
11300         New module 'unicase/cased'.
11301         * lib/unicase/caseprop.h: New file.
11302         * lib/unicase/cased.c: New file.
11303         * modules/unicase/cased: New file.
11304
11305         New functions for case mapping of substrings.
11306         * lib/unicase.h (casing_prefix_context_t): New type.
11307         (unicase_empty_prefix_context): New variable.
11308         (u8_casing_prefix_context, u16_casing_prefix_context,
11309         u32_casing_prefix_context, u8_casing_prefixes_context,
11310         u16_casing_prefixes_context, u32_casing_prefixes_context): New
11311         declarations.
11312         (casing_suffix_context_t): New type.
11313         (unicase_empty_suffix_context): New variable.
11314         (u8_casing_suffix_context, u16_casing_suffix_context,
11315         u32_casing_suffix_context, u8_casing_suffixes_context,
11316         u16_casing_suffixes_context, u32_casing_suffixes_context,
11317         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
11318         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
11319         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
11320         declarations.
11321
11322 2009-06-28  Jim Meyering  <meyering@redhat.com>
11323
11324         boostrap: indent only with spaces
11325         * build-aux/bootstrap: Indent only with spaces, never TABs.
11326
11327         bootstrap: split long lines
11328         * build-aux/bootstrap: Keep line length < 80.
11329
11330         bootstrap: sync from coreutils
11331         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
11332         just as autoreconf does.  Verify a list of prerequisite
11333         package-name,version-number pairs if defined in bootstrap.conf.
11334         Refer to README-prereq, if prerequisites are not satisfied.
11335
11336 2009-06-27  Eric Blake  <ebb9@byu.net>
11337
11338         tests: add test for bogus NULL definition
11339         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
11340         * tests/test-stdlib.c: Likewise.
11341         * tests/test-string.c: Likewise.
11342         * tests/test-locale.c: Likewise.
11343         * tests/test-unistd.c: Likewise.
11344         * modules/stdio-tests (Depends-on): Add verify.
11345         * modules/stdlib-tests (Depends-on): Likewise.
11346         * modules/string-tests (Depends-on): Likewise.
11347         * modules/locale-tests (Depends-on): Likewise.
11348         * modules/unistd-tests (Depends-on): Likewise.
11349
11350 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
11351
11352         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
11353         self-explaining comment.
11354         * m4/selinux-selinux-h: Update serial.
11355         (gl_LIBSELINUX): New macro, adding a warning for missing development
11356         packages to code extracted from...
11357         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
11358         Add warning for missing development packages here, too.
11359
11360 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
11361
11362         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
11363
11364 2009-06-25  Eric Blake  <ebb9@byu.net>
11365
11366         version-etc: fix regression
11367         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
11368         gcc.
11369         (version_etc): Use it, to catch bugs with trailing NULL.
11370         * lib/version-etc.c (version_etc_arn): Delete unused argument.
11371         (version_etc_va): Fix logic bug.
11372         * modules/version-etc-tests: Add test.
11373         * tests/test-version-etc.c: New file.
11374         * tests/test-version-etc.sh: Likewise.
11375
11376 2009-06-25  Sam Steingold  <sds@gnu.org>
11377
11378         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
11379         mbtowc declaration.
11380
11381 2009-06-25  Eric Blake  <ebb9@byu.net>
11382
11383         fpurge: migrate into <stdio.h>
11384         * lib/fpurge.h: Delete...
11385         * lib/stdio.in.h (fpurge): ...and declare here, instead.
11386         * lib/fpurge.c (fpurge): Change declaring header.
11387         * modules/fpurge (Files): Drop deleted file.
11388         (Depends-on): Add stdio.
11389         (configure.ac): Set witness.
11390         * modules/stdio (Makefile.am): Support fpurge macros.
11391         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11392         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
11393         * lib/fflush.c: Update client.
11394         * tests/test-fpurge.c: Likewise.
11395         * NEWS: Mention the change.
11396
11397 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11398
11399         * lib/argp-version-etc.c (program_authors): Add const
11400         qualifier.
11401         * lib/version-etc.c: Fix typos in the comments.
11402         * modules/argp-version-etc: Depends on version-etc.
11403
11404 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11405
11406         argp-version-etc: new module.
11407
11408         * lib/argp-version-etc.c: New file.
11409         * lib/argp-version-etc.h: New file.
11410         * modules/argp-version-etc: New file.
11411         * modules/argp-version-etc-tests: New file.
11412         * tests/test-argp-version-etc.c: New test.
11413         * tests/test-argp-version-etc-1.sh: New test.
11414
11415 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11416
11417         Provide additional interfaces and documentation for version-etc
11418         module.
11419
11420         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
11421         interfaces.
11422         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
11423         prototypes.
11424
11425 2009-06-24  Bruno Haible  <bruno@clisp.org>
11426
11427         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
11428         HAVE_LIB${NAME} macro.
11429         Reported by Sam Steingold <sds@gnu.org>.
11430
11431 2009-06-23  Simon Josefsson  <simon@josefsson.org>
11432
11433         * modules/hash-tests (test_hash_LDADD): Link to libintl when
11434         needed.
11435
11436 2009-06-21  Bruno Haible  <bruno@clisp.org>
11437
11438         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
11439         work.
11440         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
11441         together with LIB${NAME}, LTLIB${NAME}.
11442         Reported by Sam Steingold <sds@gnu.org>.
11443
11444 2009-06-20  Jim Meyering  <meyering@redhat.com>
11445
11446         tests: make sc_require_test_exit_idiom more generic
11447         * top/maint.mk (Exit_witness_file): New overridable variable.
11448         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
11449         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
11450
11451 2009-06-19  Jim Meyering  <meyering@redhat.com>
11452
11453         hash: reverse order of src/dst parameters in an internal interface
11454         * lib/hash.c (transfer_entries): Reverse order of parameters to
11455         put DST before SRC.  Adjust callers.
11456
11457         tests: test-hash: avoid wholesale duplication
11458         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
11459         Instead, use a loop and add a single conditional.
11460
11461         tests: test-hash: allow seed selection via a command line argument
11462         * tests/test-hash.c (get_seed): New function.
11463         (main): Use it.
11464
11465 2009-06-19  Eric Blake  <ebb9@byu.net>
11466
11467         hash: avoid memory leak on allocation failure
11468         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
11469         failure.  Factor repeated algorithm...
11470         (transfer_entries): ...into new helper routine.
11471         (hash_delete): React to hash_rehash return value.
11472
11473         hash: reduce memory pressure in hash_rehash no-op case
11474         * lib/hash.c (next_prime): Avoid overflow.
11475         (hash_initialize): Factor bucket size computation...
11476         (compute_bucket_size): ...into new helper function.
11477         (hash_rehash): Use new function and open coding to reduce memory
11478         pressure, and avoid a memory leak in USE_OBSTACK code.
11479         Reported by Jim Meyering.
11480
11481 2009-06-18  Eric Blake  <ebb9@byu.net>
11482
11483         hash: make rotation more obvious
11484         * modules/hash (Depends-on): Add bitrotate and stdint.
11485         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
11486         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
11487         (SIZE_MAX): Rely on headers for definition.
11488         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
11489         (raw_hasher): Use rotr_sz.
11490         Suggested by Jim Meyering.
11491
11492         hash: fix memory leak in last patch
11493         * lib/hash.c (hash_rehash): Avoid memory leak.
11494
11495         hash: avoid no-op rehashing
11496         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
11497
11498         hash: provide default callback functions
11499         * lib/hash.c (raw_hasher, raw_comparator): New functions.
11500         (hash_initialize): Use them as defaults.
11501         * tests/test-hash.c (main): Test this.
11502
11503         hash: minor optimization
11504         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
11505         when possible.
11506         (hash_initialize): Document this promise.
11507         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
11508         * tests/test-hash.c (hash_compare_strings): Test this.
11509
11510 2009-06-18  Bruno Haible  <bruno@clisp.org>
11511
11512         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
11513         going to be replaced anyway.
11514
11515 2009-06-18  Bruno Haible  <bruno@clisp.org>
11516
11517         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
11518         in one place.
11519         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
11520         be replaced anyway.
11521
11522 2009-06-18  Eric Blake  <ebb9@byu.net>
11523
11524         hash: check for resize before insertion
11525         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
11526         threshold before insertion, so that a pathological hash_rehash
11527         that fills every bucket can still trigger another rehash.
11528
11529 2009-06-18  Jim Meyering  <meyering@redhat.com>
11530
11531         hash-tests: add a loop around the small tests
11532         * tests/test-hash.c (main): Repeat small tests with selected
11533         small initial table sizes.
11534
11535 2009-06-17  Eric Blake  <ebb9@byu.net>
11536
11537         hash: minor cleanups
11538         * lib/hash.h (hash_entry): Make opaque, by moving...
11539         * lib/hash.c (hash_entry): ...here.
11540         (hash_insert): Clarify restrictions on what can be inserted.
11541         (hash_get_next): Clarify when it is safe to remove an element
11542         during traversal.
11543         (check_tuning): Skip verification when tuning is known safe.
11544         (hash_initialize): Clarify restrictions on tuning.
11545
11546 2009-06-17  Jim Meyering  <jim@meyering.net>
11547         and Eric Blake  <ebb9@byu.net>
11548
11549         hash-tests: new module
11550         * modules/hash-tests: New file.
11551         * tests/test-hash.c: New file.
11552
11553 2009-06-17  Eric Blake  <ebb9@byu.net>
11554
11555         strstr-simple: document new module
11556         * MODULES.html.sh: Document new module.
11557
11558         strstr, strcasestr: replace on platforms with broken memchr
11559         * modules/strstr: Split into...
11560         * modules/strstr-simple: ...new module that does not care about
11561         performance, but does care about glibc bug.
11562         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
11563         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
11564         if platform memchr is broken, per Debian bug 521737.
11565         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
11566         memchr.
11567         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
11568         * doc/posix-functions/strstr.texi (strstr): Document the fix.
11569         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
11570         * modules/mountlist (Depends-on): Add strstr-simple.
11571         * modules/gen-uni-tables (Depends-on): Likewise.
11572         * modules/argz (Depends-on): Add strstr.
11573
11574 2009-06-17  Bruno Haible  <bruno@clisp.org>
11575
11576         * modules/posix_spawn-internal (Depends-on): Add errno.
11577
11578 2009-06-17  Bruno Haible  <bruno@clisp.org>
11579
11580         Define missing ESTALE on Interix 3.5.
11581         * lib/errno.in.h (ESTALE): Assign a value if missing.
11582         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
11583         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
11584         missing.
11585         * doc/posix-headers/errno.texi: Mention the Interix bug.
11586         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
11587
11588 2009-06-15  Eric Blake  <ebb9@byu.net>
11589
11590         memchr, memchr2: add valgrind exception
11591         * lib/memchr.valgrind: New file.
11592         * lib/memchr2.valgrind: New file.
11593         * modules/memchr (Files): Distribute valgrind file.
11594         * modules/memchr2 (Files): Likewise.
11595
11596         docs: memchr is no longer obsolete
11597         * MODULES.html.sh: Move memchr from obsolete to string.h section.
11598         * lib/string.in.h (memchr): Simplify logic.
11599
11600 2009-06-14  Jim Meyering  <meyering@redhat.com>
11601
11602         link-follow: fix the "checking..." message to not mention trailing slash
11603         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
11604         never considered trailing slashes.
11605
11606 2009-06-14  Bruno Haible  <bruno@clisp.org>
11607
11608         * m4/memchr.m4: Mention also the bug on IA-64.
11609         * doc/posix-functions/memchr.texi: Likewise.
11610
11611 2009-06-12  Eric Blake  <ebb9@byu.net>
11612
11613         memchr: detect broken x86_64 and alpha implementations
11614         * modules/memchr-tests (Depends-on): Move mmap detection...
11615         * modules/memchr (Depends-on): ...here.
11616         (configure.ac): Set indicator.
11617         * lib/string.in.h (memchr): Declare replacement.
11618         * modules/string (Makefile.am): Trigger replacement.
11619         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
11620         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
11621         bugs.
11622         * doc/posix-functions/memchr.texi (memchr): Document the bug.
11623         * modules/getpagesize (License): Relax license.
11624
11625 2009-06-11  Bruno Haible  <bruno@clisp.org>
11626
11627         * lib/idpriv.h: Add more references.
11628
11629 2009-06-08  Bruno Haible  <bruno@clisp.org>
11630
11631         Tests for module 'idpriv-droptemp'.
11632         * modules/idpriv-droptemp-tests: New file.
11633         * tests/test-idpriv-droptemp.sh: New file.
11634         * tests/test-idpriv-droptemp.su.sh: New file.
11635         * tests/test-idpriv-droptemp.c: New file.
11636
11637         New module 'idpriv-droptemp'.
11638         * lib/idpriv-droptemp.c: New file.
11639         * modules/idpriv-droptemp: New file.
11640
11641 2009-06-08  Bruno Haible  <bruno@clisp.org>
11642
11643         Tests for module 'idpriv-drop'.
11644         * modules/idpriv-drop-tests: New file.
11645         * tests/test-idpriv-drop.sh: New file.
11646         * tests/test-idpriv-drop.su.sh: New file.
11647         * tests/test-idpriv-drop.c: New file.
11648
11649         New module 'idpriv-drop'.
11650         * lib/idpriv.h: New file.
11651         * lib-idpriv-drop.c: New file.
11652         * m4/idpriv.m4: New file.
11653         * modules/idpriv-drop: New file.
11654
11655 2009-06-08  Bruno Haible  <bruno@clisp.org>
11656
11657         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
11658         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11659         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11660         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11661         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11662         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11663         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11664
11665 2009-06-08  Eric Blake  <ebb9@byu.net>
11666
11667         test-strstr: use memory fence, when possible
11668         * tests/test-strstr.c (main): Use memory fence, in order to be
11669         more likely to trigger Debian bug 521737.
11670         * modules/strstr-tests (Files): Pull in additional files.
11671
11672         memchr: no longer obsolete, for wider field testing
11673         * modules/memchr (Status, Notice): Delete, this module is no
11674         longer obsolete.
11675         * modules/vasnprintf (Depends-on): Add memchr.
11676
11677 2009-06-07  Jim Meyering  <meyering@redhat.com>
11678
11679         hash: declare some functions with the warn_unused_result attribute
11680         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
11681
11682 2009-06-07  Bruno Haible  <bruno@clisp.org>
11683
11684         * tests/test-alignof.c: Don't test int64_t if it does not exist.
11685         Reported by Eric Blake.
11686
11687 2009-06-06  Eric Blake  <ebb9@byu.net>
11688
11689         test-alignof: fix typo with long double
11690         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
11691         compiler error.
11692
11693 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
11694
11695         Escape non-texinfo { and }s.
11696         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
11697         markup error.
11698
11699 2009-06-04  Jim Meyering  <meyering@redhat.com>
11700
11701         gitlog-to-changelog: don't infloop on an empty commit log
11702         * build-aux/gitlog-to-changelog: Warn about an empty log message.
11703         Reported by Boris Petersen <transacid@centerim.org>.
11704
11705 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
11706
11707         version-etc: extend for packagers
11708         Add three new configure options, intended for packagers:
11709           --with-packager="packager name"
11710           --with-packager-version="packager-specific version"
11711           --with-packager-bug-reports="packager bug reporting"
11712         An example with coreutils:
11713           $ ./configure \
11714             --with-packager=Gentoo \
11715             --with-packager-bug-report=http://bugs.gentoo.org/ \
11716             --with-packager-version="patchset 1.6"
11717           $ ./src/ls --version | head -n2
11718           ls (GNU coreutils) 7.1-dirty
11719           Packaged by Gentoo (patchset 1.6)
11720         Note that the bug reporting info via --help doesn't show up because
11721         coreutils uses its own custom emit_bug_reporting_address() implementation
11722         in src/system.h.  If it didn't, it'd look like:
11723           $ ./src/ls --help | tail -n4
11724           Report bugs to <bug-coreutils@gnu.org>.
11725           Report Gentoo bugs to <http://bugs.gentoo.org/>.
11726           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
11727           General help using GNU software: <http://www.gnu.org/gethelp/>.
11728         * lib/version-etc.c: Print new information, if provided.
11729         * m4/version-etc.m4: New file.
11730         * modules/version-etc (Files): Add m4/version-etc.m4.
11731         (configure.ac): Add gl_VERSION_ETC.
11732
11733 2009-05-31  Bruno Haible  <bruno@clisp.org>
11734
11735         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
11736         and 'int64_t'.
11737         * modules/alignof-tests (Dependencies): Add stdint.
11738         Reported by Eric Blake.
11739
11740 2009-05-31  Bruno Haible  <bruno@clisp.org>
11741
11742         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
11743         restriction due to compiler bugs.
11744         Reported by Eric Blake.
11745
11746 2009-05-31  Simon Josefsson  <simon@josefsson.org>
11747             Bruno Haible  <bruno@clisp.org>
11748
11749         Fix test-alignof failure.
11750         * lib/alignof.h (alignof_slot): New macro.
11751         (alignof_type): New macro, with the same semantics as the previous
11752         'alignof'.
11753         (alignof): Alias to alignof_slot.
11754         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
11755         check that the results are usable as constant expressions.
11756
11757 2009-05-31  Bruno Haible  <bruno@clisp.org>
11758
11759         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
11760         * tests/test-memchr.c (main): Check that memchr does not read past the
11761         first occurrence of the byte.
11762         * tests/test-strstr.c (main): Update comment.
11763         Suggested by Eric Blake.
11764
11765 2009-05-30  Bruno Haible  <bruno@clisp.org>
11766
11767         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
11768         detail how to use dumpbin.
11769         Reported by David Byron <dbyron@dbyron.com>.
11770
11771 2009-06-02  Simon Josefsson  <simon@josefsson.org>
11772
11773         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
11774
11775 2009-06-02  Simon Josefsson  <simon@josefsson.org>
11776
11777         * m4/manywarnings.m4: Add GCC 4.4 warnings.
11778
11779 2009-05-28  Bruno Haible  <bruno@clisp.org>
11780
11781         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
11782         build-aux/ files.
11783
11784 2009-05-28  Simon Josefsson  <simon@josefsson.org>
11785
11786         * gnulib-tool (func_import): Transform license on build-aux/ files too.
11787
11788 2009-05-27  Simon Josefsson  <simon@josefsson.org>
11789
11790         * gnulib-tool (sed_transform_main_lib_file)
11791         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
11792         regexps.
11793
11794 2009-05-26  Simon Josefsson  <simon@josefsson.org>
11795
11796         * tests/test-strstr.c: Add another self-test.
11797         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
11798         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
11799
11800 2009-05-23  Bruno Haible  <bruno@clisp.org>
11801
11802         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
11803         change.
11804
11805 2009-05-21  Bruno Haible  <bruno@clisp.org>
11806
11807         Simplify use of mode_t varargs.
11808         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
11809         uses 'mode_t' or 'int'.
11810         * lib/openat.c (openat): Likewise.
11811         * lib/open-safer.c (open_safer): Likewise.
11812         * m4/mode_t.m4: New file.
11813         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
11814         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
11815         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
11816         * modules/open (Files): Add m4/mode_t.m4.
11817         * modules/openat (Files): Likewise.
11818         * modules/fcntl-safer (Files): Likewise.
11819         Suggested by Eric Blake.
11820
11821 2009-05-21  Pádraig Brady  <P@draigbrady.com>
11822
11823         * doc/glibc-functions/fallocate.texi: New file.
11824         * doc/gnulib.texi: Include it.
11825
11826 2009-05-21  Eric Blake  <ebb9@byu.net>
11827             Bruno Haible  <bruno@clisp.org>
11828
11829         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
11830         invocations.
11831         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
11832
11833 2009-05-21  Eric Blake  <ebb9@byu.net>
11834             Bruno Haible  <bruno@clisp.org>
11835
11836         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
11837         include_next. Fix of 2008-11-20 commit.
11838         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
11839         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
11840         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
11841         NEXT_MATH_H.
11842         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
11843         instead of NEXT_MATH_H.
11844
11845 2009-05-21  Bruno Haible  <bruno@clisp.org>
11846
11847         Avoid redefinition warnings for SIZE_MAX.
11848         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
11849         Reported by Simon Josefsson.
11850
11851 2009-05-21  Bruno Haible  <bruno@clisp.org>
11852
11853         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
11854         AC_CACHE_VAL.
11855
11856 2009-05-20  Bruno Haible  <bruno@clisp.org>
11857
11858         Make zeroptr.h work on mingw.
11859         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
11860         mprotect.
11861         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
11862         * modules/memchr2-tests (configure.ac): Likewise.
11863         * modules/memcmp-tests (configure.ac): Likewise.
11864         * modules/memmem-tests (configure.ac): Likewise.
11865         * modules/memrchr-tests (configure.ac): Likewise.
11866         Reported by Simon Josefsson.
11867
11868 2009-05-20  Simon Josefsson  <simon@josefsson.org>
11869
11870         * tests/test-glob.c: Include string.h for strcmp prototype.
11871
11872 2009-05-20  Simon Josefsson  <simon@josefsson.org>
11873
11874         * modules/getdelim (Depends-on): Add explicit stdint, although it
11875         was implicitly already pulled in via realloc-posix.
11876         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
11877
11878 2009-05-20  Simon Josefsson  <simon@josefsson.org>
11879
11880         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
11881         G. Christensen" <tgc@jupiterrise.com>.
11882         * m4/sys_socket_h.m4: Check for sa_family_t.
11883         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
11884         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
11885         * tests/test-sys_socket.c: Check that sa_family_t works.
11886
11887 2009-05-18  Eric Blake  <ebb9@byu.net>
11888
11889         maint.mk: allow gnulib_dir in VPATH build
11890         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
11891
11892 2009-05-15  Jim Meyering  <meyering@redhat.com>
11893
11894         maint.mk: Give gnulib_dir a default definition.
11895         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
11896         Thus, most packages no longer need to specify this variable in cfg.mk
11897
11898 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
11899
11900         rename.m4: fix typos that would make non-mingw cross-configure fail
11901         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
11902
11903 2009-05-13  Eric Blake  <ebb9@byu.net>
11904
11905         mmap-anon: avoid out-of-order autoconf expansion
11906         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
11907         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
11908         * modules/memchr-tests (Depends-on): Add extensions.
11909         * modules/memchr2-tests (Depends-on): Add extensions.
11910         * modules/memcmp-tests (Depends-on): Add extensions.
11911         * modules/memmem-tests (Depends-on): Add extensions.
11912         * modules/memrchr-tests (Depends-on): Add extensions.
11913
11914 2009-05-13  Bruno Haible  <bruno@clisp.org>
11915
11916         Make some tests ISO C 99 compliant.
11917         * tests/zerosize-ptr.h: New file.
11918         * tests/test-memchr.c: Include zerosize-ptr.h.
11919         (main): Use a zero-size object pointer instead of NULL.
11920         * tests/test-memchr2.c: Include zerosize-ptr.h.
11921         (main): Use a zero-size object pointer instead of NULL.
11922         * tests/test-memcmp.c: Include zerosize-ptr.h.
11923         (main): Use a zero-size object pointer instead of NULL.
11924         * tests/test-memmem.c: Include zerosize-ptr.h.
11925         (main): Use a zero-size object pointer instead of NULL.
11926         * tests/test-memrchr.c: Include zerosize-ptr.h.
11927         (main): Use a zero-size object pointer instead of NULL.
11928         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
11929         m4/mmap-anon.m4.
11930         (Depends-on): Add getpagesize.
11931         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11932         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
11933         m4/mmap-anon.m4.
11934         (Depends-on): Add getpagesize.
11935         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11936         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
11937         m4/mmap-anon.m4.
11938         (Depends-on): Add getpagesize.
11939         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11940         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
11941         m4/mmap-anon.m4.
11942         (Depends-on): Add getpagesize.
11943         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11944         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
11945         m4/mmap-anon.m4.
11946         (Depends-on): Add getpagesize.
11947         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11948
11949 2009-05-12  Bruno Haible  <bruno@clisp.org>
11950
11951         Tests for module 'alignof'.
11952         * modules/alignof-tests: New file.
11953         * tests/test-alignof.c: New file.
11954
11955 2009-05-12  Bruno Haible  <bruno@clisp.org>
11956
11957         Fix alignof macro.
11958         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
11959         vendor compilers that are always correct.
11960
11961 2009-05-12  Bruno Haible  <bruno@clisp.org>
11962
11963         Make the MAP_ANONYMOUS detection work on HP-UX 11.
11964         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
11965         not whether its fully works.
11966
11967 2009-05-12  Bruno Haible  <bruno@clisp.org>
11968
11969         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
11970
11971 2009-05-12  Jim Meyering  <meyering@redhat.com>
11972
11973         * top/maint.mk: Adjust backslash alignment.
11974
11975 2009-05-11  Simon Josefsson  <simon@josefsson.org>
11976
11977         * top/maint.mk: Make $(srcdir)/build-aux configurable.
11978
11979 2009-05-11  Eric Blake  <ebb9@byu.net>
11980
11981         argp: avoid undefined behavior
11982         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
11983         macros.
11984
11985 2009-05-08  Simon Josefsson  <simon@josefsson.org>
11986
11987         * tests/test-vc-list-files-git.sh: Do git config of user.email and
11988         user.name to prevent git commit from complaining.
11989
11990 2009-05-10  Bruno Haible  <bruno@clisp.org>
11991
11992         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
11993         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
11994         it rewrites every file name only once.
11995         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
11996
11997 2009-05-08  Bruno Haible  <bruno@clisp.org>
11998
11999         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
12000         instead of 'max'.
12001
12002 2009-05-08  Simon Josefsson  <simon@josefsson.org>
12003
12004         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
12005         sockaddr_storage test.
12006
12007 2009-05-07  Simon Josefsson  <simon@josefsson.org>
12008
12009         * modules/sys_socket (Makefile.am): Substitute
12010         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
12011         * m4/sys_socket_h.m4: Check for sockaddr_storage.
12012         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
12013         * tests/test-sys_socket.c: Check sockaddr_storage.
12014
12015 2009-05-08  Bruno Haible  <bruno@clisp.org>
12016
12017         New module 'alignof'.
12018         * lib/alignof.h: New file.
12019         * modules/alignof: New file.
12020
12021 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12022             Bruno Haible  <bruno@clisp.org>
12023
12024         Fix test-file-has-acl on FreeBSD.
12025         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
12026         mask is implicitly added.
12027         * tests/test-file-has-acl.c: Include <signal.h>.
12028         (main): Terminate the test after 5 seconds.
12029         * modules/acl-tests (configure.ac): Check for alarm function.
12030
12031 2009-05-04  Bruno Haible  <bruno@clisp.org>
12032
12033         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
12034         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
12035         * modules/errno (configure.ac): Drop AC_REQUIRE.
12036         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
12037         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
12038
12039 2009-05-04  Simon Josefsson  <simon@josefsson.org>
12040
12041         * modules/glob-tests: New module.
12042         * tests/test-glob.c: Add.
12043
12044 2009-05-04  Simon Josefsson  <simon@josefsson.org>
12045
12046         * modules/fnmatch-tests: New module.
12047         * tests/test-fnmatch.c: Add.
12048
12049 2009-05-04  Eric Blake  <ebb9@byu.net>
12050
12051         maint: make the new no-submodule-changes rule VPATH-safe
12052         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
12053
12054 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12055             Bruno Haible  <bruno@clisp.org>
12056
12057         acl: Fix infinite loop on FreeBSD.
12058         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
12059         of return value from acl_get_entry.
12060         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
12061         Likewise.
12062
12063 2009-05-03  Bruno Haible  <bruno@clisp.org>
12064
12065         * lib/acl-internal.h (acl_entries): Clarify return value.
12066         * lib/acl_entries.c (acl_entries): Likewise.
12067
12068 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12069
12070         Bug fix in acl module.
12071         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
12072
12073 2009-05-03  Bruno Haible  <bruno@clisp.org>
12074
12075         Create gperf-generated file in the source dir, not in the build dir.
12076         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
12077         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
12078         * modules/unicase/locale-language (unicase/locale-languages.h):
12079         Likewise.
12080         * modules/unicase/special-casing (unicase/special-casing-table.h):
12081         Likewise.
12082         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
12083         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
12084         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
12085         Reported by Ralf Wildenhues.
12086
12087 2009-05-03  Bruno Haible  <bruno@clisp.org>
12088
12089         * modules/fnmatch (Description, configure.ac): Taken from
12090         fnmatch-posix.
12091         * modules/fnmatch-posix: Turn into a symbolic reference to the
12092         'fnmatch' module, and deprecate.
12093         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
12094
12095 2009-05-03  Bruno Haible  <bruno@clisp.org>
12096
12097         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
12098         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
12099         Reported by Ralf Wildenhues.
12100
12101 2009-05-04  Simon Josefsson  <simon@josefsson.org>
12102
12103         * m4/fnmatch.m4: Fix fnmatch re-define.
12104
12105 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12106
12107         priv-set: new module and tests; adapt write-any-file
12108         * lib/priv-set.c: New file.
12109         * lib/priv-set.h: New file.
12110         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
12111         * lib/write-any-file.c: Simplify by using priv-set module.
12112         * m4/priv-set.m4: New file.
12113         * modules/priv-set: New file.
12114         * modules/unlinkdir: Add dependency on priv-set module.
12115         * modules/write-any-file: Likewise.
12116
12117         Tests for module 'priv-set'.
12118         * modules/priv-set-tests: New file.
12119         * tests/test-priv-set.c: New file.
12120
12121 2009-05-03  Jim Meyering  <meyering@redhat.com>
12122             Bruno Haible  <bruno@clisp.org>
12123
12124         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
12125         use the converted UTF-8 variant of the name instead.
12126
12127 2009-05-03  Jim Meyering  <meyering@redhat.com>
12128
12129         tests: tighten some getdate tests
12130         * tests/test-getdate.c (main): Tighten tests: require equality,
12131         not just greater than.  Set TZ envvar to UTC0.
12132
12133 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
12134
12135         getdate: correctly interpret "next monday" when run on a Monday
12136         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
12137         that e.g., "next tues" (when run on a tuesday) results in a date
12138         that is one week in the future, and not today's date.
12139         I.e., add a week when the wday is the same as the current one.
12140         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
12141         and earlier by Martin Bernreuther and Jan Minář.
12142         * tests/test-getdate.c (main): Check that "next DAY" is always in
12143         the future and that "last DAY" is always in the past.
12144
12145 2009-05-02  Jim Meyering  <meyering@redhat.com>
12146
12147         build: ensure that a release build fails when a submodule is unclean
12148         * top/maint.mk (no-submodule-changes): New rule.
12149         (alpha beta major): Depend on it.
12150
12151 2009-05-02  Bruno Haible  <bruno@clisp.org>
12152
12153         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
12154         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
12155         shell variable gl_fnmatch_required to detect which variant is
12156         requested.
12157         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
12158         gl_FUNC_FNMATCH_POSIX.
12159         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
12160         exclude fnmatch-posix.
12161
12162 2009-05-02  Bruno Haible  <bruno@clisp.org>
12163
12164         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
12165         * modules/mbsrtowcs (License): Change to LGPLv2+.
12166         * modules/strnlen1 (License): Likewise.
12167         Reported by Simon Josefsson.
12168
12169 2009-05-02  Bruno Haible  <bruno@clisp.org>
12170
12171         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
12172         "cross".
12173         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
12174         gnulib-tool was called with option --source-base=lib.
12175
12176 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12177
12178         Use automake *-local hooks without commands, for extensibility.
12179         * modules/localcharset (Makefile.am): Rename install-exec-local
12180         rule to install-exec-localcharset, and make it a prerequisite of
12181         install-exec-local.  Likewise, rename the uninstall-local rule to
12182         uninstall-localcharset, and make it a prerequisite of the former.
12183
12184 2009-05-01  Bruno Haible  <bruno@clisp.org>
12185
12186         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
12187         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
12188         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
12189         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
12190         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
12191         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
12192         m4/locale-zh.m4, m4/codeset.m4.
12193
12194         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
12195         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
12196         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
12197         m4/locale-zh.m4.
12198
12199         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
12200         REPLACE_WCRTOMB if mbstate_t must be replaced.
12201         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
12202         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
12203
12204 2009-05-01  Bruno Haible  <bruno@clisp.org>
12205
12206         Avoid compiler warnings when redefining macros defined by <libintl.h>.
12207         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
12208         dngettext, dcngettext, textdomain, bindtextdomain,
12209         bind_textdomain_codeset): Undefine before redefining.
12210
12211 2009-04-30  Bruno Haible  <bruno@clisp.org>
12212
12213         Fix bug introduced on 2009-04-25.
12214         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
12215         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
12216         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
12217         is defined.
12218         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
12219         is defined.
12220         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
12221         is defined.
12222         Reported by Elbert_Pol <elbert.pol@gmail.com>.
12223
12224 2009-04-28  Bruno Haible  <bruno@clisp.org>
12225
12226         Comment tweaks.
12227         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
12228         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
12229         * lib/unicase.h (u*_casexfrm): Likewise.
12230         Reported by Paolo Bonzini.
12231
12232 2009-04-28  Bruno Haible  <bruno@clisp.org>
12233
12234         Fix a compilation error.
12235         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
12236         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
12237         Reported by Jim Meyering.
12238
12239 2009-04-27  Bruno Haible  <bruno@clisp.org>
12240
12241         New module 'libunistring'.
12242         * modules/libunistring: New file.
12243         * m4/libunistring.m4: New file.
12244         * MODULES.html.sh (Unicode string functions): Add it.
12245
12246 2009-04-27  Eric Blake  <ebb9@byu.net>
12247
12248         maint.mk: allow package-specific header to provide <config.h>
12249         * top/maint.mk (sc_require_config_h): New variable.
12250         (sc_require_config_h, sc_require_config_h_first): Use it.
12251
12252 2009-04-27  Simon Josefsson  <simon@josefsson.org>
12253
12254         * top/maint.mk (sc_avoid_if_before_free): Except
12255         useless-if-before-free script.
12256
12257 2009-04-27  Eric Blake  <ebb9@byu.net>
12258
12259         maintainer-makefile: depend on all required helper scripts
12260         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
12261         useless-if-before-free.
12262         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
12263         version, rather than assuming gnulib checkout is available.
12264         Reported by Simen Josefsson.
12265
12266 2009-04-26  Bruno Haible  <bruno@clisp.org>
12267
12268         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
12269         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
12270         "../" or "..".
12271
12272 2009-04-26  Bruno Haible  <bruno@clisp.org>
12273
12274         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
12275         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
12276         AC_LIB_HAVE_LINKFLAGS.
12277
12278 2009-04-26  Bruno Haible  <bruno@clisp.org>
12279
12280         Simplify calling convention of u*_conv_from_encoding.
12281         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
12282         u32_conv_from_encoding): Expect a resultbuf argument and return the
12283         result directly as a pointer.
12284         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
12285         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
12286         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
12287         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
12288         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
12289         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12290         Update.
12291         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
12292         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
12293         * lib/vasnprintf.c (VASNPRINTF): Update.
12294         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
12295         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
12296         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
12297         * NEWS: Mention the change.
12298
12299 2009-04-26  Bruno Haible  <bruno@clisp.org>
12300
12301         Simplify calling convention of u*_conv_to_encoding.
12302         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
12303         u32_conv_to_encoding): Expect a resultbuf argument and return the
12304         result directly as a pointer.
12305         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12306         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
12307         freeing scaled_offsets if mem_iconveha failed.
12308         * lib/unicase/u-casexfrm.h (FUNC): Update.
12309         * lib/uninorm/u-normxfrm.h (FUNC): Update.
12310         * lib/vasnprintf.c (VASNPRINTF): Update.
12311         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
12312         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
12313         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
12314         * NEWS: Mention the change.
12315
12316 2009-04-26  Bruno Haible  <bruno@clisp.org>
12317
12318         Avoid test failures on AIX and OSF/1.
12319         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
12320         malloc(0).
12321         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12322         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12323         Likewise.
12324         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
12325         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
12326         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
12327         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
12328         * doc/posix-functions/malloc.texi: Document the portability problem
12329         related to malloc(0).
12330
12331 2009-04-26  Bruno Haible  <bruno@clisp.org>
12332
12333         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
12334         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
12335         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
12336
12337 2009-04-25  Bruno Haible  <bruno@clisp.org>
12338
12339         Avoid link error when creating a namespace clean library.
12340         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
12341         as macro with arguments if already defined as an alias.
12342         * lib/signbitf.c (gl_signbitf): Don't undefine.
12343         * lib/signbitd.c (gl_signbitd): Don't undefine.
12344         * lib/signbitl.c (gl_signbitl): Don't undefine.
12345
12346 2009-04-25  Jim Meyering  <meyering@redhat.com>
12347
12348         vc-list-files: fix another quoting bug
12349         * build-aux/vc-list-files: Avoid sed backslash expansion
12350         of pathological directory names.
12351
12352 2009-04-25  Eric Blake  <ebb9@byu.net>
12353
12354         vc-list-files: fix shell quoting error
12355         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
12356         timestamp.
12357
12358 2009-04-25  Jim Meyering  <meyering@redhat.com>
12359
12360         vc-list-files: restore lost functionality with subdir argument
12361         * build-aux/vc-list-files: When given a non-"." sub-directory
12362         argument, substitute the $dir/ prefix back onto each resulting name.
12363         Otherwise, coreutils' root_tests check would fail.
12364
12365 2009-04-24  Eric Blake  <ebb9@byu.net>
12366
12367         vc-list-files: ignore git symlinks
12368         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
12369         than ls-files, to ignore git symlinks.
12370
12371         maint.mk: import improvements from m4
12372         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
12373         (move_if_change): Delete unused macro.
12374         (news-date-check, vc-diff-check): Support VPATH builds.
12375         (announcement): Likewise.  Split --bootstrap-tools list...
12376         (boostrap-tools): ...into separate list, which can be overridden
12377         in cfg.mk.
12378         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
12379         requiring dependency on useless-if-before-free module.
12380         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
12381         Support VPATH builds.
12382
12383 2009-04-24  Jim Meyering  <meyering@redhat.com>
12384
12385         maint.mk: remove coreutils-specific rules and variables
12386         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
12387         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
12388         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
12389
12390         maint.mk: remove obsolete rule
12391         * top/maint.mk (rel-check): Remove rule.
12392         (WGET, WGETFLAGS): Remove now-unused variables.
12393
12394 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12395
12396         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
12397         consistency.
12398
12399         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
12400         '$(PATH_SEPARATOR)' instead of ':'.
12401
12402 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12403
12404         * lib/getopt1.c (main): Use 'const' for static array.
12405
12406 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12407
12408         * top/maint.mk: Sync with coreutils.
12409         * NEWS: Explain incompatibilities.
12410
12411 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12412             Bruno Haible  <bruno@clisp.org>
12413
12414         Fix cross-compilation results.
12415         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
12416         statement, as third argument of AC_TRY_RUN.
12417         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12418         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
12419         Likewise.
12420         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12421         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
12422         Likewise.
12423         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12424         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
12425         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
12426
12427 2009-04-20  Bruno Haible  <bruno@clisp.org>
12428
12429         Avoid test failure on mingw.
12430         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
12431
12432 2009-04-20  Bruno Haible  <bruno@clisp.org>
12433
12434         Avoid compilation error on mingw.
12435         * modules/localename-tests (Depends-on): Add locale.
12436
12437 2009-04-19  Bruno Haible  <bruno@clisp.org>
12438
12439         Support for building a shared library on Windows platforms.
12440         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
12441         (main): Test the presence of UNINORM_NFC here.
12442         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
12443         (main): Test the presence of UNINORM_NFD here.
12444         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
12445         (main): Test the presence of UNINORM_NFKC here.
12446         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
12447         (main): Test the presence of UNINORM_NFKD here.
12448
12449 2009-04-19  Bruno Haible  <bruno@clisp.org>
12450
12451         Avoid a compiler warning.
12452         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
12453         Change type of variable 'sequence'.
12454
12455 2009-04-19  Bruno Haible  <bruno@clisp.org>
12456
12457         * modules/configmake (Makefile.am): When the contents of configmake.h
12458         does not change, arrange to preserve its modification time.
12459
12460 2009-04-17  Simon Josefsson  <simon@josefsson.org>
12461
12462         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
12463         gettext domain.
12464
12465 2009-04-16  Jim Meyering  <meyering@redhat.com>
12466
12467         useless-if-before-free: improve conversion code
12468         * build-aux/useless-if-before-free: Adjust code-in-comment to match
12469         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
12470
12471 2009-04-14  Bruno Haible  <bruno@clisp.org>
12472
12473         * modules/fcntl (Depends-on): Add extensions.
12474         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
12475
12476 2009-04-12  Ben Pfaff  <blp@gnu.org>
12477
12478         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
12479         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
12480
12481 2009-03-20  Ben Pfaff  <blp@gnu.org>
12482
12483         Make rename replace existing destinations on Windows.
12484         * m4/rename.m4: Add test for Mingw.
12485         * lib/rename.c: Add rename replacement that uses MoveFileEx with
12486         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
12487         * doc/posix-functions/rename.texi: Document.
12488
12489 2009-04-10  Bruno Haible  <bruno@clisp.org>
12490
12491         New include file "iconveh.h".
12492         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
12493         * lib/striconveh.h: Include it.
12494         (enum iconv_ilseq_handler): Remove definition.
12495         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
12496         striconveh.h.
12497         * lib/striconveha.c: Include striconveh.h.
12498         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
12499         * modules/striconveh (Files): Add lib/iconveh.h.
12500         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
12501         lib/striconveh.h.
12502
12503 2009-04-10  Bruno Haible  <bruno@clisp.org>
12504
12505         * lib/uniconv.h: Update comment.
12506
12507 2009-04-10  Bruno Haible  <bruno@clisp.org>
12508
12509         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
12510         always.
12511         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
12512         * lib/unistr/u16-mbtouc-aux.c: Likewise.
12513         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
12514         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
12515         "unistring-notinline.h", so that the function gets defined always.
12516         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
12517         * lib/unistr/u8-uctomb.c: Likewise.
12518         * lib/unistr/u16-mbtouc.c: Likewise.
12519         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
12520         * lib/unistr/u16-uctomb.c: Likewise.
12521         * lib/unistr/u32-mbtouc.c: Likewise.
12522         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
12523         * lib/unistr/u32-uctomb.c: Likewise.
12524
12525 2009-04-10  Bruno Haible  <bruno@clisp.org>
12526
12527         Mark 'utime' obsolete.
12528         * modules/utime (Status, Notice): New sections.
12529         Suggested by Jim Meyering.
12530
12531         Fix cross-compile guess for utime test.
12532         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
12533         autoconf.
12534         * doc/posix-functions/utime.texi: Give more precisions.
12535         Reported by Jan <ipif@ymail.com>.
12536
12537 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
12538
12539         filevercmp: correct today's change
12540         * lib/filevercmp.c: Also handle coreutils' test inputs.
12541         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
12542
12543         Fix regression in 'filevercmp' module. Thanks Sven Joachim
12544         for reporting it.
12545         * lib/filevercmp.c: Special handle for "", "." and "..".
12546         * tests/test-filevercmp.c: Enlarge the set suite.
12547
12548 2009-04-07  Jim Meyering  <meyering@redhat.com>
12549
12550         useless-if-before-free: show how to remove braced useless free, too
12551         * build-aux/useless-if-before-free: still only in a comment, though.
12552
12553 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
12554
12555         maint.mk: import changes to syntax-check macros from coreutils
12556         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
12557         Use them in the relevant macros.
12558
12559 2009-04-06  Bruno Haible  <bruno@clisp.org>
12560
12561         Fix unportable use of bit-fields.
12562         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
12563         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
12564         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
12565
12566 2009-04-06  Bruno Haible  <bruno@clisp.org>
12567
12568         Avoid test failures on AIX and OSF/1.
12569         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
12570         that malloc(0) = NULL.
12571         * tests/unicase/test-u8-tolower.c (check): Likewise.
12572         * tests/unicase/test-u8-totitle.c (check): Likewise.
12573         * tests/unicase/test-u8-toupper.c (check): Likewise.
12574         * tests/unicase/test-u16-casefold.c (check): Likewise.
12575         * tests/unicase/test-u16-tolower.c (check): Likewise.
12576         * tests/unicase/test-u16-totitle.c (check): Likewise.
12577         * tests/unicase/test-u16-toupper.c (check): Likewise.
12578         * tests/unicase/test-u32-casefold.c (check): Likewise.
12579         * tests/unicase/test-u32-tolower.c (check): Likewise.
12580         * tests/unicase/test-u32-totitle.c (check): Likewise.
12581         * tests/unicase/test-u32-toupper.c (check): Likewise.
12582         * tests/uninorm/test-u8-nfc.c (check): Likewise.
12583         * tests/uninorm/test-u8-nfd.c (check): Likewise.
12584         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
12585         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
12586         * tests/uninorm/test-u16-nfc.c (check): Likewise.
12587         * tests/uninorm/test-u16-nfd.c (check): Likewise.
12588         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
12589         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
12590         * tests/uninorm/test-u32-nfc.c (check): Likewise.
12591         * tests/uninorm/test-u32-nfd.c (check): Likewise.
12592         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
12593         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
12594
12595 2009-04-05  Bruno Haible  <bruno@clisp.org>
12596
12597         Work around an autoconf limitation.
12598         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
12599         comment line if it would be longer than 3 KB.
12600
12601 2009-04-05  Bruno Haible  <bruno@clisp.org>
12602
12603         Avoid test failure with libiconv-1.13.
12604         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
12605         of the expected test results.
12606
12607 2009-04-05  Bruno Haible  <bruno@clisp.org>
12608
12609         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
12610         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
12611         that it should be installed.
12612
12613 2009-04-05  Bruno Haible  <bruno@clisp.org>
12614
12615         * gnulib-tool: New option --copy-file.
12616         (func_usage): Document it.
12617         (func_dest_tmpfilename): Moved out of func_import.
12618         (func_add_file, func_update_file): New functions, extracted from
12619         func_import.
12620         (func_import): Update.
12621
12622 2009-04-05  Karl Berry  <karl@gnu.org>
12623
12624         * README: prominently mention gnulib-tool.
12625         Rearrange sections so getting the code is near the top.
12626
12627 2009-04-05  Bruno Haible  <bruno@clisp.org>
12628
12629         * lib/unicase.h: Mention u*_cmp2.
12630         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
12631         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
12632         * lib/unicase/ulc-casecmp.c: Likewise.
12633         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
12634         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
12635         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
12636         unistr/u8-cmp.
12637         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
12638         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
12639         unistr/u16-cmp.
12640         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
12641         unistr/u32-cmp.
12642
12643         * lib/uninorm.h: Mention u*_cmp2.
12644         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
12645         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
12646         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
12647         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
12648         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
12649         unistr/u8-cmp.
12650         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
12651         unistr/u16-cmp.
12652         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
12653         unistr/u32-cmp.
12654
12655         New module 'unistr/u32-cmp2'.
12656         * lib/unistr/u32-cmp2.c: New file.
12657         * modules/unistr/u32-cmp2: New file.
12658
12659         New module 'unistr/u16-cmp2'.
12660         * lib/unistr/u16-cmp2.c: New file.
12661         * modules/unistr/u16-cmp2: New file.
12662
12663         New module 'unistr/u8-cmp2'.
12664         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
12665         * lib/unistr/u8-cmp2.c: New file.
12666         * lib/unistr/u-cmp2.h: New file.
12667         * modules/unistr/u8-cmp2: New file.
12668
12669 2009-04-05  Bruno Haible  <bruno@clisp.org>
12670
12671         * lib/unictype.h (uc_property_is_valid): New macro.
12672         * tests/unictype/test-pr_byname.c (main): Use it.
12673
12674         * lib/unistr.h: Doc fixes.
12675         * lib/uniconv.h: Doc fixes.
12676         * lib/unictype.h: Doc fixes.
12677
12678 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
12679
12680         Port coreutils 7.2 to Solaris 8.
12681
12682         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
12683         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
12684         for Solaris 8.  This is a bit of a hack, as it means it's the
12685         caller's responsibility to add -lnsl if needed, but most likely it
12686         won't be needed since only getaddrinfo uses this and getaddrinfo
12687         isn't needed on Solaris 8.
12688
12689         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
12690         problem to Solaris 8 encountered with coreutils 7.2, which
12691         resulted in a message "fnmatch.c:292: warning: passing argument 4
12692         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
12693         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
12694
12695 2009-04-03  Simon Josefsson  <simon@josefsson.org>
12696
12697         * m4/ld-version-script.m4: Add FIXME comment.
12698
12699 2009-04-02  Simon Josefsson  <simon@josefsson.org>
12700
12701         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
12702         SOVERSION variable.
12703
12704 2009-04-02  Bruno Haible  <bruno@clisp.org>
12705
12706         * Makefile (info, html, dvi, pdf): Combine the rules.
12707         Suggested by Jim Meyering.
12708
12709 2009-04-01  Bruno Haible  <bruno@clisp.org>
12710
12711         * Makefile (info, html, dvi, pdf): New targets.
12712         Reported by Reuben Thomas <rrt@sc3d.org>.
12713
12714 2009-04-01  Bruno Haible  <bruno@clisp.org>
12715
12716         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
12717         can be put into PATH.
12718         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
12719
12720 2009-04-01  Bruno Haible  <bruno@clisp.org>
12721
12722         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
12723
12724 2009-04-01  Bruno Haible  <bruno@clisp.org>
12725
12726         Rename module 'visibility'.
12727         * modules/lib-symbol-visibility: Renamed from modules/visibility.
12728         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
12729         * doc/gnulib.texi: Update.
12730         * MODULES.html.sh (Misc): Update.
12731         * NEWS: Mention the change.
12732
12733 2009-04-01  Simon Josefsson  <simon@josefsson.org>
12734
12735         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
12736         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
12737         Eric Blake <ebb9@byu.net> for review.
12738         * MODULES.html.sh: Add lib-msvc-compat.
12739         * doc/gnulib.texi: Link to new section.
12740         * m4/ld-output-def.m4: New file.
12741         * doc/ld-output-def.texi: New file.
12742
12743 2009-04-01  Simon Josefsson  <simon@josefsson.org>
12744
12745         Rename ld-version-script to lib-symbol-versions.  Suggested by
12746         Bruno Haible <bruno@clisp.org>.
12747         * modules/ld-version-script: Renamed to lib-symbol-versions.
12748         * doc/ld-version-script.texi: Fix module name.
12749         * MODULES.html.sh: Add lib-symbol-versions.
12750
12751 2009-03-31  Simon Josefsson  <simon@josefsson.org>
12752
12753         * modules/u64-tests: New file.
12754         * tests/test-u64.c: New file.
12755
12756 2009-03-04  Simon Josefsson  <simon@josefsson.org>
12757
12758         * MODULES.html.sh: Mention u64.
12759         * modules/u64: New module.
12760         * modules/crypto/sha512: Depend on u64 module instead of providing
12761         u64.h.
12762
12763 2009-03-27  Eric Blake  <ebb9@byu.net>
12764
12765         test-strerror: make debugging EAI_SYSTEM easier
12766         * modules/getaddrinfo-tests (Depends-on): Add strerror.
12767         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
12768         failure was EAI_SYSTEM.
12769
12770 2009-03-25  Bruno Haible  <bruno@clisp.org>
12771
12772         Fix a problem with --enable-relocatable on Solaris 7.
12773         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
12774         since 2008-02-24.
12775
12776 2009-03-25  Eric Blake  <ebb9@byu.net>
12777
12778         test-sockets: avoid gcc warning
12779         * tests/test-sockets.c (main): Silence compiler warning.
12780
12781 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
12782
12783         New modules nproc, pthread, contributed by Glen Lenker.
12784
12785         * MODULES.html.sh: Add pthread, nproc.
12786         * lib/nproc.c: New file.
12787         * lib/nproc.h: New file.
12788         * lib/pthread.in.h: New file.
12789         * m4/pthread.m4: New file.
12790         * modules/nproc: New file.
12791         * modules/pthread: New file.
12792
12793 2009-03-24  Simon Josefsson  <simon@josefsson.org>
12794
12795         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
12796         New variable.
12797
12798 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
12799
12800         filevercmp: handle simple~ and numbered.~3~ backup suffixes
12801         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
12802         * tests/test-filevercmp.c: Add tests for backup suffixes.
12803
12804 2009-03-24  Simon Josefsson  <simon@josefsson.org>
12805
12806         * modules/stdlib (Depends-on): Add stdint, needed when defining
12807         struct random_data on, for example, HP-UX 10.20.  Reported by
12808         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12809
12810 2009-03-24  Simon Josefsson  <simon@josefsson.org>
12811
12812         * lib/readline.c (readline): Call fflush on stdout after printing
12813         prompt.
12814
12815 2009-03-20  Bruno Haible  <bruno@clisp.org>
12816
12817         Remove dependency from 'close' module to -lws2_32 on native Windows.
12818         * lib/close-hook.h: New file.
12819         * lib/close-hook.c: New file.
12820         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
12821         w32sock.h.
12822         (_gl_close_fd_maybe_socket): Remove function.
12823         (rpl_close): Invoke execute_all_close_hooks instead of
12824         _gl_close_fd_maybe_socket.
12825         * lib/sockets.c: Include close-hook.h, w32sock.h.
12826         (close_fd_maybe_socket): New function, essentially from lib/close.c.
12827         (close_sockets_hook): New variable.
12828         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
12829         (gl_sockets_cleanup): Unregister it.
12830         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
12831         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
12832         * modules/close-hook: New file.
12833         * modules/close (Files): Remove lib/w32sock.h.
12834         (Depends-on): Add close-hook.
12835         (Link): Remove section.
12836         * modules/sockets (Files): Add lib/w32sock.h.
12837         (Depends-on): Add close-hook.
12838         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
12839         invocation.
12840         * NEWS: Mention that LIB_CLOSE is gone.
12841
12842 2009-03-23  Eric Blake  <ebb9@byu.net>
12843
12844         signal-tests: test previous patch
12845         * tests/test-signal.c: New file.
12846         * modules/signal-tests: Likewise.
12847
12848         signal.h: always support 'volatile sig_atomic_t'
12849         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
12850         (gl_SIGNAL_H_DEFAULTS): Add a default.
12851         * modules/signal (Makefile.am): Substitute if needed.
12852         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
12853         users can blindly add volatile.
12854         * doc/posix-headers/signal.texi (signal.h): Document it.
12855         Reported by Matthew Woehlke.
12856
12857 2009-03-23  Jim Meyering  <meyering@redhat.com>
12858
12859         pathmax: PATH_MAX: use pathconf only when available
12860         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
12861         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
12862         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
12863         This avoids a link failure in a PSP cross-compilation environment
12864         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
12865
12866         * lib/vasnprintf.c (divide): Fix typo in comment.
12867
12868 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12869
12870         * gnulib-tool (func_filter_filelist): Fix comment.
12871
12872 2009-03-20  Bruno Haible  <bruno@clisp.org>
12873
12874         Make sockets.h self-contained.
12875         * lib/sockets.c: Include sockets.h first.
12876         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
12877
12878 2009-03-19  Eric Blake  <ebb9@byu.net>
12879
12880         doc: mention more functions added in cygwin 1.7.0
12881         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
12882         addition.
12883         * doc/posix-functions/log2f.texi: Likewise.
12884
12885 2009-03-19  Jim Meyering  <meyering@redhat.com>
12886
12887         fsusage: avoid syntax error due to statement-before-declaration
12888         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
12889         after all declarations.  Reported by Matthew Woehlke in
12890         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
12891
12892 2009-03-18  Eric Blake  <ebb9@byu.net>
12893
12894         build-aux/compile: sync from automake
12895         * build-aux/compile: New file, from automake.
12896         * config/srclist.txt: Mention build-aux/compile.
12897
12898 2009-03-17  Bruno Haible  <bruno@clisp.org>
12899
12900         * lib/git-merge-changelog.c: Fix typo in comment.
12901         Reported by Reuben Thomas <rrt@sc3d.org>.
12902
12903 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
12904
12905         * m4/regex.m4: update and improve help for
12906         --without-included-regex.
12907
12908 2009-03-17  Simon Josefsson  <simon@josefsson.org>
12909
12910         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
12911         failure on missing include files.
12912
12913 2009-03-17  Eric Blake  <ebb9@byu.net>
12914
12915         doc: mention more functions added in cygwin 1.7.0
12916         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
12917         addition.
12918         * doc/posix-functions/fwscanf.texi: Likewise.
12919         * doc/posix-functions/swprintf.texi: Likewise.
12920         * doc/posix-functions/swscanf.texi: Likewise.
12921         * doc/posix-functions/vfwprintf.texi: Likewise.
12922         * doc/posix-functions/vfwscanf.texi: Likewise.
12923         * doc/posix-functions/vswprintf.texi: Likewise.
12924         * doc/posix-functions/vswscanf.texi: Likewise.
12925         * doc/posix-functions/vwprintf.texi: Likewise.
12926         * doc/posix-functions/vwscanf.texi: Likewise.
12927         * doc/posix-functions/wcscasecmp.texi: Likewise.
12928         * doc/posix-functions/wcsdup.texi: Likewise.
12929         * doc/posix-functions/wcsftime.texi: Likewise.
12930         * doc/posix-functions/wcsncasecmp.texi: Likewise.
12931         * doc/posix-functions/wprintf.texi: Likewise.
12932         * doc/posix-functions/wscanf.texi: Likewise.
12933         * doc/glibc-functions/gethostbyname2.texi: Likewise.
12934
12935 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12936
12937         maint.mk: really add $(AM_MAKEFLAGS)
12938         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
12939         was inadvertently omitted in the last commit.
12940         Spotted by Bruno Haible.
12941
12942         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
12943         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
12944         $(AM_MAKEFLAGS)' rather than plain `make'.
12945
12946         gnulib-tool: execute $MAKE not make
12947         * gnulib-tool: Default $MAKE to 'make'.
12948         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
12949         than make.  Initialize $MAKE in the do-autobuild script.
12950
12951         gnulib-tool: use $MAKE not make in generated files
12952         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
12953         make, in generated files.  Initialize $MAKE in the do-autobuild
12954         script.
12955
12956         * top/GNUmakefile (_have-git-version-gen): Fix typo.
12957
12958         GNUmakefile: disable parallelism only for multiple, recursive targets
12959         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
12960         additions in the Makefile.
12961         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
12962         by Automake.
12963         (.NOTPARALLEL): Only disable parallel builds if multiple targets
12964         are listed on the command line and at least one of them is
12965         listed in $(ALL_RECURSIVE_TARGETS).
12966
12967 2009-03-14  Bruno Haible  <bruno@clisp.org>
12968
12969         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
12970         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
12971         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
12972         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
12973         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
12974         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
12975         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
12976         unistr/u8-uctomb.
12977         * modules/unistr/u8-strchr (Depends-on): Likewise.
12978         * modules/unistr/u8-strrchr (Depends-on): Likewise.
12979         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
12980         unistr/u16-uctomb.
12981         * modules/unistr/u16-strchr (Depends-on): Likewise.
12982         * modules/unistr/u16-strrchr (Depends-on): Likewise.
12983
12984 2009-03-12  Bruno Haible  <bruno@clisp.org>
12985
12986         Work around select() bug on Interix 3.5.
12987         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
12988         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
12989         * m4/select.m4: New file.
12990         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
12991         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
12992         * modules/select (Files): Add m4/select.m4.
12993         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
12994         * modules/nanosleep (Depends-on): Add select.
12995         * modules/poll (Depends-on): Likewise.
12996         * doc/posix-functions/select.texi: Mention the Interix bug.
12997         Reported by Markus Duft <mduft@gentoo.org>.
12998
12999         * lib/select.c: Renamed from lib/winsock-select.c.
13000         * modules/select (Files): Add lib/select.c, remove
13001         lib/winsock-select.c.
13002         (configure.ac): Update.
13003
13004 2009-03-12  Jim Meyering  <meyering@redhat.com>
13005
13006         avoid gcc warnings about unused macro definitions
13007         * lib/readtokens.c (STREQ): Remove unused definition.
13008         * lib/xmalloc.c (SIZE_MAX): Likewise.
13009         * lib/openat-die.c (N_): Likewise.
13010         * lib/mountlist.c (SIZE_MAX): Remove definition.
13011         Instead, include <stdint.h>.
13012         * lib/readutmp.c: Likewise.
13013         * modules/readutmp (Depends-on): Add stdint.
13014         * modules/mountlist (Depends-on): Add stdint.
13015         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
13016
13017 2009-03-10  Bruno Haible  <bruno@clisp.org>
13018
13019         Tests for module 'mbmemcasecoll'.
13020         * modules/mbmemcasecoll-tests: New file.
13021         * tests/test-mbmemcasecoll1.sh: New file.
13022         * tests/test-mbmemcasecoll2.sh: New file.
13023         * tests/test-mbmemcasecoll3.sh: New file.
13024         * tests/test-mbmemcasecoll.c: New file.
13025
13026         New module 'mbmemcasecoll'.
13027         * lib/mbmemcasecoll.h: New file.
13028         * lib/mbmemcasecoll.c: New file.
13029         * modules/mbmemcasecoll: New file.
13030
13031         * tests/test-mbmemcasecmp.h: New file, extracted from
13032         tests/test-mbmemcasecmp.c.
13033         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
13034         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
13035         (main): Update.
13036         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
13037
13038 2009-03-09  Bruno Haible  <bruno@clisp.org>
13039
13040         Tests for module 'mbmemcasecmp'.
13041         * modules/mbmemcasecmp-tests: New file.
13042         * tests/test-mbmemcasecmp1.sh: New file.
13043         * tests/test-mbmemcasecmp2.sh: New file.
13044         * tests/test-mbmemcasecmp3.sh: New file.
13045         * tests/test-mbmemcasecmp.c: New file.
13046
13047         New module 'mbmemcasecmp'.
13048         * lib/mbmemcasecmp.h: New file.
13049         * lib/mbmemcasecmp.c: New file.
13050         * modules/mbmemcasecmp: New file.
13051
13052 2009-03-09  Bruno Haible  <bruno@clisp.org>
13053
13054         Tests for module 'unicase/ulc-casecoll'.
13055         * modules/unicase/ulc-casecoll-tests: New file.
13056         * tests/unicase/test-ulc-casecoll1.sh: New file.
13057         * tests/unicase/test-ulc-casecoll2.sh: New file.
13058         * tests/unicase/test-ulc-casecoll.c: New file.
13059
13060         New module 'unicase/ulc-casecoll'.
13061         * lib/unicase.h (ulc_casecoll): New declaration.
13062         * lib/unicase/ulc-casecoll.c: New file.
13063         * modules/unicase/ulc-casecoll: New file.
13064
13065         New module 'unicase/ulc-casexfrm'.
13066         * lib/unicase.h (ulc_casexfrm): New declaration.
13067         * lib/unicase/ulc-casexfrm.c: New file.
13068         * modules/unicase/ulc-casexfrm: New file.
13069
13070 2009-03-09  Bruno Haible  <bruno@clisp.org>
13071
13072         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
13073         invocations.
13074
13075         * m4/mbscasecmp.m4: Remove file.
13076         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
13077         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
13078
13079         * m4/mbscasestr.m4: Remove file.
13080         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
13081         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
13082
13083         * m4/mbschr.m4: Remove file.
13084         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
13085         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
13086
13087         * m4/mbscspn.m4: Remove file.
13088         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
13089         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
13090
13091         * m4/mbslen.m4: Remove file.
13092         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
13093         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
13094
13095         * m4/mbsncasecmp.m4: Remove file.
13096         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
13097         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
13098
13099         * m4/mbsnlen.m4: Remove file.
13100         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
13101         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
13102
13103         * m4/mbspbrk.m4: Remove file.
13104         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
13105         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
13106
13107         * m4/mbspcasecmp.m4: Remove file.
13108         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
13109         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
13110
13111         * m4/mbsrchr.m4: Remove file.
13112         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
13113         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
13114
13115         * m4/mbssep.m4: Remove file.
13116         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
13117         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
13118
13119         * m4/mbsspn.m4: Remove file.
13120         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
13121         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
13122
13123         * m4/mbsstr.m4: Remove file.
13124         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
13125         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
13126
13127         * m4/mbstok_r.m4: Remove file.
13128         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
13129         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
13130
13131         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
13132
13133         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
13134         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
13135
13136         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
13137
13138 2009-03-08  Bruno Haible  <bruno@clisp.org>
13139
13140         Tests for module 'unicase/ulc-casecmp'.
13141         * modules/unicase/ulc-casecmp-tests: New file.
13142         * tests/unicase/test-ulc-casecmp1.sh: New file.
13143         * tests/unicase/test-ulc-casecmp2.sh: New file.
13144         * tests/unicase/test-ulc-casecmp.c: New file.
13145
13146         New module 'unicase/ulc-casecmp'.
13147         * lib/unicase.h (ulc_casecmp): New declaration.
13148         * lib/unicase/ulc-casecmp.c: New file.
13149         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
13150         'const SRC_UNIT *'.
13151         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
13152         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
13153         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
13154         * modules/unicase/ulc-casecmp: New file.
13155
13156         Tests for module 'unicase/u32-is-cased'.
13157         * modules/unicase/u32-is-cased-tests: New file.
13158         * tests/unicase/test-u32-is-cased.c: New file.
13159
13160         Tests for module 'unicase/u16-is-cased'.
13161         * modules/unicase/u16-is-cased-tests: New file.
13162         * tests/unicase/test-u16-is-cased.c: New file.
13163
13164         Tests for module 'unicase/u8-is-cased'.
13165         * modules/unicase/u8-is-cased-tests: New file.
13166         * tests/unicase/test-u8-is-cased.c: New file.
13167         * tests/unicase/test-is-cased.h: New file.
13168
13169         New module 'unicase/u32-is-cased'.
13170         * lib/unicase/u32-is-cased.c: New file.
13171         * modules/unicase/u32-is-cased: New file.
13172
13173         New module 'unicase/u16-is-cased'.
13174         * lib/unicase/u16-is-cased.c: New file.
13175         * modules/unicase/u16-is-cased: New file.
13176
13177         New module 'unicase/u8-is-cased'.
13178         * lib/unicase/u8-is-cased.c: New file.
13179         * lib/unicase/u-is-cased.h: New file.
13180         * modules/unicase/u8-is-cased: New file.
13181
13182         Tests for module 'unicase/u32-is-casefolded'.
13183         * modules/unicase/u32-is-casefolded-tests: New file.
13184         * tests/unicase/test-u32-is-casefolded.c: New file.
13185
13186         Tests for module 'unicase/u16-is-casefolded'.
13187         * modules/unicase/u16-is-casefolded-tests: New file.
13188         * tests/unicase/test-u16-is-casefolded.c: New file.
13189
13190         Tests for module 'unicase/u8-is-casefolded'.
13191         * modules/unicase/u8-is-casefolded-tests: New file.
13192         * tests/unicase/test-u8-is-casefolded.c: New file.
13193         * tests/unicase/test-is-casefolded.h: New file.
13194
13195         New module 'unicase/u32-is-casefolded'.
13196         * lib/unicase/u32-is-casefolded.c: New file.
13197         * modules/unicase/u32-is-casefolded: New file.
13198
13199         New module 'unicase/u16-is-casefolded'.
13200         * lib/unicase/u16-is-casefolded.c: New file.
13201         * modules/unicase/u16-is-casefolded: New file.
13202
13203         New module 'unicase/u8-is-casefolded'.
13204         * lib/unicase/u8-is-casefolded.c: New file.
13205         * modules/unicase/u8-is-casefolded: New file.
13206
13207         Tests for module 'unicase/u32-is-titlecase'.
13208         * modules/unicase/u32-is-titlecase-tests: New file.
13209         * tests/unicase/test-u32-is-titlecase.c: New file.
13210
13211         Tests for module 'unicase/u16-is-titlecase'.
13212         * modules/unicase/u16-is-titlecase-tests: New file.
13213         * tests/unicase/test-u16-is-titlecase.c: New file.
13214
13215         Tests for module 'unicase/u8-is-titlecase'.
13216         * modules/unicase/u8-is-titlecase-tests: New file.
13217         * tests/unicase/test-u8-is-titlecase.c: New file.
13218         * tests/unicase/test-is-titlecase.h: New file.
13219
13220         New module 'unicase/u32-is-titlecase'.
13221         * lib/unicase/u32-is-titlecase.c: New file.
13222         * modules/unicase/u32-is-titlecase: New file.
13223
13224         New module 'unicase/u16-is-titlecase'.
13225         * lib/unicase/u16-is-titlecase.c: New file.
13226         * modules/unicase/u16-is-titlecase: New file.
13227
13228         New module 'unicase/u8-is-titlecase'.
13229         * lib/unicase/u8-is-titlecase.c: New file.
13230         * modules/unicase/u8-is-titlecase: New file.
13231
13232         Tests for module 'unicase/u32-is-lowercase'.
13233         * modules/unicase/u32-is-lowercase-tests: New file.
13234         * tests/unicase/test-u32-is-lowercase.c: New file.
13235
13236         Tests for module 'unicase/u16-is-lowercase'.
13237         * modules/unicase/u16-is-lowercase-tests: New file.
13238         * tests/unicase/test-u16-is-lowercase.c: New file.
13239
13240         Tests for module 'unicase/u8-is-lowercase'.
13241         * modules/unicase/u8-is-lowercase-tests: New file.
13242         * tests/unicase/test-u8-is-lowercase.c: New file.
13243         * tests/unicase/test-is-lowercase.h: New file.
13244
13245         New module 'unicase/u32-is-lowercase'.
13246         * lib/unicase/u32-is-lowercase.c: New file.
13247         * modules/unicase/u32-is-lowercase: New file.
13248
13249         New module 'unicase/u16-is-lowercase'.
13250         * lib/unicase/u16-is-lowercase.c: New file.
13251         * modules/unicase/u16-is-lowercase: New file.
13252
13253         New module 'unicase/u8-is-lowercase'.
13254         * lib/unicase/u8-is-lowercase.c: New file.
13255         * modules/unicase/u8-is-lowercase: New file.
13256
13257         Tests for module 'unicase/u32-is-uppercase'.
13258         * modules/unicase/u32-is-uppercase-tests: New file.
13259         * tests/unicase/test-u32-is-uppercase.c: New file.
13260
13261         Tests for module 'unicase/u16-is-uppercase'.
13262         * modules/unicase/u16-is-uppercase-tests: New file.
13263         * tests/unicase/test-u16-is-uppercase.c: New file.
13264
13265         Tests for module 'unicase/u8-is-uppercase'.
13266         * modules/unicase/u8-is-uppercase-tests: New file.
13267         * tests/unicase/test-u8-is-uppercase.c: New file.
13268         * tests/unicase/test-is-uppercase.h: New file.
13269
13270         New module 'unicase/u32-is-uppercase'.
13271         * lib/unicase/u32-is-uppercase.c: New file.
13272         * modules/unicase/u32-is-uppercase: New file.
13273
13274         New module 'unicase/u16-is-uppercase'.
13275         * lib/unicase/u16-is-uppercase.c: New file.
13276         * modules/unicase/u16-is-uppercase: New file.
13277
13278         New module 'unicase/u8-is-uppercase'.
13279         * lib/unicase/u8-is-uppercase.c: New file.
13280         * modules/unicase/u8-is-uppercase: New file.
13281
13282         New module 'unicase/u32-is-invariant'.
13283         * lib/unicase/u32-is-invariant.c: New file.
13284         * modules/unicase/u32-is-invariant: New file.
13285
13286         New module 'unicase/u16-is-invariant'.
13287         * lib/unicase/u16-is-invariant.c: New file.
13288         * modules/unicase/u16-is-invariant: New file.
13289
13290         New module 'unicase/u8-is-invariant'.
13291         * lib/unicase/u8-is-invariant.c: New file.
13292         * lib/unicase/invariant.h: New file.
13293         * lib/unicase/u-is-invariant.h: New file.
13294         * modules/unicase/u8-is-invariant: New file.
13295
13296         Tests for module 'unicase/u32-casecoll'.
13297         * modules/unicase/u32-casecoll-tests: New file.
13298         * tests/unicase/test-u32-casecoll.c: New file.
13299
13300         Tests for module 'unicase/u16-casecoll'.
13301         * modules/unicase/u16-casecoll-tests: New file.
13302         * tests/unicase/test-u16-casecoll.c: New file.
13303
13304         Tests for module 'unicase/u8-casecoll'.
13305         * modules/unicase/u8-casecoll-tests: New file.
13306         * tests/unicase/test-u8-casecoll.c: New file.
13307
13308         New module 'unicase/u32-casecoll'.
13309         * lib/unicase/u32-casecoll.c: New file.
13310         * modules/unicase/u32-casecoll: New file.
13311
13312         New module 'unicase/u16-casecoll'.
13313         * lib/unicase/u16-casecoll.c: New file.
13314         * modules/unicase/u16-casecoll: New file.
13315
13316         New module 'unicase/u8-casecoll'.
13317         * lib/unicase/u8-casecoll.c: New file.
13318         * lib/unicase/u-casecoll.h: New file.
13319         * modules/unicase/u8-casecoll: New file.
13320
13321         New module 'unicase/u32-casexfrm'.
13322         * lib/unicase/u32-casexfrm.c: New file.
13323         * modules/unicase/u32-casexfrm: New file.
13324
13325         New module 'unicase/u16-casexfrm'.
13326         * lib/unicase/u16-casexfrm.c: New file.
13327         * modules/unicase/u16-casexfrm: New file.
13328
13329         New module 'unicase/u8-casexfrm'.
13330         * lib/unicase/u8-casexfrm.c: New file.
13331         * lib/unicase/u-casexfrm.h: New file.
13332         * modules/unicase/u8-casexfrm: New file.
13333
13334         Tests for module 'unicase/u32-casecmp'.
13335         * modules/unicase/u32-casecmp-tests: New file.
13336         * tests/unicase/test-u32-casecmp.c: New file.
13337
13338         Tests for module 'unicase/u16-casecmp'.
13339         * modules/unicase/u16-casecmp-tests: New file.
13340         * tests/unicase/test-u16-casecmp.c: New file.
13341
13342         Tests for module 'unicase/u8-casecmp'.
13343         * modules/unicase/u8-casecmp-tests: New file.
13344         * tests/unicase/test-u8-casecmp.c: New file.
13345         * tests/unicase/test-casecmp.h: New file.
13346
13347         New module 'unicase/u32-casecmp'.
13348         * lib/unicase/u32-casecmp.c: New file.
13349         * modules/unicase/u32-casecmp: New file.
13350
13351         New module 'unicase/u16-casecmp'.
13352         * lib/unicase/u16-casecmp.c: New file.
13353         * modules/unicase/u16-casecmp: New file.
13354
13355         New module 'unicase/u8-casecmp'.
13356         * lib/unicase/u8-casecmp.c: New file.
13357         * lib/unicase/u-casecmp.h: New file.
13358         * modules/unicase/u8-casecmp: New file.
13359
13360         Tests for module 'unicase/u32-casefold'.
13361         * modules/unicase/u32-casefold-tests: New file.
13362         * tests/unicase/test-u32-casefold.c: New file.
13363
13364         Tests for module 'unicase/u16-casefold'.
13365         * modules/unicase/u16-casefold-tests: New file.
13366         * tests/unicase/test-u16-casefold.c: New file.
13367
13368         Tests for module 'unicase/u8-casefold'.
13369         * modules/unicase/u8-casefold-tests: New file.
13370         * tests/unicase/test-u8-casefold.c: New file.
13371
13372         New module 'unicase/u32-casefold'.
13373         * lib/unicase/u32-casefold.c: New file.
13374         * modules/unicase/u32-casefold: New file.
13375
13376         New module 'unicase/u16-casefold'.
13377         * lib/unicase/u16-casefold.c: New file.
13378         * modules/unicase/u16-casefold: New file.
13379
13380         New module 'unicase/u8-casefold'.
13381         * lib/unicase/u8-casefold.c: New file.
13382         * lib/unicase/u-casefold.h: New file.
13383         * modules/unicase/u8-casefold: New file.
13384
13385         New module 'unicase/tocasefold'.
13386         * lib/unicase/casefold.h: New file.
13387         * lib/unicase/tocasefold.c: New file.
13388         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
13389         * modules/unicase/tocasefold: New file.
13390
13391         Tests for module 'unicase/u32-totitle'.
13392         * modules/unicase/u32-totitle-tests: New file.
13393         * tests/unicase/test-u32-totitle.c: New file.
13394
13395         Tests for module 'unicase/u16-totitle'.
13396         * modules/unicase/u16-totitle-tests: New file.
13397         * tests/unicase/test-u16-totitle.c: New file.
13398
13399         Tests for module 'unicase/u8-totitle'.
13400         * modules/unicase/u8-totitle-tests: New file.
13401         * tests/unicase/test-u8-totitle.c: New file.
13402
13403         New module 'unicase/u32-totitle'.
13404         * lib/unicase/u32-totitle.c: New file.
13405         * modules/unicase/u32-totitle: New file.
13406
13407         New module 'unicase/u16-totitle'.
13408         * lib/unicase/u16-totitle.c: New file.
13409         * modules/unicase/u16-totitle: New file.
13410
13411         New module 'unicase/u8-totitle'.
13412         * lib/unicase/u8-totitle.c: New file.
13413         * lib/unicase/u-totitle.h: New file.
13414         * modules/unicase/u8-totitle: New file.
13415
13416         Tests for module 'unicase/u32-tolower'.
13417         * modules/unicase/u32-tolower-tests: New file.
13418         * tests/unicase/test-u32-tolower.c: New file.
13419
13420         Tests for module 'unicase/u16-tolower'.
13421         * modules/unicase/u16-tolower-tests: New file.
13422         * tests/unicase/test-u16-tolower.c: New file.
13423
13424         Tests for module 'unicase/u8-tolower'.
13425         * modules/unicase/u8-tolower-tests: New file.
13426         * tests/unicase/test-u8-tolower.c: New file.
13427
13428         New module 'unicase/u32-tolower'.
13429         * lib/unicase/u32-tolower.c: New file.
13430         * modules/unicase/u32-tolower: New file.
13431
13432         New module 'unicase/u16-tolower'.
13433         * lib/unicase/u16-tolower.c: New file.
13434         * modules/unicase/u16-tolower: New file.
13435
13436         New module 'unicase/u8-tolower'.
13437         * lib/unicase/u8-tolower.c: New file.
13438         * modules/unicase/u8-tolower: New file.
13439
13440         Tests for module 'unicase/u32-toupper'.
13441         * modules/unicase/u32-toupper-tests: New file.
13442         * tests/unicase/test-u32-toupper.c: New file.
13443
13444         Tests for module 'unicase/u16-toupper'.
13445         * modules/unicase/u16-toupper-tests: New file.
13446         * tests/unicase/test-u16-toupper.c: New file.
13447
13448         Tests for module 'unicase/u8-toupper'.
13449         * modules/unicase/u8-toupper-tests: New file.
13450         * tests/unicase/test-u8-toupper.c: New file.
13451
13452         New module 'unicase/u32-toupper'.
13453         * lib/unicase/u32-toupper.c: New file.
13454         * modules/unicase/u32-toupper: New file.
13455
13456         New module 'unicase/u16-toupper'.
13457         * lib/unicase/u16-toupper.c: New file.
13458         * modules/unicase/u16-toupper: New file.
13459
13460         New module 'unicase/u8-toupper'.
13461         * lib/unicase/u8-toupper.c: New file.
13462         * modules/unicase/u8-toupper: New file.
13463
13464         New module 'unicase/u32-casemap'.
13465         * lib/unicase/u32-casemap.c: New file.
13466         * modules/unicase/u32-casemap: New file.
13467
13468         New module 'unicase/u16-casemap'.
13469         * lib/unicase/u16-casemap.c: New file.
13470         * modules/unicase/u16-casemap: New file.
13471
13472         New module 'unicase/u8-casemap'.
13473         * lib/unicase/unicasemap.h: New file.
13474         * lib/unicase/u8-casemap.c: New file.
13475         * lib/unicase/u-casemap.h: New file.
13476         * modules/unicase/u8-casemap: New file.
13477
13478         New module 'unicase/special-casing'.
13479         * lib/unicase/special-casing.h: New file.
13480         * lib/unicase/special-casing.c: New file.
13481         * lib/unicase/special-casing-table.gperf: New file, generated by
13482         gen-uni-tables.c.
13483         * modules/unicase/special-casing: New file.
13484
13485         Tests for module 'unicase/locale-language'.
13486         * modules/unicase/locale-language-tests: New file.
13487         * tests/unicase/test-locale-language.sh: New file.
13488         * tests/unicase/test-locale-language.c: New file.
13489
13490         New module 'unicase/locale-language'.
13491         * lib/unicase/locale-language.c: New file.
13492         * lib/unicase/locale-languages.gperf: New file.
13493         * modules/unicase/locale-language: New file.
13494
13495         Generate more tables for case conversion and case folding.
13496         * lib/gen-uni-tables.c (SCC_*): New enum items.
13497         (struct special_casing_rule): New type.
13498         (casing_rules, num_casing_rules, allocated_casing_rules): New
13499         variables.
13500         (add_casing_rule, fill_casing_rules): New functions.
13501         (struct casefold_rule): New type.
13502         (casefolding_rules, num_casefolding_rules,
13503         allocated_casefolding_rules): New variables.
13504         (fill_casefolding_rules): New function.
13505         (unicode_casefold): New variable.
13506         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
13507         sort_casing_rules, output_casing_rules): New functions.
13508         (main): Accept to more arguments: SpecialCasing.txt and
13509         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
13510         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
13511         Output mapping for casefolding.
13512
13513         * lib/unicase.h: Include stdbool.h, uninorm.h.
13514         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
13515         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
13516         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
13517         arguments.
13518         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
13519         resultp arguments.
13520         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
13521         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
13522         resultp arguments.
13523         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
13524         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
13525         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
13526         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
13527         declarations.
13528         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
13529
13530 2009-03-08  Bruno Haible  <bruno@clisp.org>
13531
13532         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
13533         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
13534         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
13535         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
13536
13537 2009-03-07  Bruno Haible  <bruno@clisp.org>
13538
13539         Adjust u*_normcmp, u*_normcoll API.
13540         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
13541         u16_normcoll, u32_normcoll): Change failure conventions.
13542         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
13543         errno and return -1.
13544         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
13545
13546 2009-03-07  Bruno Haible  <bruno@clisp.org>
13547
13548         Tests for module 'uninorm/u32-normcoll'.
13549         * modules/uninorm/u32-normcoll-tests: New file.
13550         * tests/uninorm/test-u32-normcoll.c: New file.
13551
13552         Tests for module 'uninorm/u16-normcoll'.
13553         * modules/uninorm/u16-normcoll-tests: New file.
13554         * tests/uninorm/test-u16-normcoll.c: New file.
13555
13556         Tests for module 'uninorm/u8-normcoll'.
13557         * modules/uninorm/u8-normcoll-tests: New file.
13558         * tests/uninorm/test-u8-normcoll.c: New file.
13559
13560 2009-03-07  Bruno Haible  <bruno@clisp.org>
13561
13562         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
13563         tests/uninorm/test-u32-normcmp.c.
13564         * tests/uninorm/test-u32-normcmp.c: Include it.
13565         (test_nonascii): New function, extracted from main. Add some more
13566         tests.
13567         (main): Invoke test_ascii and test_nonascii.
13568         * modules/uninorm/u32-normcmp-tests (Files): Add
13569         tests/uninorm/test-u32-normcmp.h.
13570         (Depends-on): Remove uninorm/u32-normcmp.
13571
13572         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
13573         tests/uninorm/test-u16-normcmp.c.
13574         * tests/uninorm/test-u16-normcmp.c: Include it.
13575         (test_nonascii): New function, extracted from main. Add some more
13576         tests.
13577         (main): Invoke test_ascii and test_nonascii.
13578         * modules/uninorm/u16-normcmp-tests (Files): Add
13579         tests/uninorm/test-u16-normcmp.h.
13580         (Depends-on): Remove uninorm/u16-normcmp.
13581
13582         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
13583         tests/uninorm/test-u8-normcmp.c.
13584         * tests/uninorm/test-u8-normcmp.c: Include it.
13585         (test_nonascii): New function, extracted from main. Add some more
13586         tests.
13587         (main): Invoke test_ascii and test_nonascii.
13588         * modules/uninorm/u8-normcmp-tests (Files): Add
13589         tests/uninorm/test-u8-normcmp.h.
13590         (Depends-on): Remove uninorm/u8-normcmp.
13591
13592 2009-03-07  Bruno Haible  <bruno@clisp.org>
13593
13594         New module 'uninorm/u32-normcoll'.
13595         * lib/uninorm/u32-normcoll.c: New file.
13596         * modules/uninorm/u32-normcoll: New file.
13597
13598         New module 'uninorm/u16-normcoll'.
13599         * lib/uninorm/u16-normcoll.c: New file.
13600         * modules/uninorm/u16-normcoll: New file.
13601
13602         New module 'uninorm/u8-normcoll'.
13603         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
13604         declarations.
13605         * lib/uninorm/u8-normcoll.c: New file.
13606         * lib/uninorm/u-normcoll.h: New file.
13607         * modules/uninorm/u8-normcoll: New file.
13608
13609         New module 'uninorm/u32-normxfrm'.
13610         * lib/uninorm/u32-normxfrm.c: New file.
13611         * modules/uninorm/u32-normxfrm: New file.
13612
13613         New module 'uninorm/u16-normxfrm'.
13614         * lib/uninorm/u16-normxfrm.c: New file.
13615         * modules/uninorm/u16-normxfrm: New file.
13616
13617         New module 'uninorm/u8-normxfrm'.
13618         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
13619         declarations.
13620         * lib/uninorm/u8-normxfrm.c: New file.
13621         * lib/uninorm/u-normxfrm.h: New file.
13622         * modules/uninorm/u8-normxfrm: New file.
13623
13624 2009-03-07  Bruno Haible  <bruno@clisp.org>
13625
13626         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
13627         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
13628         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
13629
13630 2009-03-07  Bruno Haible  <bruno@clisp.org>
13631
13632         New module 'memxfrm'.
13633         * lib/memxfrm.h: New file.
13634         * lib/memxfrm.c: New file.
13635         * modules/memxfrm: New file.
13636
13637 2009-03-07  Bruno Haible  <bruno@clisp.org>
13638
13639         New module 'memcmp2'.
13640         * lib/memcmp2.h: New file.
13641         * lib/memcmp2.c: New file.
13642         * modules/memcmp2: New file.
13643
13644 2009-03-07  Bruno Haible  <bruno@clisp.org>
13645
13646         Tests for module 'uninorm/decomposing-form'.
13647         * modules/uninorm/decomposing-form-tests: New file.
13648         * tests/uninorm/test-decomposing-form.c: New file.
13649
13650         New module 'uninorm/decomposing-form'.
13651         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
13652         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
13653         Add 'decomposing_variant' field.
13654         * lib/uninorm/decomposing-form.c: New file.
13655         * lib/uninorm/nfc.c (uninorm_nfc): Update.
13656         * lib/uninorm/nfd.c (uninorm_nfd): Update.
13657         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
13658         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
13659         * modules/uninorm/decomposing-form: New file.
13660         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
13661         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
13662
13663 2009-03-07  Bruno Haible  <bruno@clisp.org>
13664
13665         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
13666         strings.
13667
13668 2009-03-06  Bruno Haible  <bruno@clisp.org>
13669
13670         Tests for module 'uninorm/u32-normcmp'.
13671         * tests/uninorm/test-u32-normcmp.c: New file.
13672         * modules/uninorm/u32-normcmp-tests: New file.
13673
13674         Tests for module 'uninorm/u16-normcmp'.
13675         * tests/uninorm/test-u16-normcmp.c: New file.
13676         * modules/uninorm/u16-normcmp-tests: New file.
13677
13678         Tests for module 'uninorm/u8-normcmp'.
13679         * tests/uninorm/test-u8-normcmp.c: New file.
13680         * modules/uninorm/u8-normcmp-tests: New file.
13681
13682         New module 'uninorm/u32-normcmp'.
13683         * lib/uninorm/u32-normcmp.c: New file.
13684         * modules/uninorm/u32-normcmp: New file.
13685
13686         New module 'uninorm/u16-normcmp'.
13687         * lib/uninorm/u16-normcmp.c: New file.
13688         * modules/uninorm/u16-normcmp: New file.
13689
13690         New module 'uninorm/u8-normcmp'.
13691         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
13692         declarations.
13693         * lib/uninorm/u8-normcmp.c: New file.
13694         * lib/uninorm/u-normcmp.h: New file.
13695         * modules/uninorm/u8-normcmp: New file.
13696
13697 2009-03-06  Bruno Haible  <bruno@clisp.org>
13698
13699         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
13700         Reported by Eric Blake.
13701
13702 2009-03-06  Eric Blake  <ebb9@byu.net>
13703             Bruno Haible  <bruno@clisp.org>
13704
13705         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
13706         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
13707         condition.
13708         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
13709         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
13710         condition.
13711         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
13712
13713 2009-03-06  Eric Blake  <ebb9@byu.net>
13714
13715         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
13716         to avoid compiler warnings.
13717         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
13718
13719 2009-03-05  Bruno Haible  <bruno@clisp.org>
13720
13721         * tests/test-ftell.c (main): Disable test beyond end of file on
13722         FreeMiNT.
13723         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
13724
13725 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
13726
13727         * lib/filevercmp.c: Move hidden files up in ordering.
13728         * tests/test-filevercmp.c: Add tests for hidden files.
13729
13730 2009-03-04  Bruno Haible  <bruno@clisp.org>
13731
13732         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
13733         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
13734         AM_CFLAGS.
13735         Reported by Simon Josefsson.
13736
13737 2009-03-03  Bruno Haible  <bruno@clisp.org>
13738
13739         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
13740         Reported by Simon Josefsson.
13741
13742         * doc/ld-version-script.texi: Update node reference.
13743
13744 2009-03-03  Bruno Haible  <bruno@clisp.org>
13745
13746         * modules/visibility (License): Change to 'unlimited'.
13747         Suggested by Simon Josefsson.
13748
13749 2009-03-03  Jim Meyering  <meyering@redhat.com>
13750
13751         unlinkdir: cannot_unlink_dir may modify process state
13752         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
13753         it's neither thread-safe nor appropriate for use in a library.
13754
13755 2009-03-03  Eric Blake  <ebb9@byu.net>
13756
13757         test-closein: silence test under Darwin
13758         * tests/test-closein.sh: Ignore stderr from cat, since we don't
13759         care if it dies from EPIPE or EBADF.
13760
13761 2009-03-03  Bruno Haible  <bruno@clisp.org>
13762
13763         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
13764         earlier.
13765         * doc/visibility.texi: Fix @node and @section.
13766
13767 2009-03-03  Simon Josefsson  <simon@josefsson.org>
13768
13769         * doc/gnulib.texi: Link to sections for ld version script and
13770         visibility.
13771         * doc/visibility.texi: Add @node and @section.
13772         * modules/ld-version-script: New module.
13773         * m4/ld-version-script.m4: New file.
13774         * doc/ld-version-script.texi: New file.
13775
13776 2009-03-02  David Lutterkort  <lutter@redhat.com>
13777
13778         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
13779         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13780
13781 2009-03-02  Bruno Haible  <bruno@clisp.org>
13782
13783         * doc/visibility.texi: Mention libtool's -export-symbols option.
13784
13785 2009-03-02  Jim Meyering  <meyering@redhat.com>
13786
13787         announce-gen: new option: --no-print-checksums
13788         * build-aux/announce-gen (usage): Describe it.
13789         (print_checksums): Print a newline here, not in the [*] footnote.
13790         (main): Honor it.
13791
13792 2009-03-01  Bruno Haible  <bruno@clisp.org>
13793
13794         Use socklen_t in the native Windows replacements prototypes.
13795         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
13796         instead of 'int'.
13797         * lib/getsockopt.c (rpl_getsockopt): Likewise.
13798         * lib/setsockopt.c (rpl_setsockopt): Likewise.
13799         * modules/getsockopt (Depends-on): Add socklen.
13800         * modules/setsockopt (Depends-on): Add socklen.
13801
13802 2009-03-01  Bruno Haible  <bruno@clisp.org>
13803
13804         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
13805         least 4.2.
13806
13807 2009-03-01  Eric Blake  <ebb9@byu.net>
13808             Bruno Haible  <bruno@clisp.org>
13809
13810         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
13811         error messages.
13812         * lib/wait-process.c (wait_subprocess): Omit error message about
13813         deadly signal sent to the child of termsigp != NULL.
13814
13815 2009-03-01  Eric Blake  <ebb9@byu.net>
13816
13817         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
13818
13819 2009-03-01  Bruno Haible  <bruno@clisp.org>
13820
13821         Avoid a gcc warning.
13822         * tests/test-sched.c (b): Make global.
13823         Reported by Eric Blake.
13824
13825 2009-01-19  Martin Lambers  <marlam@marlam.de>
13826
13827         Provide POSIX semantics for socket timeout options on W32.
13828         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
13829         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
13830         * modules/setsockopt: Depend on sys_time module for struct timeval.
13831         * modules/getsockopt: Depend on sys_time module for struct timeval.
13832
13833 2009-03-01  Simon Josefsson  <simon@josefsson.org>
13834
13835         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
13836         __USE_GNU, for consistency with netdb.in.h.
13837         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13838
13839 2009-03-01  Bruno Haible  <bruno@clisp.org>
13840
13841         More support for FreeMiNT.
13842         * lib/fseeko.c (rpl_fseeko): Complete last commit.
13843         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13844
13845 2009-03-01  Bruno Haible  <bruno@clisp.org>
13846
13847         More support for FreeMiNT.
13848         * lib/fpurge.c (fpurge): Correct last commit.
13849         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13850
13851 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13852
13853         Fix unportable awk script in vc-list-files.
13854         * build-aux/vc-list-files: In the replacement awk script, use
13855         substr with a second argument of 1, not zero.
13856         Report by Simon Josefsson.
13857
13858 2009-02-28  Bruno Haible  <bruno@clisp.org>
13859
13860         More support for FreeMiNT.
13861         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
13862         to FreeMiNT today.
13863         * lib/fwriting.c (fwriting): Likewise.
13864         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
13865
13866 2009-02-28  Bruno Haible  <bruno@clisp.org>
13867
13868         * tests/test-freadseek.c (main): Disable test beyond end of file on
13869         FreeMiNT.
13870         * tests/test-ftello.c (main): Likewise.
13871         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
13872
13873 2009-02-28  Bruno Haible  <bruno@clisp.org>
13874
13875         Add tentative support for FreeMiNT.
13876         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
13877         * lib/fpurge.c (fpurge): Likewise.
13878         * lib/freadable.c (freadable): Likewise.
13879         * lib/freading.c (freading): Likewise.
13880         * lib/freadptr.c (freadptr): Likewise.
13881         * lib/freadseek.c (freadptrinc): Likewise.
13882         * lib/fseeko.c (rpl_fseeko): Likewise.
13883         * lib/fseterr.c (fseterr): Likewise.
13884         * lib/fwritable.c (fwritable): Likewise.
13885         * lib/fwriting.c (fwriting): Likewise.
13886         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
13887         Hourihane.
13888         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13889
13890 2009-02-28  Bruno Haible  <bruno@clisp.org>
13891
13892         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
13893         SIGCHLD.
13894         Reported by Jim Meyering.
13895
13896 2009-02-28  Bruno Haible  <bruno@clisp.org>
13897
13898         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
13899         Mention the results of these tests on various platforms.
13900         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
13901         order.
13902         * doc/posix-functions/printf.texi: Likewise.
13903         * doc/posix-functions/snprintf.texi: Likewise.
13904         * doc/posix-functions/sprintf.texi: Likewise.
13905         * doc/posix-functions/vfprintf.texi: Likewise.
13906         * doc/posix-functions/vprintf.texi: Likewise.
13907         * doc/posix-functions/vsnprintf.texi: Likewise.
13908         * doc/posix-functions/vsprintf.texi: Likewise.
13909         * doc/glibc-functions/obstack_printf.texi: Likewise.
13910         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13911
13912 2009-02-28  Bruno Haible  <bruno@clisp.org>
13913
13914         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
13915         Reported by Loïc Minier <lool@dooz.org>.
13916
13917 2009-02-27  Bruno Haible  <bruno@clisp.org>
13918
13919         * gnulib-tool (func_import): Make the sed expression used to create the
13920         sed script for updating the .gitignore file POSIX compliant.
13921         Reported by Eric Blake.
13922
13923 2009-02-27  Bruno Haible  <bruno@clisp.org>
13924
13925         * gnulib-tool (sed): Don't alias as "sed --posix".
13926         Reported by Eric Blake.
13927
13928 2009-02-27  Bruno Haible  <bruno@clisp.org>
13929
13930         Avoid test link errors.
13931         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
13932         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
13933         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
13934         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
13935         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13936
13937 2009-02-27  Bruno Haible  <bruno@clisp.org>
13938
13939         Avoid spurious "(cached)" in configure output.
13940         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
13941         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
13942         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
13943         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
13944         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
13945         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
13946         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
13947         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
13948         Reported by Eric Blake.
13949
13950 2009-02-27  Eric Blake  <ebb9@byu.net>
13951
13952         printf: fix regression in previous patch
13953         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
13954
13955 2009-02-27  Bruno Haible  <bruno@clisp.org>
13956
13957         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
13958         value.
13959         * lib/stdint.in.h: Likewise.
13960         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
13961
13962 2009-02-27  Eric Blake  <ebb9@byu.net>
13963
13964         doc: mention more functions added in cygwin 1.7.0
13965         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
13966         addition.
13967         * doc/posix-functions/open_wmemstream.texi: Likewise.
13968         * doc/posix-functions/wcsnlen.texi: Likewise.
13969         * doc/posix-functions/wcsnrtombs.texi: Likewise.
13970         * doc/posix-functions/wcstod.texi: Likewise.
13971         * doc/posix-functions/wcstof.texi: Likewise.
13972         * doc/posix-functions/wcstoimax.texi: Likewise.
13973         * doc/posix-functions/wcstok.texi: Likewise.
13974         * doc/posix-functions/wcstoumax.texi: Likewise.
13975
13976         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
13977         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
13978         * doc/posix-functions/fprintf.texi: Update.
13979         * doc/posix-functions/printf.texi: Update.
13980         * doc/posix-functions/snprintf.texi: Update.
13981         * doc/posix-functions/sprintf.texi: Update.
13982         * doc/posix-functions/vfprintf.texi: Update.
13983         * doc/posix-functions/vprintf.texi: Update.
13984         * doc/posix-functions/vsnprintf.texi: Update.
13985         * doc/posix-functions/vsprintf.texi: Update.
13986         * doc/glibc-functions/obstack_printf.texi: Update.
13987         * doc/glibc-functions/obstack_vprintf.texi: Update.
13988
13989 2009-02-26  Eric Blake  <ebb9@byu.net>
13990
13991         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
13992         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
13993         compilation bug by using runtime conversion.
13994         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13995         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
13996         * modules/ceill-tests (Files): Use nan.h.
13997         * modules/floorl-tests (Files): Likewise.
13998         * modules/frexpl-tests (Files): Likewise.
13999         * modules/isnanl-tests (Files): Likewise.
14000         * modules/ldexpl-tests (Files): Likewise.
14001         * modules/roundl-tests (Files): Likewise.
14002         * modules/truncl-tests (Files): Likewise.
14003         * tests/test-ceill.c (main): Use a working NaN.
14004         * tests/test-floorl.c (main): Likewise.
14005         * tests/test-frexpl.c (main): Likewise.
14006         * tests/test-isnan.c (test_long_double): Likewise.
14007         * tests/test-isnanl.h (main): Likewise.
14008         * tests/test-ldexpl.h (main): Likewise.
14009         * tests/test-roundl.h (main): Likewise.
14010         * tests/test-truncl.h (main): Likewise.
14011         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
14012
14013 2009-02-26  Eric Blake  <ebb9@byu.net>
14014             Bruno Haible  <bruno@clisp.org>
14015
14016         Work around a *printf bug with %ls on Solaris.
14017         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
14018         precision is specified, sprintf stops converting the wide string
14019         argument when the number of bytes that have been produced by this
14020         conversion equals or exceeds the precision.
14021         * doc/posix-functions/fprintf.texi: Update.
14022         * doc/posix-functions/printf.texi: Update.
14023         * doc/posix-functions/snprintf.texi: Update.
14024         * doc/posix-functions/sprintf.texi: Update.
14025         * doc/posix-functions/vfprintf.texi: Update.
14026         * doc/posix-functions/vprintf.texi: Update.
14027         * doc/posix-functions/vsnprintf.texi: Update.
14028         * doc/posix-functions/vsprintf.texi: Update.
14029         * doc/glibc-functions/obstack_printf.texi: Update.
14030         * doc/glibc-functions/obstack_vprintf.texi: Update.
14031
14032 2009-02-26  Eric Blake  <ebb9@byu.net>
14033
14034         stdlib: favor compiler check of random.h
14035         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
14036         to avoid an ObjC random.h installed by Swarm.
14037
14038 2009-02-26  Bruno Haible  <bruno@clisp.org>
14039
14040         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
14041         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
14042         Reported by Gary V. Vaughan <gary@gnu.org>.
14043
14044 2009-02-26  Bruno Haible  <bruno@clisp.org>
14045
14046         Fix *printf behaviour regarding the %ls directive.
14047         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
14048         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
14049         NEED_PRINTF_DIRECTIVE_LS.
14050         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
14051         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14052         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14053         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
14054         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
14055         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
14056         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
14057         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14058         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14059         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14060         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14061         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
14062         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14063         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14064         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14065         * doc/posix-functions/fprintf.texi: Update.
14066         * doc/posix-functions/printf.texi: Update.
14067         * doc/posix-functions/snprintf.texi: Update.
14068         * doc/posix-functions/sprintf.texi: Update.
14069         * doc/posix-functions/vfprintf.texi: Update.
14070         * doc/posix-functions/vprintf.texi: Update.
14071         * doc/posix-functions/vsnprintf.texi: Update.
14072         * doc/posix-functions/vsprintf.texi: Update.
14073         * doc/glibc-functions/obstack_printf.texi: Update.
14074         * doc/glibc-functions/obstack_vprintf.texi: Update.
14075         Reported by Eric Blake.
14076
14077 2009-02-25  Bruno Haible  <bruno@clisp.org>
14078
14079         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
14080         with known value.
14081         Reported by Gary V. Vaughan <gary@gnu.org>.
14082
14083 2009-02-25  Bruno Haible  <bruno@clisp.org>
14084
14085         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
14086         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
14087         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
14088         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
14089         Reported by Gary V. Vaughan <gary@gnu.org>.
14090
14091 2009-02-25  Bruno Haible  <bruno@clisp.org>
14092
14093         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
14094         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
14095         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
14096         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
14097         Reported by Gary V. Vaughan <gary@gnu.org>.
14098
14099 2009-02-25  Eric Blake  <ebb9@byu.net>
14100
14101         tests: skip fseek/ftell tests if ungetc is broken
14102         * m4/ungetc.m4: New file.
14103         * modules/fseek-tests: Split test, so ungetc dependency is
14104         separate from rest of test.
14105         * modules/fseeko-tests: Likewise.
14106         * modules/ftell-tests: Likewise.
14107         * modules/ftello-tests: Likewise.
14108         * tests/test-fseek.c (main): Isolate ungetc dependency.
14109         * tests/test-fseeko.c (main): Likewise.
14110         * tests/test-ftell.c (main): Likewise.
14111         * tests/test-ftello.c (main): Likewise.
14112         * tests/test-fseek2.sh: New file.
14113         * tests/test-fseeko2.sh: Likewise.
14114         * tests/test-ftell2.sh: Likewise.
14115         * tests/test-ftello2.sh: Likewise.
14116
14117 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
14118
14119         test-getaddrinfo: fix usage of skip return code 77
14120         * tests/test-gettaddrinfo.c: Return skip code 77 only
14121         for first occurance of skip (4x77 is not 77)
14122
14123 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
14124
14125         strtod: avoid C99 decl-after-statement
14126         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
14127
14128 2009-02-24  Eric Blake  <ebb9@byu.net>
14129
14130         strtod: detect HP-UX 11.31 bug
14131         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
14132         Reported by Gary V. Vaughan.
14133
14134 2009-02-23  Bruno Haible  <bruno@clisp.org>
14135
14136         Fix invalid read past end of memory block.
14137         * lib/vasnprintf.c (DCHAR_SET): Define.
14138         (local_wcslen): Define only when needed.
14139         (local_strnlen, local_wcsnlen): New functions.
14140         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
14141         directives that involve a conversion ourselves.
14142         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
14143         wcsnlen, mbrtowc, wcrtomb.
14144         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
14145         * tests/test-vasprintf-posix.c (test_function): Likewise.
14146         * tests/test-snprintf-posix.h (test_function): Likewise.
14147         * tests/test-sprintf-posix.h (test_function): Likewise.
14148         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14149
14150 2009-02-22  Bruno Haible  <bruno@clisp.org>
14151
14152         Implement new clarified decomposition of Hangul syllables.
14153         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
14154         of type LTV, return only a pairwise decomposition.
14155         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
14156         Likewise.
14157         * tests/uninorm/test-decomposition.c (main): Updated expected result.
14158         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
14159         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
14160
14161 2009-02-22  Bruno Haible  <bruno@clisp.org>
14162
14163         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
14164         zero-length results and shrink excess allocated memory.
14165         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
14166         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
14167         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
14168         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
14169         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
14170         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
14171         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
14172         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
14173         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
14174         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
14175         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
14176         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
14177
14178 2009-02-21  Bruno Haible  <bruno@clisp.org>
14179
14180         * doc/gnulib.texi: Include safe-alloc.texi earlier.
14181         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
14182         spaces after a period. Put a space between a macro name and its
14183         argument list. Trivial rewordings.
14184         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
14185         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
14186         (main): Return 0 explicitly.
14187
14188 2009-02-21  Bruno Haible  <bruno@clisp.org>
14189
14190         Tests for module 'uninorm/filter'.
14191         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
14192         * modules/uninorm/filter-tests: New file.
14193
14194         New module 'uninorm/filter'.
14195         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
14196         uninorm_filter_flush, uninorm_filter_free): New declarations.
14197         * lib/uninorm/uninorm-filter.c: New file.
14198         * modules/uninorm/filter: New file.
14199
14200 2009-02-21  Bruno Haible  <bruno@clisp.org>
14201
14202         Tests for module 'uninorm/nfkc'.
14203         * tests/uninorm/test-nfkc.c: New file.
14204         * tests/uninorm/test-u8-nfkc.c: New file.
14205         * tests/uninorm/test-u16-nfkc.c: New file.
14206         * tests/uninorm/test-u32-nfkc.c: New file.
14207         * tests/uninorm/test-u32-nfkc-big.sh: New file.
14208         * tests/uninorm/test-u32-nfkc-big.c: New file.
14209         * modules/uninorm/nfkc-tests: New file.
14210
14211         New module 'uninorm/nfkc'.
14212         * lib/uninorm/nfkc.c: New file.
14213         * modules/uninorm/nfkc: New file.
14214
14215         Tests for module 'uninorm/nfkd'.
14216         * tests/uninorm/test-nfkd.c: New file.
14217         * tests/uninorm/test-u8-nfkd.c: New file.
14218         * tests/uninorm/test-u16-nfkd.c: New file.
14219         * tests/uninorm/test-u32-nfkd.c: New file.
14220         * tests/uninorm/test-u32-nfkd-big.sh: New file.
14221         * tests/uninorm/test-u32-nfkd-big.c: New file.
14222         * modules/uninorm/nfkd-tests: New file.
14223
14224         New module 'uninorm/nfkd'.
14225         * lib/uninorm/nfkd.c: New file.
14226         * modules/uninorm/nfkd: New file.
14227
14228         Tests for module 'uninorm/nfc'.
14229         * tests/uninorm/test-nfc.c: New file.
14230         * tests/uninorm/test-u8-nfc.c: New file.
14231         * tests/uninorm/test-u16-nfc.c: New file.
14232         * tests/uninorm/test-u32-nfc.c: New file.
14233         * tests/uninorm/test-u32-nfc-big.sh: New file.
14234         * tests/uninorm/test-u32-nfc-big.c: New file.
14235         * modules/uninorm/nfc-tests: New file.
14236
14237         New module 'uninorm/nfc'.
14238         * lib/uninorm/nfc.c: New file.
14239         * modules/uninorm/nfc: New file.
14240
14241         Tests for module 'uninorm/nfd'.
14242         * tests/uninorm/test-nfd.c: New file.
14243         * tests/uninorm/test-u8-nfd.c: New file.
14244         * tests/uninorm/test-u16-nfd.c: New file.
14245         * tests/uninorm/test-u32-nfd.c: New file.
14246         * tests/uninorm/test-u32-nfd-big.sh: New file.
14247         * tests/uninorm/test-u32-nfd-big.c: New file.
14248         * tests/uninorm/test-u32-normalize-big.h: New file.
14249         * tests/uninorm/test-u32-normalize-big.c: New file.
14250         * tests/uninorm/NormalizationTest.txt: New file, created from
14251         Unicode 5.1.0 NormalizationTest.txt.
14252         * modules/uninorm/nfd-tests: New file.
14253
14254         New module 'uninorm/nfd'.
14255         * lib/uninorm/nfd.c: New file.
14256         * modules/uninorm/nfd: New file.
14257
14258         New module 'uninorm/u32-normalize'.
14259         * lib/uninorm/u32-normalize.c: New file.
14260         * modules/uninorm/u32-normalize: New file.
14261
14262         New module 'uninorm/u16-normalize'.
14263         * lib/uninorm/u16-normalize.c: New file.
14264         * modules/uninorm/u16-normalize: New file.
14265
14266         New module 'uninorm/u8-normalize'.
14267         * lib/uninorm/u8-normalize.c: New file.
14268         * lib/uninorm/normalize-internal.h: New file.
14269         * lib/uninorm/u-normalize-internal.h: New file.
14270         * modules/uninorm/u8-normalize: New file.
14271
14272         New module 'uninorm/decompose-internal'.
14273         * lib/uninorm/decompose-internal.c: New file.
14274         * modules/uninorm/decompose-internal: New file.
14275
14276         Tests for module 'uninorm/composition'.
14277         * tests/uninorm/test-composition.c: New file.
14278         * modules/uninorm/composition-tests: New file.
14279
14280         New module 'uninorm/composition'.
14281         * lib/uninorm/composition.c: New file.
14282         * lib/uninorm/composition-table.gperf: New file, generated by
14283         gen-uni-tables.
14284         * modules/uninorm/composition: New file.
14285
14286         Tests for module 'uninorm/compat-decomposition'.
14287         * tests/uninorm/test-compat-decomposition.c: New file.
14288         * modules/uninorm/compat-decomposition-tests: New file.
14289
14290         New module 'uninorm/compat-decomposition'.
14291         * lib/uninorm/decompose-internal.h: New file.
14292         * lib/uninorm/compat-decomposition.c: New file.
14293         * modules/uninorm/compat-decomposition: New file.
14294
14295         Tests for module 'uninorm/canonical-decomposition'.
14296         * tests/uninorm/test-canonical-decomposition.c: New file.
14297         * modules/uninorm/canonical-decomposition-tests: New file.
14298
14299         New module 'uninorm/canonical-decomposition'.
14300         * lib/uninorm/canonical-decomposition.c: New file.
14301         * modules/uninorm/canonical-decomposition: New file.
14302
14303         Tests for module 'uninorm/decomposition'.
14304         * tests/uninorm/test-decomposition.c: New file.
14305         * modules/uninorm/decomposition-tests: New file.
14306
14307         New module 'uninorm/decomposition'.
14308         * lib/uninorm/decomposition.c: New file.
14309         * modules/uninorm/decomposition: New file.
14310
14311         New module 'uninorm/decomposition-table'.
14312         * lib/uninorm/decomposition-table.h: New file.
14313         * lib/uninorm/decomposition-table.c: New file.
14314         * lib/uninorm/decomposition-table1.h: New file, generated by
14315         gen-uni-tables.
14316         * lib/uninorm/decomposition-table2.h: New file, generated by
14317         gen-uni-tables.
14318         * modules/uninorm/decomposition-table: New file.
14319
14320         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
14321         (UC_DECOMP_*): New enumeration items.
14322         (get_decomposition): New function.
14323         (struct decomp_table): New type.
14324         (output_decomposition, output_decomposition_tables): New functions.
14325         (unicode_composition_exclusions): New variable.
14326         (fill_composition_exclusions, debug_output_composition_tables): New
14327         functions.
14328         (main): Accept one more argument. Invoke fill_composition_exclusions.
14329         Output decomposition and composition tables.
14330
14331         New module 'uninorm/base'.
14332         * lib/uninorm.h: New file.
14333         * lib/unictype.h: Update comment.
14334         * modules/uninorm/base: New file.
14335
14336 2009-02-21  David Lutterkort  <lutter@redhat.com>
14337
14338         Tests for module 'safe-alloc'.
14339         * tests/test-safe-alloc.c: New file.
14340         * modules/safe-alloc-tests: New file.
14341
14342         New module 'safe-alloc'.
14343         * lib/safe-alloc.h: New file.
14344         * lib/safe-alloc.c: New file.
14345         * m4/safe-alloc.m4: New file.
14346         * modules/safe-alloc: New file.
14347         * doc/safe-alloc.texi: New file.
14348         * doc/gnulib.texi: Include it.
14349         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
14350         safe-alloc.
14351
14352 2009-02-18  Bruno Haible  <bruno@clisp.org>
14353
14354         Fix link error on non-glibc systems.
14355         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
14356         variable.
14357         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14358
14359 2009-02-18  Jim Meyering  <meyering@redhat.com>
14360
14361         fts: avoid used-uninitialized error due to recent change
14362         * lib/fts.c (fts_read): Guard uses of the new member,
14363         parent->fts_n_dirs_remaining, since it's not relevant for
14364         the parent of a directory specified on the command-line.
14365
14366 2009-02-17  James Youngman  <jay@gnu.org>
14367             Bruno Haible  <bruno@clisp.org>
14368
14369         * m4/include_next.m4: Reformulate comment.
14370
14371 2009-02-16  Jim Meyering  <meyering@redhat.com>
14372
14373         fts: add #if guards so that the fts_lgpl module still builds
14374         * lib/fts.c: Guard just-added hash-table-using parts with
14375         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
14376         Reported by Simon Josefsson.
14377
14378 2009-02-15  Bruno Haible  <bruno@clisp.org>
14379
14380         * modules/array-mergesort-tests: New file.
14381         * tests/test-array-mergesort.c: New file.
14382
14383         New module 'array-mergesort'.
14384         * modules/array-mergesort: New file.
14385         * lib/array-mergesort.h: New file.
14386
14387 2009-02-15  Bruno Haible  <bruno@clisp.org>
14388
14389         Fix 2009-02-07 commit.
14390         * lib/gen-uni-tables.c (output_predicate, output_category,
14391         output_combclass, output_bidi_category, output_decimal_digit,
14392         output_digit, output_numeric, output_mirror, output_scripts,
14393         output_ident_category, output_simple_mapping): Fix format directives.
14394         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
14395
14396 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
14397
14398         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
14399         fixes are available from IBM.
14400
14401 2009-02-13  Jim Meyering  <meyering@redhat.com>
14402
14403         fts: arrange not to stat non-directories in more cases
14404         This makes GNU find (when it doesn't need to stat each file)
14405         *much* more efficient at traversing reiserfs file systems.
14406         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
14407         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
14408         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
14409         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
14410         (leaf_optimization_applies): New function.
14411         (LCO_hash, LCO_compare): New helper functions.
14412         (link_count_optimize_ok): New function.
14413         (fts_stat): Initialize new member (if dir).
14414         (fts_read): Decrement parent's fts_n_dirs_remaining count if
14415         we've just stat'ed a directory.  Skip the stat call when possible.
14416         ---
14417         Note this AFS-related exchange:
14418         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
14419         and note find's pioctl call in find/fstype.c.
14420         But that is necessary only if you want to enable the
14421         optimization for AFS, and for now, I don't.
14422
14423         fts: move a function definition "up" (no semantic change)
14424         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
14425         "up" to precede upcoming use of a related function.
14426
14427 2009-02-11  Jim Meyering  <meyering@redhat.com>
14428
14429         fts: correct internal computation of nlinks (optimization-related)
14430         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
14431         whether the current entry is a directory, so don't test it.
14432
14433 2009-02-10  Bruno Haible  <bruno@clisp.org>
14434
14435         Tests for module 'uniwbrk/ulc-wordbreaks'.
14436         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
14437         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
14438         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
14439
14440         Tests for module 'uniwbrk/u32-wordbreaks'.
14441         * modules/uniwbrk/u32-wordbreaks-tests: New file.
14442         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
14443
14444         Tests for module 'uniwbrk/u16-wordbreaks'.
14445         * modules/uniwbrk/u16-wordbreaks-tests: New file.
14446         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
14447
14448         Tests for module 'uniwbrk/u8-wordbreaks'.
14449         * modules/uniwbrk/u8-wordbreaks-tests: New file.
14450         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
14451
14452 2009-02-10  Bruno Haible  <bruno@clisp.org>
14453
14454         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
14455         property.
14456         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
14457         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
14458         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
14459
14460 2009-02-10  Simon Josefsson  <simon@josefsson.org>
14461
14462         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
14463         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
14464
14465 2009-02-10  Bruno Haible  <bruno@clisp.org>
14466
14467         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
14468         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
14469         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
14470         * lib/unilbrk/u8-possible-linebreaks.c: Update.
14471         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
14472         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
14473
14474 2009-02-09  Simon Josefsson  <simon@josefsson.org>
14475
14476         * lib/sockets.h (gl_fd_to_handle): New function.
14477
14478         * tests/test-sockets.c: Call gl_fd_to_handle.
14479
14480 2009-02-09  Bruno Haible  <bruno@clisp.org>
14481
14482         * doc/havelib.texi: Document the conventions on bi-arch systems.
14483
14484 2009-02-08  Bruno Haible  <bruno@clisp.org>
14485
14486         Document the AC_LIB_LINKFLAGS macro.
14487         * doc/havelib.texi: New file, mostly written on 2005-05-24.
14488         * doc/gnulib.texi: Include it.
14489
14490 2009-02-08  Bruno Haible  <bruno@clisp.org>
14491
14492         Fix wrong order of sections, compared to TOC.
14493         * doc/gnulib.texi: Include relocatable-maint.texi after the
14494         "Regular expressions" node, not before.
14495
14496 2009-02-08  Bruno Haible  <bruno@clisp.org>
14497
14498         Tests for module 'unicase/totitle'.
14499         * modules/unicase/totitle-tests: New file.
14500
14501         Tests for module 'unicase/tolower'.
14502         * modules/unicase/tolower-tests: New file.
14503
14504         Tests for module 'unicase/toupper'.
14505         * modules/unicase/toupper-tests: New file.
14506         * tests/unicase/test-mapping-part1.h: New file.
14507         * tests/unicase/test-mapping-part2.h: New file.
14508
14509         New module 'unicase/totitle'.
14510         * modules/unicase/totitle: New file.
14511         * lib/unicase/totitle.c: New file.
14512
14513         New module 'unicase/tolower'.
14514         * modules/unicase/tolower: New file.
14515         * lib/unicase/tolower.c: New file.
14516
14517         New module 'unicase/toupper'.
14518         * modules/unicase/toupper: New file.
14519         * lib/unicase/toupper.c: New file.
14520         * lib/unicase/simple-mapping.h: New file.
14521
14522         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
14523         (mapping_table): New structure.
14524         (output_simple_mapping): New function.
14525         (main): Invoke output_simple_mapping_test and output_simple_mapping.
14526         * modules/gen-uni-tables (Description): Update.
14527         * lib/unicase/toupper.h: New file, automatically generated by
14528         gen-uni-tables.
14529         * lib/unicase/tolower.h: New file, automatically generated by
14530         gen-uni-tables.
14531         * lib/unicase/totitle.h: New file, automatically generated by
14532         gen-uni-tables.
14533         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
14534         gen-uni-tables.
14535         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
14536         gen-uni-tables.
14537         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
14538         gen-uni-tables.
14539
14540         New module 'unicase/base'.
14541         * modules/unicase/base: New file.
14542         * lib/unicase.h: New file.
14543
14544 2009-02-08  Bruno Haible  <bruno@clisp.org>
14545
14546         New module 'uniwbrk/ulc-wordbreaks'.
14547         * modules/uniwbrk/ulc-wordbreaks: New file.
14548         * lib/uniwbrk/ulc-wordbreaks.c: New file.
14549
14550         New module 'uniwbrk/u32-wordbreaks'.
14551         * modules/uniwbrk/u32-wordbreaks: New file.
14552         * lib/uniwbrk/u32-wordbreaks.c: New file.
14553
14554         New module 'uniwbrk/u16-wordbreaks'.
14555         * modules/uniwbrk/u16-wordbreaks: New file.
14556         * lib/uniwbrk/u16-wordbreaks.c: New file.
14557
14558         New module 'uniwbrk/u8-wordbreaks'.
14559         * modules/uniwbrk/u8-wordbreaks: New file.
14560         * lib/uniwbrk/u8-wordbreaks.c: New file.
14561         * lib/uniwbrk/u-wordbreaks.h: New file.
14562
14563         New module 'uniwbrk/table'.
14564         * modules/uniwbrk/table: New file.
14565         * lib/uniwbrk/wbrktable.h: New file.
14566         * lib/uniwbrk/wbrktable.c: New file.
14567
14568         New module 'uniwbrk/wordbreak-property'.
14569         * modules/uniwbrk/wordbreak-property: New file.
14570         * lib/uniwbrk/wordbreak-property.c: New file.
14571
14572         * lib/gen-uni-tables.c (WBP_*): New enum items.
14573         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
14574         (unicode_org_wbp): New variable.
14575         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
14576         New functions.
14577         (wbp_table): New structure.
14578         (output_wbp, output_wbrk_tables): New functions.
14579         (main): Accept additional argument. Invoke fill_org_wbp,
14580         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
14581         output_wbrk_tables.
14582         * modules/gen-uni-tables (Description): Update.
14583         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
14584         gen-uni-tables.
14585
14586         New module 'uniwbrk/base'.
14587         * modules/uniwbrk/base: New file.
14588         * lib/uniwbrk.h: New file.
14589
14590 2009-02-08  Bruno Haible  <bruno@clisp.org>
14591
14592         Update to Unicode 5.1.0.
14593         * lib/gen-uni-tables.c (is_property_alphabetic): Include
14594         U+2185..U+2188.
14595         (is_property_default_ignorable_code_point): Don't include characters
14596         of category Cc or Cs and not-a-characters.
14597         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
14598         U+0D79, U+109E, U+109F, U+A60C.
14599         * lib/unictype/bidi_of.h: Regenerated.
14600         * lib/unictype/blocks.h: Regenerated.
14601         * lib/unictype/categ_C.h: Regenerated.
14602         * lib/unictype/categ_Cf.h: Regenerated.
14603         * lib/unictype/categ_Cn.h: Regenerated.
14604         * lib/unictype/categ_L.h: Regenerated.
14605         * lib/unictype/categ_Ll.h: Regenerated.
14606         * lib/unictype/categ_Lm.h: Regenerated.
14607         * lib/unictype/categ_Lo.h: Regenerated.
14608         * lib/unictype/categ_Lu.h: Regenerated.
14609         * lib/unictype/categ_M.h: Regenerated.
14610         * lib/unictype/categ_Mc.h: Regenerated.
14611         * lib/unictype/categ_Me.h: Regenerated.
14612         * lib/unictype/categ_Mn.h: Regenerated.
14613         * lib/unictype/categ_N.h: Regenerated.
14614         * lib/unictype/categ_Nd.h: Regenerated.
14615         * lib/unictype/categ_Nl.h: Regenerated.
14616         * lib/unictype/categ_No.h: Regenerated.
14617         * lib/unictype/categ_P.h: Regenerated.
14618         * lib/unictype/categ_Pd.h: Regenerated.
14619         * lib/unictype/categ_Pe.h: Regenerated.
14620         * lib/unictype/categ_Pf.h: Regenerated.
14621         * lib/unictype/categ_Pi.h: Regenerated.
14622         * lib/unictype/categ_Po.h: Regenerated.
14623         * lib/unictype/categ_Ps.h: Regenerated.
14624         * lib/unictype/categ_S.h: Regenerated.
14625         * lib/unictype/categ_Sk.h: Regenerated.
14626         * lib/unictype/categ_Sm.h: Regenerated.
14627         * lib/unictype/categ_So.h: Regenerated.
14628         * lib/unictype/categ_of.h: Regenerated.
14629         * lib/unictype/combining.h: Regenerated.
14630         * lib/unictype/ctype_alnum.h: Regenerated.
14631         * lib/unictype/ctype_alpha.h: Regenerated.
14632         * lib/unictype/ctype_graph.h: Regenerated.
14633         * lib/unictype/ctype_lower.h: Regenerated.
14634         * lib/unictype/ctype_print.h: Regenerated.
14635         * lib/unictype/ctype_punct.h: Regenerated.
14636         * lib/unictype/ctype_upper.h: Regenerated.
14637         * lib/unictype/decdigit.h: Regenerated.
14638         * lib/unictype/digit.h: Regenerated.
14639         * lib/unictype/mirror.h: Regenerated.
14640         * lib/unictype/numeric.h: Regenerated.
14641         * lib/unictype/pr_alphabetic.h: Regenerated.
14642         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
14643         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
14644         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
14645         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
14646         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
14647         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
14648         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
14649         * lib/unictype/pr_combining.h: Regenerated.
14650         * lib/unictype/pr_dash.h: Regenerated.
14651         * lib/unictype/pr_decimal_digit.h: Regenerated.
14652         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
14653         * lib/unictype/pr_deprecated.h: Regenerated.
14654         * lib/unictype/pr_diacritic.h: Regenerated.
14655         * lib/unictype/pr_extender.h: Regenerated.
14656         * lib/unictype/pr_format_control.h: Regenerated.
14657         * lib/unictype/pr_grapheme_base.h: Regenerated.
14658         * lib/unictype/pr_grapheme_extend.h: Regenerated.
14659         * lib/unictype/pr_grapheme_link.h: Regenerated.
14660         * lib/unictype/pr_id_continue.h: Regenerated.
14661         * lib/unictype/pr_id_start.h: Regenerated.
14662         * lib/unictype/pr_ideographic.h: Regenerated.
14663         * lib/unictype/pr_ignorable_control.h: Regenerated.
14664         * lib/unictype/pr_lowercase.h: Regenerated.
14665         * lib/unictype/pr_math.h: Regenerated.
14666         * lib/unictype/pr_numeric.h: Regenerated.
14667         * lib/unictype/pr_other_alphabetic.h: Regenerated.
14668         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
14669         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
14670         * lib/unictype/pr_other_id_continue.h: Regenerated.
14671         * lib/unictype/pr_other_lowercase.h: Regenerated.
14672         * lib/unictype/pr_other_math.h: Regenerated.
14673         * lib/unictype/pr_punctuation.h: Regenerated.
14674         * lib/unictype/pr_sentence_terminal.h: Regenerated.
14675         * lib/unictype/pr_soft_dotted.h: Regenerated.
14676         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
14677         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
14678         * lib/unictype/pr_unified_ideograph.h: Regenerated.
14679         * lib/unictype/pr_uppercase.h: Regenerated.
14680         * lib/unictype/pr_xid_continue.h: Regenerated.
14681         * lib/unictype/pr_xid_start.h: Regenerated.
14682         * lib/unictype/pr_zero_width.h: Regenerated.
14683         * lib/unictype/scripts.h: Regenerated.
14684         * lib/unictype/scripts_byname.gperf: Regenerated.
14685         * lib/unictype/sy_java_ident.h: Regenerated.
14686         * lib/unilbrk/lbrkprop1.h: Regenerated.
14687         * lib/unilbrk/lbrkprop2.h: Regenerated.
14688         * tests/unictype/test-categ_C.c: Regenerated.
14689         * tests/unictype/test-categ_Cf.c: Regenerated.
14690         * tests/unictype/test-categ_Cn.c: Regenerated.
14691         * tests/unictype/test-categ_L.c: Regenerated.
14692         * tests/unictype/test-categ_Ll.c: Regenerated.
14693         * tests/unictype/test-categ_Lm.c: Regenerated.
14694         * tests/unictype/test-categ_Lo.c: Regenerated.
14695         * tests/unictype/test-categ_Lu.c: Regenerated.
14696         * tests/unictype/test-categ_M.c: Regenerated.
14697         * tests/unictype/test-categ_Mc.c: Regenerated.
14698         * tests/unictype/test-categ_Me.c: Regenerated.
14699         * tests/unictype/test-categ_Mn.c: Regenerated.
14700         * tests/unictype/test-categ_N.c: Regenerated.
14701         * tests/unictype/test-categ_Nd.c: Regenerated.
14702         * tests/unictype/test-categ_Nl.c: Regenerated.
14703         * tests/unictype/test-categ_No.c: Regenerated.
14704         * tests/unictype/test-categ_P.c: Regenerated.
14705         * tests/unictype/test-categ_Pd.c: Regenerated.
14706         * tests/unictype/test-categ_Pe.c: Regenerated.
14707         * tests/unictype/test-categ_Pf.c: Regenerated.
14708         * tests/unictype/test-categ_Pi.c: Regenerated.
14709         * tests/unictype/test-categ_Po.c: Regenerated.
14710         * tests/unictype/test-categ_Ps.c: Regenerated.
14711         * tests/unictype/test-categ_S.c: Regenerated.
14712         * tests/unictype/test-categ_Sk.c: Regenerated.
14713         * tests/unictype/test-categ_Sm.c: Regenerated.
14714         * tests/unictype/test-categ_So.c: Regenerated.
14715         * tests/unictype/test-ctype_alnum.c: Regenerated.
14716         * tests/unictype/test-ctype_alpha.c: Regenerated.
14717         * tests/unictype/test-ctype_graph.c: Regenerated.
14718         * tests/unictype/test-ctype_lower.c: Regenerated.
14719         * tests/unictype/test-ctype_print.c: Regenerated.
14720         * tests/unictype/test-ctype_punct.c: Regenerated.
14721         * tests/unictype/test-ctype_upper.c: Regenerated.
14722         * tests/unictype/test-decdigit.h: Regenerated.
14723         * tests/unictype/test-digit.h: Regenerated.
14724         * tests/unictype/test-numeric.h: Regenerated.
14725         * tests/unictype/test-pr_alphabetic.c: Regenerated.
14726         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
14727         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
14728         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
14729         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
14730         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
14731         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
14732         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
14733         * tests/unictype/test-pr_combining.c: Regenerated.
14734         * tests/unictype/test-pr_dash.c: Regenerated.
14735         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
14736         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
14737         * tests/unictype/test-pr_deprecated.c: Regenerated.
14738         * tests/unictype/test-pr_diacritic.c: Regenerated.
14739         * tests/unictype/test-pr_extender.c: Regenerated.
14740         * tests/unictype/test-pr_format_control.c: Regenerated.
14741         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
14742         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
14743         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
14744         * tests/unictype/test-pr_id_continue.c: Regenerated.
14745         * tests/unictype/test-pr_id_start.c: Regenerated.
14746         * tests/unictype/test-pr_ideographic.c: Regenerated.
14747         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
14748         * tests/unictype/test-pr_lowercase.c: Regenerated.
14749         * tests/unictype/test-pr_math.c: Regenerated.
14750         * tests/unictype/test-pr_numeric.c: Regenerated.
14751         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
14752         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
14753         Regenerated.
14754         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
14755         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
14756         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
14757         * tests/unictype/test-pr_other_math.c: Regenerated.
14758         * tests/unictype/test-pr_punctuation.c: Regenerated.
14759         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
14760         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
14761         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
14762         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
14763         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
14764         * tests/unictype/test-pr_uppercase.c: Regenerated.
14765         * tests/unictype/test-pr_xid_continue.c: Regenerated.
14766         * tests/unictype/test-pr_xid_start.c: Regenerated.
14767         * tests/unictype/test-pr_zero_width.c: Regenerated.
14768
14769         Update to Unicode 5.1.0.
14770         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
14771         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
14772         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
14773         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
14774         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
14775         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
14776         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
14777         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
14778         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
14779         (nonspacing_table_ind): Update.
14780         * tests/uniwidth/test-uc_width2.sh: Update expected result.
14781
14782         Update to Unicode 5.1.0.
14783         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
14784         code transform.
14785         * lib/uniname/uniname.c (unicode_character_name,
14786         unicode_name_character): Add the range 0x1Fxxx to the code transform.
14787         * lib/uniname/uninames.h: Regenerated.
14788         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
14789
14790 2009-02-07  Bruno Haible  <bruno@clisp.org>
14791
14792         Merge gen-ctype and gen-lbrk into a single program.
14793         * lib/gen-uni-tables.c: New file, incorporating
14794         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
14795         Add directory prefixes to the names of the generated files.
14796         * lib/unictype/gen-ctype.c: Remove file.
14797         * lib/unilbrk/gen-lbrk.c: Remove file.
14798         * modules/gen-uni-tables: New file.
14799         * modules/unictype/gen-ctype: Remove file.
14800         * modules/unilbrk/gen-lbrk: Remove file.
14801
14802 2009-02-07  Bruno Haible  <bruno@clisp.org>
14803
14804         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
14805
14806         New module 'unistr/u32-strcoll'.
14807         * modules/unistr/u32-strcoll: New file.
14808         * lib/unistr/u32-strcoll.c: New file.
14809
14810         New module 'unistr/u16-strcoll'.
14811         * modules/unistr/u16-strcoll: New file.
14812         * lib/unistr/u16-strcoll.c: New file.
14813
14814         New module 'unistr/u8-strcoll'.
14815         * modules/unistr/u8-strcoll: New file.
14816         * lib/unistr/u8-strcoll.c: New file.
14817         * lib/unistr/u-strcoll.h: New file.
14818
14819 2009-02-07  Bruno Haible  <bruno@clisp.org>
14820
14821         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
14822         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
14823         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
14824         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
14825         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
14826         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
14827
14828 2009-02-07  Bruno Haible  <bruno@clisp.org>
14829
14830         Make 64-bit clean.
14831         * lib/unictype/gen-ctype.c (output_predicate, output_category,
14832         output_combclass, output_bidi_category, output_decimal_digit,
14833         output_digit, output_numeric, output_mirror, output_scripts,
14834         output_ident_category): Use proper width specifier in format strings.
14835
14836 2009-02-07  Bruno Haible  <bruno@clisp.org>
14837
14838         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
14839         failure behaviour.
14840
14841 2009-02-07  Jim Meyering  <meyering@redhat.com>
14842
14843         regex: avoid compilation failure with upcoming gcc-4.4
14844         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
14845         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
14846         "... error: integer overflow in preprocessor expression".
14847
14848 2009-02-05  Ben Pfaff  <blp@gnu.org>
14849
14850         Fix link errors on Windows when close module is used.
14851         * modules/close: Add $(LIB_CLOSE) to Link section.
14852         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
14853         $(LIB_CLOSE) on Windows.
14854
14855 2009-02-05  Jim Meyering  <meyering@redhat.com>
14856
14857         still avoid unused-parameter warnings, but do it cleanly
14858         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
14859         (get_fs_usage): Cast to void instead.
14860         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
14861         (dev_from_mount_options, read_file_system_list): Cast to void.
14862         Prompted by Bruno Haible.
14863
14864 2009-02-04  Jim Meyering  <meyering@redhat.com>
14865
14866         fsusage.c: correct copyright year
14867         * lib/fsusage.c: Reflect year in which the change is pushed into
14868
14869         avoid misc. warnings
14870         * lib/fsusage.c (UNUSED_PARAM): Define.
14871         (get_fs_usage): Mark parameter "disk" as unused.
14872         * lib/getugroups.c (getgrent): Use "void" in prototype.
14873         * lib/mountlist.c: Mark unused parameters.
14874         (read_file_system_list): Declare a local with "const".
14875         * lib/nanosleep.c (getnow): Declare static.
14876         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
14877
14878         dirfd: set errno upon failure
14879         * lib/dirfd.c: Include <errno.h>.
14880         Set errno to ENOTSUP when returning -1.
14881         * modules/dirfd (Depends-on): Add errno.
14882         Suggested by John Kodis <kodis@comcast.net>.
14883
14884 2009-02-01  Bruno Haible  <bruno@clisp.org>
14885
14886         Don't assume sizeof (long) >= sizeof (void *).
14887         * lib/memcmp.c: Include stdint.h.
14888         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
14889         srcp2 to 'const byte *'.
14890         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
14891         types to uintptr_t.
14892         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
14893         * modules/memcmp (Depends-on): Add stdint.
14894         Reported by Ozkan Sezer <sezeroz@gmail.com>.
14895
14896 2009-01-30  Eric Blake  <ebb9@byu.net>
14897
14898         fix more require-before-expand issues
14899         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
14900         expand, AC_PROG_AWK.
14901         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
14902
14903 2009-01-28  Eric Blake  <ebb9@byu.net>
14904
14905         version-etc: use consistent URL formatting
14906         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
14907         Improve formatting.  Use fputs for string without %.
14908
14909 2009-01-28  Jim Meyering  <meyering@redhat.com>
14910
14911         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
14912         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
14913         "underquoted definition of NAME" from autoconf-2.59.
14914
14915 2009-01-28  Bruno Haible  <bruno@clisp.org>
14916
14917         * doc/gnulib.texi: Add "Obsolete modules" to index.
14918
14919 2009-01-28  Jim Meyering  <meyering@redhat.com>
14920
14921         useless-if-before-free: recognize more variants
14922         * build-aux/useless-if-before-free: Also recognize e.g.,
14923         if (NULL != p) free (p);
14924
14925 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
14926
14927         test-getaddrinfo: skip (don't fail) this test when there's no network
14928         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
14929         on the presumption that it means you lack network access.
14930
14931 2009-01-26  Jim Meyering  <meyering@redhat.com>
14932
14933         fflush: avoid warnings on modern systems
14934         * lib/fflush.c (rpl_fflush): Move declarations of locals,
14935         pos and result, into scopes where they're used.
14936
14937 2009-01-26  Eric Blake  <ebb9@byu.net>
14938
14939         Silence warning reintroduced by recent extensions patch.
14940         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
14941         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
14942         autoconf.
14943
14944         Backport improved autoconf semantics of AC_DEFUN_ONCE.
14945         * m4/00gnulib.m4: New file.
14946         * gnulib-tool (func_get_filelist): Always use it.
14947         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
14948         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
14949
14950 2009-01-25  Bruno Haible  <bruno@clisp.org>
14951
14952         Make test-quotearg work on MacOS X and AIX.
14953         * tests/test-quotearg.sh: New file.
14954         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
14955         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
14956         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
14957         include <libintl.h>.
14958         (fake_locale): Remove variable.
14959         (gettext, dgettext, dcgettext): Remove functions.
14960         (main): Instead of setting a fake locale, set a real locale. Call
14961         textdomain and bindtextdomain.
14962         * modules/quotearg-tests (Files): Add the new files.
14963         (Depends-on): Add gettext, setenv, unsetenv.
14964         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
14965         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
14966         Augment TESTS_ENVIRONMENT.
14967
14968 2009-01-25  Bruno Haible  <bruno@clisp.org>
14969
14970         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
14971         fr_FR.ISO8859-1 locale on MacOS X.
14972         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
14973         ja_JP.eucJP locale on MacOS X.
14974         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
14975         zh_CN.GB18030 locale on MacOS X.
14976
14977 2009-01-25  Bruno Haible  <bruno@clisp.org>
14978
14979         Avoid link errors on MacOS X 10.3.
14980         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
14981         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
14982
14983 2009-01-25  Bruno Haible  <bruno@clisp.org>
14984
14985         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
14986         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
14987         * modules/pipe (Files): Remove m4/posix_spawn.m4.
14988         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
14989         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
14990         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
14991         posix_spawnattr_init, posix_spawnattr_setsigmask,
14992         posix_spawnattr_setflags, posix_spawnattr_destroy.
14993
14994         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
14995         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
14996         * modules/execute (Files): Remove m4/posix_spawn.m4.
14997         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
14998         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
14999         posix_spawnattr_init, posix_spawnattr_setsigmask,
15000         posix_spawnattr_setflags, posix_spawnattr_destroy.
15001
15002 2009-01-25  Bruno Haible  <bruno@clisp.org>
15003
15004         * lib/glthread/threadlib.c: Include <stdlib.h>.
15005
15006 2009-01-25  Bruno Haible  <bruno@clisp.org>
15007
15008         * lib/glthread/threadlib.c (dummy): New declaration.
15009
15010 2009-01-25  Bruno Haible  <bruno@clisp.org>
15011
15012         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
15013         multibyte characters also for the GB18030 encoding. Don't crash when
15014         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
15015
15016 2009-01-25  Bruno Haible  <bruno@clisp.org>
15017
15018         Avoid redefining 'struct random_data' on OSF/1 5.1.
15019         * lib/stdlib.in.h: Include <random.h> if it exists.
15020         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
15021         HAVE_RANDOM_H. Include <random.h> when testing whether
15022         'struct random_data' exists.
15023         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
15024
15025 2009-01-25  Bruno Haible  <bruno@clisp.org>
15026
15027         Don't install charset.alias on MacOS X >= 10.3.
15028         * lib/localcharset.c (DARWIN7): New macro.
15029         (get_charset_aliases): Hardcode the result for Darwin7.
15030         * modules/localcharset (install-exec-local): Don't install
15031         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
15032
15033 2009-01-25  Bruno Haible  <bruno@clisp.org>
15034
15035         Don't install charset.alias on mingw and Cygwin.
15036         * modules/localcharset (install-exec-local): Don't install
15037         charset.alias on mingw and Cygwin, if the file does not yet exist.
15038         The result for these platforms is hardcoded in localcharset.c.
15039
15040 2009-01-25  Bruno Haible  <bruno@clisp.org>
15041
15042         Make it possible again to use AC_GNU_SOURCE together with gnulib.
15043         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
15044         before requiring AC_USE_SYSTEM_EXTENSIONS.
15045
15046 2009-01-25  Jim Meyering  <meyering@redhat.com>
15047
15048         c-strtod: avoid warnings
15049         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
15050         "assignment discards qualifiers from pointer target type" warnings.
15051
15052 2009-01-24  Bruno Haible  <bruno@clisp.org>
15053
15054         Add support for non-UTF-8 locales on MacOS X.
15055         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
15056         canonical encodings. For Darwin 7 and newer, don't map traditional
15057         encodings to UTF-8.
15058         Reported by Vincent Lefevre <vincent@vinc17.org>
15059         at <http://savannah.gnu.org/bugs/?25235>.
15060
15061 2009-01-24  Bruno Haible  <bruno@clisp.org>
15062
15063         * doc/gnulib.texi (Obsolete modules): New section.
15064         Reported by Mike Frysinger <vapier@gentoo.org>.
15065
15066 2009-01-24  Bruno Haible  <bruno@clisp.org>
15067
15068         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
15069         (%.dvi): New rule.
15070
15071 2009-01-24  Bruno Haible  <bruno@clisp.org>
15072
15073         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
15074         Reported by Eric Blake.
15075
15076 2009-01-24  Bruno Haible  <bruno@clisp.org>
15077
15078         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
15079         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
15080         Reported by Gary V. Vaughan <gary@gnu.org>.
15081
15082 2009-01-24  Bruno Haible  <bruno@clisp.org>
15083
15084         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
15085
15086 2009-01-23  Bruno Haible  <bruno@clisp.org>
15087
15088         Make c-strtod, c-strtold usable in libraries.
15089         * lib/c-strtod.c: Include string.h instead of xalloc.h.
15090         (C_STRTOD): Call strdup instead of xstrdup.
15091         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
15092         * modules/c-strtold (Depends-on): Likewise.
15093         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
15094         * NEWS: Mention the change.
15095         Reported by Michael Gold <mgold@ncf.ca>.
15096
15097 2009-01-23  Jim Meyering  <meyering@redhat.com>
15098
15099         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
15100         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
15101         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
15102
15103 2009-01-23  Simon Josefsson  <simon@josefsson.org>
15104
15105         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
15106         GNU CoreUtils.
15107         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
15108         * modules/version-etc (Description): Update.
15109
15110 2009-01-22  Bruno Haible  <bruno@clisp.org>
15111
15112         Cache the C locale object.
15113         * lib/c-strtod.c (c_locale_cache): New variable.
15114         (c_locale): New function.
15115         (C_STRTOD): Use it, and don't call freelocale.
15116         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
15117         Suggested by Paolo Bonzini.
15118
15119 2009-01-21  Bruno Haible  <bruno@clisp.org>
15120
15121         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
15122         conditions other than overflow.
15123
15124 2009-01-21  Bruno Haible  <bruno@clisp.org>
15125
15126         * lib/c-strtod.c: Include errno.h.
15127         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
15128         value from STRTOD_L and STRTOD.
15129
15130 2009-01-21  Bruno Haible  <bruno@clisp.org>
15131         and Jim Meyering  <meyering@redhat.com>
15132
15133         nanosleep: skip configure test (fail it) for apple universal builds
15134         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
15135         universal builds, assume that nanosleep does not work.
15136         * modules/nanosleep (Depends-on): Add multiarch.
15137
15138         mktime: skip configure test (fail it) for apple universal builds
15139         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
15140         universal builds, assume that mktime does not work.
15141         * modules/mktime (Depends-on): Add multiarch.
15142
15143 2009-01-21  Eric Blake  <ebb9@byu.net>
15144
15145         multiarch: avoid expand-before-require warning
15146         * modules/multiarch (configure.ac): Require, rather than expand,
15147         gl_MULTIARCH.
15148         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
15149         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
15150         enforce that all clients require it.  Partial reversion of
15151         2008-12-29 patch.
15152
15153         error: avoid expand-before-require warning
15154         * modules/errno (configure.ac): Require, rather than expand,
15155         gl_HEADER_ERRNO_H.
15156         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
15157         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
15158         enforce that all clients require it.
15159
15160         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
15161         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
15162         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
15163         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
15164
15165 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
15166
15167         Revert:
15168         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
15169
15170         regex: do not depend on obsolete modules.
15171         * modules/regex: Remove memcmp and memmove.
15172
15173 2009-01-20  Bruno Haible  <bruno@clisp.org>
15174
15175         Make the 'link' module link on Windows NT 4.
15176         * lib/link.c (_WIN32_WINNT): Don't define.
15177         (CreateHardLinkFuncType): New type.
15178         (CreateHardLinkFunc, initialized): New variables.
15179         (initialize): New function.
15180         (link): Invoke CreateHardLink indirectly through the function pointer.
15181
15182 2009-01-20  Bruno Haible  <bruno@clisp.org>
15183
15184         Fix compilation failure on mingw.
15185         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
15186
15187 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
15188
15189         * doc/c-strtod.texi: Mention a couple of restrictions.
15190
15191 2009-01-20  Jim Meyering  <meyering@redhat.com>
15192
15193         gettimeofday: move more declarations out of functions
15194         * lib/gettimeofday.c: Move extern declarations of tzset and
15195         gmtime out of containing functions.  Prompted by Bruno Haible.
15196
15197 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
15198
15199         regex: do not depend on obsolete modules.
15200         * modules/regex: Remove memcmp and memmove.
15201
15202 2009-01-19  Bruno Haible  <bruno@clisp.org>
15203
15204         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15205         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
15206         gl_BIGENDIAN, not AC_C_BIGENDIAN.
15207         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
15208         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
15209
15210 2009-01-19  Bruno Haible  <bruno@clisp.org>
15211
15212         * tests/test-link.c: Include <errno.h>.
15213         (main): Exit with code 77 when a hard link cannot be created due to
15214         the file system.
15215         * tests/test-link.sh: Skip test when a hard link cannot be created due
15216         to the file system.
15217         Suggested by Eric Blake.
15218
15219 2009-01-19  Martin Lambers  <marlam@marlam.de>
15220
15221         * modules/link-tests: New file.
15222         * tests/test-link.sh: New file.
15223         * tests/test-link.c: New file.
15224
15225 2009-01-19  Eric Blake  <ebb9@byu.net>
15226
15227         doc: mention another function added in cygwin 1.7.0
15228         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
15229         Another new function in cygwin 1.7.
15230
15231 2009-01-19  Bruno Haible  <bruno@clisp.org>
15232
15233         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15234         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
15235         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
15236         gl_BIGENDIAN, not AC_C_BIGENDIAN.
15237         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15238         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
15239         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15240         * m4/md4.m4 (gl_MD4): Likewise.
15241         * m4/md5.m4 (gl_MD5): Likewise.
15242         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
15243         * m4/sha1.m4 (gl_SHA1): Likewise.
15244         * m4/sha256.m4 (gl_SHA256): Likewise.
15245         * m4/sha512.m4 (gl_SHA512): Likewise.
15246
15247 2009-01-19  Bruno Haible  <bruno@clisp.org>
15248
15249         * modules/uniname/uniname-tests (Depends-on): Add progname.
15250         * tests/uniname/test-uninames.c: Include progname.h.
15251         (main): Call set_program_name.
15252
15253         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
15254         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
15255         (main): Call set_program_name.
15256
15257         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
15258         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
15259         (main): Call set_program_name.
15260
15261         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
15262         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
15263         (main): Call set_program_name.
15264
15265         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
15266         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
15267         (main): Call set_program_name.
15268
15269         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
15270         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
15271         (main): Call set_program_name.
15272
15273         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
15274         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
15275         (main): Call set_program_name.
15276
15277         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
15278         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
15279         (main): Call set_program_name.
15280
15281         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
15282         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
15283         (main): Call set_program_name.
15284
15285 2009-01-19  Eric Blake  <ebb9@byu.net>
15286
15287         test-unistd: test previous patch
15288         * tests/test-unistd.c: Test *_FILENO macros.
15289
15290         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
15291         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15292         Guarantee a definition.
15293         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
15294         * modules/unistd-safer (Depends-on): Add dependency on unistd.
15295         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
15296         * lib/dup-safer.c (STDERR_FILENO): Likewise.
15297         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15298         Likewise.
15299         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
15300         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
15301         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15302         Likewise.
15303         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
15304         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
15305         (STDERR_FILENO): Likewise.
15306         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
15307         (STDERR_FILENO): Likewise.
15308         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
15309         (STDERR_FILENO): Likewise.
15310         Reported by Elbert Pol.
15311
15312 2009-01-19  Eric Blake  <ebb9@byu.net>
15313
15314         doc: mention more functions added in cygwin 1.7.0
15315         * doc/posix-functions/abort.texi (abort): Update wording related
15316         to cygwin.
15317         * doc/posix-functions/daylight.texi (daylight): Likewise.
15318         * doc/posix-functions/optarg.texi (optarg): Likewise.
15319         * doc/posix-functions/optarg.texi (opterr): Likewise.
15320         * doc/posix-functions/optarg.texi (optind): Likewise.
15321         * doc/posix-functions/optarg.texi (optopt): Likewise.
15322         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
15323         worked in 1.5.x, and was withdrawn in 1.7.
15324         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15325         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
15326         cygwin versions.
15327         * doc/posix-functions/perror.texi (perror): Likewise.
15328         * doc/posix-functions/printf.texi (printf): Likewise.
15329         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
15330         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
15331         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15332         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15333         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15334         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
15335         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
15336         Likewise.
15337         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
15338         Likewise.
15339         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
15340         this function.
15341         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
15342         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
15343         Likewise.
15344         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
15345         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
15346         * doc/posix-functions/confstr.texi (confstr): Likewise.
15347         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
15348         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
15349         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
15350         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
15351         * doc/posix-functions/fputws.texi (fputws): Likewise.
15352         * doc/posix-functions/fwide.texi (fwide): Likewise.
15353         * doc/posix-functions/getwc.texi (getwc): Likewise.
15354         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
15355         * doc/posix-functions/putwc.texi (putwc): Likewise.
15356         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15357         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
15358         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
15359         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15360         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
15361         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
15362         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
15363         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
15364         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
15365         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
15366         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
15367
15368 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
15369
15370         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
15371         * lib/ioctl.c: Include <sys/ioctl.h>.
15372
15373 2009-01-19  Simon Josefsson  <simon@josefsson.org>
15374
15375         * modules/getdate-tests (Depends-on): Add progname.
15376         * tests/test-getdate.c: Use progname module, to avoid link errors
15377         on non-glibc systems.
15378
15379 2009-01-18  Simon Josefsson  <simon@josefsson.org>
15380
15381         * modules/filenamecat-tests (Depends-on): Add progname.
15382         * modules/fstrcmp-tests (Depends-on): Likewise.
15383
15384         * tests/test-filenamecat.c: Use progname module, to avoid link
15385         errors on non-glibc systems.
15386         * tests/test-fstrcmp.c: Likewise.
15387
15388 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
15389
15390         gettimeofday: avoid warning: nested extern declaration of 'localtime'
15391         * lib/gettimeofday.c: Move extern declaration out of function.
15392
15393 2009-01-18  Bruno Haible  <bruno@clisp.org>
15394
15395         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
15396         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
15397         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
15398
15399 2009-01-18  Bruno Haible  <bruno@clisp.org>
15400
15401         * lib/strftime.c (MEMPCPY): Remove unused macro.
15402         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
15403
15404 2009-01-18  Martin Lambers  <marlam@marlam.de>
15405
15406         New module 'link'.
15407         * lib/unistd.in.h (link): New declaration.
15408         * lib/link.c: New file.
15409         * m4/link.m4: New file.
15410         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
15411         HAVE_LINK.
15412         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
15413         * modules/link: New file.
15414         * doc/posix-functions/link.texi: Mention the new module.
15415
15416 2009-01-18  Bruno Haible  <bruno@clisp.org>
15417
15418         * tests/test-avltree_list.c (main): Call set_program_name.
15419         * tests/test-avltree_oset.c (main): Likewise.
15420         * tests/test-obstack-printf.c: Include progname.h.
15421         (main): Call set_program_name.
15422         * tests/test-quotearg.c: Include progname.h.
15423         (main): Call set_program_name.
15424         * tests/test-xmemdup0.c: Include progname.h.
15425         (main): Call set_program_name.
15426
15427 2009-01-18  Bruno Haible  <bruno@clisp.org>
15428
15429         New module 'alphasort'.
15430         * lib/dirent.in.h (alphasort): New declaration.
15431         * lib/alphasort.c: New file, from glibc with modifications.
15432         * m4/alphasort.m4: New file.
15433         * modules/alphasort: New file.
15434         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
15435         HAVE_ALPHASORT.
15436         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
15437         HAVE_ALPHASORT.
15438         * doc/posix-functions/alphasort.texi: Mention the new module and the
15439         portability problems.
15440
15441 2009-01-18  Bruno Haible  <bruno@clisp.org>
15442
15443         New module 'scandir'.
15444         * lib/dirent.in.h (scandir): New declaration.
15445         * lib/scandir.c: New file, from glibc with modifications.
15446         * m4/scandir.m4: New file.
15447         * modules/scandir: New file.
15448         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
15449         HAVE_SCANDIR.
15450         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
15451         HAVE_SCANDIR.
15452         * doc/posix-functions/scandir.texi: Mention the new module and the
15453         portability problems.
15454
15455 2009-01-17  Bruno Haible  <bruno@clisp.org>
15456
15457         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
15458         Update documentation.
15459         (func_remove_suffix): Escape all dots in the suffix. Update
15460         documentation.
15461         (func_filter_filelist): Update documentation.
15462         Reported by Ralf Wildenhues.
15463
15464 2009-01-17  Bruno Haible  <bruno@clisp.org>
15465
15466         * modules/dprintf-posix-tests: New file.
15467         * tests/test-dprintf-posix.sh: New file.
15468         * tests/test-dprintf-posix.c: New file.
15469
15470         New modules 'dprintf', 'dprintf-posix'.
15471         * lib/stdio.in.h (dprintf): New declaration.
15472         * lib/dprintf.c: New file.
15473         * m4/dprintf.m4: New file.
15474         * m4/dprintf-posix.m4: New file.
15475         * modules/dprintf: New file.
15476         * modules/dprintf-posix: New file.
15477         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
15478         HAVE_DPRINTF, REPLACE_DPRINTF.
15479         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
15480         HAVE_DPRINTF, REPLACE_DPRINTF.
15481         * doc/posix-functions/dprintf.texi: Mention the new modules.
15482
15483 2009-01-17  Bruno Haible  <bruno@clisp.org>
15484
15485         * modules/vdprintf-posix-tests: New file.
15486         * tests/test-vdprintf-posix.sh: New file.
15487         * tests/test-vdprintf-posix.c: New file.
15488
15489         New modules 'vdprintf', 'vdprintf-posix'.
15490         * lib/stdio.in.h (vdprintf): New declaration.
15491         * lib/vdprintf.c: New file.
15492         * m4/vdprintf.m4: New file.
15493         * m4/vdprintf-posix.m4: New file.
15494         * modules/vdprintf: New file.
15495         * modules/vdprintf-posix: New file.
15496         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
15497         HAVE_VDPRINTF, REPLACE_VDPRINTF.
15498         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
15499         HAVE_VDPRINTF, REPLACE_VDPRINTF.
15500         * doc/posix-functions/vdprintf.texi: Mention the new modules.
15501
15502 2009-01-17  Bruno Haible  <bruno@clisp.org>
15503
15504         Fix replacement of fopen on mingw.
15505         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
15506         mingw.
15507
15508 2009-01-17  Bruno Haible  <bruno@clisp.org>
15509
15510         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
15511         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
15512
15513 2009-01-17  Bruno Haible  <bruno@clisp.org>
15514
15515         Avoid test-fflush2.sh failure on mingw.
15516         * tests/test-fflush2.c: Include binary-io.h.
15517         (main): Put standard input into binary mode.
15518         * modules/fflush-tests (Depends-on): Add binary-io.
15519
15520 2009-01-17  Bruno Haible  <bruno@clisp.org>
15521
15522         * lib/wchar.in.h: In another particular situation, include only the
15523         system's <wchar.h> file.
15524         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
15525         Reported by Albert Chin-A-Young <china@thewrittenword.com>
15526         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
15527
15528 2009-01-17  Bruno Haible  <bruno@clisp.org>
15529
15530         Support for stripping executables in --enable-relocatable.
15531         * build-aux/install-reloc: Expect one more argument, or an environment
15532         variable RELOC_STRIP_PROG. If set, strip the destination program and
15533         its wrapper.
15534         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
15535         RELOC_STRIP_PROG.
15536         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
15537         to set RELOCATABLE_STRIP.
15538         * NEWS: Mention the new Makefile requirement.
15539
15540 2009-01-17  Bruno Haible  <bruno@clisp.org>
15541
15542         * build-aux/install-reloc: Remove debugging information left over by
15543         C compiler on MacOS X.
15544
15545 2009-01-17  Bruno Haible  <bruno@clisp.org>
15546
15547         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
15548         * lib/progreloc.c (find_executable): Fix type of pointer passed to
15549         _NSGetExecutablePath.
15550
15551 2009-01-16  Jim Meyering  <meyering@redhat.com>
15552
15553         strerror: avoid warnings about discarding "const"
15554         * lib/strerror.c (rpl_strerror): Instead of returning a const
15555         string from each and every "case", use a variable, and add a single
15556         cast after the switch.
15557
15558 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
15559
15560         * lib/arpa_inet.in.h: Add extern "C" block for C++.
15561
15562 2009-01-16  Bruno Haible  <bruno@clisp.org>
15563
15564         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
15565         array initializer syntax that also works in C++ mode.
15566         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15567
15568 2009-01-16  Jim Meyering  <meyering@redhat.com>
15569
15570         poll: suppress a warning
15571         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
15572         to ignore "...unsigned expression < 0 is always false" warnings.
15573
15574 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
15575
15576         poll: remove declarations of unused variables
15577         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
15578         sockbuf and optlen.
15579
15580 2009-01-15  Bruno Haible  <bruno@clisp.org>
15581
15582         Make fflush-after-ungetc POSIX compliant on BSD systems.
15583         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
15584         (clear_ungetc_buffer): Implement also for other systems.
15585         (rpl_fflush): On glibc systems, invoke
15586         clear_ungetc_buffer_preserving_position. Otherwise, invoke
15587         clear_ungetc_buffer after fetching the stream's position, not before.
15588
15589 2009-01-15  Bruno Haible  <bruno@clisp.org>
15590
15591         Make fflush-after-ungetc POSIX compliant on glibc systems.
15592         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
15593         after ungetc.
15594         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
15595         (rpl_fflush): On glibc systems, simply call the system's fflush
15596         function after clearing the ungetc buffer.
15597         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
15598         Instead, lseek only to the end of file, then use the system's fseeko
15599         for the rest. On glibc systems, reset the EOF indicator bit.
15600
15601 2009-01-15  Jim Meyering  <meyering@redhat.com>
15602
15603         openmp.m4: revert quote-adding change, for portability to older autoconf
15604         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
15605         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
15606         Simon Josefsson noticed the problem when using autoconf-2.61.
15607
15608 2009-01-15  Bruno Haible  <bruno@clisp.org>
15609
15610         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
15611         * tests/test-fflush2.c (ASSERT): Always fail.
15612         (main): Add two tests for fflush() after ungetc(), taking into account
15613         the Austin Group's clarification.
15614         Suggested by Eric Blake.
15615
15616 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
15617
15618         mktime.m4: remove K&R-style function prototypes
15619         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
15620         for the Sun C++ compiler.
15621
15622 2009-01-14  Bruno Haible  <bruno@clisp.org>
15623
15624         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
15625         while including <wchar.h>.
15626         * lib/wchar.in.h: In two particular situations on HP-UX, include only
15627         the system's <wchar.h> file.
15628         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15629
15630 2009-01-14  Bruno Haible  <bruno@clisp.org>
15631
15632         * m4/csharp.m4: Don't mention gettext on the serial number line.
15633         * m4/csharpexec.m4: Likewise.
15634         * m4/eaccess.m4: Likewise.
15635         * m4/javaexec.m4: Likewise.
15636         * m4/sig_atomic_t.m4: Likewise.
15637         * m4/tmpdir.m4: Likewise.
15638         * m4/intldir.m4: Bump gettext version.
15639         * m4/lib-ld.m4: Likewise.
15640
15641 2009-01-14  Bruno Haible  <bruno@clisp.org>
15642
15643         * lib/progname.c (set_program_name): Add more comments.
15644         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
15645
15646 2009-01-14  Simon Josefsson  <simon@josefsson.org>
15647
15648         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
15649         were sys/stat.h does not define it.
15650
15651 2009-01-14  Jim Meyering  <meyering@redhat.com>
15652
15653         many *.m4 files: improve m4 quoting
15654         99% of this change was performed by running the following commands:
15655         git ls-files | grep '\.m4$' | xargs perl -pi \
15656           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
15657           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
15658           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
15659           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
15660         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
15661         The remainder were to add Copyright dates, increment serial numbers,
15662         undo some changes in comments, exclude m4/intl.m4, and add quotes
15663         around the "1" in ",1" where the unusual spacing prohibited the
15664         above regexps from doing the job.  For more details, see
15665         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
15666         * m4/acl.m4: Modified.
15667         * m4/afs.m4: Likewise.
15668         * m4/alloca.m4: Likewise.
15669         * m4/argp.m4: Likewise.
15670         * m4/argz.m4: Likewise.
15671         * m4/atexit.m4: Likewise.
15672         * m4/bison-i18n.m4: Likewise.
15673         * m4/bison.m4: Likewise.
15674         * m4/byteswap.m4: Likewise.
15675         * m4/c-stack.m4: Likewise.
15676         * m4/c-strtod.m4: Likewise.
15677         * m4/calloc.m4: Likewise.
15678         * m4/canonicalize-lgpl.m4: Likewise.
15679         * m4/chown.m4: Likewise.
15680         * m4/clock_time.m4: Likewise.
15681         * m4/codeset.m4: Likewise.
15682         * m4/copy-file.m4: Likewise.
15683         * m4/csharp.m4: Likewise.
15684         * m4/csharpcomp.m4: Likewise.
15685         * m4/csharpexec.m4: Likewise.
15686         * m4/d-ino.m4: Likewise.
15687         * m4/d-type.m4: Likewise.
15688         * m4/dirfd.m4: Likewise.
15689         * m4/double-slash-root.m4: Likewise.
15690         * m4/eaccess.m4: Likewise.
15691         * m4/eealloc.m4: Likewise.
15692         * m4/environ.m4: Likewise.
15693         * m4/errno_h.m4: Likewise.
15694         * m4/euidaccess.m4: Likewise.
15695         * m4/execute.m4: Likewise.
15696         * m4/fatal-signal.m4: Likewise.
15697         * m4/fchdir.m4: Likewise.
15698         * m4/fcntl_h.m4: Likewise.
15699         * m4/fileblocks.m4: Likewise.
15700         * m4/filenamecat.m4: Likewise.
15701         * m4/findprog.m4: Likewise.
15702         * m4/flexmember.m4: Likewise.
15703         * m4/fnmatch.m4: Likewise.
15704         * m4/fopen.m4: Likewise.
15705         * m4/fpending.m4: Likewise.
15706         * m4/fprintf-posix.m4: Likewise.
15707         * m4/free.m4: Likewise.
15708         * m4/frexp.m4: Likewise.
15709         * m4/frexpl.m4: Likewise.
15710         * m4/fsusage.m4: Likewise.
15711         * m4/ftruncate.m4: Likewise.
15712         * m4/gc-camellia.m4: Likewise.
15713         * m4/gc-random.m4: Likewise.
15714         * m4/gc.m4: Likewise.
15715         * m4/getaddrinfo.m4: Likewise.
15716         * m4/getcwd-abort-bug.m4: Likewise.
15717         * m4/getcwd-path-max.m4: Likewise.
15718         * m4/getdate.m4: Likewise.
15719         * m4/getdomainname.m4: Likewise.
15720         * m4/getgroups.m4: Likewise.
15721         * m4/gethostname.m4: Likewise.
15722         * m4/gethrxtime.m4: Likewise.
15723         * m4/getline.m4: Likewise.
15724         * m4/getloadavg.m4: Likewise.
15725         * m4/getndelim2.m4: Likewise.
15726         * m4/getpass.m4: Likewise.
15727         * m4/gettext.m4: Likewise.
15728         * m4/gettime.m4: Likewise.
15729         * m4/gettimeofday.m4: Likewise.
15730         * m4/gnulib-common.m4: Likewise.
15731         * m4/group-member.m4: Likewise.
15732         * m4/host-os.m4: Likewise.
15733         * m4/iconv.m4: Likewise.
15734         * m4/iconv_open.m4: Likewise.
15735         * m4/inet_ntop.m4: Likewise.
15736         * m4/inet_pton.m4: Likewise.
15737         * m4/inline.m4: Likewise.
15738         * m4/intldir.m4: Likewise.
15739         * m4/intlmacosx.m4: Likewise.
15740         * m4/intmax.m4: Likewise.
15741         * m4/intmax_t.m4: Likewise.
15742         * m4/inttypes.m4: Likewise.
15743         * m4/inttypes_h.m4: Likewise.
15744         * m4/inttypes-pri.m4: Likewise.
15745         * m4/isapipe.m4: Likewise.
15746         * m4/isnand.m4: Likewise.
15747         * m4/isnanf.m4: Likewise.
15748         * m4/isnanl.m4: Likewise.
15749         * m4/javacomp.m4: Likewise.
15750         * m4/javaexec.m4: Likewise.
15751         * m4/jm-winsz1.m4: Likewise.
15752         * m4/jm-winsz2.m4: Likewise.
15753         * m4/lchown.m4: Likewise.
15754         * m4/lcmessage.m4: Likewise.
15755         * m4/ldexpl.m4: Likewise.
15756         * m4/lib-ld.m4: Likewise.
15757         * m4/lib-link.m4: Likewise.
15758         * m4/libsigsegv.m4: Likewise.
15759         * m4/link-follow.m4: Likewise.
15760         * m4/localcharset.m4: Likewise.
15761         * m4/locale-fr.m4: Likewise.
15762         * m4/locale-ja.m4: Likewise.
15763         * m4/locale-tr.m4: Likewise.
15764         * m4/locale-zh.m4: Likewise.
15765         * m4/lock.m4: Likewise.
15766         * m4/longlong.m4: Likewise.
15767         * m4/ls-mntd-fs.m4: Likewise.
15768         * m4/lstat.m4: Likewise.
15769         * m4/malloc.m4: Likewise.
15770         * m4/mathl.m4: Likewise.
15771         * m4/mbrtowc.m4: Likewise.
15772         * m4/mbstate_t.m4: Likewise.
15773         * m4/mbswidth.m4: Likewise.
15774         * m4/memchr.m4: Likewise.
15775         * m4/memcmp.m4: Likewise.
15776         * m4/memcpy.m4: Likewise.
15777         * m4/memmem.m4: Likewise.
15778         * m4/memmove.m4: Likewise.
15779         * m4/mempcpy.m4: Likewise.
15780         * m4/memrchr.m4: Likewise.
15781         * m4/memset.m4: Likewise.
15782         * m4/minmax.m4: Likewise.
15783         * m4/mkdir-slash.m4: Likewise.
15784         * m4/mkdtemp.m4: Likewise.
15785         * m4/mktime.m4: Likewise.
15786         * m4/mmap-anon.m4: Likewise.
15787         * m4/mountlist.m4: Likewise.
15788         * m4/nanosleep.m4: Likewise.
15789         * m4/nls.m4: Likewise.
15790         * m4/nocrash.m4: Likewise.
15791         * m4/open.m4: Likewise.
15792         * m4/openat.m4: Likewise.
15793         * m4/openmp.m4: Likewise.
15794         * m4/pathmax.m4: Likewise.
15795         * m4/perl.m4: Likewise.
15796         * m4/physmem.m4: Likewise.
15797         * m4/pipe.m4: Likewise.
15798         * m4/po.m4: Likewise.
15799         * m4/poll.m4: Likewise.
15800         * m4/posixtm.m4: Likewise.
15801         * m4/posixver.m4: Likewise.
15802         * m4/printf-frexp.m4: Likewise.
15803         * m4/printf-frexpl.m4: Likewise.
15804         * m4/printf-posix.m4: Likewise.
15805         * m4/printf-posix-rpl.m4: Likewise.
15806         * m4/printf.m4: Likewise.
15807         * m4/progtest.m4: Likewise.
15808         * m4/putenv.m4: Likewise.
15809         * m4/readline.m4: Likewise.
15810         * m4/readlink.m4: Likewise.
15811         * m4/readutmp.m4: Likewise.
15812         * m4/realloc.m4: Likewise.
15813         * m4/regex.m4: Likewise.
15814         * m4/relocatable.m4: Likewise.
15815         * m4/relocatable-lib.m4: Likewise.
15816         * m4/rename-dest-slash.m4: Likewise.
15817         * m4/rename.m4: Likewise.
15818         * m4/rmdir-errno.m4: Likewise.
15819         * m4/rmdir.m4: Likewise.
15820         * m4/roundf.m4: Likewise.
15821         * m4/roundl.m4: Likewise.
15822         * m4/rpmatch.m4: Likewise.
15823         * m4/save-cwd.m4: Likewise.
15824         * m4/selinux-selinux-h.m4: Likewise.
15825         * m4/setenv.m4: Likewise.
15826         * m4/settime.m4: Likewise.
15827         * m4/sig2str.m4: Likewise.
15828         * m4/sig_atomic_t.m4: Likewise.
15829         * m4/signalblocking.m4: Likewise.
15830         * m4/signbit.m4: Likewise.
15831         * m4/sigpipe.m4: Likewise.
15832         * m4/sockets.m4: Likewise.
15833         * m4/sockpfaf.m4: Likewise.
15834         * m4/st_dm_mode.m4: Likewise.
15835         * m4/stat-time.m4: Likewise.
15836         * m4/stdbool.m4: Likewise.
15837         * m4/stdint.m4: Likewise.
15838         * m4/stdint_h.m4: Likewise.
15839         * m4/stpcpy.m4: Likewise.
15840         * m4/stpncpy.m4: Likewise.
15841         * m4/strcase.m4: Likewise.
15842         * m4/strchrnul.m4: Likewise.
15843         * m4/strcspn.m4: Likewise.
15844         * m4/strdup.m4: Likewise.
15845         * m4/strftime.m4: Likewise.
15846         * m4/strndup.m4: Likewise.
15847         * m4/strnlen.m4: Likewise.
15848         * m4/strpbrk.m4: Likewise.
15849         * m4/strptime.m4: Likewise.
15850         * m4/strsep.m4: Likewise.
15851         * m4/strtod.m4: Likewise.
15852         * m4/strtoimax.m4: Likewise.
15853         * m4/strtok_r.m4: Likewise.
15854         * m4/strtol.m4: Likewise.
15855         * m4/strtoll.m4: Likewise.
15856         * m4/strtoul.m4: Likewise.
15857         * m4/strtoull.m4: Likewise.
15858         * m4/strtoumax.m4: Likewise.
15859         * m4/strverscmp.m4: Likewise.
15860         * m4/threadlib.m4: Likewise.
15861         * m4/timegm.m4: Likewise.
15862         * m4/tm_gmtoff.m4: Likewise.
15863         * m4/tmpdir.m4: Likewise.
15864         * m4/tmpfile.m4: Likewise.
15865         * m4/tzset.m4: Likewise.
15866         * m4/uintmax_t.m4: Likewise.
15867         * m4/unlinkdir.m4: Likewise.
15868         * m4/unlocked-io.m4: Likewise.
15869         * m4/uptime.m4: Likewise.
15870         * m4/userspec.m4: Likewise.
15871         * m4/utimbuf.m4: Likewise.
15872         * m4/utime.m4: Likewise.
15873         * m4/utimes-null.m4: Likewise.
15874         * m4/utimes.m4: Likewise.
15875         * m4/vararrays.m4: Likewise.
15876         * m4/vasnprintf.m4: Likewise.
15877         * m4/vfprintf-posix.m4: Likewise.
15878         * m4/vprintf-posix.m4: Likewise.
15879         * m4/wait-process.m4: Likewise.
15880         * m4/wchar_t.m4: Likewise.
15881         * m4/wint_t.m4: Likewise.
15882         * m4/write-any-file.m4: Likewise.
15883         * m4/yield.m4: Likewise.
15884
15885 2009-01-13  Bruno Haible  <bruno@clisp.org>
15886
15887         Avoid test-copy-file.sh failures when ACL support insufficient.
15888         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
15889         TESTS_ENVIRONMENT.
15890         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
15891         Reported by Jim Meyering.
15892
15893 2009-01-13  Bruno Haible  <bruno@clisp.org>
15894
15895         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
15896         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
15897         * modules/unistdio/u8-printf-parse (Files): Likewise.
15898         * modules/unistdio/u32-printf-parse (Files): Likewise.
15899         * modules/unistdio/ulc-printf-parse (Files): Likewise.
15900
15901 2009-01-13  Simon Josefsson  <simon@josefsson.org>
15902
15903         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
15904         and m4/inttypes_h.m4 too.
15905
15906 2009-01-12  Eric Blake  <ebb9@byu.net>
15907
15908         tests: IRIX 6.2 cc can't compile -0.0 into .data
15909         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
15910         rather than at compile-time.
15911         * tests/test-floorl.c (minus_zero): Likewise.
15912         * tests/test-frexpl.c (minus_zero): Likewise.
15913         * tests/test-isnan.c (minus_zerol): Likewise.
15914         * tests/test-isnanl.h (minus_zero): Likewise.
15915         * tests/test-ldexpl.c (minus_zero): Likewise.
15916         * tests/test-roundl.c (minus_zero): Likewise.
15917         * tests/test-signbit.c (minus_zerol): Likewise.
15918         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
15919         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
15920         * tests/test-truncl.c (minus_zero): Likewise.
15921         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
15922         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
15923         Reported by Tom G. Christensen and Nelson H. F. Beebe.
15924
15925 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
15926
15927         regex: fix glibc bug 9697
15928         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
15929         handling.
15930
15931 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
15932
15933         regex: fix glibc bug 697
15934         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
15935         being NULL also if there are no backreferences.
15936
15937 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
15938
15939         regex: merge glibc changes
15940         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
15941         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
15942         re_string_skip_chars, re_string_reconstruct): Likewise.
15943         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
15944
15945 2009-01-07  Jim Meyering  <meyering@redhat.com>
15946
15947         poll: filter through cppi
15948         * lib/poll.c: Indent cpp directives to reflect nesting.
15949
15950 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
15951
15952         poll: don't return uninitialized
15953         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
15954
15955 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
15956
15957         avoid compile failure on AIX 6.1
15958         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
15959         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
15960
15961 2009-01-04  Jim Meyering  <meyering@redhat.com>
15962
15963         remove duplicate inclusion of <stdio.h>
15964         * tests/test-fprintf-posix.c: Likewise.
15965         * tests/test-printf-posix.c: Likewise.
15966         * tests/test-snprintf-posix.c: Likewise.
15967         * tests/test-sprintf-posix.c: Likewise.
15968         * tests/test-vasprintf-posix.c: Likewise.
15969         * tests/test-vfprintf-posix.c: Likewise.
15970         * tests/test-vprintf-posix.c: Likewise.
15971         * tests/test-vsnprintf-posix.c: Likewise.
15972         * tests/test-vsprintf-posix.c: Likewise.
15973
15974 2009-01-03  Jim Meyering  <meyering@redhat.com>
15975
15976         gnulib-tool: fix sed-based filtering
15977         * gnulib-tool (func_filter_filelist): Remove extra backslash
15978         in sed_fff_filter definition.
15979
15980 2009-01-02  Jim Meyering  <meyering@redhat.com>
15981
15982         strftime: avoid compilation failure on Solaris 2.6
15983         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
15984         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
15985         Don't #define mbrlen or mbsinit, since now they're guaranteed to
15986         be available.  Reported by Tom G. Christensen.  Details in
15987         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
15988
15989 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15990             Bruno Haible  <bruno@clisp.org>
15991
15992         Speed up gnulib-tool by doing more string processing through shell
15993         built-ins.
15994         * gnulib-tool (fast_func_append): New variable.
15995         (func_remove_prefix, func_remove_suffix): New functions.
15996         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
15997         (func_filter_filelist): New function.
15998         (func_get_dependencies): Use func_remove_suffix instead of sed.
15999         (func_get_automake_snippet): Use func_filter_filelist instead of a
16000         subshell and sed invocation.
16001
16002 2009-01-01  Bruno Haible  <bruno@clisp.org>
16003
16004         Fix a security bug.
16005         * gnulib-tool (func_import, import, update): Don't allow the characters
16006         '"', '$', '`', '\' in macro arguments that become part of commands that
16007         are evaluated.
16008
16009 2009-01-01  Bruno Haible  <bruno@clisp.org>
16010
16011         * gnulib-tool (func_reset_sigpipe): Add more comments.
16012
16013 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16014
16015         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
16016         func_emit_tests_Makefile_am, func_import): Abort loops early if we
16017         already know the answer.
16018
16019 2009-01-01  Jim Meyering  <meyering@redhat.com>
16020
16021         * lib/version-etc.c (version_etc_va): Update copyright year.
16022
16023 2008-12-30  Bruno Haible  <bruno@clisp.org>
16024
16025         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
16026         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
16027         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
16028
16029 2008-12-29  Eric Blake  <ebb9@byu.net>
16030
16031         multiarch: avoid autoconf AC_REQUIRE bug
16032         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
16033         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
16034         2.63 and older.
16035         Reported by Bruno Haible, and analyzed in
16036         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
16037
16038 2008-12-29  Bruno Haible  <bruno@clisp.org>
16039
16040         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
16041         files in subdirectories correctly.
16042         Reported by Ralf Wildenhues.
16043
16044 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16045
16046         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
16047         rather than 'join FILE -', for Solaris join.
16048
16049 2008-12-29  Bruno Haible  <bruno@clisp.org>
16050
16051         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
16052         quoting.
16053         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16054         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
16055         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
16056         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
16057         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16058         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16059         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
16060         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
16061         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16062         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16063         * m4/nls.m4 (AM_NLS): Likewise.
16064         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
16065         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16066         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16067         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
16068         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
16069         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16070         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
16071         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
16072         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
16073         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16074         * m4/xsize.m4 (gl_XSIZE): Likewise.
16075         Suggested by Jim Meyering.
16076
16077 2008-11-17  Bruce Korb  <bkorb@gnu.org>
16078
16079         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
16080         * lib/parse-duration.c: use a switch instead of cascading if's.
16081
16082 2008-12-29  Eric Blake  <ebb9@byu.net>
16083
16084         wchar.h: supply WEOF on Irix 5.3
16085         * lib/wchar.in.h (wint_t): Also supply WEOF.
16086         * lib/wctype.in.h (wint_t): Likewise.
16087         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
16088         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
16089         Reported by Tom G. Christensen.
16090
16091 2008-12-26  Bruno Haible  <bruno@clisp.org>
16092
16093         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
16094         i486, i586, i686.
16095
16096 2008-12-26  Bruno Haible  <bruno@clisp.org>
16097
16098         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
16099
16100 2008-12-26  Bruno Haible  <bruno@clisp.org>
16101
16102         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
16103         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
16104         not __STDC_CONSTANT_MACROS.
16105         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
16106
16107 2008-12-25  Bruno Haible  <bruno@clisp.org>
16108
16109         Add support for universal builds to vasnprintf.
16110         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
16111         universal builds, guess no.
16112         * modules/vasnprintf-posix (Depends-on): Add multiarch.
16113         * modules/vasprintf-posix (Depends-on): Likewise.
16114         * modules/fprintf-posix (Depends-on): Likewise.
16115         * modules/vfprintf-posix (Depends-on): Likewise.
16116         * modules/snprintf-posix (Depends-on): Likewise.
16117         * modules/vsnprintf-posix (Depends-on): Likewise.
16118         * modules/sprintf-posix (Depends-on): Likewise.
16119         * modules/vsprintf-posix (Depends-on): Likewise.
16120         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16121         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16122         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16123         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16124         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16125         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16126         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16127
16128         Add support for universal builds to <inttypes.h>.
16129         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
16130         _SCNu64_PREFIX): In Apple
16131         universal builds, define directly, using _LP64.
16132         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
16133         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
16134         * modules/inttypes (Depends-on): Add multiarch.
16135         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16136
16137         Add support for universal builds to <stdint.h>.
16138         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
16139         universal builds, define directly, using _LP64.
16140         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
16141         Apple universal builds, don't test for the size and suffix of ptrdiff_t
16142         and size_t.
16143         * modules/stdint (Depends-on): Add multiarch.
16144         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16145
16146         New module 'multiarch'.
16147         * modules/multiarch: New file.
16148         * m4/multiarch.m4: New file.
16149
16150 2008-12-25  Bruno Haible  <bruno@clisp.org>
16151
16152         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
16153
16154 2008-12-25  Bruno Haible  <bruno@clisp.org>
16155
16156         * modules/btowc (License): Relicense under LGPLv2+.
16157         * modules/mbsinit (License): Likewise.
16158         * modules/mbrtowc (License): Likewise.
16159         * modules/wcrtomb (License): Likewise.
16160         * modules/streq (License): Likewise.
16161         Reported by David Lutterkort <lutter@redhat.com>.
16162
16163 2008-12-23  Bruno Haible  <bruno@clisp.org>
16164
16165         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
16166
16167 2008-12-23  Bruno Haible  <bruno@clisp.org>
16168
16169         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
16170         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
16171         GETADDRINFO_LIB, not in LIBS.
16172         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
16173         * modules/canon-host (Link): Likewise.
16174         * NEWS: Mention the change.
16175         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
16176         GETADDRINFO_LIB.
16177
16178 2008-12-22  Bruno Haible  <bruno@clisp.org>
16179
16180         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
16181         * doc/posix-functions/iswalpha_l.texi: Likewise.
16182         * doc/posix-functions/iswblank_l.texi: Likewise.
16183         * doc/posix-functions/iswcntrl_l.texi: Likewise.
16184         * doc/posix-functions/iswctype_l.texi: Likewise.
16185         * doc/posix-functions/iswdigit_l.texi: Likewise.
16186         * doc/posix-functions/iswgraph_l.texi: Likewise.
16187         * doc/posix-functions/iswlower_l.texi: Likewise.
16188         * doc/posix-functions/iswprint_l.texi: Likewise.
16189         * doc/posix-functions/iswpunct_l.texi: Likewise.
16190         * doc/posix-functions/iswspace_l.texi: Likewise.
16191         * doc/posix-functions/iswupper_l.texi: Likewise.
16192         * doc/posix-functions/iswxdigit_l.texi: Likewise.
16193         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
16194         * doc/posix-functions/open_wmemstream.texi: Likewise.
16195         * doc/posix-functions/swscanf.texi: Likewise.
16196         * doc/posix-functions/towctrans_l.texi: Likewise.
16197         * doc/posix-functions/towlower.texi: Likewise.
16198         * doc/posix-functions/towlower_l.texi: Likewise.
16199         * doc/posix-functions/towupper.texi: Likewise.
16200         * doc/posix-functions/towupper_l.texi: Likewise.
16201         * doc/posix-functions/vfwprintf.texi: Likewise.
16202         * doc/posix-functions/vfwscanf.texi: Likewise.
16203         * doc/posix-functions/vswscanf.texi: Likewise.
16204         * doc/posix-functions/vwprintf.texi: Likewise.
16205         * doc/posix-functions/vwscanf.texi: Likewise.
16206         * doc/posix-functions/wcpcpy.texi: Likewise.
16207         * doc/posix-functions/wcpncpy.texi: Likewise.
16208         * doc/posix-functions/wcscasecmp.texi: Likewise.
16209         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
16210         * doc/posix-functions/wcscoll_l.texi: Likewise.
16211         * doc/posix-functions/wcsdup.texi: Likewise.
16212         * doc/posix-functions/wcsncasecmp.texi: Likewise.
16213         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
16214         * doc/posix-functions/wcsnlen.texi: Likewise.
16215         * doc/posix-functions/wcsnrtombs.texi: Likewise.
16216         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
16217         * doc/posix-functions/wctrans_l.texi: Likewise.
16218         * doc/posix-functions/wctype_l.texi: Likewise.
16219         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
16220         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
16221         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
16222         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
16223         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
16224         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
16225         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
16226         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
16227         * doc/glibc-functions/wcschrnul.texi: Likewise.
16228         * doc/glibc-functions/wcsftime_l.texi: Likewise.
16229         * doc/glibc-functions/wcstod_l.texi: Likewise.
16230         * doc/glibc-functions/wcstof_l.texi: Likewise.
16231         * doc/glibc-functions/wcstol_l.texi: Likewise.
16232         * doc/glibc-functions/wcstold_l.texi: Likewise.
16233         * doc/glibc-functions/wcstoll_l.texi: Likewise.
16234         * doc/glibc-functions/wcstoq.texi: Likewise.
16235         * doc/glibc-functions/wcstoul_l.texi: Likewise.
16236         * doc/glibc-functions/wcstoull_l.texi: Likewise.
16237         * doc/glibc-functions/wcstouq.texi: Likewise.
16238         * doc/glibc-functions/wmempcpy.texi: Likewise.
16239
16240 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
16241             Eric Blake  <ebb9@byu.net>
16242             Paolo Bonzini  <bonzini@gnu.org>
16243             Bruno Haible  <bruno@clisp.org>
16244
16245         Make c-stack work on Haiku.
16246         * lib/c-stack.c (SA_ONSTACK): Define fallback.
16247         (c_stack_action): Use SA_ONSTACK flag.
16248
16249 2008-12-22  Bruno Haible  <bruno@clisp.org>
16250
16251         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
16252
16253 2008-12-22  Bruno Haible  <bruno@clisp.org>
16254
16255         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
16256         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
16257         being overridden.
16258         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
16259         New macros.
16260         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
16261         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
16262         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
16263         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
16264
16265 2008-12-22  Bruno Haible  <bruno@clisp.org>
16266
16267         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
16268         from test code.
16269
16270 2008-12-22  Eric Blake  <ebb9@byu.net>
16271
16272         Avoid gcc warnings on cygwin.
16273         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
16274         Avoid unused variable.
16275         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
16276         Likewise.
16277
16278 2008-12-22  Bruno Haible  <bruno@clisp.org>
16279
16280         Remove HAVE_MBRTOWC conditionals.
16281         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
16282         (mbscasecmp): Assume mbrtowc function.
16283         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
16284         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
16285         * lib/mbschr.c: Include mbuiter.h unconditionally.
16286         (mbschr): Assume mbrtowc function.
16287         * lib/mbscspn.c: Include mbuiter.h unconditionally.
16288         (mbscspn): Assume mbrtowc function.
16289         * lib/mbslen.c: Include mbuiter.h unconditionally.
16290         (mbslen): Assume mbrtowc function.
16291         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
16292         (mbsncasecmp): Assume mbrtowc function.
16293         * lib/mbsnlen.c: Include mbiter.h unconditionally.
16294         (mbsnlen): Assume mbrtowc function.
16295         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
16296         (mbspbrk): Assume mbrtowc function.
16297         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
16298         (mbspcasecmp): Assume mbrtowc function.
16299         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
16300         (mbsrchr): Assume mbrtowc function.
16301         * lib/mbssep.c: Include mbuiter.h unconditionally.
16302         (mbssep): Assume mbrtowc function.
16303         * lib/mbsspn.c: Include mbuiter.h unconditionally.
16304         (mbsspn): Assume mbrtowc function.
16305         * lib/mbsstr.c: Include mbuiter.h unconditionally.
16306         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
16307         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
16308         (mbstok_r): Assume mbrtowc function.
16309         * lib/propername.c: Include mbuiter.h unconditionally.
16310         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
16311         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
16312         (trim2): Assume mbrtowc function.
16313         * lib/mbswidth.c (mbsinit): Remove fallback definition.
16314         (mbsnwidth): Assume mbrtowc function.
16315         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
16316         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
16317         fallback definitions.
16318         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
16319
16320 2008-12-22  Bruno Haible  <bruno@clisp.org>
16321
16322         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
16323
16324 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
16325
16326         * modules/regex: Request emulations for the mb*/wc* functions we need.
16327         * m4/regex.m4: Don't look for those functions here.
16328         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
16329
16330 2008-12-22  Bruno Haible  <bruno@clisp.org>
16331
16332         * modules/fnmatch (Depends-on): Remove duplicated dependency.
16333
16334 2008-12-21  Bruno Haible  <bruno@clisp.org>
16335
16336         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
16337         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
16338         (Include): Remove conditionalization.
16339         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
16340         (Include): Remove conditionalization.
16341         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
16342         (Include): Remove conditionalization.
16343         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
16344         * m4/mbfile.m4 (gl_MBFILE): Likewise.
16345         * NEWS: Mention the change.
16346         Reported by Alan Hourihane <alanh@fairlite.co.uk>
16347         via Sergey Poznyakoff <gray@gnu.org.ua>.
16348
16349 2008-12-21  Bruno Haible  <bruno@clisp.org>
16350
16351         * MODULES.html.sh (Extended multibyte and wide character utilities
16352         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
16353         wcrtomb, wcsrtombs.
16354         (Support for systems lacking POSIX:2008): Add accept, bind, close,
16355         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
16356         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
16357         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
16358
16359 2008-12-21  Bruno Haible  <bruno@clisp.org>
16360
16361         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
16362
16363 2008-12-21  Bruno Haible  <bruno@clisp.org>
16364
16365         * modules/wcsnrtombs-tests: New file.
16366         * tests/test-wcsnrtombs1.sh: New file.
16367         * tests/test-wcsnrtombs2.sh: New file.
16368         * tests/test-wcsnrtombs3.sh: New file.
16369         * tests/test-wcsnrtombs4.sh: New file.
16370         * tests/test-wcsnrtombs.c: New file.
16371
16372         New module 'wcsnrtombs'.
16373         * lib/wchar.in.h (wcsnrtombs): New declaration.
16374         * lib/wcsnrtombs.c: New file.
16375         * lib/wcsrtombs-state.c: New file.
16376         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
16377         (internal_state): Remove variable.
16378         * m4/wcsnrtombs.m4: New file.
16379         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
16380         compilation units.
16381         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
16382         HAVE_WCSNRTOMBS.
16383         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
16384         HAVE_WCSNRTOMBS.
16385         * modules/wcsnrtombs: New file.
16386         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
16387         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
16388
16389 2008-12-21  Bruno Haible  <bruno@clisp.org>
16390
16391         * modules/wcsrtombs-tests: New file.
16392         * tests/test-wcsrtombs1.sh: New file.
16393         * tests/test-wcsrtombs2.sh: New file.
16394         * tests/test-wcsrtombs3.sh: New file.
16395         * tests/test-wcsrtombs4.sh: New file.
16396         * tests/test-wcsrtombs.c: New file.
16397
16398         New module 'wcsrtombs'.
16399         * lib/wchar.in.h (wcsrtombs): New declaration.
16400         * lib/wcsrtombs.c: New file.
16401         * m4/wcsrtombs.m4: New file.
16402         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
16403         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16404         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
16405         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16406         * modules/wcsrtombs: New file.
16407         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
16408         bugs.
16409
16410 2008-12-21  Bruno Haible  <bruno@clisp.org>
16411
16412         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
16413         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
16414         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
16415         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
16416         if not correct.
16417         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
16418         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
16419         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16420         m4/locale-zh.m4, m4/codeset.m4.
16421         * doc/posix-functions/wcrtomb.texi: Document the bug.
16422
16423 2008-12-21  Bruno Haible  <bruno@clisp.org>
16424
16425         Work around a btowc() bug on IRIX 6.5.
16426         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
16427         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
16428         REPLACE_WTOBC if not.
16429         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
16430         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
16431         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
16432
16433 2008-12-21  Bruno Haible  <bruno@clisp.org>
16434
16435         * modules/wcrtomb-tests: New file.
16436         * tests/test-wcrtomb.sh: New file.
16437         * tests/test-wcrtomb.c: New file.
16438
16439         New module 'wcrtomb'.
16440         * lib/wchar.in.h (wcrtomb): New declaration.
16441         * lib/wcrtomb.c: New file.
16442         * m4/wcrtomb.m4: New file.
16443         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
16444         HAVE_WCRTOMB.
16445         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
16446         HAVE_WCRTOMB.
16447         * modules/wcrtomb: New file.
16448         * doc/posix-functions/wcrtomb.texi: Mention the new module.
16449
16450 2008-12-21  Bruno Haible  <bruno@clisp.org>
16451
16452         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
16453         * modules/mbsrtowcs (Files): Likewise.
16454         * modules/wctob (Files): Likewise.
16455         * modules/c-strcase-tests (Files): Likewise.
16456         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
16457         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
16458         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
16459         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
16460         * modules/vasnprintf-posix-tests (Files): Likewise.
16461
16462 2008-12-21  William Pursell  <bill.pursell@gmail.com>
16463
16464         gitlog-to-changelog: pass all command-line arguments to git-log
16465         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
16466         it is sometimes convenient to filter the commits in various ways.
16467         gitlog-to-changelog only allows --since to specify a start date,
16468         but git-log itself supports many other filtering mechanisms.
16469         At the moment, I want to filter by branch name.  Rather than
16470         adding a --branch option to gitlog-to-changelog, it seems more
16471         flexible to simply pass all options directly to git-log and let
16472         git do the work.  Notice that this effectively makes --since a
16473         redundant option for gitlog-to-changelog, but removing it would
16474         require current usage to change since calls would then require
16475         an additional '--'.
16476
16477 2008-12-21  Bruno Haible  <bruno@clisp.org>
16478
16479         * modules/mbsnrtowcs-tests: New file.
16480         * tests/test-mbsnrtowcs1.sh: New file.
16481         * tests/test-mbsnrtowcs2.sh: New file.
16482         * tests/test-mbsnrtowcs3.sh: New file.
16483         * tests/test-mbsnrtowcs4.sh: New file.
16484         * tests/test-mbsnrtowcs.c: New file.
16485
16486         New module 'mbsnrtowcs'.
16487         * lib/wchar.in.h (mbsnrtowcs): New declaration.
16488         * lib/mbsnrtowcs.c: New file.
16489         * lib/mbsrtowcs-state.c: New file.
16490         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
16491         (internal_state): Remove variable.
16492         * m4/mbsnrtowcs.m4: New file.
16493         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
16494         compilation units.
16495         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
16496         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
16497         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
16498         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
16499         * modules/mbsnrtowcs: New file.
16500         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
16501         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
16502         portability problem.
16503
16504 2008-12-21  Bruno Haible  <bruno@clisp.org>
16505
16506         Work around mbsrtowcs bug.
16507         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
16508         (gl_FUNC_MBSRTOWCS): Invoke it.
16509         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16510         m4/locale-zh.m4.
16511         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
16512
16513 2008-12-21  Bruno Haible  <bruno@clisp.org>
16514
16515         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
16516
16517 2008-12-21  Bruno Haible  <bruno@clisp.org>
16518
16519         Update doc for AIX.
16520         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
16521         16-bit wchar_t type.
16522         * doc/posix-functions/btowc.texi: Likewise.
16523         * doc/posix-functions/fgetwc.texi: Likewise.
16524         * doc/posix-functions/fgetws.texi: Likewise.
16525         * doc/posix-functions/fputwc.texi: Likewise.
16526         * doc/posix-functions/fputws.texi: Likewise.
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/getwchar.texi: Likewise.
16531         * doc/posix-functions/getwc.texi: Likewise.
16532         * doc/posix-functions/iswalnum.texi: Likewise.
16533         * doc/posix-functions/iswalpha.texi: Likewise.
16534         * doc/posix-functions/iswblank.texi: Likewise.
16535         * doc/posix-functions/iswcntrl.texi: Likewise.
16536         * doc/posix-functions/iswctype.texi: Likewise.
16537         * doc/posix-functions/iswdigit.texi: Likewise.
16538         * doc/posix-functions/iswgraph.texi: Likewise.
16539         * doc/posix-functions/iswlower.texi: Likewise.
16540         * doc/posix-functions/iswprint.texi: Likewise.
16541         * doc/posix-functions/iswpunct.texi: Likewise.
16542         * doc/posix-functions/iswspace.texi: Likewise.
16543         * doc/posix-functions/iswupper.texi: Likewise.
16544         * doc/posix-functions/iswxdigit.texi: Likewise.
16545         * doc/posix-functions/mbrtowc.texi: Likewise.
16546         * doc/posix-functions/mbsrtowcs.texi: Likewise.
16547         * doc/posix-functions/mbstowcs.texi: Likewise.
16548         * doc/posix-functions/mbtowc.texi: Likewise.
16549         * doc/posix-functions/putwchar.texi: Likewise.
16550         * doc/posix-functions/putwc.texi: Likewise.
16551         * doc/posix-functions/swprintf.texi: Likewise.
16552         * doc/posix-functions/tolower.texi: Likewise.
16553         * doc/posix-functions/toupper.texi: Likewise.
16554         * doc/posix-functions/towctrans.texi: Likewise.
16555         * doc/posix-functions/ungetwc.texi: Likewise.
16556         * doc/posix-functions/vswprintf.texi: Likewise.
16557         * doc/posix-functions/wcrtomb.texi: Likewise.
16558         * doc/posix-functions/wcscat.texi: Likewise.
16559         * doc/posix-functions/wcschr.texi: Likewise.
16560         * doc/posix-functions/wcscmp.texi: Likewise.
16561         * doc/posix-functions/wcscoll.texi: Likewise.
16562         * doc/posix-functions/wcscpy.texi: Likewise.
16563         * doc/posix-functions/wcscspn.texi: Likewise.
16564         * doc/posix-functions/wcsftime.texi: Likewise.
16565         * doc/posix-functions/wcslen.texi: Likewise.
16566         * doc/posix-functions/wcsncat.texi: Likewise.
16567         * doc/posix-functions/wcsncmp.texi: Likewise.
16568         * doc/posix-functions/wcsncpy.texi: Likewise.
16569         * doc/posix-functions/wcspbrk.texi: Likewise.
16570         * doc/posix-functions/wcsrchr.texi: Likewise.
16571         * doc/posix-functions/wcsrtombs.texi: Likewise.
16572         * doc/posix-functions/wcsspn.texi: Likewise.
16573         * doc/posix-functions/wcsstr.texi: Likewise.
16574         * doc/posix-functions/wcstod.texi: Likewise.
16575         * doc/posix-functions/wcstof.texi: Likewise.
16576         * doc/posix-functions/wcstoimax.texi: Likewise.
16577         * doc/posix-functions/wcstok.texi: Likewise.
16578         * doc/posix-functions/wcstold.texi: Likewise.
16579         * doc/posix-functions/wcstoll.texi: Likewise.
16580         * doc/posix-functions/wcstol.texi: Likewise.
16581         * doc/posix-functions/wcstombs.texi: Likewise.
16582         * doc/posix-functions/wcstoull.texi: Likewise.
16583         * doc/posix-functions/wcstoul.texi: Likewise.
16584         * doc/posix-functions/wcstoumax.texi: Likewise.
16585         * doc/posix-functions/wcswidth.texi: Likewise.
16586         * doc/posix-functions/wcsxfrm.texi: Likewise.
16587         * doc/posix-functions/wctob.texi: Likewise.
16588         * doc/posix-functions/wctomb.texi: Likewise.
16589         * doc/posix-functions/wctrans.texi: Likewise.
16590         * doc/posix-functions/wctype.texi: Likewise.
16591         * doc/posix-functions/wcwidth.texi: Likewise.
16592         * doc/posix-functions/wmemchr.texi: Likewise.
16593         * doc/posix-functions/wmemcmp.texi: Likewise.
16594         * doc/posix-functions/wmemcpy.texi: Likewise.
16595         * doc/posix-functions/wmemmove.texi: Likewise.
16596         * doc/posix-functions/wmemset.texi: Likewise.
16597         * doc/posix-functions/wprintf.texi: Likewise.
16598         * doc/posix-functions/wscanf.texi: Likewise.
16599
16600 2008-12-21  Bruno Haible  <bruno@clisp.org>
16601
16602         Update doc for HP-UX 11.11.
16603         * doc/posix-functions/btowc.texi: Clarify that the function is missing
16604         in HP-UX version 11.00, not in all versions of HP-UX 11.
16605         * doc/posix-functions/fwide.texi: Likewise.
16606         * doc/posix-functions/fwprintf.texi: Likewise.
16607         * doc/posix-functions/fwscanf.texi: Likewise.
16608         * doc/posix-functions/inet_ntop.texi: Likewise.
16609         * doc/posix-functions/inet_pton.texi: Likewise.
16610         * doc/posix-functions/mbrlen.texi: Likewise.
16611         * doc/posix-functions/mbrtowc.texi: Likewise.
16612         * doc/posix-functions/mbsinit.texi: Likewise.
16613         * doc/posix-functions/mbsrtowcs.texi: Likewise.
16614         * doc/posix-functions/swprintf.texi: Likewise.
16615         * doc/posix-functions/swscanf.texi: Likewise.
16616         * doc/posix-functions/towctrans.texi: Likewise.
16617         * doc/posix-functions/vfwprintf.texi: Likewise.
16618         * doc/posix-functions/vswprintf.texi: Likewise.
16619         * doc/posix-functions/vwprintf.texi: Likewise.
16620         * doc/posix-functions/wcrtomb.texi: Likewise.
16621         * doc/posix-functions/wcsrtombs.texi: Likewise.
16622         * doc/posix-functions/wcsstr.texi: Likewise.
16623         * doc/posix-functions/wctob.texi: Likewise.
16624         * doc/posix-functions/wctrans.texi: Likewise.
16625         * doc/posix-functions/wmemchr.texi: Likewise.
16626         * doc/posix-functions/wmemcmp.texi: Likewise.
16627         * doc/posix-functions/wmemcpy.texi: Likewise.
16628         * doc/posix-functions/wmemmove.texi: Likewise.
16629         * doc/posix-functions/wmemset.texi: Likewise.
16630         * doc/posix-functions/wprintf.texi: Likewise.
16631         * doc/posix-functions/wscanf.texi: Likewise.
16632
16633 2008-12-21  Bruno Haible  <bruno@clisp.org>
16634
16635         Work around a portability problem.
16636         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
16637         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
16638
16639 2008-12-20  Bruno Haible  <bruno@clisp.org>
16640
16641         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
16642         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
16643         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
16644         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
16645         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
16646
16647         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
16648         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
16649         set.
16650         (GNULIB_defined_mbstate_t): New macro.
16651         (mbsinit): Redefine if REPLACE_MBSINIT is set.
16652         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
16653         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
16654         reuses the system's mbrtowc function but works around the bugs.
16655         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
16656         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
16657         macros.
16658         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
16659         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
16660         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
16661         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
16662         REPLACE_MBSINIT if mbsinit needs to be overridden.
16663         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
16664         REPLACE_MBSINIT, REPLACE_MBRTOWC.
16665         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
16666         REPLACE_MBSINIT, REPLACE_MBRTOWC.
16667         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16668         m4/locale-zh.m4.
16669         (Depends): Add mbsinit.
16670         * modules/mbsinit (Depends): Add mbrtowc.
16671         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
16672
16673 2008-12-20  Bruno Haible  <bruno@clisp.org>
16674
16675         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
16676         so that there are no conversion errors on AIX.
16677         * tests/test-mbsrtowcs.c (main): LIkewise.
16678
16679 2008-12-20  Bruno Haible  <bruno@clisp.org>
16680
16681         Work around wctob bug on Solaris <= 9.
16682         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
16683         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
16684         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
16685         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
16686         * modules/wctob (Files): Add m4/locale-fr.m4.
16687         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
16688
16689 2008-12-20  Bruno Haible  <bruno@clisp.org>
16690
16691         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
16692         /dev/null.
16693         * tests/test-select-in.sh: Likewise.
16694         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16695
16696 2008-12-20  Bruno Haible  <bruno@clisp.org>
16697
16698         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
16699         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
16700         Cygwin 1.5.x.
16701
16702 2008-12-20  Bruno Haible  <bruno@clisp.org>
16703
16704         Ensure mbstate_t is defined on HP-UX 11.11.
16705         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
16706         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
16707         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
16708         AC_USE_SYSTEM_EXTENSIONS.
16709         * modules/fnmatch (Depends-on): Add extensions.
16710         * modules/mbrlen (Depends-on): Likewise.
16711         * modules/mbrtowc (Depends-on): Likewise.
16712         * modules/mbsinit (Depends-on): Likewise.
16713         * modules/mbsrtowcs (Depends-on): Likewise.
16714         * modules/mbswidth (Depends-on): Likewise.
16715         * modules/quotearg (Depends-on): Likewise.
16716         * modules/strftime (Depends-on): Likewise.
16717
16718 2008-12-20  Bruno Haible  <bruno@clisp.org>
16719
16720         Ensure wctob is declared on IRIX 6.5.
16721         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
16722         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
16723         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
16724         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
16725         of HAVE_WCTOB.
16726         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
16727         HAVE_WCTOB.
16728         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
16729
16730 2008-12-19  Bruno Haible  <bruno@clisp.org>
16731
16732         * modules/mbsrtowcs-tests: New file.
16733         * tests/test-mbsrtowcs1.sh: New file.
16734         * tests/test-mbsrtowcs2.sh: New file.
16735         * tests/test-mbsrtowcs3.sh: New file.
16736         * tests/test-mbsrtowcs4.sh: New file.
16737         * tests/test-mbsrtowcs.c: New file.
16738
16739         New module 'mbsrtowcs'.
16740         * lib/wchar.in.h (mbsrtowcs): New declaration.
16741         * lib/mbsrtowcs.c: New file.
16742         * m4/mbsrtowcs.m4: New file.
16743         * modules/mbsrtowcs: New file.
16744         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
16745         HAVE_MBSRTOWCS.
16746         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
16747         HAVE_MBSRTOWCS.
16748         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
16749
16750 2008-12-19  Bruno Haible  <bruno@clisp.org>
16751
16752         New module 'mbrlen'.
16753         * lib/wchar.in.h (mbrlen): New declaration.
16754         * lib/mbrlen.c: New file.
16755         * m4/mbrlen.m4: New file.
16756         * modules/mbrlen: New file.
16757         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
16758         HAVE_MBRLEN.
16759         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
16760         HAVE_MBRLEN.
16761         * doc/posix-functions/mbrlen.texi: Document the new module.
16762
16763 2008-12-19  Bruno Haible  <bruno@clisp.org>
16764
16765         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
16766         * modules/mbrtowc (Depends-on): Add verify.
16767         Suggested by Paul Eggert.
16768
16769 2008-12-18  Bruno Haible  <bruno@clisp.org>
16770
16771         * modules/mbsinit-tests: New file.
16772         * tests/test-mbsinit.sh: New file.
16773         * tests/test-mbsinit.c: New file.
16774
16775 2008-12-18  Bruno Haible  <bruno@clisp.org>
16776
16777         * modules/mbrtowc-tests: New file.
16778         * tests/test-mbrtowc1.sh: New file.
16779         * tests/test-mbrtowc2.sh: New file.
16780         * tests/test-mbrtowc3.sh: New file.
16781         * tests/test-mbrtowc4.sh: New file.
16782         * tests/test-mbrtowc.c: New file.
16783
16784         New module 'mbrtowc'.
16785         * lib/wchar.in.h (mbstate_t): Override when the system does not have
16786         mbsinit and mbrtowc.
16787         (mbrtowc): New declaration.
16788         * lib/mbrtowc.c: New file.
16789         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
16790         * modules/mbrtowc: New file.
16791         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
16792         HAVE_MBRTOWC.
16793         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
16794         HAVE_MBRTOWC.
16795         * doc/posix-functions/mbrtowc.texi: Document the new module.
16796
16797 2008-12-18  Bruno Haible  <bruno@clisp.org>
16798
16799         New module 'wctob'.
16800         * lib/wchar.in.h (wctob): New declaration.
16801         * lib/wctob.c: New file.
16802         * m4/wctob.m4: New file.
16803         * modules/wctob: New file.
16804         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
16805         HAVE_WCTOB.
16806         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
16807         * doc/posix-functions/wctob.texi: Document the new module.
16808
16809 2008-12-18  Bruno Haible  <bruno@clisp.org>
16810
16811         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
16812         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
16813
16814 2008-12-18  Simon Josefsson  <simon@josefsson.org>
16815
16816         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
16817         G. Christensen" <tgc@jupiterrise.com>.
16818
16819         * lib/flock.c: Need to include errno.h.  Reported by "Tom
16820         G. Christensen" <tgc@jupiterrise.com>.
16821
16822         * lib/flock.c: Need to include string.h.  Reported by "Tom
16823         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
16824         <ebb9@byu.net>.
16825
16826 2008-12-18  Bruno Haible  <bruno@clisp.org>
16827
16828         * m4/locale-ja.m4: New file, from GNU gettext.
16829
16830 2008-12-17  Bruno Haible  <bruno@clisp.org>
16831
16832         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
16833         Suggested by Eric Blake.
16834
16835 2008-12-17  Bruno Haible  <bruno@clisp.org>
16836
16837         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
16838
16839 2008-12-17  Bruno Haible  <bruno@clisp.org>
16840
16841         * lib/mbsinit.c: Include verify.h. Verify an assumption.
16842         * modules/mbsinit (Depends-on): Add verify.
16843         Suggested by Paul Eggert.
16844
16845 2008-12-17  Bruno Haible  <bruno@clisp.org>
16846
16847         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
16848         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
16849         gl_FUNC_MBRTOWC.
16850         * m4/mbiter.m4 (gl_MBITER): LIkewise.
16851         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
16852         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
16853         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
16854         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
16855         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
16856         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
16857         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
16858         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
16859         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
16860         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
16861         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
16862         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
16863         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
16864         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
16865         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16866         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
16867         * modules/trim (configure.ac): Likewise.
16868
16869 2008-12-17  Bruno Haible  <bruno@clisp.org>
16870
16871         * modules/btowc-tests: New file.
16872         * tests/test-btowc1.sh: New file.
16873         * tests/test-btowc2.sh: New file.
16874         * tests/test-btowc.c: New file.
16875
16876         New module 'btowc'.
16877         * lib/wchar.in.h (btowc): New declaration.
16878         * lib/btowc.c: New file.
16879         * m4/btowc.m4: New file.
16880         * modules/btowc: New file.
16881         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
16882         HAVE_BTOWC.
16883         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
16884         * doc/posix-functions/btowc.texi: Document the new module.
16885
16886 2008-12-17  Bruno Haible  <bruno@clisp.org>
16887
16888         New module 'mbsinit'.
16889         * lib/wchar.in.h (mbsinit): New declaration.
16890         * lib/mbsinit.c: New file.
16891         * m4/mbsinit.m4: New file.
16892         * modules/mbsinit: New file.
16893         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
16894         HAVE_MBSINIT.
16895         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
16896         HAVE_MBSINIT.
16897         * doc/posix-functions/mbsinit.texi: Document the new module.
16898
16899 2008-12-16  Bruno Haible  <bruno@clisp.org>
16900
16901         * lib/unistd.in.h: Add comment.
16902         * tests/test-environ.c: Don't include <stdlib.h>.
16903
16904 2008-12-16  Bruno Haible  <bruno@clisp.org>
16905
16906         * lib/parse-duration.h (parse_duration): Document return value
16907         convention.
16908         * lib/parse-duration.c: Include specification header first. Add
16909         comments.
16910         (_): Remove macro.
16911         (parse_year_month_day, parse_hour_minute_second): Move side effects
16912         outside of strchr call.
16913         (parse_non_iso8601): Move side effects outside of isspace call.
16914         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
16915         call.
16916
16917 2008-12-16  Bruno Haible  <bruno@clisp.org>
16918
16919         * tests/test-parse-duration.sh: Produce no output when the test
16920         succeeds.
16921
16922 2008-12-16  Bruno Haible  <bruno@clisp.org>
16923
16924         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
16925         expressions.
16926
16927 2008-12-15  Bruno Haible  <bruno@clisp.org>
16928
16929         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
16930         * doc/glibc-functions/flistxattr.texi: Likewise.
16931         * doc/glibc-functions/fopencookie.texi: Likewise.
16932         * doc/glibc-functions/fremovexattr.texi: Likewise.
16933         * doc/glibc-functions/fsetxattr.texi: Likewise.
16934         * doc/glibc-functions/getxattr.texi: Likewise.
16935         * doc/glibc-functions/lgetxattr.texi: Likewise.
16936         * doc/glibc-functions/listxattr.texi: Likewise.
16937         * doc/glibc-functions/llistxattr.texi: Likewise.
16938         * doc/glibc-functions/lremovexattr.texi: Likewise.
16939         * doc/glibc-functions/lsetxattr.texi: Likewise.
16940         * doc/glibc-functions/removexattr.texi: Likewise.
16941         * doc/glibc-functions/setxattr.texi: Likewise.
16942         * doc/posix-functions/open_memstream.texi: Likewise.
16943
16944 2008-12-15  Eric Blake  <ebb9@byu.net>
16945
16946         Update doc for cygwin 1.7.
16947         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
16948         functions.
16949         * doc/posix-functions/fchmodat.texi: Likewise.
16950         * doc/posix-functions/fchownat.texi: Likewise.
16951         * doc/posix-functions/fdopendir.texi: Likewise.
16952         * doc/posix-functions/fmemopen.texi: Likewise.
16953         * doc/posix-functions/freeaddrinfo.texi: Likewise.
16954         * doc/posix-functions/fstatat.texi: Likewise.
16955         * doc/posix-functions/futimens.texi: Likewise.
16956         * doc/posix-functions/gai_strerror.texi: Likewise.
16957         * doc/posix-functions/getaddrinfo.texi: Likewise.
16958         * doc/posix-functions/getnameinfo.texi: Likewise.
16959         * doc/posix-functions/if_freenameindex.texi: Likewise.
16960         * doc/posix-functions/if_indextoname.texi: Likewise.
16961         * doc/posix-functions/if_nameindex.texi: Likewise.
16962         * doc/posix-functions/if_nametoindex.texi: Likewise.
16963         * doc/posix-functions/insque.texi: Likewise.
16964         * doc/posix-functions/linkat.texi: Likewise.
16965         * doc/posix-functions/llrint.texi: Likewise.
16966         * doc/posix-functions/llrintf.texi: Likewise.
16967         * doc/posix-functions/llrintl.texi: Likewise.
16968         * doc/posix-functions/lockf.texi: Likewise.
16969         * doc/posix-functions/lrintl.texi: Likewise.
16970         * doc/posix-functions/mkdirat.texi: Likewise.
16971         * doc/posix-functions/mkfifoat.texi: Likewise.
16972         * doc/posix-functions/mknodat.texi: Likewise.
16973         * doc/posix-functions/mq_close.texi: Likewise.
16974         * doc/posix-functions/mq_getattr.texi: Likewise.
16975         * doc/posix-functions/mq_notify.texi: Likewise.
16976         * doc/posix-functions/mq_open.texi: Likewise.
16977         * doc/posix-functions/mq_receive.texi: Likewise.
16978         * doc/posix-functions/mq_send.texi: Likewise.
16979         * doc/posix-functions/mq_setattr.texi: Likewise.
16980         * doc/posix-functions/mq_timedreceive.texi: Likewise.
16981         * doc/posix-functions/mq_timedsend.texi: Likewise.
16982         * doc/posix-functions/mq_unlink.texi: Likewise.
16983         * doc/posix-functions/open_memstream.texi: Likewise.
16984         * doc/posix-functions/openat.texi: Likewise.
16985         * doc/posix-functions/posix_fadvise.texi: Likewise.
16986         * doc/posix-functions/posix_fallocate.texi: Likewise.
16987         * doc/posix-functions/posix_madvise.texi: Likewise.
16988         * doc/posix-functions/posix_memalign.texi: Likewise.
16989         * doc/posix-functions/posix_openpt.texi: Likewise.
16990         * doc/posix-functions/readlinkat.texi: Likewise.
16991         * doc/posix-functions/remque.texi: Likewise.
16992         * doc/posix-functions/renameat.texi: Likewise.
16993         * doc/posix-functions/rintl.texi: Likewise.
16994         * doc/posix-functions/sem_unlink.texi: Likewise.
16995         * doc/posix-functions/shm_open.texi: Likewise.
16996         * doc/posix-functions/shm_unlink.texi: Likewise.
16997         * doc/posix-functions/signgam.texi: Likewise.
16998         * doc/posix-functions/sigset.texi: Likewise.
16999         * doc/posix-functions/stpcpy.texi: Likewise.
17000         * doc/posix-functions/stpncpy.texi: Likewise.
17001         * doc/posix-functions/strerror.texi: Likewise.
17002         * doc/posix-functions/strtod.texi: Likewise.
17003         * doc/posix-functions/symlinkat.texi: Likewise.
17004         * doc/posix-functions/unlinkat.texi: Likewise.
17005         * doc/posix-functions/utimensat.texi: Likewise.
17006         * doc/glibc-functions/bindresvport.texi: Likewise.
17007         * doc/glibc-functions/dn_expand.texi: Likewise.
17008         * doc/glibc-functions/exp10.texi: Likewise.
17009         * doc/glibc-functions/exp10f.texi: Likewise.
17010         * doc/glibc-functions/fgetxattr.texi: Likewise.
17011         * doc/glibc-functions/flistxattr.texi: Likewise.
17012         * doc/glibc-functions/fopencookie.texi: Likewise.
17013         * doc/glibc-functions/freeifaddrs.texi: Likewise.
17014         * doc/glibc-functions/fremovexattr.texi: Likewise.
17015         * doc/glibc-functions/fsetxattr.texi: Likewise.
17016         * doc/glibc-functions/getifaddrs.texi: Likewise.
17017         * doc/glibc-functions/getxattr.texi: Likewise.
17018         * doc/glibc-functions/lgetxattr.texi: Likewise.
17019         * doc/glibc-functions/listxattr.texi: Likewise.
17020         * doc/glibc-functions/llistxattr.texi: Likewise.
17021         * doc/glibc-functions/lremovexattr.texi: Likewise.
17022         * doc/glibc-functions/lsetxattr.texi: Likewise.
17023         * doc/glibc-functions/pow10.texi: Likewise.
17024         * doc/glibc-functions/pow10f.texi: Likewise.
17025         * doc/glibc-functions/rcmd_af.texi: Likewise.
17026         * doc/glibc-functions/removexattr.texi: Likewise.
17027         * doc/glibc-functions/res_init.texi: Likewise.
17028         * doc/glibc-functions/res_mkquery.texi: Likewise.
17029         * doc/glibc-functions/res_query.texi: Likewise.
17030         * doc/glibc-functions/res_querydomain.texi: Likewise.
17031         * doc/glibc-functions/res_send.texi: Likewise.
17032         * doc/glibc-functions/rresvport_af.texi: Likewise.
17033         * doc/glibc-functions/setxattr.texi: Likewise.
17034         * doc/glibc-functions/strcasestr.texi: Likewise.
17035
17036 2008-12-15  Bruno Haible  <bruno@clisp.org>
17037
17038         Fix compilation error on OSF/1 4.0.
17039         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
17040         <sys/time.h>, simply delegate to the system header.
17041         Reported by Daniel Richard G. <oss@teragram.com>.
17042
17043 2008-12-15  Bruno Haible  <bruno@clisp.org>
17044
17045         * doc/posix-functions/openat.texi: Mention the 'openat' module.
17046         * doc/posix-functions/fchmodat.texi: Likewise.
17047         * doc/posix-functions/fchownat.texi: Likewise.
17048         * doc/posix-functions/fdopendir.texi: Likewise.
17049         * doc/posix-functions/fstatat.texi: Likewise.
17050         * doc/posix-functions/mkdirat.texi: Likewise.
17051         * doc/posix-functions/unlinkat.texi: Likewise.
17052
17053 2008-12-14  Bruno Haible  <bruno@clisp.org>
17054
17055         Update doc for POSIX:2008.
17056         * doc/posix-functions/faccessat.texi: New file.
17057         * doc/posix-functions/fchmodat.texi: New file.
17058         * doc/posix-functions/fchownat.texi: New file.
17059         * doc/posix-functions/fdopendir.texi: New file.
17060         * doc/posix-functions/fstatat.texi: New file.
17061         * doc/posix-functions/futimens.texi: New file.
17062         * doc/posix-functions/linkat.texi: New file.
17063         * doc/posix-functions/mkdirat.texi: New file.
17064         * doc/posix-functions/mkfifoat.texi: New file.
17065         * doc/posix-functions/mknodat.texi: New file.
17066         * doc/posix-functions/open_wmemstream.texi: New file.
17067         * doc/posix-functions/openat.texi: New file.
17068         * doc/posix-functions/psiginfo.texi: New file.
17069         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
17070         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
17071         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
17072         * doc/posix-functions/readlinkat.texi: New file.
17073         * doc/posix-functions/renameat.texi: New file.
17074         * doc/posix-functions/strerror_l.texi: New file.
17075         * doc/posix-functions/symlinkat.texi: New file.
17076         * doc/posix-functions/unlinkat.texi: New file.
17077         * doc/posix-functions/utimensat.texi: New file.
17078         * doc/gnulib.texi (Function Substitutes): Add these subsections.
17079
17080 2008-12-14  Bruno Haible  <bruno@clisp.org>
17081
17082         Update doc for POSIX:2008.
17083         * doc/posix-functions/alphasort.texi: Renamed from
17084         doc/glibc-functions/alphasort.texi.
17085         * doc/posix-functions/dirfd.texi: Renamed from
17086         doc/glibc-functions/dirfd.texi.
17087         * doc/posix-functions/dprintf.texi: Renamed from
17088         doc/glibc-functions/dprintf.texi.
17089         * doc/posix-functions/duplocale.texi: Renamed from
17090         doc/glibc-functions/duplocale.texi.
17091         * doc/posix-functions/fexecve.texi: Renamed from
17092         doc/glibc-functions/fexecve.texi.
17093         * doc/posix-functions/fmemopen.texi: Renamed from
17094         doc/glibc-functions/fmemopen.texi.
17095         * doc/posix-functions/freelocale.texi: Renamed from
17096         doc/glibc-functions/freelocale.texi.
17097         * doc/posix-functions/getdate_err.texi: Renamed from
17098         doc/glibc-functions/getdate_err.texi.
17099         * doc/posix-functions/isalnum_l.texi: Renamed from
17100         doc/glibc-functions/isalnum_l.texi.
17101         * doc/posix-functions/isalpha_l.texi: Renamed from
17102         doc/glibc-functions/isalpha_l.texi.
17103         * doc/posix-functions/isblank_l.texi: Renamed from
17104         doc/glibc-functions/isblank_l.texi.
17105         * doc/posix-functions/iscntrl_l.texi: Renamed from
17106         doc/glibc-functions/iscntrl_l.texi.
17107         * doc/posix-functions/isdigit_l.texi: Renamed from
17108         doc/glibc-functions/isdigit_l.texi.
17109         * doc/posix-functions/isgraph_l.texi: Renamed from
17110         doc/glibc-functions/isgraph_l.texi.
17111         * doc/posix-functions/islower_l.texi: Renamed from
17112         doc/glibc-functions/islower_l.texi.
17113         * doc/posix-functions/isprint_l.texi: Renamed from
17114         doc/glibc-functions/isprint_l.texi.
17115         * doc/posix-functions/ispunct_l.texi: Renamed from
17116         doc/glibc-functions/ispunct_l.texi.
17117         * doc/posix-functions/isspace_l.texi: Renamed from
17118         doc/glibc-functions/isspace_l.texi.
17119         * doc/posix-functions/isupper_l.texi: Renamed from
17120         doc/glibc-functions/isupper_l.texi.
17121         * doc/posix-functions/iswalnum_l.texi: Renamed from
17122         doc/glibc-functions/iswalnum_l.texi.
17123         * doc/posix-functions/iswalpha_l.texi: Renamed from
17124         doc/glibc-functions/iswalpha_l.texi.
17125         * doc/posix-functions/iswblank_l.texi: Renamed from
17126         doc/glibc-functions/iswblank_l.texi.
17127         * doc/posix-functions/iswcntrl_l.texi: Renamed from
17128         doc/glibc-functions/iswcntrl_l.texi.
17129         * doc/posix-functions/iswctype_l.texi: Renamed from
17130         doc/glibc-functions/iswctype_l.texi.
17131         * doc/posix-functions/iswdigit_l.texi: Renamed from
17132         doc/glibc-functions/iswdigit_l.texi.
17133         * doc/posix-functions/iswgraph_l.texi: Renamed from
17134         doc/glibc-functions/iswgraph_l.texi.
17135         * doc/posix-functions/iswlower_l.texi: Renamed from
17136         doc/glibc-functions/iswlower_l.texi.
17137         * doc/posix-functions/iswprint_l.texi: Renamed from
17138         doc/glibc-functions/iswprint_l.texi.
17139         * doc/posix-functions/iswpunct_l.texi: Renamed from
17140         doc/glibc-functions/iswpunct_l.texi.
17141         * doc/posix-functions/iswspace_l.texi: Renamed from
17142         doc/glibc-functions/iswspace_l.texi.
17143         * doc/posix-functions/iswupper_l.texi: Renamed from
17144         doc/glibc-functions/iswupper_l.texi.
17145         * doc/posix-functions/iswxdigit_l.texi: Renamed from
17146         doc/glibc-functions/iswxdigit_l.texi.
17147         * doc/posix-functions/isxdigit_l.texi: Renamed from
17148         doc/glibc-functions/isxdigit_l.texi.
17149         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
17150         doc/glibc-functions/mbsnrtowcs.texi.
17151         * doc/posix-functions/mkdtemp.texi: Renamed from
17152         doc/glibc-functions/mkdtemp.texi.
17153         * doc/posix-functions/newlocale.texi: Renamed from
17154         doc/glibc-functions/newlocale.texi.
17155         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
17156         doc/glibc-functions/nl_langinfo_l.texi.
17157         * doc/posix-functions/open_memstream.texi: Renamed from
17158         doc/glibc-functions/open_memstream.texi.
17159         * doc/posix-functions/opterr.texi: Renamed from
17160         doc/glibc-functions/opterr.texi.
17161         * doc/posix-functions/optind.texi: Renamed from
17162         doc/glibc-functions/optind.texi.
17163         * doc/posix-functions/optopt.texi: Renamed from
17164         doc/glibc-functions/optopt.texi.
17165         * doc/posix-functions/psignal.texi: Renamed from
17166         doc/glibc-functions/psignal.texi.
17167         * doc/posix-functions/scandir.texi: Renamed from
17168         doc/glibc-functions/scandir.texi.
17169         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
17170         doc/glibc-functions/sched_get_priority_min.texi.
17171         * doc/posix-functions/signgam.texi: Renamed from
17172         doc/glibc-functions/signgam.texi.
17173         * doc/posix-functions/stpcpy.texi: Renamed from
17174         doc/glibc-functions/stpcpy.texi.
17175         * doc/posix-functions/stpncpy.texi: Renamed from
17176         doc/glibc-functions/stpncpy.texi.
17177         * doc/posix-functions/strcasecmp_l.texi: Renamed from
17178         doc/glibc-functions/strcasecmp_l.texi.
17179         * doc/posix-functions/strcoll_l.texi: Renamed from
17180         doc/glibc-functions/strcoll_l.texi.
17181         * doc/posix-functions/strfmon_l.texi: Renamed from
17182         doc/glibc-functions/strfmon_l.texi.
17183         * doc/posix-functions/strftime_l.texi: Renamed from
17184         doc/glibc-functions/strftime_l.texi.
17185         * doc/posix-functions/strncasecmp_l.texi: Renamed from
17186         doc/glibc-functions/strncasecmp_l.texi.
17187         * doc/posix-functions/strndup.texi: Renamed from
17188         doc/glibc-functions/strndup.texi.
17189         * doc/posix-functions/strnlen.texi: Renamed from
17190         doc/glibc-functions/strnlen.texi.
17191         * doc/posix-functions/strsignal.texi: Renamed from
17192         doc/glibc-functions/strsignal.texi.
17193         * doc/posix-functions/strxfrm_l.texi: Renamed from
17194         doc/glibc-functions/strxfrm_l.texi.
17195         * doc/posix-functions/timer_gettime.texi: Renamed from
17196         doc/glibc-functions/timer_gettime.texi.
17197         * doc/posix-functions/tolower_l.texi: Renamed from
17198         doc/glibc-functions/tolower_l.texi.
17199         * doc/posix-functions/toupper_l.texi: Renamed from
17200         doc/glibc-functions/toupper_l.texi.
17201         * doc/posix-functions/towctrans_l.texi: Renamed from
17202         doc/glibc-functions/towctrans_l.texi.
17203         * doc/posix-functions/towlower_l.texi: Renamed from
17204         doc/glibc-functions/towlower_l.texi.
17205         * doc/posix-functions/towupper_l.texi: Renamed from
17206         doc/glibc-functions/towupper_l.texi.
17207         * doc/posix-functions/uselocale.texi: Renamed from
17208         doc/glibc-functions/uselocale.texi.
17209         * doc/posix-functions/vdprintf.texi: Renamed from
17210         doc/glibc-functions/vdprintf.texi.
17211         * doc/posix-functions/wcpcpy.texi:
17212         Renamed from doc/glibc-functions/wcpcpy.texi.
17213         * doc/posix-functions/wcpncpy.texi: Renamed from
17214         doc/glibc-functions/wcpncpy.texi.
17215         * doc/posix-functions/wcscasecmp.texi: Renamed from
17216         doc/glibc-functions/wcscasecmp.texi.
17217         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
17218         doc/glibc-functions/wcscasecmp_l.texi.
17219         * doc/posix-functions/wcscoll_l.texi: Renamed from
17220         doc/glibc-functions/wcscoll_l.texi.
17221         * doc/posix-functions/wcsdup.texi: Renamed from
17222         doc/glibc-functions/wcsdup.texi.
17223         * doc/posix-functions/wcsncasecmp.texi: Renamed from
17224         doc/glibc-functions/wcsncasecmp.texi.
17225         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
17226         doc/glibc-functions/wcsncasecmp_l.texi.
17227         * doc/posix-functions/wcsnlen.texi: Renamed from
17228         doc/glibc-functions/wcsnlen.texi.
17229         * doc/posix-functions/wcsnrtombs.texi: Renamed from
17230         doc/glibc-functions/wcsnrtombs.texi.
17231         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
17232         doc/glibc-functions/wcsxfrm_l.texi.
17233         * doc/posix-functions/wctrans_l.texi: Renamed from
17234         doc/glibc-functions/wctrans_l.texi.
17235         * doc/posix-functions/wctype_l.texi: Renamed from
17236         doc/glibc-functions/wctype_l.texi.
17237         * doc/gnulib.texi (Function Substitutes): Add these subsections.
17238         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
17239         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
17240         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
17241         these subsections.
17242         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
17243         Remove sections.
17244
17245 2008-12-14  Bruno Haible  <bruno@clisp.org>
17246
17247         Update doc for POSIX:2008.
17248         * doc/posix-functions/*.texi: Update URL of POSIX specification.
17249
17250 2008-12-14  Bruno Haible  <bruno@clisp.org>
17251
17252         Update doc for POSIX:2008.
17253         * doc/pastposix-functions/bcmp.texi: Renamed from
17254         doc/posix-functions/bcmp.texi.
17255         * doc/pastposix-functions/bcopy.texi: Renamed from
17256         doc/posix-functions/bcopy.texi.
17257         * doc/pastposix-functions/bsd_signal.texi: Renamed from
17258         doc/posix-functions/bsd_signal.texi.
17259         * doc/pastposix-functions/bzero.texi: Renamed from
17260         doc/posix-functions/bzero.texi.
17261         * doc/pastposix-functions/ecvt.texi: Renamed from
17262         doc/posix-functions/ecvt.texi.
17263         * doc/pastposix-functions/fcvt.texi: Renamed from
17264         doc/posix-functions/fcvt.texi.
17265         * doc/pastposix-functions/ftime.texi: Renamed from
17266         doc/posix-functions/ftime.texi.
17267         * doc/pastposix-functions/gcvt.texi: Renamed from
17268         doc/posix-functions/gcvt.texi.
17269         * doc/pastposix-functions/getcontext.texi: Renamed from
17270         doc/posix-functions/getcontext.texi.
17271         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
17272         doc/posix-functions/gethostbyaddr.texi.
17273         * doc/pastposix-functions/gethostbyname.texi: Renamed from
17274         doc/posix-functions/gethostbyname.texi.
17275         * doc/pastposix-functions/getwd.texi: Renamed from
17276         doc/posix-functions/getwd.texi.
17277         * doc/pastposix-functions/h_errno.texi: Renamed from
17278         doc/posix-functions/h_errno.texi.
17279         * doc/pastposix-functions/index.texi: Renamed from
17280         doc/posix-functions/index.texi.
17281         * doc/pastposix-functions/makecontext.texi: Renamed from
17282         doc/posix-functions/makecontext.texi.
17283         * doc/pastposix-functions/mktemp.texi: Renamed from
17284         doc/posix-functions/mktemp.texi.
17285         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
17286         doc/posix-functions/pthread_attr_getstackaddr.texi.
17287         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
17288         doc/posix-functions/pthread_attr_setstackaddr.texi.
17289         * doc/pastposix-functions/rindex.texi: Renamed from
17290         doc/posix-functions/rindex.texi.
17291         * doc/pastposix-functions/scalb.texi: Renamed from
17292         doc/posix-functions/scalb.texi.
17293         * doc/pastposix-functions/setcontext.texi: Renamed from
17294         doc/posix-functions/setcontext.texi.
17295         * doc/pastposix-functions/swapcontext.texi: Renamed from
17296         doc/posix-functions/swapcontext.texi.
17297         * doc/pastposix-functions/ualarm.texi: Renamed from
17298         doc/posix-functions/ualarm.texi.
17299         * doc/pastposix-functions/usleep.texi: Renamed from
17300         doc/posix-functions/usleep.texi.
17301         * doc/pastposix-functions/vfork.texi: Renamed from
17302         doc/posix-functions/vfork.texi.
17303         * doc/pastposix-functions/wcswcs.texi: Renamed from
17304         doc/posix-functions/wcswcs.texi.
17305         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
17306         (Function Substitutes): Update.
17307
17308 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17309
17310         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
17311         m4/strerror.m4.
17312
17313 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17314             Bruno Haible  <bruno@clisp.org>
17315
17316         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
17317
17318 2008-12-13  Bruno Haible  <bruno@clisp.org>
17319
17320         * modules/strtoull (Depends-on): Remove unistd.
17321
17322 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17323
17324         * modules/strtoull (Depends-on): Add stdlib.
17325
17326 2008-12-11  Simon Josefsson  <simon@josefsson.org>
17327
17328         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
17329
17330 2008-12-10  Jim Meyering  <meyering@redhat.com>
17331
17332         gl_ASSERT: don't say assertions are disabled when they're not
17333         * m4/assert.m4 (gl_ASSERT): Do not make configure report
17334         "checking whether to enable assertions... no", when they are in
17335         fact enabled.  This is solely a bug in the output of configure.
17336         In spite of saying "no", NDEBUG was not defined in that case.
17337         Also, as noted by Eric Blake, leave assertions enabled upon
17338         --enable-assert=INVALID.
17339
17340 2008-12-10  Bruno Haible  <bruno@clisp.org>
17341
17342         Change MODULES.html to refer to POSIX:2008 where possible.
17343         * MODULES.html.sh (POSIX2008_URL): New variable.
17344         (posix_headers): Remove sys/timeb, ucontext.
17345         (posix2001_headers): New variable.
17346         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
17347         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
17348         index, makecontext, mktemp, pthread_attr_getstackaddr,
17349         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
17350         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
17351         (posix2001_functions): New variable.
17352         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
17353         otherwise.
17354
17355 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17356
17357         add missing include to parse-duration.c
17358         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
17359         * modules/parse-duration (Depends-on): Add xalloc.
17360
17361         fix sed script reading maint.mk
17362         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
17363         (syntax-check-rules): Use it.
17364
17365 2008-12-09  Bruno Haible  <bruno@clisp.org>
17366
17367         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
17368         MacOS X 10.4/PowerPC.
17369         Reported by Simon Josefsson.
17370
17371 2008-12-08  Jim Meyering  <meyering@redhat.com>
17372
17373         work around mingw's lack of some S_IF definitions
17374         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
17375         Reported by Simon Josefsson.
17376
17377 2008-12-08  Bruno Haible  <bruno@clisp.org>
17378
17379         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
17380         applied to variables. Needed on MacOS X 10.4/PowerPC.
17381         Reported by Simon Josefsson.
17382
17383 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
17384         and Eric Blake  <ebb9@byu.net>
17385
17386         assert: honor --enable-assert
17387         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
17388         order to honor --enable-assert, rather than treating it as a
17389         synonym for --disable-assert.
17390
17391 2008-12-08  Jim Meyering  <meyering@redhat.com>
17392
17393         * lib/posixtm.c: Remove now-useless declaration of mktime.
17394
17395         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
17396
17397 2008-12-07  Bruno Haible  <bruno@clisp.org>
17398
17399         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
17400         test_once): Mark functions as static.
17401         * tests/test-tls.c (test_tls): Likewise.
17402
17403 2008-12-07  Bruno Haible  <bruno@clisp.org>
17404
17405         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
17406         iconv_register_autodetect.
17407
17408 2008-12-07  Jim Meyering  <meyering@redhat.com>
17409
17410         posixtm.c: avoid a warning
17411         * lib/posixtm.c (posixtime): Don't initialize tm0.
17412         It's no longer needed to placate gcc4's -Wuninitialized,
17413         and the attempt to placate would elicit a new warning.
17414
17415         unicodeio.c: mark unused parameters
17416         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
17417         (fallback_failure_callback): Likewise.
17418
17419 2008-12-07  Bruno Haible  <bruno@clisp.org>
17420
17421         * gnulib-tool (func_create_testdir): When building the tests
17422         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
17423         Reported by Simon Josefsson.
17424
17425 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17426
17427         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
17428
17429 2008-12-06  Bruno Haible  <bruno@clisp.org>
17430
17431         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
17432         Suggested by Eric Blake.
17433
17434 2008-12-06  Bruno Haible  <bruno@clisp.org>
17435
17436         Fix a c-stack test failure on MacOS X.
17437         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
17438         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
17439         handler for SIGBUS as well.
17440         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
17441         install a signal handler for SIGBUS as well.
17442         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
17443
17444 2008-12-06  Bruno Haible  <bruno@clisp.org>
17445
17446         Advocacy documentation.
17447         * doc/gnulib-intro.texi (Benefits): New section.
17448         * doc/gnulib.texi: Update.
17449
17450 2008-12-06  Bruno Haible  <bruno@clisp.org>
17451
17452         Document the 'manywarnings' module.
17453         * doc/manywarnings.texi: New file.
17454         * doc/gnulib.texi: Include it.
17455
17456 2008-12-05  Eric Blake  <ebb9@byu.net>
17457
17458         tests: silence some gcc warnings
17459         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
17460         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
17461         type mismatches.
17462
17463 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17464             Bruno Haible  <bruno@clisp.org>
17465
17466         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
17467
17468 2008-11-29  Jim Meyering  <meyering@redhat.com>
17469
17470         unicodeio.c: mark unused parameters
17471         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
17472         (fallback_failure_callback): Likewise.
17473
17474         fts: fix a thinko
17475         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
17476         (set_stat_type): Return S_IF*-valued "type" directly.
17477         Prompted by James Youngman's spotting a related bug.
17478         Confirmed by further testing through find.
17479
17480         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
17481         * lib/fts.c (D_TYPE): Define.
17482         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
17483         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
17484         (s_ifmt_shift_bits): New function.
17485         (set_stat_type): New function.
17486         (fts_build): When not calling fts_stat, call set_stat_type
17487         to propagate dirent.d_type info to fts_read caller.
17488         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
17489         fts_statp->st_mode type information may be valid.
17490
17491 2008-11-28  Simon Josefsson  <simon@josefsson.org>
17492
17493         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
17494         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
17495         <sds@gnu.org>.
17496
17497 2008-11-20  Bruno Haible  <bruno@clisp.org>
17498
17499         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
17500         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
17501         INCLUDE_NEXT.
17502         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
17503         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
17504         * modules/math (Makefile.am): Substitute
17505         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
17506         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17507
17508 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
17509             Bruno Haible  <bruno@clisp.org>
17510
17511         * lib/stdint.in.h: Define all type macros so that their expansion is
17512         a single typedef'ed token. Fixes a compilation failure in Boost which
17513         does "using ::int8_t;".
17514
17515 2008-11-18  Simon Josefsson  <simon@josefsson.org>
17516
17517         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
17518         gl_MANYWARN_ALL_GCC.
17519         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
17520         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
17521         * modules/manywarnings: New file.
17522         * MODULES.html.sh: Mention manywarnings module.
17523
17524 2008-11-18  Bruno Haible  <bruno@clisp.org>
17525
17526         * doc/gnulib-tool.texi (Unit tests): New section.
17527
17528 2008-11-18  Simon Josefsson  <simon@josefsson.org>
17529
17530         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
17531         paths like 'lib/po/foo.po'.
17532
17533 2008-11-17  Simon Josefsson  <simon@josefsson.org>
17534
17535         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
17536         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
17537
17538 2008-11-17  Simon Josefsson  <simon@josefsson.org>
17539
17540         * m4/warnings.m4: Use CPPFLAGS to really check whether the
17541         parameter works.
17542
17543 2008-11-17  Simon Josefsson  <simon@josefsson.org>
17544
17545         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
17546
17547 2008-11-17  Bruce Korb  <bkorb@gnu.org>
17548
17549         * modules/parse-duration-tests: New file.
17550         * tests/test-parse-duration.sh: New file.
17551         * tests/test-parse-duration.c: New file.
17552
17553         New module 'parse-duration'.
17554         * lib/parse-duration.h: New file.
17555         * lib/parse-duration.c: New file.
17556         * modules/parse-duration: New file.
17557
17558 2008-11-17  Bruno Haible  <bruno@clisp.org>
17559
17560         * tests/test-select-out.sh: Comment out the first pipe test.
17561         Reported by Simon Josefsson.
17562
17563 2008-11-17  Bruno Haible  <bruno@clisp.org>
17564
17565         * modules/getaddrinfo (Depends-on): Add servent, hostent.
17566         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
17567         gl_HOSTENT.
17568
17569 2008-11-17  Bruno Haible  <bruno@clisp.org>
17570
17571         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
17572         -lnetwork and -lnet. Needed for Haiku and BeOS.
17573
17574 2008-11-16  Bruno Haible  <bruno@clisp.org>
17575
17576         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
17577
17578 2008-11-16  Bruno Haible  <bruno@clisp.org>
17579
17580         Avoid test failure on Haiku.
17581         * tests/test-fsync.c: Include <errno.h>.
17582         (main): Don't require that fsync (0) fails.
17583
17584 2008-11-15  Bruno Haible  <bruno@clisp.org>
17585
17586         New module 'hostent'.
17587         * modules/hostent: New file.
17588         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
17589
17590 2008-11-15  Bruno Haible  <bruno@clisp.org>
17591
17592         New module 'servent'.
17593         * modules/servent: New file.
17594         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
17595
17596 2008-11-15  Bruno Haible  <bruno@clisp.org>
17597
17598         Avoid generating same test program with two different rules.
17599         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
17600         test-frexp to test-frexp-nolibm.
17601         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
17602         test-frexpl to test-frexpl-nolibm.
17603
17604 2008-11-15  Bruno Haible  <bruno@clisp.org>
17605
17606         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
17607         $(FREXPL_LIBM).
17608
17609 2008-11-15  Bruno Haible  <bruno@clisp.org>
17610
17611         * lib/netdb.in.h: Activate the definitions also when the system's
17612         <netdb.h> has 'struct addrinfo'.
17613         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
17614         EAI_OVERFLOW or AI_NUMERICSERV.
17615         * doc/posix-headers/netdb.texi: Document the problem.
17616
17617 2008-11-15  Bruno Haible  <bruno@clisp.org>
17618
17619         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
17620
17621         Make the 'sched' module work on platforms where <sched.h> exists but
17622         is incomplete (such as Haiku).
17623         * lib/sched.in.h; Include the system's <sched.h> if it exists.
17624         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
17625         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
17626         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
17627         HAVE_STRUCT_SCHED_PARAM.
17628         * modules/sched (Depends-on): Add include_next.
17629         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
17630         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
17631         * doc/posix-headers/sched.texi: Document the issue.
17632
17633 2008-11-13  Jim Meyering  <meyering@redhat.com>
17634
17635         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
17636         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
17637         test would fail due to the difference in the Report bugs to ...
17638         line.  The expected address is empty, "<>", while the actual
17639         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
17640
17641 2008-11-12  Bruno Haible  <bruno@clisp.org>
17642
17643         lstat: don't compile lstat.c on systems lacking lstat
17644         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
17645         which don't have lstat; this is handled by lib/sys_stat.in.h already.
17646         Reported by Daniel P. Berrange via Jim Meyering.
17647
17648 2008-11-12  Jim Meyering  <meyering@redhat.com>
17649
17650         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
17651
17652 2008-11-12  Simon Josefsson  <simon@josefsson.org>
17653
17654         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
17655         instead.
17656
17657 2008-11-12  Bruno Haible  <bruno@clisp.org>
17658
17659         * lib/unicodeio.c: Include unistr.h.
17660         (utf8_wctomb): Remove function.
17661         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
17662
17663 2008-11-12  Simon Josefsson  <simon@josefsson.org>
17664
17665         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
17666         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
17667         <bruno@clisp.org>.
17668         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
17669
17670 2008-11-12  Simon Josefsson  <simon@josefsson.org>
17671
17672         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
17673         * doc/gnulib.texi: Add section for warnings.
17674
17675 2008-11-11  Bruno Haible  <bruno@clisp.org>
17676
17677         * lib/sockets.h: Add a comment.
17678
17679 2008-11-11  Karl Berry  <karl@gnu.org>
17680
17681         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
17682
17683 2008-11-11  Eric Blake  <ebb9@byu.net>
17684
17685         fdl.texi: avoid git symlinks
17686         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
17687
17688 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
17689
17690         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
17691
17692 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
17693
17694         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
17695         (gl_WARN_ADD): Substitute $2 if literal.
17696
17697 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
17698
17699         * m4/warning.m4: Remove.
17700
17701 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
17702
17703         * m4/warnings.m4: Almost complete rewrite. :-)
17704
17705 2008-11-10  Simon Josefsson  <simon@josefsson.org>
17706
17707         * modules/warnings: New module.
17708         * m4/warnings.m4: New file.
17709         * MODULES.html.sh: Mention warnings module.
17710         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
17711         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17712
17713 2008-11-10  Eric Blake  <ebb9@byu.net>
17714
17715         fdl.texi: make a symlink to the latest version
17716         * doc/standards.texi: Revert today's earlier change.
17717         * doc/fdl-1.2.texi: Rename from old fdl.texi...
17718         * doc/fdl.texi: ...and replace this with a symlink to the newer
17719         fdl-1.3.texi.
17720
17721 2008-11-10  Bruno Haible  <bruno@clisp.org>
17722
17723         * tests/test-select-fd.c (main): Accept the result file name as fourth
17724         argument.
17725         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
17726         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
17727
17728 2008-11-10  Bruno Haible  <bruno@clisp.org>
17729
17730         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
17731         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
17732         as autoconf-substituted macros.
17733         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
17734         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
17735         gl_NETDB_H_DEFAULTS. Set these variables.
17736         * modules/netdb (Makefile.am): Substitute these variables.
17737
17738 2008-11-10  Eric Blake  <ebb9@byu.net>
17739
17740         standards.texi: include correct file for FDL 1.3
17741         * doc/standards.texi (GNU Free Documentation License): Change
17742         include file to pull in FDL 1.3, not 1.2.
17743
17744         fdl.texi: revert accidental change to license
17745         * doc/fdl.texi: This is FDL 1.2, not 1.3.
17746
17747 2008-11-10  Bruno Haible  <bruno@clisp.org>
17748
17749         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
17750         cross-compiling guesses also when the native compile gives no result.
17751
17752 2008-11-10  Bruno Haible  <bruno@clisp.org>
17753
17754         * lib/spawni.c (__spawni): Force variable into the stack.
17755
17756 2008-11-10  Bruno Haible  <bruno@clisp.org>
17757
17758         Add support for Haiku.
17759         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
17760         glibc and BeOS, but also on Haiku.
17761         * lib/fpurge.c (fpurge): Likewise.
17762         * lib/freadable.c (freadable): Likewise.
17763         * lib/freadahead.c (freadahead): Likewise.
17764         * lib/freading.c (freading): Likewise.
17765         * lib/freadptr.c (freadptr): Likewise.
17766         * lib/freadseek.c (freadptrinc): Likewise.
17767         * lib/fseeko.c (rpl_fseeko): Likewise.
17768         * lib/fseterr.c (fseterr): Likewise.
17769         * lib/fwritable.c (fwritable): Likewise.
17770         * lib/fwriting.c (fwriting): Likewise.
17771         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
17772
17773 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
17774
17775         * lib/config.charset: Treat Haiku like BeOS.
17776
17777 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
17778
17779         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
17780         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
17781
17782 2008-11-08  Bruno Haible  <bruno@clisp.org>
17783
17784         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
17785         AC_CACHE_CHECK.
17786
17787 2008-11-08  Bruno Haible  <bruno@clisp.org>
17788
17789         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
17790
17791 2008-11-08  Bruno Haible  <bruno@clisp.org>
17792
17793         * tests/test-select-fd.c: New file.
17794         * tests/test-select-in.sh: New file.
17795         * tests/test-select-out.sh: New file.
17796         * tests/test-select-stdin.c: New file.
17797         * modules/select-tests (Files): Add the new files.
17798         (Depends-on): Add gettimeofday.
17799         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
17800         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
17801         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
17802
17803 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
17804             Bruno Haible  <bruno@clisp.org>
17805
17806         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
17807
17808 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
17809
17810         * build-aux/pmccabe2html: Added support for C++ source files.
17811
17812 2008-11-05  Ben Pfaff  <blp@gnu.org>
17813
17814         Fix lib/close.c build on Windows.
17815         * modules/close (Files): Add lib/w32sock.h.
17816
17817 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
17818
17819         Accept Bison's NEWS format.
17820         * build-aux/announce-gen (print_news_deltas): Tweak
17821         $re_prefix.
17822
17823 2008-11-04  Bruno Haible  <bruno@clisp.org>
17824
17825         * modules/random_r (Maintainer): Add glibc.
17826
17827 2008-11-04  Simon Josefsson  <simon@josefsson.org>
17828
17829         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
17830         by karl@freefriends.org (Karl Berry).
17831         * doc/alloca.texi: Likewise.
17832         * doc/c-ctype.texi: Likewise.
17833         * doc/c-strcase.texi: Likewise.
17834         * doc/c-strcaseeq.texi: Likewise.
17835         * doc/c-strcasestr.texi: Likewise.
17836         * doc/c-strstr.texi: Likewise.
17837         * doc/c-strtod.texi: Likewise.
17838         * doc/c-strtold.texi: Likewise.
17839         * doc/ctime.texi: Likewise.
17840         * doc/error.texi: Likewise.
17841         * doc/fdl.texi: Likewise.
17842         * doc/gcd.texi: Likewise.
17843         * doc/getdate.texi: Likewise.
17844         * doc/gnulib-intro.texi: Likewise.
17845         * doc/gnulib-tool.texi: Likewise.
17846         * doc/gnulib.texi: Likewise.
17847         * doc/inet_ntoa.texi: Likewise.
17848         * doc/maintain.texi: Likewise.
17849         * doc/make-stds.texi: Likewise.
17850         * doc/quote.texi: Likewise.
17851         * doc/regexprops-generic.texi: Likewise.
17852         * doc/standards.texi: Likewise.
17853         * doc/verify.texi: Likewise.
17854         * doc/visibility.texi: Likewise.
17855         * doc/gnulib.texi (GNU Free Documentation License): Include
17856         fdl-1.3.texi instead of fdl.texi.
17857
17858 2008-11-04  Simon Josefsson  <simon@josefsson.org>
17859
17860         * doc/fdl-1.3.texi: New file, from
17861         <http://www.gnu.org/licenses/fdl-1.3.texi>.
17862         * modules/fdl-1.3: Add.
17863         * MODULES.html.sh: Add fdl-1.3.
17864
17865 2008-11-03  Bruno Haible  <bruno@clisp.org>
17866
17867         Make determination of absolute name of header file work with AIX xlc.
17868         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
17869         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
17870         preprocessing.
17871         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
17872         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
17873
17874 2008-11-03  Simon Josefsson  <simon@josefsson.org>
17875
17876         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
17877         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
17878         <ludo@gnu.org>.
17879
17880 2008-11-02  Bruno Haible  <bruno@clisp.org>
17881
17882         Mark 'strpbrk' obsolete.
17883         * modules/strpbrk (Status, Notice): New sections.
17884         * modules/strtok_r (Depends-on): Add strpbrk.
17885
17886 2008-11-02  Bruno Haible  <bruno@clisp.org>
17887
17888         Mark 'strdup' obsolete.
17889         * modules/strdup (Status, Notice): New sections.
17890         * modules/findprog (Depends-on): Add strdup.
17891         * modules/getaddrinfo (Depends-on): Likewise.
17892         * modules/localename (Depends-on): Likewise.
17893         * modules/relocatable-lib (Depends-on): Likewise.
17894         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
17895         * modules/relocatable-prog (Depends-on): Likewise.
17896         * modules/trim (Depends-on): Likewise.
17897         * modules/unictype/gen-ctype (Depends-on): Likewise.
17898         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
17899
17900 2008-11-02  Bruno Haible  <bruno@clisp.org>
17901
17902         Mark 'strcspn' obsolete.
17903         * modules/strcspn (Status, Notice): New sections.
17904
17905 2008-11-02  Bruno Haible  <bruno@clisp.org>
17906
17907         Mark 'rmdir' obsolete.
17908         * modules/rmdir (Status, Notice): New sections.
17909         * modules/clean-temp (Depends-on): Add rmdir.
17910         * modules/openat (Depends-on): Likewise.
17911
17912 2008-11-02  Bruno Haible  <bruno@clisp.org>
17913
17914         Mark 'raise' obsolete.
17915         * modules/raise (Status, Notice): New sections.
17916         (Include): Specify <signal.h>.
17917         * modules/stdio (Depends-on): Add raise.
17918         * modules/write (Depends-on): Likewise.
17919
17920 2008-11-02  Bruno Haible  <bruno@clisp.org>
17921
17922         Mark 'memset' obsolete.
17923         * modules/memset (Status, Notice): New sections.
17924
17925 2008-11-02  Bruno Haible  <bruno@clisp.org>
17926
17927         Mark 'memmove' obsolete.
17928         * modules/memmove (Status, Notice): New sections.
17929         * modules/argp (Depends-on): Add memmove.
17930         * modules/argz (Depends-on): Likewise.
17931         * modules/canonicalize (Depends-on): Likewise.
17932         * modules/canonicalize-lgpl (Depends-on): Likewise.
17933         * modules/fts (Depends-on): Likewise.
17934         * modules/getcwd (Depends-on): Likewise.
17935         * modules/human (Depends-on): Likewise.
17936         * modules/regex (Depends-on): Likewise.
17937         * modules/striconveh (Depends-on): Likewise.
17938         * modules/trim (Depends-on): Likewise.
17939         * modules/unistr/u8-move (Depends-on): Likewise.
17940         * modules/unistr/u16-move (Depends-on): Likewise.
17941         * modules/unistr/u32-move (Depends-on): Likewise.
17942
17943 2008-11-02  Bruno Haible  <bruno@clisp.org>
17944
17945         Mark 'memcpy' obsolete.
17946         * modules/memcpy (Status, Notice): New sections.
17947
17948 2008-11-02  Bruno Haible  <bruno@clisp.org>
17949
17950         Mark 'memcmp' obsolete.
17951         * modules/memcmp (Status, Notice): New sections.
17952         * modules/argmatch (Depends-on): Add memchr.
17953         * modules/backupfile (Depends-on): Likewise.
17954         * modules/c-strcasestr (Depends-on): Likewise.
17955         * modules/crypto/des (Depends-on): Likewise.
17956         * modules/csharpcomp (Depends-on): Likewise.
17957         * modules/fnmatch (Depends-on): Likewise.
17958         * modules/git-merge-changelog (Depends-on): Likewise.
17959         * modules/isnand (Depends-on): Likewise.
17960         * modules/isnand-nolibm (Depends-on): Likewise.
17961         * modules/isnanf (Depends-on): Likewise.
17962         * modules/isnanf-nolibm (Depends-on): Likewise.
17963         * modules/isnanl (Depends-on): Likewise.
17964         * modules/isnanl-nolibm (Depends-on): Likewise.
17965         * modules/mbchar (Depends-on): Likewise.
17966         * modules/memcoll (Depends-on): Likewise.
17967         * modules/quotearg (Depends-on): Likewise.
17968         * modules/regex (Depends-on): Likewise.
17969         * modules/relocatable-prog (Depends-on): Likewise.
17970         * modules/same (Depends-on): Likewise.
17971         * modules/signbit (Depends-on): Likewise.
17972         * modules/strcasestr-simple (Depends-on): Likewise.
17973         * modules/unictype/gen-ctype (Depends-on): Likewise.
17974         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
17975         * modules/uniname/uniname (Depends-on): Likewise.
17976         * modules/unistr/u8-cmp (Depends-on): Likewise.
17977
17978 2008-11-02  Bruno Haible  <bruno@clisp.org>
17979
17980         Mark 'memchr' obsolete.
17981         * modules/memchr (Status, Notice): New sections.
17982         * modules/argp (Depends-on): Add memchr.
17983         * modules/base64 (Depends-on): Likewise.
17984         * modules/c-strcasestr (Depends-on): Likewise.
17985         * modules/chdir-long (Depends-on): Likewise.
17986         * modules/fnmatch (Depends-on): Likewise.
17987         * modules/getsubopt (Depends-on): Likewise.
17988         * modules/git-merge-changelog (Depends-on): Likewise.
17989         * modules/glob (Depends-on): Likewise.
17990         * modules/strcasestr-simple (Depends-on): Likewise.
17991         * modules/strnlen (Depends-on): Likewise.
17992
17993 2008-11-02  Bruno Haible  <bruno@clisp.org>
17994
17995         Mark 'atexit' obsolete.
17996         * modules/atexit (Status, Notice): New sections.
17997         * modules/chdir-long (Depends-on): Add atexit.
17998         * modules/wait-process (Depends-on): Likewise.
17999
18000 2008-11-02  Bruno Haible  <bruno@clisp.org>
18001
18002         * gnulib-tool: New option --with-obsolete.
18003         (func_usage): Document it.
18004         (func_modules_transitive_closure): Drop obsolete dependencies if
18005         incobsolete is not true.
18006         (func_import): Read and save the incobsolete variable to the cache.
18007
18008 2008-11-02  Bruno Haible  <bruno@clisp.org>
18009
18010         * modules/TEMPLATE-EXTENDED: New field 'Status'.
18011         * gnulib-tool: New option --extract-status.
18012         (func_usage): Document it.
18013         (sed_extract_prog): Recognize it.
18014         (func_get_status): New function.
18015
18016 2008-10-30  Simon Josefsson  <simon@josefsson.org>
18017
18018         * modules/sockets (License): Change from LGPL to LGPLv2+.
18019
18020 2008-10-28  Simon Josefsson  <simon@josefsson.org>
18021
18022         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
18023
18024 2008-10-28  Simon Josefsson  <simon@josefsson.org>
18025
18026         * MODULES.html.sh (Support for systems lacking POSIX:2001):
18027         Mention times and sys_times.
18028         * modules/sys_times, modules/sys_times-tests: New modules.
18029         * modules/times, modules/times-tests: Likewise
18030         * m4/sys_times_h.m4: New file.
18031         * lib/sys_times.in.h: Likewise
18032         * lib/times.c: Likewise.
18033         * tests/test-sys_times.c: Likewise.
18034         * tests/test-times.c: Likewise.
18035         * doc/posix-headers/sys_times.texi: Update.
18036         * doc/posix-functions/times.texi: Update.
18037
18038 2008-10-28  Jim Meyering  <meyering@redhat.com>
18039
18040         * modules/tempname (Depends-on): Add lstat.
18041
18042         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
18043
18044 2008-10-28  Simon Josefsson  <simon@josefsson.org>
18045
18046         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
18047         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
18048         using idiom used elsewhere in gnulib.
18049
18050 2008-10-27  Jim Meyering  <meyering@redhat.com>
18051
18052         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
18053
18054 2008-10-27  Simon Josefsson  <simon@josefsson.org>
18055
18056         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
18057         TESTS_ENVIRONMENT, for shell scripts that needs to call built
18058         programs.
18059         * tests/test-argp-2.sh: Use $EXEEXT when needed.
18060
18061 2008-10-27  Simon Josefsson  <simon@josefsson.org>
18062
18063         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
18064
18065 2008-10-27  Bruno Haible  <bruno@clisp.org>
18066
18067         * tests/test-lstat.c: Include <stdio.h>.
18068
18069 2008-10-27  Simon Josefsson  <simon@josefsson.org>
18070
18071         * modules/lstat-tests: New module.
18072         * tests/test-lstat.c: New file.
18073
18074 2008-10-26  Jim Meyering  <meyering@redhat.com>
18075
18076         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
18077
18078 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18079             Bruno Haible  <bruno@clisp.org>
18080
18081         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
18082         * modules/configmake (Include): Add a note that the include must come
18083         after all system headers.
18084         * lib/javaversion.c: Include configmake.h after all other includes.
18085
18086 2008-10-26  Bruno Haible  <bruno@clisp.org>
18087
18088         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
18089         HAVE_STRUCT_RANDOM_DATA to 1.
18090         (gl_STDLIB_H): Simplify.
18091
18092 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18093
18094         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
18095         substitute HAVE_STRUCT_RANDOM_DATA.
18096         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
18097         random_data.
18098         * modules/stdlib (Makefile.am): Substitute
18099         HAVE_STRUCT_RANDOM_DATA.
18100
18101 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18102
18103         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
18104         * doc/gnulib-intro.texi (Copyright): Likewise.
18105
18106 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18107
18108         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
18109         findings.
18110
18111 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
18112             Bruno Haible  <bruno@clisp.org>
18113
18114         * lib/unistd.in.h: Include <winsock2.h>.
18115         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
18116         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
18117         Provide dummy declarations.
18118         (gethostname): Override.
18119         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
18120         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
18121         gl_PREREQ_SYS_H_WINSOCK2.
18122         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
18123         * doc/posix-functions/gethostname.texi: More details.
18124
18125 2008-10-25  Bruno Haible  <bruno@clisp.org>
18126
18127         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
18128         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
18129         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
18130
18131         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
18132         here ...
18133         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
18134         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
18135         gl_UNISTD_H_DEFAULTS.
18136
18137 2008-10-25  Eric Blake  <ebb9@byu.net>
18138
18139         signbit: avoid spurious compiler failure
18140         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
18141         declarations inside function.
18142
18143 2008-10-24  Simon Josefsson  <simon@josefsson.org>
18144             Bruno Haible  <bruno@clisp.org>
18145
18146         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
18147         * modules/random_r (Depends-on): Add stdint.
18148
18149 2008-10-24  Bruno Haible  <bruno@clisp.org>
18150
18151         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
18152         Eggert.
18153         * modules/strerror (License): Likewise.
18154
18155 2008-10-24  Jim Meyering  <meyering@redhat.com>
18156
18157         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
18158         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
18159
18160 2008-10-24  Eric Blake  <ebb9@byu.net>
18161
18162         getgroups: fix compilation when getgroups is available
18163         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
18164         but with <config.h> override of getgroups disabled.
18165
18166 2008-10-24  Simon Josefsson  <simon@josefsson.org>
18167
18168         * doc/gnulib.texi (Header files): Add note about C++ problems.
18169         Explained by Bruno Haible <bruno@clisp.org>.
18170
18171 2008-10-23  Bruno Haible  <bruno@clisp.org>
18172
18173         Define a dummy SA_NODEFER macro on Interix.
18174         * lib/signal.in.h (SA_NODEFER): Define fallback.
18175         Reported by Aleksey Cheusov <cheusov@tut.by> via
18176         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
18177
18178 2008-10-23  Bruno Haible  <bruno@clisp.org>
18179
18180         * modules/freadahead (License): Change to LGPLv2+.
18181         Suggested by Simon Josefsson.
18182
18183 2008-10-23  Jim Meyering  <meyering@redhat.com>
18184
18185         random_r: new module
18186         * modules/random_r: New file.
18187         * m4/random_r.m4: New file.
18188         * lib/random_r.c: New file, from glibc.
18189         * modules/random_r-tests: New file.
18190         * tests/test-random_r.c: New file.
18191         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
18192          Declare.
18193         (RAND_MAX): Define.
18194         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
18195         * modules/stdlib: Substitute them, too.
18196         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
18197         * doc/glibc-functions/initstate_r.texi: Mention the new module.
18198         * doc/glibc-functions/random_r.texi: Likewise.
18199         * doc/glibc-functions/setstate_r.texi: Likewise.
18200         * doc/glibc-functions/srandom_r.texi: Likewise.
18201         * config/srclist.txt: Mention it.
18202
18203 2008-10-23  David Lutterkort  <lutter@redhat.com>
18204
18205         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
18206         link requirement
18207
18208 2008-10-23  Jim Meyering  <meyering@redhat.com>
18209
18210         selinux-h: mark parameters of stub functions as intentionally unused
18211         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
18212         * lib/se-context.in.h: Likewise.
18213
18214 2008-10-22  Simon Josefsson  <simon@josefsson.org>
18215
18216         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
18217
18218 2008-10-22  Simon Josefsson  <simon@josefsson.org>
18219
18220         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
18221
18222 2008-10-22  Eric Blake  <ebb9@byu.net>
18223
18224         glthread/thread: avoid compiler warning
18225         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
18226         Add unreachable abort to silence compiler.
18227
18228 2008-10-22  Eric Blake  <ebb9@byu.net>
18229
18230         netdb: also supply struct addrinfo for cygwin 1.5.x
18231         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
18232         older cygwin.
18233         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
18234         cygwin.
18235         * doc/posix-headers/netdb.texi (netdb.h): Document this.
18236
18237 2008-10-22  Bruno Haible  <bruno@clisp.org>
18238
18239         * users.txt: Update entry about pspp.
18240
18241 2008-10-21  Bruno Haible  <bruno@clisp.org>
18242
18243         Simplification.
18244         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
18245         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
18246
18247         Simplification.
18248         * lib/ioctl.c (ioctl): Don't undefine.
18249         * lib/socket.c (socket): Don't undefine.
18250
18251         Remove unused module indicator macros.
18252         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
18253         GNULIB_$1 as a C macro.
18254
18255         * doc/posix-functions/close.texi: Undo last change.
18256         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
18257         Windows platforms.
18258
18259 2008-10-21  Bruno Haible  <bruno@clisp.org>
18260
18261         Add gethostname() declaration to <unistd.h>.
18262         * lib/unistd.in.h (gethostname): New declaration.
18263         * lib/gethostname.c: Include <unistd.h>.
18264         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
18265         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
18266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
18267         and HAVE_GETHOSTNAME.
18268         * modules/gethostname (Depends-on): Add unistd.
18269         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18270         (Include): Specify <unistd.h>.
18271         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
18272         HAVE_GETHOSTNAME.
18273         * tests/test-gethostname.c: Include <unistd.h> first.
18274
18275 2008-10-21  Bruno Haible  <bruno@clisp.org>
18276
18277         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
18278         * modules/select-tests (Depends-on): Likewise.
18279         Reported by Simon Josefsson.
18280
18281 2008-10-21  Simon Josefsson  <simon@josefsson.org>
18282
18283         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
18284         * lib/accept.c: New file, based on winsock.c.
18285         * lib/bind.c: New file, based on winsock.c.
18286         * lib/connect.c: New file, based on winsock.c.
18287         * lib/getpeername.c: New file, based on winsock.c.
18288         * lib/getsockname.c: New file, based on winsock.c.
18289         * lib/getsockopt.c: New file, based on winsock.c.
18290         * lib/ioctl.c: New file, based on winsock.c.
18291         * lib/listen.c: New file, based on winsock.c.
18292         * lib/recv.c: New file, based on winsock.c.
18293         * lib/recvfrom.c: New file, based on winsock.c.
18294         * lib/send.c: New file, based on winsock.c.
18295         * lib/sendto.c: New file, based on winsock.c.
18296         * lib/setsockopt.c: New file, based on winsock.c.
18297         * lib/shutdown.c: New file, based on winsock.c.
18298         * lib/socket.c: New file, based on winsock.c.
18299         * lib/w32sock.h: New file, based on winsock.c.
18300         * lib/winsock.c: Remove file.
18301         * modules/accept: Likewise.
18302         * modules/bind: Likewise.
18303         * modules/connect: Likewise.
18304         * modules/getpeername: Likewise.
18305         * modules/getsockname: Likewise.
18306         * modules/getsockopt: Likewise.
18307         * modules/ioctl: Likewise.
18308         * modules/listen: Likewise.
18309         * modules/recv: Likewise.
18310         * modules/recvfrom: Likewise.
18311         * modules/send: Likewise.
18312         * modules/sendto: Likewise.
18313         * modules/setsockopt: Likewise.
18314         * modules/shutdown: Likewise.
18315         * modules/socket: Use socket.c instead of winsock.c.
18316         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
18317         * doc/posix-functions/accept.texi: Doc fix.
18318         * doc/posix-functions/bind.texi: Doc fix.
18319         * doc/posix-functions/close.texi: Doc fix.
18320         * doc/posix-functions/connect.texi: Doc fix.
18321         * doc/posix-functions/getpeername.texi: Doc fix.
18322         * doc/posix-functions/getsockname.texi: Doc fix.
18323         * doc/posix-functions/getsockopt.texi: Doc fix.
18324         * doc/posix-functions/ioctl.texi: Doc fix.
18325         * doc/posix-functions/listen.texi: Doc fix.
18326         * doc/posix-functions/recv.texi: Doc fix.
18327         * doc/posix-functions/recvfrom.texi: Doc fix.
18328         * doc/posix-functions/send.texi: Doc fix.
18329         * doc/posix-functions/sendto.texi: Doc fix.
18330         * doc/posix-functions/setsockopt.texi: Doc fix.
18331         * doc/posix-functions/shutdown.texi: Doc fix.
18332         * doc/posix-functions/socket.texi: Doc fix.
18333
18334 2008-10-20  Bruno Haible  <bruno@clisp.org>
18335
18336         Take into account the role of SIGABRT_COMPAT on Windows 2008.
18337         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
18338         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
18339         as an alias for SIGABRT.
18340         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
18341         (sigaction): Map it to SIGABRT.
18342         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
18343
18344 2008-10-20  Bruno Haible  <bruno@clisp.org>
18345
18346         * lib/fts.c: Don't include lstat.h.
18347         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
18348
18349         Move the lstat() declaration to <sys/stat.h>.
18350         * lib/lstat.h: Remove file.
18351         * lib/sys_stat.in.h: Add special invocation convention.
18352         (lstat): New declaration.
18353         * lib/lstat.c (orig_lstat): New function.
18354         (rpl_lstat): Use orig_lstat instead of lstat.
18355         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
18356         AC_C_INLINE. Set REPLACE_LSTAT.
18357         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
18358         and REPLACE_LSTAT.
18359         * modules/lstat (Files): Remove lib/lstat.h.
18360         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
18361         (Include): Specify <sys/stat.h> instead of lstat.h.
18362         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
18363         REPLACE_LSTAT.
18364         * NEWS: Mention the change.
18365
18366 2008-10-20  Bruno Haible  <bruno@clisp.org>
18367
18368         * modules/posix_spawn-tests: New file.
18369         * tests/test-posix_spawn3.c: New file.
18370
18371 2008-10-20  Bruno Haible  <bruno@clisp.org>
18372
18373         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
18374         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18375         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
18376         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18377         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
18378
18379 2008-10-20  Bruno Haible  <bruno@clisp.org>
18380
18381         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
18382         of posix_spawn on AIX 5.3.
18383
18384 2008-10-20  Bruno Haible  <bruno@clisp.org>
18385
18386         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
18387
18388 2008-10-20  Bruno Haible  <bruno@clisp.org>
18389
18390         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
18391         of AC_LANG_PROGRAM.
18392
18393 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18394
18395         * lib/netdb.in.h: Don't define GNU specific constants until they
18396         are supported or needed.  Reported by Bruno Haible
18397         <bruno@clisp.org>.
18398
18399 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18400
18401         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
18402
18403 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18404
18405         * lib/getaddrinfo.h: Remove file.
18406         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
18407         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
18408         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
18409         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
18410         * modules/netdb: Substitute GNULIB_GETADDRINFO.
18411         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
18412         * tests/test-getaddrinfo.c: Likewise.
18413         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
18414         * NEWS: Mention change.
18415
18416 2008-10-19  Bruno Haible  <bruno@clisp.org>
18417
18418         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
18419
18420 2008-10-19  Bruno Haible  <bruno@clisp.org>
18421
18422         * lib/wait-process.c: Include simply <sys/wait.h>.
18423         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
18424         WIFSTOPPED): Remove fallback definitions.
18425         * modules/wait-process (Depends-on): Add sys_wait.
18426
18427         New module 'sys_wait'.
18428         * modules/sys_wait: New file.
18429         * lib/sys_wait.in.h: New file, partially copied from
18430         lib/wait-process.c.
18431         * m4/sys_wait_h.m4: New file.
18432         * doc/posix-headers/sys_wait.texi: Mention the new module.
18433
18434 2008-10-19  Bruno Haible  <bruno@clisp.org>
18435
18436         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
18437
18438 2008-10-19  Bruno Haible  <bruno@clisp.org>
18439
18440         Assume that waitpid() fills an 'int' status, not a 'union wait'.
18441         * lib/wait-process.c (WAIT_T): Remove type.
18442         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
18443         (wait_subprocess): Update.
18444
18445 2008-10-19  Bruno Haible  <bruno@clisp.org>
18446
18447         New module 'atoll'.
18448         * modules/atoll: New file.
18449         * lib/stdlib.in.h (atoll): New declaration.
18450         * lib/atoll.c: New file, from glibc with modifications.
18451         * m4/atoll.m4: New file.
18452         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
18453         HAVE_ATOLL.
18454         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
18455         * doc/posix-functions/atoll.texi: Mention the new module.
18456
18457 2008-10-19  Bruno Haible  <bruno@clisp.org>
18458
18459         Add strtoull() declaration to <stdlib.h>.
18460         * lib/stdlib.in.h (strtoull): New declaration.
18461         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
18462         Set HAVE_STRTOULL.
18463         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
18464         HAVE_STRTOULL.
18465         * modules/strtoull (Depends-on): Add stdlib.
18466         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18467         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
18468         HAVE_STRTOULL.
18469
18470 2008-10-19  Bruno Haible  <bruno@clisp.org>
18471
18472         Add strtoll() declaration to <stdlib.h>.
18473         * lib/stdlib.in.h (strtoll): New declaration.
18474         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
18475         Set HAVE_STRTOLL.
18476         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
18477         HAVE_STRTOLL.
18478         * modules/strtoll (Depends-on): Add stdlib.
18479         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18480         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
18481
18482 2008-10-19  Bruno Haible  <bruno@clisp.org>
18483
18484         * modules/bcopy (Depends-on): Add strings.
18485         (Include): Specify <strings.h>.
18486
18487 2008-10-19  Bruno Haible  <bruno@clisp.org>
18488
18489         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
18490
18491 2008-10-19  Bruno Haible  <bruno@clisp.org>
18492
18493         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
18494         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
18495         mingw.
18496
18497 2008-10-19  Bruno Haible  <bruno@clisp.org>
18498
18499         * lib/atanl.c: Don't include isnanl.h.
18500         * lib/cosl.c: Likewise.
18501         * lib/ldexpl.c: Likewise.
18502         * lib/logl.c: Likewise.
18503         * lib/sinl.c: Likewise.
18504         * lib/sqrtl.c: Likewise.
18505         * lib/tanl.c: Likewise.
18506
18507         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
18508         * lib/isnanf.h: Remove file.
18509         * lib/isnand.h: Remove file.
18510         * lib/isnanl.h: Remove file.
18511         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
18512         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
18513         macros.
18514         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
18515         HAVE_ISNANF, don't define it as a C macro.
18516         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
18517         HAVE_ISNAND, don't define it as a C macro.
18518         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
18519         HAVE_ISNANL, don't define it as a C macro.
18520         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
18521         HAVE_ISNAN[FDL].
18522         * modules/isnanf (Files): Remove lib/isnanf.h.
18523         (Depends-on): Add math.
18524         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18525         (Include): Specify <math.h> instead of isnanf.h.
18526         * modules/isnand (Files): Remove lib/isnand.h.
18527         (Depends-on): Add math.
18528         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18529         (Include): Specify <math.h> instead of isnand.h.
18530         * modules/isnanl (Files): Remove lib/isnanl.h.
18531         (Depends-on): Add math.
18532         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18533         (Include): Specify <math.h> instead of isnanl.h.
18534         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
18535         HAVE_ISNAN[FDL].
18536         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
18537         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
18538         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
18539         * NEWS: Mention the change.
18540
18541 2008-10-18  Bruno Haible  <bruno@clisp.org>
18542
18543         Add getusershell(), setusershell(), endusershell() declarations to
18544         <unistd.h>.
18545         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
18546         declarations.
18547         * lib/getusershell.c: Include unistd.h.
18548         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
18549         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
18550         HAVE_GETUSERSHELL.
18551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
18552         and HAVE_GETUSERSHELL.
18553         * modules/getusershell (Depends-on): Add unistd, extensions.
18554         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18555         (Include): Specify <unistd.h>.
18556         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
18557         HAVE_GETUSERSHELL.
18558
18559 2008-10-18  Bruno Haible  <bruno@clisp.org>
18560
18561         Add a getloadavg() declaration to <stdlib.h>.
18562         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
18563         getloadavg declaration.
18564         (getloadavg): New declaration.
18565         * lib/getloadavg.c: Include <stdlib.h> first.
18566         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
18567         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
18568         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
18569         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
18570         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
18571         * modules/getloadavg (Depends-on): Add stdlib, extensions.
18572         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18573         (Include): Specify <stdlib.h>.
18574         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
18575         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
18576
18577 2008-10-18  Bruno Haible  <bruno@clisp.org>
18578
18579         * lib/dirchownmod.c: Don't include lchmod.h.
18580
18581         Move the lchmod() declaration to <sys/stat.h>.
18582         * lib/lchmod.h: Remove file.
18583         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
18584         (lchmod): New declaration, moved here from lib/lchown.h.
18585         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
18586         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
18587         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
18588         and HAVE_LCHMOD.
18589         * modules/lchmod (Files): Remove lib/lchmod.h.
18590         (Depends-on): Add sys_stat, extensions.
18591         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
18592         (Include): Specify <sys/stat.h> instead of lchmod.h.
18593         * modules/sys_stat (Depends-on): Add link-warning.
18594         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
18595         definition of GL_LINK_WARNING.
18596         * NEWS: Mention the change.
18597
18598 2008-10-18  Bruno Haible  <bruno@clisp.org>
18599
18600         * lib/fchdir.c: Don't include dirfd.h.
18601         * lib/fts.c: Likewise.
18602         * lib/getcwd.c: Likewise.
18603         * lib/glob.c: Likewise.
18604
18605         Move the dirfd() declaration to <dirent.h>.
18606         * lib/dirfd.h: Remove file.
18607         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
18608         (dirfd): New declaration.
18609         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
18610         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
18611         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
18612         HAVE_DECL_DIRFD.
18613         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
18614         HAVE_DECL_DIRFD.
18615         * modules/dirfd (Files): Remove lib/dirfd.h.
18616         (Depends-on): Add dirent, extensions.
18617         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
18618         (Include): Specify <dirent.h> instead of dirfd.h.
18619         * modules/dirent (Depends-on): Add link-warning.
18620         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
18621         definition of GL_LINK_WARNING.
18622         * NEWS: Mention the change.
18623
18624 2008-10-18  Bruno Haible  <bruno@clisp.org>
18625
18626         Move the euidaccess() declaration to <unistd.h>.
18627         * lib/euidaccess.h: Remove file.
18628         * lib/unistd.in.h (euidaccess): New declaration.
18629         * lib/euidaccess.c: Don't include euidaccess.h.
18630         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
18631         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
18632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
18633         and HAVE_EUIDACCESS.
18634         * modules/euidaccess (Files): Remove lib/euidaccess.h.
18635         (Depends-on): Add unistd.
18636         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18637         (Include): Specify <unistd.h> instead of euidaccess.h.
18638         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
18639         HAVE_EUIDACCESS.
18640         * NEWS: Mention the change.
18641
18642 2008-10-18  Bruno Haible  <bruno@clisp.org>
18643
18644         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
18645
18646         Move the getdomainname() declaration to <unistd.h>.
18647         * lib/getdomainname.h: Remove file.
18648         * lib/unistd.in.h (getdomainname): New declaration.
18649         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
18650         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18651         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
18652         HAVE_GETDOMAINNAME.
18653         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18654         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
18655         * modules/getdomainname (Files): Remove lib/getdomainname.h.
18656         (Depends-on): Add unistd, extensions.
18657         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18658         (Includes): Specify <unistd.h> instead of getdomainname.h.
18659         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
18660         HAVE_GETDOMAINNAME.
18661         * NEWS: Mention the change.
18662
18663 2008-10-18  Bruno Haible  <bruno@clisp.org>
18664
18665         * modules/dirent: New file.
18666         * m4/dirent_h.m4: New file.
18667         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
18668         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
18669         * modules/fchdir (Files): Remove lib/dirent.in.h.
18670         (Depends-on): Add dirent.
18671         (Makefile.am): Move rules to modules/dirent.
18672         * doc/posix-headers/dirent.texi: Mention the new module.
18673
18674 2008-10-18  Bruno Haible  <bruno@clisp.org>
18675
18676         Avoid -Wunused-parameter warnings in public gnulib header files.
18677         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
18678         macro.
18679         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
18680
18681 2008-10-18  Bruno Haible  <bruno@clisp.org>
18682
18683         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
18684         * doc/glibc-functions/error.texi: Mention the module 'error'.
18685         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
18686         * doc/glibc-functions/getdomainname.texi: Mention the module
18687         'getdomainname'.
18688         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
18689         * doc/glibc-functions/getpagesize.texi: Mention the module
18690         'getpagesize'.
18691         * doc/glibc-functions/getusershell.texi: Mention the module
18692         'getusershell'.
18693         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
18694         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
18695         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
18696         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
18697         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
18698         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
18699         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
18700         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
18701         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
18702         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
18703         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
18704         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
18705         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
18706         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
18707
18708 2008-10-17  Bruno Haible  <bruno@clisp.org>
18709
18710         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
18711         HP-UX and IRIX, use -0.0L.
18712         * tests/test-ceill.c (minus_zero): Likewise.
18713         * tests/test-floorl.c (minus_zero): Likewise.
18714         * tests/test-frexpl.c (minus_zero): Likewise.
18715         * tests/test-isnan.c (minus_zerol): Likewise.
18716         * tests/test-isnanl.h (minus_zero): Likewise.
18717         * tests/test-ldexpl.c (minus_zero): Likewise.
18718         * tests/test-roundl.c (minus_zero): Likewise.
18719         * tests/test-signbit.c (minus_zerol): Likewise.
18720         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
18721         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
18722         * tests/test-truncl.c (minus_zero): Likewise.
18723         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
18724         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
18725         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
18726         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
18727
18728 2008-10-17  Bruno Haible  <bruno@clisp.org>
18729
18730         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
18731         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
18732         that it gets activated only for gcc >= 3.0.
18733         * lib/dirent.in.h: Likewise.
18734         * lib/errno.in.h: Likewise.
18735         * lib/fcntl.in.h: Likewise.
18736         * lib/float.in.h: Likewise.
18737         * lib/iconv.in.h: Likewise.
18738         * lib/inttypes.in.h: Likewise.
18739         * lib/locale.in.h: Likewise.
18740         * lib/math.in.h: Likewise.
18741         * lib/netdb.in.h: Likewise.
18742         * lib/netinet_in.in.h: Likewise.
18743         * lib/search.in.h: Likewise.
18744         * lib/signal.in.h: Likewise.
18745         * lib/spawn.in.h: Likewise.
18746         * lib/stdarg.in.h: Likewise.
18747         * lib/stdint.in.h: Likewise.
18748         * lib/stdio.in.h: Likewise.
18749         * lib/stdlib.in.h: Likewise.
18750         * lib/string.in.h: Likewise.
18751         * lib/strings.in.h: Likewise.
18752         * lib/sys_file.in.h: Likewise.
18753         * lib/sys_ioctl.in.h: Likewise.
18754         * lib/sys_select.in.h: Likewise.
18755         * lib/sys_socket.in.h: Likewise.
18756         * lib/sys_stat.in.h: Likewise.
18757         * lib/sys_time.in.h: Likewise.
18758         * lib/sysexits.in.h: Likewise.
18759         * lib/time.in.h: Likewise.
18760         * lib/unistd.in.h: Likewise.
18761         * lib/wchar.in.h: Likewise.
18762         * lib/wctype.in.h: Likewise.
18763         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18764
18765 2008-10-17  Jim Meyering  <meyering@redhat.com>
18766
18767         ignore-value: don't depend on inline module
18768         * modules/ignore-value (Depends-on): Remove 'inline'.
18769         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
18770         Suggestion from Bruno Haible.
18771
18772 2008-10-17  Bruno Haible  <bruno@clisp.org>
18773
18774         New implementation of condition variables for Win32.
18775         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
18776         (gl_linked_waitqueue_t): New type.
18777         (gl_cond_t): Use it.
18778         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
18779         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
18780         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
18781         (glthread_cond_init_func, glthread_cond_wait_func,
18782         glthread_cond_timedwait_func, glthread_cond_signal_func,
18783         glthread_cond_broadcast_func, glthread_cond_destroy_func):
18784         Reimplemented on the basis of gl_linked_waitqueue_t.
18785         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
18786         gl_waitqueue_t.
18787         (gl_rwlock_t): Update.
18788         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
18789
18790 2008-10-17  Simon Josefsson  <simon@josefsson.org>
18791
18792         * modules/recvfrom (Depends-on): Add dependency on getpeername.
18793         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
18794
18795 2008-10-17  Jim Meyering  <meyering@redhat.com>
18796
18797         ignore-value: new module
18798         * modules/ignore-value: New file.
18799         * lib/ignore-value.h: New file.
18800         * MODULES.html.sh (Compiler warning management): New section,
18801         just for this module.  More to come.
18802
18803 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
18804
18805         open-safer.c: avoid 'signed and unsigned in conditional...' warning
18806         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
18807         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
18808
18809 2008-10-16  Jim Meyering  <meyering@redhat.com>
18810
18811         openat-die.c: avoid 'no previous prototype' warning
18812         * lib/openat-die.c: Include "openat.h".
18813         Reported by Reuben Thomas <rrt@sc3d.org>.
18814
18815 2008-10-16  Simon Josefsson  <simon@josefsson.org>
18816
18817         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
18818         * lib/netdb.in.h: Fix typo.
18819         Reported by Bruno Haible  <bruno@clisp.org>
18820
18821         * lib/netdb.in.h: Include sys/socket.h for platforms without
18822         netdb.h, to get structures like hostent on MinGW.
18823         * modules/netdb (Depends-on): Add sys_socket.
18824
18825 2008-10-15  Simon Josefsson  <simon@josefsson.org>
18826
18827         * modules/netdb, modules/netdb-tests: New file.
18828         * m4/netdb_h.m4: New file.
18829         * lib/netdb.in.h: Add, currently just an empty file pending
18830         definitions.
18831         * tests/test-netdb.c: New file.
18832         * doc/posix-headers/netdb.texi: Mention that we replace it if
18833         needed.
18834         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18835         netdb.
18836
18837 2008-10-15  Simon Josefsson  <simon@josefsson.org>
18838
18839         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
18840         with code.
18841
18842 2008-10-13  Bruno Haible  <bruno@clisp.org>
18843
18844         * lib/glthread/cond.c (glthread_cond_wait_func,
18845         glthread_cond_timedwait_func): Add a comment.
18846
18847 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
18848
18849         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
18850         * tests/test-select.c: Likewise,
18851
18852 2008-10-13  Bruno Haible  <bruno@clisp.org>
18853
18854         * lib/glthread/cond.c (glthread_cond_wait_func,
18855         glthread_cond_timedwait_func): Fix variable name.
18856         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
18857
18858 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
18859
18860         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
18861         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
18862         struct sockaddr.sa_len.
18863         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
18864
18865 2008-10-13  Simon Josefsson  <simon@josefsson.org>
18866
18867         * build-aux/pmccabe2html: Add css and css_url parameters.
18868
18869 2008-10-12  Bruno Haible  <bruno@clisp.org>
18870
18871         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
18872         calling aclx_get.
18873         Reported by Rainer Tammer <tammer@tammer.net>.
18874
18875 2008-10-12  Bruno Haible  <bruno@clisp.org>
18876
18877         Use msvcrt aware primitives for creation/termination of Win32 threads.
18878         * lib/glthread/thread.c: Include <process.h>.
18879         (glthread_create_func): Use _beginthreadex instead of CreateThread.
18880         (wrapper_func): Update signature.
18881         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
18882
18883 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
18884             Bruno Haible  <bruno@clisp.org>
18885
18886         Provide a Win32 implementation of the 'cond' module.
18887         * lib/glthread/cond.h [USE_WIN32]: New implementation.
18888         * lib/glthread/cond.c (glthread_cond_init_func,
18889         glthread_cond_wait_func, glthread_cond_timedwait_func,
18890         glthread_cond_signal_func, glthread_cond_broadcast_func,
18891         glthread_cond_destroy_func) [USE_WIN32]: New functions.
18892         * modules/cond (Dependencies): Add gettimeofday.
18893
18894 2008-10-11  Bruno Haible  <bruno@clisp.org>
18895
18896         Make sleep work on older versions of mingw.
18897         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
18898         only whether it exists.
18899         * doc/posix-functions/sleep.texi: Mention the problem with older
18900         versions of mingw.
18901
18902 2008-10-11  Bruno Haible  <bruno@clisp.org>
18903
18904         New module 'shutdown'.
18905         * modules/shutdown: New file.
18906         * lib/sys_socket.in.h (shutdown): New declaration.
18907         * lib/winsock.c (shutdown): New function.
18908         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18909         GNULIB_SHUTDOWN.
18910         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
18911         * doc/posix-functions/shutdown.texi: Document the new module.
18912
18913 2008-10-11  Jim Meyering  <meyering@redhat.com>
18914
18915         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
18916
18917 2008-10-11  Bruno Haible  <bruno@clisp.org>
18918
18919         New module 'fclose'.
18920         * modules/fclose: New file.
18921         * lib/stdio.in.h (fclose): New declaration.
18922         * lib/fclose.c: New file.
18923         * m4/fclose.m4: New file.
18924         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
18925         REPLACE_FCLOSE.
18926         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
18927         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
18928         REPLACE_FCLOSE.
18929         * modules/close (Depends-on): fclose.
18930         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
18931
18932 2008-10-11  Bruno Haible  <bruno@clisp.org>
18933
18934         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
18935         set errno and don't call _close.
18936
18937 2008-10-10  Bruno Haible  <bruno@clisp.org>
18938
18939         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
18940         ACL, not afterwards. Fixes test failure on Cygwin.
18941
18942 2008-10-09  Ben Pfaff  <blp@gnu.org>
18943
18944         * build-aux/announce-gen: Fix gnulib version related part of usage
18945         message.  Die with a useful error message if no tarballs are
18946         found.
18947
18948 2008-10-10  Jim Meyering  <meyering@redhat.com>
18949
18950         bootstrap: use git's --depth=N option only if it's supported
18951         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
18952         recognize the --depth option.  Reported by Pádraig Brady.
18953
18954 2008-10-09  Bruno Haible  <bruno@clisp.org>
18955
18956         New module 'ioctl'.
18957         * modules/ioctl: New file.
18958         * lib/sys_socket.in.h (ioctl): Remove declaration.
18959         * lib/winsock.c: Include <sys/ioctl.h>.
18960         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
18961         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
18962         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
18963         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
18964         * doc/posix-functions/ioctl.texi: Mention the new module.
18965
18966 2008-10-09  Bruno Haible  <bruno@clisp.org>
18967
18968         New module 'sys_ioctl'.
18969         * lib/sys_ioctl.in.h: New file.
18970         * m4/sys_ioctl_h.m4: New file.
18971         * modules/sys_ioctl: New file.
18972         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
18973
18974 2008-10-09  Bruno Haible  <bruno@clisp.org>
18975
18976         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
18977         * lib/winsock.c: Include <stdarg.h>.
18978         (rpl_ioctl): Change to second argument 'int' and then varargs.
18979
18980 2008-10-09  Bruno Haible  <bruno@clisp.org>
18981
18982         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
18983         when the sys_socket module is present and the system has <winsock2.h>.
18984
18985 2008-10-09  Bruno Haible  <bruno@clisp.org>
18986
18987         * doc/posix-functions/close.texi: Mention module 'close' instead of
18988         module 'sys_socket'.
18989
18990 2008-10-09  Bruno Haible  <bruno@clisp.org>
18991
18992         * doc/glibc-headers/sys_ioctl.texi: New file.
18993         * doc/gnulib.texi: Include it.
18994
18995 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18996             Bruno Haible  <bruno@clisp.org>
18997
18998         Combine the two replacements of 'close'.
18999         * lib/sys_socket.in.h (close): Define to a reminder to include
19000         <unistd.h>.
19001         (_gl_close_fd_maybe_socket): New declaration.
19002         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
19003         * lib/winsock.c (close): Remove undefinition.
19004         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
19005         needed for the gnulib module 'close'.
19006         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
19007         define to an error symbol or to a warning, if suitable.
19008         * lib/close.c: Include <sys/socket.h>.
19009         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
19010         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
19011         UNISTD_H_HAVE_WINSOCK2_H.
19012         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
19013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19014         UNISTD_H_HAVE_WINSOCK2_H.
19015         * modules/sys_socket (Files): Add m4/unistd_h.m4.
19016         (configure.ac): Set a module indicator.
19017         (Makefile.am): Substitute GNULIB_CLOSE.
19018         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
19019         * modules/poll-tests (Depends-on): Add close.
19020         * modules/select-tests (Depends-on): Likewise.
19021
19022 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19023             Bruno Haible  <bruno@clisp.org>
19024
19025         New module 'close'.
19026         * modules/close: New file.
19027         * lib/unistd.in.h (close): Move declaration out of the
19028         FCHDIR_REPLACEMENT scope.
19029         (_gl_unregister_fd): New declaration.
19030         * lib/close.c: New file.
19031         * lib/fchdir.c (rpl_close): Remove function.
19032         * m4/close.m4: New file.
19033         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19034         close.
19035         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
19036         REPLACE_CLOSE.
19037         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
19038         REPLACE_CLOSE.
19039         * modules/fchdir (Depends-on): Add close.
19040
19041 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19042             Bruno Haible  <bruno@clisp.org>
19043
19044         * lib/fcntl.in.h (open): Simplify conditionals.
19045         (_gl_register_fd): New declaration.
19046         * lib/fchdir.c (rpl_open): Remove function.
19047         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
19048         also.
19049         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
19050         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19051         open.
19052
19053 2008-10-09  Jim Meyering  <meyering@redhat.com>
19054
19055         GNUmakefile: use the more name-space-friendly "_version"
19056         * top/GNUmakefile (_dummy): Update.
19057         (_version): Rename from "version".
19058
19059 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19060             Bruno Haible  <bruno@clisp.org>
19061
19062         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
19063         rpl_close.
19064         (_gl_register_fd): New function, extracted from rpl_open.
19065         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
19066         (rpl_open, rpl_opendir): Use _gl_register_fd.
19067
19068 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19069
19070         Fix organization of 'open' replacement.
19071         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
19072         (gl_FUNC_OPEN): Use it.
19073         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
19074
19075 2008-10-08  Bruno Haible  <bruno@clisp.org>
19076
19077         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
19078
19079 2008-10-08  Simon Josefsson  <simon@josefsson.org>
19080
19081         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
19082         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
19083         listen).
19084
19085 2008-10-08  Eric Blake  <ebb9@byu.net>
19086
19087         GNUmakefile: add 'make version' target
19088         * top/GNUmakefile (_curr-ver): Split version update rules...
19089         (version): ...into a target.
19090
19091 2008-10-07  Bruno Haible  <bruno@clisp.org>
19092
19093         Use a more portable replacement expression for -0.0L.
19094         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
19095         instead of -0.0L. Fix m4 quotation.
19096
19097         * tests/test-signbit.c: Include <float.h>.
19098         (minus_zero): New variable.
19099         (test_signbitl): Use minus_zero instead of -zero.
19100         * modules/signbit-tests (Depends-on): Add float.
19101
19102         * tests/test-ceill.c: Include <float.h>.
19103         (zero): Remove variable.
19104         (minus_zero): New variable.
19105         (main): Use minus_zero instead of -zero.
19106         * modules/ceill-tests (Depends-on): Add float.
19107
19108         * tests/test-floorl.c: Include <float.h>.
19109         (zero): Remove variable.
19110         (minus_zero): New variable.
19111         (main): Use minus_zero instead of -zero.
19112         * modules/floorl-tests (Depends-on): Add float.
19113
19114         * tests/test-roundl.c: Include <float.h>.
19115         (zero): Remove variable.
19116         (minus_zero): New variable.
19117         (main): Use minus_zero instead of -zero.
19118         * modules/roundl-tests (Depends-on): Add float.
19119
19120         * tests/test-truncl.c: Include <float.h>.
19121         (zero): Remove variable.
19122         (minus_zero): New variable.
19123         (main): Use minus_zero instead of -zero.
19124         * modules/truncl-tests (Depends-on): Add float.
19125
19126         * tests/test-frexpl.c (zero): Remove variable.
19127         (minus_zero): New variable.
19128         (main): Use minus_zero instead of -zero.
19129         * modules/frexpl-tests (Depends-on): Add float.
19130
19131         * tests/test-isnan.c (zerol): Remove variable.
19132         (minus_zerol): New variable.
19133         (test_long_double): Use minus_zerol instead of -zerol.
19134         * modules/isnan-tests (Depends-on): Add float.
19135
19136         * tests/test-isnanl.h (zero): Remove variable.
19137         (minus_zero): New variable.
19138         (main): Use minus_zero instead of -zero.
19139         * modules/isnanl-nolibm-tests (Depends-on): Add float.
19140         * modules/isnanl-tests (Depends-on): Add float.
19141
19142         * tests/test-ldexpl.c (zero): Remove variable.
19143         (minus_zero): New variable.
19144         (main): Use minus_zero instead of -zero.
19145         * modules/ldexpl-tests (Depends-on): Add float.
19146
19147         * tests/test-snprintf-posix.h (zerol): Remove variable.
19148         (minus_zerol): New variable.
19149         (test_function): Use minus_zerol instead of -zerol.
19150         * modules/snprintf-posix-tests (Depends-on): Add float.
19151         * modules/vsnprintf-posix-tests (Depends-on): Add float.
19152
19153         * tests/test-sprintf-posix.h (zerol): Remove variable.
19154         (minus_zerol): New variable.
19155         (test_function): Use minus_zerol instead of -zerol.
19156         * modules/sprintf-posix-tests (Depends-on): Add float.
19157         * modules/vsprintf-posix-tests (Depends-on): Add float.
19158
19159         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
19160         (minus_zerol): New variable.
19161         (test_function): Use minus_zerol instead of -zerol.
19162         * modules/vasnprintf-posix-tests (Depends-on): Add float.
19163
19164         * tests/test-vasprintf-posix.c (zerol): Remove variable.
19165         (minus_zerol): New variable.
19166         (test_function): Use minus_zerol instead of -zerol.
19167         * modules/vasprintf-posix-tests (Depends-on): Add float.
19168
19169 2008-10-07  Simon Josefsson  <simon@josefsson.org>
19170
19171         * MODULES.html.sh (Support for building documentation): Mention
19172         pmccabe2html.  Sort entries.
19173
19174         Add pmccabe2html module, from gnupdf.
19175         * build-aux/pmccabe.css: New file.
19176         * build-aux/pmccabe2html: New file.
19177         * m4/pmccabe2html.m4: New file.
19178         * modules/pmccabe2html: New file.
19179
19180 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
19181
19182         flock: new module
19183         * MODULES.html.sh: Add to list of modules.
19184         * lib/flock.c: flock implementation for Windows and Unix systems
19185         which have fcntl.
19186         * doc/glibc-functions/flock.texi: Update documentation.
19187         * lib/sys_file.in.h: <sys/file.h> header file.
19188         * m4/flock.m4: M4 macros.
19189         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
19190         * modules/flock: flock module.
19191         * modules/flock-tests: flock tests module.
19192         * modules/sys_file: sys/file.h module.
19193         * tests/test-flock.c: test suite for flock.
19194
19195 2008-10-06  Jim Meyering  <meyering@redhat.com>
19196
19197         bootstrap: check for LT_INIT more portably still ;-)
19198         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
19199         Spotted by Bruno Haible.
19200
19201 2008-10-06  Eric Blake  <ebb9@byu.net>
19202
19203         test-signbit: avoid tripping Irix cc bug on -0.0L
19204         * tests/test-signbit.c (minus_zerol): Delete, and replace with
19205         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
19206         entire testsuite consistent and avoids an Irix 6.2 bug.
19207
19208 2008-10-05  Bruno Haible  <bruno@clisp.org>
19209             Jim Meyering  <jim@meyering.net>
19210
19211         Add an option for ignoring EPIPE during close_stdout.
19212         * lib/closeout.h: Include <stdbool.h>.
19213         (close_stdout_set_ignore_EPIPE): New declaration.
19214         * lib/closeout.c: Include <stdbool.h>.
19215         (ignore_EPIPE): New variable.
19216         (close_stdout_set_ignore_EPIPE): New function.
19217         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
19218         * lib/close-stream.c (close_stream): Mention the possible EPIPE
19219         failure.
19220         * modules/closeout (Depends-on): Add stdbool.
19221
19222 2008-10-05  Bruno Haible  <bruno@clisp.org>
19223
19224         * modules/accept: New file.
19225         * modules/bind: New file.
19226         * modules/connect: New file.
19227         * modules/getpeername: New file.
19228         * modules/getsockname: New file.
19229         * modules/getsockopt: New file.
19230         * modules/listen: New file.
19231         * modules/recv: New file.
19232         * modules/recvfrom: New file.
19233         * modules/send: New file.
19234         * modules/sendto: New file.
19235         * modules/setsockopt: New file.
19236         * modules/socket: New file.
19237         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
19238         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
19239         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
19240         the particular module is requested. Add a link warning when the
19241         particular module is not requested.
19242         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
19243         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
19244         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
19245         the particular module is requested.
19246         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
19247         gl_SYS_SOCKET_H_DEFAULTS): New macros.
19248         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
19249         * modules/sys_socket (Depends-on): Add link-warning.
19250         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
19251         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
19252         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
19253         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
19254         GL_LINK_WARNING.
19255         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
19256         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
19257         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
19258         * doc/posix-functions/getpeername.texi: Mention the new module
19259         'getpeername'.
19260         * doc/posix-functions/getsockname.texi: Mention the new module
19261         'getsockname'.
19262         * doc/posix-functions/getsockopt.texi: Mention the new module
19263         'getsockopt'.
19264         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
19265         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
19266         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
19267         * doc/posix-functions/send.texi: Mention the new module 'send'.
19268         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
19269         * doc/posix-functions/setsockopt.texi: Mention the new module
19270         'setsockopt'.
19271         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
19272         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
19273         listen, connect, accept.
19274         * modules/select-tests (Depends-on): Likewise.
19275
19276 2008-10-05  Bruno Haible  <bruno@clisp.org>
19277
19278         * lib/winsock.c (strerror): Remove unused #undef.
19279         (rpl_close): Remove unused local variable.
19280
19281         * modules/sys_socket (Depends-on); Add errno.
19282
19283 2008-10-05  Bruno Haible  <bruno@clisp.org>
19284
19285         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
19286         (select): Add a link warning when the 'select' module is not used.
19287         * modules/sys_select (Depends-on): Add link-warning.
19288         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
19289         Suggested by Paolo Bonzini.
19290
19291 2008-10-05  Jim Meyering  <meyering@redhat.com>
19292
19293         bootstrap: check for LT_INIT more portably
19294         * build-aux/bootstrap: Avoid using grep -E, since it's not
19295         portable enough.  Suggestion from Bruno Haible.
19296
19297 2008-10-05  Bruno Haible  <bruno@clisp.org>
19298
19299         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
19300         as being fixed by gnulib.
19301
19302 2008-10-05  Bruno Haible  <bruno@clisp.org>
19303
19304         * modules/select-tests: New file, mostly copied from
19305         modules/sys_select-tests.
19306         * tests/test-select.c: New file, mostly copied from
19307         tests/test-sys_select.c.
19308         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
19309         * modules/sys_select-tests (Depends-on): Remove all dependencies.
19310         (Makefile.am): Remove test_sys_select_LDADD.
19311
19312         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
19313         to an undefined symbol, for an error message.
19314         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
19315         (gl_SYS_SELECT_H_DEFAULTS): New macro.
19316         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
19317         winsock-select.c here.
19318         * modules/sys_select (Files): Remove lib/winsock-select.c.
19319         (Depends-on): Remove alloca.
19320         (Makefile.am): Substitute GNULIB_SELECT.
19321         * modules/select: New file.
19322         * doc/posix-functions/select.texi: Update.
19323
19324 2008-10-05  Bruno Haible  <bruno@clisp.org>
19325
19326         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
19327         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
19328         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
19329         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
19330         getdtablesize.
19331         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
19332         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
19333
19334 2008-10-05  Bruno Haible  <bruno@clisp.org>
19335
19336         * modules/getdtablesize-tests: New file.
19337         * tests/test-getdtablesize.c: New file.
19338
19339         New module 'getdtablesize'.
19340         * lib/unistd.in.h (getdtablesize): New declaration.
19341         * lib/getdtablesize.c: New file.
19342         * m4/getdtablesize.m4: New file.
19343         * modules/getdtablesize: New file.
19344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19345         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
19346         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
19347         HAVE_GETDTABLESIZE.
19348         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
19349
19350 2008-10-05  Bruno Haible  <bruno@clisp.org>
19351
19352         * modules/sched (Makefile.am): Fix typo.
19353         Reported by Simon Josefsson.
19354
19355 2008-10-05  Jim Meyering  <meyering@redhat.com>
19356
19357         bootstrap: check for LT_INIT, too
19358         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
19359         are deprecated.  Suggestion from Ralf Wildenhues.
19360
19361 2008-10-05  Bruno Haible  <bruno@clisp.org>
19362
19363         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
19364         overriding them by ours.
19365         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
19366
19367 2008-10-05  Jim Meyering  <meyering@redhat.com>
19368
19369         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
19370         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
19371         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
19372
19373 2008-10-04  Bruno Haible  <bruno@clisp.org>
19374
19375         * modules/dup2 (License): Change to LGPLv2+.
19376         * modules/sleep (License): Likewise.
19377         * modules/perror (License): Likewise.
19378         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
19379         Blake.
19380         * modules/signal (License): Likewise.
19381         * modules/sigprocmask (License): Likewise.
19382         * modules/raise (License): Change to LGPLv2+, with approval by Jim
19383         Meyering.
19384
19385 2008-10-04  Bruno Haible  <bruno@clisp.org>
19386
19387         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
19388         Reported by Rainer Tammer <tammer@tammer.net>.
19389
19390 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
19391             Bruno Haible  <bruno@clisp.org>
19392
19393         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
19394         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
19395         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
19396
19397 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
19398
19399         filevercmp: new module
19400         * lib/filevercmp.h: New function filevercmp comparing version strings.
19401         * lib/filevercmp.c: Implementation of filevercmp function.
19402         * modules/filevercmp: Module metadata.
19403         * tests/test-filevercmp.c: Unit test for new module.
19404         * modules/filevercmp-tests: Unit test metadata.
19405         * MODULES.html.sh: Add filevercmp module.
19406
19407 2008-10-03  Bruno Haible  <bruno@clisp.org>
19408
19409         * lib/c-ctype.h: Add comment.
19410         Reported by Jim Meyering.
19411
19412 2008-10-02  Bruno Haible  <bruno@clisp.org>
19413
19414         * modules/posix_spawn-internal (Depends-on): Add 'open'.
19415
19416 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19417
19418         * build-aux/bootstrap: Allow renaming bootstrap, and change the
19419         name of bootstrap.conf accordingly.
19420
19421 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19422
19423         * build-aux/bootstrap: Install git-merge-changelog configuration
19424         items into .gitconfig if needed.
19425
19426 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19427
19428         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
19429         git repository, and initialize/update it accordingly.
19430
19431 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
19432
19433         * modules/fsync-tests: New file.
19434         * tests/test-fsync.c: New file.
19435
19436         New module 'fsync'.
19437         * lib/fsync.c: New file.
19438         * m4/fsync.m4: New file.
19439         * modules/fsync: New file.
19440         * lib/unistd.in.h (fsync): New declaration.
19441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
19442         GNULIB_FSYNC and HAVE_FSYNC.
19443         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
19444         * MODULES.html.sh (posix_functions): Add fsync.
19445         * doc/posix-functions/fsync.texi: Mention the new module.
19446
19447 2008-10-02  Jim Meyering  <meyering@redhat.com>
19448
19449         fts.c: sync with similar code from coreutils' remove.c
19450         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
19451         Guard also with "#if defined __linux__", since for now at least,
19452         this code is Linux-kernel-specific.
19453
19454 2008-10-02  Jim Meyering  <meyering@redhat.com>
19455
19456         fts: bug fixes
19457         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
19458         Include <sys/vfs.h>, not <sys/statfs.h>.
19459
19460         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
19461         Include <sys/vfs.h>, not <sys/statfs.h>.
19462
19463 2008-10-01  Bruno Haible  <bruno@clisp.org>
19464
19465         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
19466         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
19467         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
19468         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
19469         * doc/posix-functions/posix_spawnp.texi: Likewise.
19470         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
19471         whether posix_spawn actually works.
19472         * m4/pipe.m4 (gl_PIPE): Likewise.
19473         * modules/execute (Files): Add m4/posix_spawn.m4.
19474         * modules/pipe (Files): Add m4/posix_spawn.m4.
19475         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
19476
19477 2008-10-01  Jim Meyering  <meyering@redhat.com>
19478
19479         remove trailing spaces
19480         * NEWS: Likewise.
19481         * lib/poll.c (poll): Likewise.
19482         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
19483         * lib/winsock.c (rpl_close): Likewise.
19484         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
19485         * modules/yield: Likewise.
19486         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
19487         * tests/test-sys_select.c (connect_to_socket): Likewise.
19488
19489         fts.c: adjust a new interface to be more generally useful
19490         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
19491         (fts_build): Adjust caller.
19492
19493 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19494
19495         * modules/cond-tests: New file.
19496         * tests/test-cond.c: New file.
19497
19498 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19499             Bruno Haible  <bruno@clisp.org>
19500
19501         * modules/cond (Dependencies): Add errno, time.
19502         * lib/glthread/cond.h: Include <time.h>.
19503         (gl_cond_define, gl_cond_define_initialized): Use the same definition
19504         across platforms.
19505
19506 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19507             Bruno Haible  <bruno@clisp.org>
19508
19509         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
19510
19511 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19512             Bruno Haible  <bruno@clisp.org>
19513
19514         * modules/tls-tests (Depends-on): Add thread, yield.
19515         (configure.ac): Remove all checks.
19516         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
19517         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
19518         gl_thread_self): Remove definitions. Include glthread/thread.h and
19519         glthread/yield.h instead.
19520         (test_tls): Pass an additional NULL argument to gl_thread_join.
19521
19522 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19523             Bruno Haible  <bruno@clisp.org>
19524
19525         * modules/lock-tests (Depends-on): Add thread, yield.
19526         (configure.ac): Remove all checks.
19527         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
19528         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
19529         gl_thread_self): Remove definitions. Include glthread/thread.h and
19530         glthread/yield.h instead.
19531         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
19532         additional NULL argument to gl_thread_join.
19533
19534 2008-09-30  Bruno Haible  <bruno@clisp.org>
19535
19536         Fix the Win32 implementation of the 'thread' module.
19537         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
19538         pointer type.
19539         (gl_thread_self): Invoke gl_thread_self_func.
19540         (gl_thread_self_func): New declaration.
19541         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
19542         (do_init_self_key, init_self_key): New functions.
19543         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
19544         Remove some fields.
19545         (running_threads, running_lock): Remove variables.
19546         (get_current_thread_handle): New function.
19547         (gl_thread_self_func, wrapper_func, glthread_create_func,
19548         glthread_join_func, gl_thread_exit_func): Largely rewritten and
19549         simplified.
19550
19551 2008-09-30  Bruno Haible  <bruno@clisp.org>
19552
19553         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
19554         files.
19555
19556 2008-09-30  Jim Meyering  <meyering@redhat.com>
19557
19558         fts.m4: correct the test for statfs.f_type
19559         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
19560         when checking for statfs.f_type.
19561
19562 2008-09-15  Simon Josefsson  <simon@josefsson.org>
19563
19564         tests: avoid some compiler warnings
19565         * tests/test-memchr.c (main): Pass NULL indirectly.
19566         * tests/test-getdate.c (main): Remove unused variable 'ret'.
19567
19568 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
19569
19570         getdate.y: disallow countable dayshifts like "4 yesterday ago"
19571         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
19572         exactly specified dayshifts.
19573         (dayshift): New rule.
19574         (rel): Add dayshift.
19575         (relative_time_table) [tomorrow, yesterday, today, now]:
19576         Use tDAY_SHIFT in place of tDAY_UNIT.
19577         * tests/test-getdate.c: Add tests for now-disallowed countable
19578         dayshifts, e.g., "4 yesterday ago".
19579
19580 2008-09-29  Bruno Haible  <bruno@clisp.org>
19581
19582         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
19583         * tests/test-posix_spawn1.in.sh: Renamed from
19584         tests/test-posix_spawn.in.sh.
19585         * tests/test-posix_spawn2.c: New file.
19586         * tests/test-posix_spawn2.in.sh: New file.
19587         * modules/posix_spawnp-tests (Files): Update.
19588         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
19589
19590 2008-09-29  Bruno Haible  <bruno@clisp.org>
19591
19592         Propagate effects of putenv/setenv/unsetenv to child processes.
19593         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
19594         * lib/pipe.c (create_pipe): Likewise.
19595
19596 2008-09-29  Bruno Haible  <bruno@clisp.org>
19597
19598         Enable use of shell scripts as executables in mingw.
19599         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
19600         run the program as a shell script.
19601         * lib/pipe.c (create_pipe): Likewise.
19602         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
19603         resulting array.
19604
19605 2008-09-29  Eric Blake  <ebb9@byu.net>
19606
19607         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
19608
19609 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
19610
19611         * doc/posix-functions/accept.texi: Update mingw problems.
19612         * doc/posix-functions/bind.texi: Update mingw problems.
19613         * doc/posix-functions/close.texi: Update mingw problems.
19614         * doc/posix-functions/connect.texi: Update mingw problems.
19615         * doc/posix-functions/getpeername.texi: Update mingw problems.
19616         * doc/posix-functions/getsockname.texi: Update mingw problems.
19617         * doc/posix-functions/getsockopt.texi: Update mingw problems.
19618         * doc/posix-functions/ioctl.texi: Update mingw problems.
19619         * doc/posix-functions/listen.texi: Update mingw problems.
19620         * doc/posix-functions/recv.texi: Update mingw problems.
19621         * doc/posix-functions/recvfrom.texi: Update mingw problems.
19622         * doc/posix-functions/select.texi: Update mingw problems.
19623         * doc/posix-functions/send.texi: Update mingw problems.
19624         * doc/posix-functions/sendto.texi: Update mingw problems.
19625         * doc/posix-functions/setsockopt.texi: Update mingw problems.
19626         * doc/posix-functions/socket.texi: Update mingw problems.
19627
19628 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
19629             Bruno Haible  <bruno@clisp.org>
19630
19631         * lib/sys_select.in.h: Include sys/time.h.
19632         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
19633         * modules/sys_select: Depend on sys_time.
19634         * tests/test-sys_select.c: Test that sys/select.h defines struct
19635         timeval fully.
19636
19637 2008-09-29  Bruno Haible  <bruno@clisp.org>
19638
19639         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
19640         * lib/sys_select.in.h: Likewise.
19641
19642 2008-09-29  Bruno Haible  <bruno@clisp.org>
19643
19644         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
19645
19646 2008-09-29  Bruno Haible  <bruno@clisp.org>
19647
19648         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
19649         Set LIBSOCKET instead of augmenting LIBS.
19650         * modules/sockets (Link): New section.
19651         * modules/sockets-tests (test_sockets_LDADD): New variable.
19652         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
19653         * modules/poll-tests (test_poll_LDADD): New variable.
19654         * NEWS: Document the change.
19655
19656 2008-09-29  Bruno Haible  <bruno@clisp.org>
19657
19658         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
19659         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
19660         ARPA_INET_H directly.
19661         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
19662
19663 2008-09-28  Bruno Haible  <bruno@clisp.org>
19664
19665         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
19666         from gl_HEADER_SYS_SOCKET.
19667         (gl_HEADER_SYS_SOCKET): Invoke it.
19668         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19669
19670 2008-09-28  Bruno Haible  <bruno@clisp.org>
19671
19672         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
19673         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
19674         Needed on OSF/1 4.0.
19675
19676 2008-09-28  Bruno Haible  <bruno@clisp.org>
19677
19678         Override open more carefully.
19679         * lib/open.c (orig_open): New function.
19680         (rpl_open): Use orig_open instead of open.
19681         * lib/fcntl.in.h: Add special invocation convention.
19682         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
19683         (gl_FUNC_OPEN): Invoke it.
19684
19685         Override freopen more carefully.
19686         * lib/freopen.c (orig_freopen): New function.
19687         (rpl_freopen): Use orig_freopen instead of freopen.
19688         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
19689         (gl_FUNC_FREOPEN): Invoke it.
19690
19691         Override fopen more carefully.
19692         * lib/fopen.c (orig_fopen): New function.
19693         (rpl_fopen): Use orig_fopen instead of fopen.
19694         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
19695         (gl_FUNC_FOPEN): Invoke it.
19696         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
19697
19698 2008-09-28  Bruno Haible  <bruno@clisp.org>
19699
19700         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
19701         SIGPIPE.
19702
19703 2008-09-28  Bruno Haible  <bruno@clisp.org>
19704
19705         * tests/test-sigaction.c (handler, main): Disable the check whether
19706         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
19707         glibc systems with LinuxThreads.
19708
19709 2008-09-28  Bruno Haible  <bruno@clisp.org>
19710
19711         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
19712
19713         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
19714         with AIX xlc.
19715         * lib/fcntl.in.h (open): Likewise.
19716         Reported by Rainer Tammer <tammer@tammer.net>.
19717
19718 2008-09-28  Bruno Haible  <bruno@clisp.org>
19719
19720         * modules/posix_spawnp-tests: New file.
19721         * tests/test-posix_spawn.c: New file.
19722         * tests/test-posix_spawn.in.sh: New file.
19723
19724         New module 'posix_spawnp'.
19725         * modules/posix_spawnp: New file.
19726         * lib/spawnp.c: New file, from GNU libc with modifications.
19727         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
19728
19729         New module 'posix_spawn'.
19730         * modules/posix_spawn: New file.
19731         * lib/spawn.c: New file, from GNU libc with modifications.
19732         * doc/posix-functions/posix_spawn.texi: Mention the new module.
19733
19734         New module 'posix_spawnattr_destroy'.
19735         * modules/posix_spawnattr_destroy: New file.
19736         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
19737         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
19738         module.
19739
19740         New module 'posix_spawnattr_setsigmask'.
19741         * modules/posix_spawnattr_setsigmask: New file.
19742         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
19743         modifications.
19744         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
19745         new module.
19746
19747         New module 'posix_spawnattr_getsigmask'.
19748         * modules/posix_spawnattr_getsigmask: New file.
19749         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
19750         modifications.
19751         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
19752         new module.
19753
19754         New module 'posix_spawnattr_setsigdefault'.
19755         * modules/posix_spawnattr_setsigdefault: New file.
19756         * lib/spawnattr_setdefault.c: New file, from GNU libc with
19757         modifications.
19758         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
19759         new module.
19760
19761         New module 'posix_spawnattr_getsigdefault'.
19762         * modules/posix_spawnattr_getsigdefault: New file.
19763         * lib/spawnattr_getdefault.c: New file, from GNU libc with
19764         modifications.
19765         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
19766         new module.
19767
19768         New module 'posix_spawnattr_setschedpolicy'.
19769         * modules/posix_spawnattr_setschedpolicy: New file.
19770         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
19771         modifications.
19772         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
19773         new module.
19774
19775         New module 'posix_spawnattr_getschedpolicy'.
19776         * modules/posix_spawnattr_getschedpolicy: New file.
19777         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
19778         modifications.
19779         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
19780         new module.
19781
19782         New module 'posix_spawnattr_setschedparam'.
19783         * modules/posix_spawnattr_setschedparam: New file.
19784         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
19785         modifications.
19786         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
19787         new module.
19788
19789         New module 'posix_spawnattr_getschedparam'.
19790         * modules/posix_spawnattr_getschedparam: New file.
19791         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
19792         modifications.
19793         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
19794         new module.
19795
19796         New module 'posix_spawnattr_setpgroup'.
19797         * modules/posix_spawnattr_setpgroup: New file.
19798         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
19799         modifications.
19800         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
19801         module.
19802
19803         New module 'posix_spawnattr_getpgroup'.
19804         * modules/posix_spawnattr_getpgroup: New file.
19805         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
19806         modifications.
19807         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
19808         module.
19809
19810         New module 'posix_spawnattr_setflags'.
19811         * modules/posix_spawnattr_setflags: New file.
19812         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
19813         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
19814         module.
19815
19816         New module 'posix_spawnattr_getflags'.
19817         * modules/posix_spawnattr_getflags: New file.
19818         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
19819         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
19820         module.
19821
19822         New module 'posix_spawnattr_init'.
19823         * modules/posix_spawnattr_init: New file.
19824         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
19825         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
19826         module.
19827
19828         New module 'posix_spawn_file_actions_destroy'.
19829         * modules/posix_spawn_file_actions_destroy: New file.
19830         * lib/spawn_faction_destroy.c: New file, from GNU libc with
19831         modifications.
19832         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
19833         the new module.
19834
19835         New module 'posix_spawn_file_actions_addopen'.
19836         * modules/posix_spawn_file_actions_addopen: New file.
19837         * lib/spawn_faction_addopen.c: New file, from GNU libc with
19838         modifications.
19839         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
19840         the new module.
19841
19842         New module 'posix_spawn_file_actions_adddup2'.
19843         * modules/posix_spawn_file_actions_adddup2: New file.
19844         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
19845         modifications.
19846         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
19847         the new module.
19848
19849         New module 'posix_spawn_file_actions_addclose'.
19850         * modules/posix_spawn_file_actions_addclose: New file.
19851         * lib/spawn_faction_addclose.c: New file, from GNU libc with
19852         modifications.
19853         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
19854         the new module.
19855
19856         New module 'posix_spawn_file_actions_init'.
19857         * modules/posix_spawn_file_actions_init: New file.
19858         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
19859         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
19860         new module.
19861
19862         New module 'posix_spawn-internal'.
19863         * modules/posix_spawn-internal: New file.
19864         * lib/spawn_int.h: New file, from GNU libc with modifications.
19865         * lib/spawni.c: New file, from GNU libc with modifications.
19866         * m4/posix_spawn.m4: New file.
19867
19868         New module 'spawn'.
19869         * modules/spawn: New file.
19870         * lib/spawn.in.h: New file, from GNU libc with modifications.
19871         * m4/spawn_h.m4: New file.
19872         * doc/posix-headers/spawn.texi: Mention the new module.
19873
19874 2008-09-28  Bruno Haible  <bruno@clisp.org>
19875
19876         * modules/sched-tests: New file.
19877         * tests/test-sched.c: New file.
19878
19879         New module 'sched'.
19880         * modules/sched: New file.
19881         * lib/sched.in.h: New file.
19882         * m4/sched_h.m4: New file.
19883         * doc/posix-headers/sched.texi: Mention the new module.
19884
19885 2008-09-27  Eric Blake  <ebb9@byu.net>
19886
19887         Fix previous patch, and tweak references to $0.
19888         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
19889         (func_version, func_gnulib_dir): Don't call this program
19890         gnulib-tool.
19891         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
19892         with using $0 in function.
19893         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
19894         (func_fatal_error): Reuse the name the user invoked us with.
19895
19896 2008-09-27  Bruno Haible  <bruno@clisp.org>
19897
19898         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
19899         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
19900         (gl_ICONV_H): Not here.
19901         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
19902         instead of assigning ICONV_H directly.
19903
19904         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
19905         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
19906         WCHAR_H directly.
19907
19908 2008-09-27  Bruno Haible  <bruno@clisp.org>
19909
19910         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
19911         * modules/arpa_inet (Depends-on): Add link-warning.
19912         (Makefile.am): Insert the definition of GL_LINK-WARNING.
19913         * modules/unistd (Makefile.am): Likewise.
19914
19915 2008-09-26  Bruno Haible  <bruno@clisp.org>
19916
19917         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
19918         variables.
19919         (func_version): Essentially copied from gnulib-tool.
19920         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
19921         func_readlink): Copied from gnulib-tool.
19922
19923 2008-09-26  Bruno Haible  <bruno@clisp.org>
19924
19925         * gnulib-tool (func_version): Change directory to $gnulib_dir before
19926         invoking git-version-gen.
19927
19928 2008-09-26  Bruno Haible  <bruno@clisp.org>
19929
19930         * posix-modules: Update to directory names changed on 2008-01-19.
19931         Remove commas in output before splitting into words. No more need to
19932         avoid 'ftruncate' since 2007-02-19.
19933
19934 2008-09-26  Bruno Haible  <bruno@clisp.org>
19935
19936         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
19937
19938 2008-09-26  Bruno Haible  <bruno@clisp.org>
19939
19940         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
19941         * modules/fwriteerror (Depends-on): Add errno.
19942
19943 2008-09-26  Bruno Haible  <bruno@clisp.org>
19944
19945         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
19946         * tests/test-vc-list-files-cvs.sh: Likewise.
19947
19948 2008-09-26  Bruno Haible  <bruno@clisp.org>
19949
19950         * doc/posix-headers/sys_resource.texi: Reorder items.
19951
19952 2008-09-26  Jim Meyering  <meyering@redhat.com>
19953
19954         fts: tweak inode comparison function
19955         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
19956         inode numbers, as documented.
19957
19958         fts: sort dirent entries on inode number before traversing
19959         This avoids a quadratic, seek-related performance penalty when
19960         operating on a directory containing many entries (measurable at 10k;
19961         3.5 hours at 2 million entries with a cold cache) on certain types
19962         of file systems, including ext3 and ext4, but not tmpfs.
19963         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
19964         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
19965         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
19966         (fs_handles_readdir_ordered_dirents_efficiently): New function.
19967         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
19968         (fts_build): Set the stat.st_ino member from D_INO.
19969         If it is likely to be useful, sort dirent entries on inode number.
19970
19971         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
19972         and the struct statfs.f_type member.
19973         * modules/fts (Depends-on): Add d-ino.
19974
19975 2008-09-26  Bruno Haible  <bruno@clisp.org>
19976
19977         * modules/sigpipe-die (Depends-on): Add sigpipe.
19978
19979         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
19980         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
19981         and GNULIB_STDIO_H_SIGPIPE are set.
19982         * lib/stdio-write.c: New file.
19983         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
19984         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
19985         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
19986         REPLACE_STDIO_WRITE_FUNCS.
19987         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
19988         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
19989         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
19990         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
19991         * modules/stdio (Files): Add lib/stdio-write.c.
19992         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
19993         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
19994         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
19995         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
19996         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
19997         REPLACE_FPRINTF_POSIX.
19998         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
19999         REPLACE_PRINTF_POSIX.
20000         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
20001         REPLACE_VFPRINTF_POSIX.
20002         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
20003         REPLACE_VPRINTF_POSIX.
20004         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
20005         SIGPIPE issue.
20006         * doc/posix-functions/fputc.texi: Likewise.
20007         * doc/posix-functions/fputs.texi: Likewise.
20008         * doc/posix-functions/fwrite.texi: Likewise.
20009         * doc/posix-functions/printf.texi: Likewise.
20010         * doc/posix-functions/putc.texi: Likewise.
20011         * doc/posix-functions/putchar.texi: Likewise.
20012         * doc/posix-functions/puts.texi: Likewise.
20013         * doc/posix-functions/vfprintf.texi: Likewise.
20014         * doc/posix-functions/vprintf.texi: Likewise.
20015
20016         * modules/safe-write (Depends-on): Add write.
20017
20018         * modules/sigpipe-tests: New file.
20019         * tests/test-sigpipe.c: New file.
20020         * tests/test-sigpipe.sh: New file.
20021
20022         * modules/write: New file.
20023         * lib/unistd.in.h: Include <sys/types.h>.
20024         (write): New declaration.
20025         * lib/write.c: New file.
20026         * m4/write.m4: New file.
20027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20028         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
20029         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
20030         GNULIB_WRITE, REPLACE_WRITE.
20031         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
20032         and the SIGPIPE issue.
20033
20034         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
20035         (raise): New declaration.
20036         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
20037         (ext_signal): New function.
20038         (rpl_raise): New function.
20039         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
20040         GNULIB_SIGNAL_H_SIGPIPE.
20041         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
20042         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
20043
20044         * modules/sigpipe: New file.
20045         * m4/sigpipe.m4: New file.
20046
20047 2008-09-25  Derek Price  <derek@ximbiot.com>
20048             Bruno Haible  <bruno@clisp.org>
20049
20050         * gnulib-tool (func_import): Report all license incompatibilities, not
20051         just the first one.
20052
20053 2008-09-25  Bruno Haible  <bruno@clisp.org>
20054
20055         * gnulib-tool (func_import): When computing the edits, consider not
20056         only the Makefile.ams that exist but also those that will be generated.
20057
20058 2008-09-25  Simon Josefsson  <simon@josefsson.org>
20059
20060         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
20061         fixes gnulib-tool --test warning about duplicate dependency.
20062
20063 2008-09-25  Bruno Haible  <bruno@clisp.org>
20064
20065         * gnulib-tool: Don't ask the user to perform edits in the generated
20066         Makefile.ams.
20067         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
20068         apply to the Makefile.am being generated.
20069         (func_emit_tests_Makefile_am): Execute edits that apply to the
20070         Makefile.am being generated.
20071         (func_import): Setup list of Makefile.am edits before emitting the
20072         Makefile.ams, not at the end.
20073         (func_create_testdir): Update.
20074         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20075
20076 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20077
20078         * gnulib-tool (func_import): Store the --tests-base option in the
20079         comment in gnulib-cache.m4.
20080
20081 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
20082
20083         * NEWS: Document increased portability that sys_select now provides.
20084
20085         * lib/sys_select.in.h: Install select wrapper.
20086         * lib/sys_socket.in.h: Use more descriptive name when there is no
20087         select wrapper.
20088         * lib/winsock-select.c: New.
20089         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
20090         Require gl_HEADER_SYS_SOCKET.
20091         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
20092         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
20093         * tests/test-sys_select.c: Add functional tests.
20094
20095 2008-09-24  Eric Blake  <ebb9@byu.net>
20096
20097         open, fopen: close fd leak in last patch
20098         * lib/open.c (rpl_open): Close fd before returning error.
20099         * lib/fopen.c (rpl_fopen): Close fd before returning error.
20100         * doc/posix-functions/open.texi (open): Document that Irix also
20101         has the bug.
20102         * doc/posix-functions/fopen.texi (fopen): Likewise.
20103         Reported by Paolo Bonzini.
20104
20105 2008-09-24  Bruno Haible  <bruno@clisp.org>
20106
20107         Ensure that a filename ending in a slash cannot be used to access a
20108         non-directory.
20109         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
20110         to check whether it's really a directory.
20111         * lib/fopen.c: Include fcntl.h, unistd.h.
20112         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
20113         and fdopen().
20114         * modules/fopen (Depends-on): Add unistd.
20115         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
20116         * tests/test-fopen.c (main): Likewise.
20117         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
20118         * doc/posix-functions/fopen.texi: Likewise.
20119         Reported by Eric Blake.
20120
20121 2008-09-23  Eric Blake  <ebb9@byu.net>
20122
20123         c-stack: avoid compiler optimizations when provoking overflow
20124         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
20125         recursion harder to optimize, to ensure a stack overflow occurs.
20126         * tests/test-c-stack.c (recurse): Likewise.
20127         Borrowed from libsigsegv.
20128
20129         c-stack: work around Irix sigaltstack bug
20130         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
20131         whether sigaltstack uses wrong end of stack_t (copied in part from
20132         libsigsegv).
20133         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
20134         Irix bug, without requiring an over-allocation.
20135         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
20136         bug.
20137
20138         fopen: document mingw bug on directories
20139         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
20140         not allowing a stream visiting a directory, even though reading
20141         from such a stream is not portable.
20142
20143 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
20144
20145         * lib/poll.c: Rewrite.
20146         * modules/poll: Depend on alloca.
20147
20148 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
20149
20150         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
20151         instead define prototypes for a full set of wrappers.  Ensure
20152         that Cygwin does not use the compatibility code, which is only
20153         for MinGW.
20154         * lib/winsock.c: New.
20155         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
20156         * modules/sys_socket: Add lib/winsock.c.
20157
20158         * modules/poll-tests: Add errno and perror.
20159         * tests/test-poll.c: Use ioctl, not ioctlsocket.
20160
20161 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
20162
20163         * tests/test-poll.c: Downgrade minimum needed Winsock version.
20164
20165 2008-09-23  Bruno Haible  <bruno@clisp.org>
20166
20167         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
20168         * doc/glibc-functions/*: Likewise.
20169
20170 2008-09-23  Simon Josefsson  <simon@josefsson.org>
20171
20172         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
20173         success.
20174
20175 2008-09-22  Eric Blake  <ebb9@byu.net>
20176             Bruno Haible  <bruno@clisp.org>
20177
20178         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
20179         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
20180         supply %A but mishandle pseudo-NaN.
20181         Reported by Simon Josefsson.
20182
20183 2008-09-21  Bruno Haible  <bruno@clisp.org>
20184
20185         * tests/test-lock.c (main): Tweak skip message.
20186         * tests/test-tls.c (main): Likewise.
20187
20188 2008-09-21  Bruno Haible  <bruno@clisp.org>
20189
20190         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
20191         whether 'struct sigaction' has sa_sigaction here...
20192         (gl_PREREQ_SIG_HANDLER_H): ... not here.
20193         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
20194
20195 2008-09-21  Bruno Haible  <bruno@clisp.org>
20196
20197         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
20198         section.
20199         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
20200         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
20201         the new section.
20202         (Support for obsolete systems lacking POSIX:2001): New section.
20203         (String handling <string.h>): Move strdup to the new section.
20204         Suggested by Simon Josefsson and Paolo Bonzini.
20205
20206 2008-09-21  Bruno Haible  <bruno@clisp.org>
20207
20208         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
20209         exponents in %e and %g results on 'long double'. Needed for mingw's
20210         improved *printf functions.
20211         * tests/test-vasprintf-posix.c (test_function): Likewise.
20212         * tests/test-snprintf-posix.h (test_function): Likewise.
20213         * tests/test-sprintf-posix.h (test_function): Likewise.
20214         Reported by Eric Blake.
20215
20216 2008-09-21  Bruno Haible  <bruno@clisp.org>
20217
20218         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
20219         * tests/test-sprintf-posix.h (test_function): Likewise.
20220
20221 2008-09-21  Bruno Haible  <bruno@clisp.org>
20222
20223         * modules/getpass (Depends-on): Add strdup-posix.
20224
20225         New module 'strdup-posix'.
20226         * modules/strdup-posix: New file.
20227         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
20228         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
20229         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20230         REPLACE_STRDUP.
20231         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
20232         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
20233         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20234         strdup-posix.
20235
20236         * modules/strdup (Depends-on): Remove malloc-posix.
20237
20238 2008-09-20  Bruno Haible  <bruno@clisp.org>
20239
20240         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
20241         Wildenhues.
20242
20243 2008-09-20  Bruno Haible  <bruno@clisp.org>
20244
20245         Ensure that wint_t gets defined on IRIX 5.3.
20246         * lib/wchar.in.h (wint_t): Define if not defined by the system.
20247         * lib/wctype.in.h (wint_t): Likewise.
20248         (__wctype_wint_t): Remove type.
20249         (isw*): Use wint_t instead of __wctype_wint_t.
20250         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
20251         * modules/wchar (Files): Add m4/wint_t.m4.
20252         (Makefile.am): Substitute HAVE_WINT_T.
20253         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
20254         * tests/test-wctype.c: Check that wint_t is defined.
20255         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
20256         * doc/posix-headers/wctype.texi: Likewise.
20257         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20258
20259 2008-09-18  Bruno Haible  <bruno@clisp.org>
20260
20261         * gnulib-tool (func_exit): Update comment.
20262
20263 2008-09-18  Simon Josefsson  <simon@josefsson.org>
20264
20265         * modules/getaddrinfo (Depends-on): Remove strdup, this module
20266         assumes strdup exists and does not depend on strdup to return
20267         ENOMEM on out of memory conditions.
20268
20269 2008-09-18  Bruno Haible  <bruno@clisp.org>
20270
20271         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
20272         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
20273         digits for the exponent.
20274
20275 2008-09-18  Jim Meyering  <meyering@redhat.com>
20276             Bruno Haible  <bruno@clisp.org>
20277
20278         * lib/vasnprintf.c (decimal_point_char): Define also if
20279         NEED_PRINTF_INFINITE_LONG_DOUBLE.
20280
20281 2008-09-16  Bruno Haible  <bruno@clisp.org>
20282         and Eric Blake  <ebb9@byu.net>
20283
20284         vasnprintf: support Irix 5.3
20285         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
20286         that mishandle long double infinity.
20287         Reported by Tom G. Christensen.
20288
20289 2008-09-16  Bruno Haible  <bruno@clisp.org>
20290
20291         * doc/glibc-functions/scandir.texi: Mention the function is missing on
20292         Solaris 9.
20293         * doc/glibc-functions/alphasort.texi: Likewise.
20294         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
20295
20296 2008-09-16  Jim Meyering  <meyering@redhat.com>
20297
20298         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
20299         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
20300         a umask modification leak out of a subshell.  Otherwise, the
20301         opensolaris /bin/sh would be accepted and thus cause unwarranted
20302         failures in the coreutils test suite.
20303
20304 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
20305
20306         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
20307         to succeed.
20308
20309 2008-09-16  Jim Meyering  <meyering@redhat.com>
20310
20311         avoid spurious test failure when library is built without ACL support
20312         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
20313         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
20314         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
20315         * tests/test-copy-acl.sh: Likewise.
20316
20317 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20318
20319         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
20320         based on character occurrence counts.
20321
20322 2008-09-15  Eric Blake  <ebb9@byu.net>
20323
20324         tests: avoid some compiler warnings
20325         * tests/test-memchr.c (main): Pass NULL indirectly.
20326         * tests/test-closein.c (main): Avoid unused variable.
20327
20328 2008-09-15  Bruno Haible  <bruno@clisp.org>
20329
20330         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
20331         are missing on OpenBSD 4.0 individually.
20332         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20333
20334 2008-09-15  Bruno Haible  <bruno@clisp.org>
20335
20336         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
20337         * doc/posix-functions/strerror.texi: Mention also Cygwin.
20338         * doc/posix-functions/perror.texi: Likewise.
20339         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
20340         is missing.
20341         Reported by Eric Blake.
20342
20343         * lib/errno.in.h: Use replacement values >= 2000.
20344         Reported by Eric Blake.
20345
20346 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20347
20348         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
20349         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
20350         limit.
20351         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
20352         compareseq was aborted.
20353
20354 2008-09-14  Bruno Haible  <bruno@clisp.org>
20355
20356         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
20357         yvec_edit_count.
20358         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
20359         (fstrcmp_bounded): Simplify result computation accordingly.
20360
20361 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20362
20363         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
20364         (fstrcmp): Define in terms of fstrcmp_bounded.
20365         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
20366         lower_bound argument.
20367         Return quickly if the result is certainly < lower_bound.
20368         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
20369
20370 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20371
20372         * lib/diffseq.h (EARLY_ABORT): New macro.
20373         (compareseq): Change return type to bool. Return true when EARLY_ABORT
20374         evaluates to true.
20375
20376 2008-09-14  Bruno Haible  <bruno@clisp.org>
20377
20378         * modules/perror-tests: New file.
20379         * tests/test-perror.sh: New file.
20380         * tests/test-perror.c: New file.
20381
20382         New module 'perror'.
20383         * lib/stdio.in.h (perror): New declaration.
20384         * lib/perror.c: New file.
20385         * m4/perror.m4: New file.
20386         * modules/perror: New file.
20387         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
20388         * doc/posix-functions/perror.texi: Mention the perror module.
20389         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
20390         REPLACE_PERROR.
20391         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
20392         REPLACE_PERROR.
20393
20394 2008-09-14  Bruno Haible  <bruno@clisp.org>
20395
20396         * modules/stdio (Makefile.am): Reorder to match the order in
20397         lib/stdio.in.h.
20398         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20399
20400 2008-09-13  Bruno Haible  <bruno@clisp.org>
20401
20402         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
20403
20404 2008-09-13  Bruno Haible  <bruno@clisp.org>
20405
20406         Extend strerror to cover the added errno values.
20407         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
20408         (rpl_strerror): Provide error messages for the added errno values and
20409         for the WSA* values.
20410         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
20411         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
20412         strerror.
20413         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
20414         * modules/strerror (Depends-on): Add errno.
20415         * doc/posix-functions/strerror.texi: Document the change.
20416         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
20417         and EOVERFLOW.
20418
20419 2008-09-13  Bruno Haible  <bruno@clisp.org>
20420
20421         * modules/EOVERFLOW: Remove file.
20422         * m4/eoverflow.m4: Remove file.
20423         * modules/EOVERFLOW-tests: Remove file.
20424         * tests/test-EOVERFLOW.c: Remove file.
20425         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
20426         * modules/ftell (Depends-on): Likewise.
20427         * modules/getdelim (Depends-on): Likewise.
20428         * modules/getugroups (Depends-on): Likewise.
20429         * modules/poll (Depends-on): Likewise.
20430         * modules/snprintf (Depends-on): Likewise.
20431         * modules/sprintf-posix (Depends-on): Likewise.
20432         * modules/vasnprintf (Depends-on): Likewise.
20433         * modules/vasprintf (Depends-on): Likewise.
20434         * modules/vfprintf-posix (Depends-on): Likewise.
20435         * modules/vsnprintf (Depends-on): Likewise.
20436         * modules/vsprintf-posix (Depends-on): Likewise.
20437         * modules/xvasprintf (Depends-on): Likewise.
20438         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20439         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
20440         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
20441         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
20442         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20443         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
20444         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
20445         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
20446         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20447         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
20448         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
20449         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
20450         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20451         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
20452         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
20453         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
20454         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20455         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
20456         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
20457         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
20458         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20459         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
20460         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
20461         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
20462         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
20463         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20464         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
20465         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
20466         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
20467         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
20468         * MODULES.html.sh: Remove EOVERFLOW.
20469         * NEWS: Mention the change.
20470
20471 2008-09-13  Bruno Haible  <bruno@clisp.org>
20472
20473         * modules/errno-tests: New file.
20474         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
20475
20476         * lib/errno.in.h: New file.
20477         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
20478         * modules/errno: New file.
20479         * doc/posix-headers/errno.texi: Update documentation.
20480         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
20481
20482 2008-09-13  Bruno Haible  <bruno@clisp.org>
20483
20484         * tests/test-poll.c: Use #if for native Windows, rather than testing
20485         __MSVCRT__.
20486
20487 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20488             Bruno Haible  <bruno@clisp.org>
20489
20490         * lib/glob.c: Don't include <pwd.h> on native Windows.
20491         (WINDOWS32): New macro.
20492         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
20493
20494 2008-09-13  Bruno Haible  <bruno@clisp.org>
20495
20496         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
20497         (ETIMEDOUT): Remove macro.
20498         (glthread_cond_timedwait_multithreaded): New declaration.
20499         (glthread_cond_timedwait): Use it.
20500         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
20501         (glthread_cond_timedwait_multithreaded): New function.
20502
20503 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
20504
20505         * modules/poll-tests: Do not check for io.h.
20506         * tests/test-poll.c: Check for __MSVCRT__ instead.
20507
20508 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
20509
20510         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
20511         * modules/poll-tests: Add inet_pton, stdbool, sockets.
20512         * tests/test-poll.c: Use them.  Use _pipe on Windows.
20513
20514 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
20515
20516         * modules/poll-tests: New.
20517         * tests/test-poll.c: New.
20518
20519 2008-09-12  Eric Blake  <ebb9@byu.net>
20520
20521         frexp: test for NetBSD failure on -0.0
20522         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
20523         not all, bugs from NetBSD 3.0 have been fixed.
20524         * doc/posix-functions/frexp.texi (frexp): Document bug.
20525         Reported by Thomas Klausner.
20526
20527         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
20528         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
20529         literal -0.0.
20530         Reported by Jonathan C. Patschke <jp@centtech.com>.
20531
20532 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20533
20534         * lib/glthread/cond.h: Use dummy implementation also if
20535         USE_WIN32_THREADS.
20536
20537 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20538
20539         * modules/fnmatch-posix (License): Change to LGPLv2+.
20540         * modules/fnmatch-gnu (License): Likewise.
20541
20542 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20543
20544         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
20545
20546 2008-09-11  Jim Meyering  <meyering@redhat.com>
20547
20548         * users.txt: Add gtk-vnc.
20549
20550 2008-09-08  Simon Josefsson  <simon@josefsson.org>
20551
20552         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
20553         rotate amounts.
20554
20555         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
20556         required for 16-bit and 8-bit rotates.
20557         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
20558         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
20559         UINT8_MAX instead of hard-coded constants.
20560         Suggested by Paul Eggert.
20561
20562 2008-09-07  Bruno Haible  <bruno@clisp.org>
20563
20564         * tests/test-striconveh.c (main): Check behaviour when converting from
20565         UTF-7.
20566
20567         Make striconveh work better with stateful encodings.
20568         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
20569         that iconv does not increment the inptr when returning -1/EINVAL.
20570
20571 2008-09-07  Bruno Haible  <bruno@clisp.org>
20572
20573         * build-aux/config.rpath: Update according to libtool-2.2.6.
20574         * build-aux/config.libpath: Likewise.
20575
20576 2008-09-06  Bruno Haible  <bruno@clisp.org>
20577
20578         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
20579         * lib/freadptr.c (freadptr): Likewise.
20580         * lib/freadseek.c (freadptrinc): Likewise.
20581         Reported by Simon Josefsson.
20582
20583 2008-09-06  Bruno Haible  <bruno@clisp.org>
20584
20585         * modules/freadptr (License): Change to LGPLv2+.
20586         * modules/freadseek (License): Likewise.
20587         Suggested by Eric Blake.
20588
20589         * modules/memchr2 (License): Change to LGPLv2+.
20590         Approved by Eric Blake.
20591
20592 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20593             Bruno Haible  <bruno@clisp.org>
20594
20595         Make gnulib-tool work with native 'sed' on AIX.
20596         * gnulib-tool (sed_noop): New variable.
20597         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
20598         func_add_or_update, func_create_testdir): Use it to initialize sed
20599         script variables.
20600         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20601
20602 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
20603             Bruno Haible  <bruno@clisp.org>
20604
20605         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
20606         also works after #include directives.
20607
20608 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
20609
20610         getdate.y: reject an out-of-range timezone value
20611         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
20612         the range [-24...+24].  When specified with only one or two digits,
20613         * tests/test-getdate.c: Tests for the fix.
20614         * doc/getdate.texi: Document this change.
20615
20616 2008-09-03  Bruno Haible  <bruno@clisp.org>
20617
20618         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
20619
20620 2008-09-02  Simon Josefsson  <simon@josefsson.org>
20621
20622         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
20623         <bruce.korb@gmail.com> with ideas from Ben Pfaff
20624         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
20625         Blake <ebb9@byu.net>.
20626
20627         * tests/test-bitrotate.c: Add more test vectors.
20628
20629 2008-09-02  Eric Blake  <ebb9@byu.net>
20630
20631         vasnprintf-posix: handle large precision via %.*d
20632         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
20633         when handling it ourselves.
20634         * tests/test-vasnprintf-posix.c (test_function): Add test.
20635         * tests/test-snprintf-posix.h (test_function): Likewise.
20636         * tests/test-sprintf-posix.h (test_function): Likewise.
20637         * tests/test-vasprintf-posix.c (test_function): Likewise.
20638         Reported by Alain Guibert.
20639
20640 2008-09-01  Eric Blake  <ebb9@byu.net>
20641
20642         c-stack: make configure-time check more robust
20643         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
20644         successful sigaction call.
20645         Reported by Tom G. Christensen.
20646
20647 2008-09-01  Bruno Haible  <bruno@clisp.org>
20648
20649         New module 'findprog-lgpl'.
20650         * modules/findprog-lgpl: New file.
20651         * lib/findprog-lgpl.c: New file.
20652         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
20653         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
20654         to decide whether to use strdup or xstrdup, concatenated_filename or
20655         xconcatenated_filename.
20656
20657 2008-09-01  Bruno Haible  <bruno@clisp.org>
20658
20659         Split module 'concat-filename' into 'concat-filename' (LGPL) and
20660         'xconcat-filename' (GPL).
20661         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
20662         (License): Change to LGPLv2+.
20663         * modules/xconcat-filename: New file.
20664         * lib/concat-filename.h (concatenated_filename): Change specification.
20665         (xconcatenated_filename): New declaration.
20666         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
20667         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
20668         memory situations.
20669         * lib/xconcat-filename.c: New file.
20670         * NEWS: Mention the change.
20671         * lib/findprog.c: Include concat-filename.h, not filename.h.
20672         (find_in_path): Use xconcatenated_filename instead of
20673         concatenated_filename.
20674         * lib/javacomp.c: Include concat-filename.h, not filename.h.
20675         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
20676         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
20677         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
20678         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
20679         instead of concatenated_filename.
20680         * lib/javaexec.c: Include concat-filename.h, not filename.h.
20681         (execute_java_class): Use xconcatenated_filename instead of
20682         concatenated_filename.
20683         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
20684         * modules/javacomp (Depends-on): Likewise.
20685         * modules/javaexec (Depends-on): Likewise.
20686
20687 2008-09-01  Bruno Haible  <bruno@clisp.org>
20688
20689         Split module 'filename' into 'filename' and 'concat-filename'.
20690         * modules/filename: Keep only lib/filename.h.
20691         (License): Change to LGPLv2+.
20692         * modules/concat-filename: New file, extracted from modules/filename.
20693         * lib/filename.h (concatenated_filename): Remove declaration.
20694         * lib/concat-filename.h: New file, extracted from lib/filename.h.
20695         * lib/concat-filename.c: Include concat-filename.h.
20696         * NEWS: Mention the change.
20697
20698 2008-09-01  Simon Josefsson  <simon@josefsson.org>
20699
20700         * lib/bitrotate.h (rotl8, rotr8): Add.
20701
20702         * modules/bitrotate (configure.ac): Need
20703         AC_REQUIRE([AC_C_INLINE]).
20704         (Description): Mention stdint.h.  Reported by Bruno Haible
20705         <bruno@clisp.org>.
20706
20707         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
20708         Paolo Bonzini <bonzini@gnu.org>.
20709
20710 2008-08-31  Bruno Haible  <bruno@clisp.org>
20711
20712         Assume Solaris specific bi-arch conventions on Solaris systems.
20713         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
20714         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
20715         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
20716         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
20717         like acl_libdirstem.
20718         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
20719         acl_libdirstem.
20720         * NEWS: Mention the change.
20721         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
20722
20723 2008-08-31  Jim Meyering  <meyering@redhat.com>
20724
20725         * lib/strftime.h: Add comments describing the two added arguments.
20726
20727         remove duplicate #include directives
20728         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
20729         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
20730
20731 2008-08-31  Bruno Haible  <bruno@clisp.org>
20732
20733         New module 'sigpipe-die'.
20734         * modules/sigpipe-die: New file.
20735         * lib/sigpipe-die.h: New file.
20736         * lib/sigpipe-die.c: New file.
20737         * MODULES.html.sh (Signal handling): Add sigpipe-die.
20738
20739 2008-08-31  Bruno Haible  <bruno@clisp.org>
20740
20741         Don't override previously installed signal handlers.
20742         * lib/fatal-signal.c (saved_sigactions): New variable.
20743         (uninstall_handlers): Reset the signal to the saved handler, not
20744         to SIG_DFL (except when ignored).
20745         (install_handlers): Save the previous handlers.
20746
20747 2008-08-30  Bruno Haible  <bruno@clisp.org>
20748
20749         * gnulib-tool (func_reset_sigpipe): New function.
20750         (func_get_automake_snippet, func_modules_transitive_closure,
20751         func_import): Invoke it before a join command that reads from stdin,
20752         to avoid "echo: write error: Broken pipe" error messages on stderr.
20753         Reported by Sam Steingold <sds@gnu.org>.
20754
20755 2008-08-30  Bruno Haible  <bruno@clisp.org>
20756
20757         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
20758         Code copied from m4/open.m4.
20759         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
20760         access and the filename ends in a slash. Code copied from lib/open.c.
20761         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
20762         * tests/test-fopen.c (main): Check against bug with trailing slash.
20763
20764 2008-08-29  Bruno Haible  <bruno@clisp.org>
20765
20766         Avoid some "gcc -pedantic" warnings.
20767         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
20768         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
20769         * lib/dirent.in.h: Likewise.
20770         * lib/fcntl.in.h: Likewise.
20771         * lib/float.in.h: Likewise.
20772         * lib/iconv.in.h: Likewise.
20773         * lib/inttypes.in.h: Likewise.
20774         * lib/locale.in.h: Likewise.
20775         * lib/math.in.h: Likewise.
20776         * lib/netinet_in.in.h: Likewise.
20777         * lib/search.in.h: Likewise.
20778         * lib/signal.in.h: Likewise.
20779         * lib/stdarg.in.h: Likewise.
20780         * lib/stdint.in.h: Likewise.
20781         * lib/stdio.in.h: Likewise.
20782         * lib/stdlib.in.h: Likewise.
20783         * lib/string.in.h: Likewise.
20784         * lib/strings.in.h: Likewise.
20785         * lib/sys_select.in.h: Likewise.
20786         * lib/sys_socket.in.h: Likewise.
20787         * lib/sys_stat.in.h: Likewise.
20788         * lib/sys_time.in.h: Likewise.
20789         * lib/sysexits.in.h: Likewise.
20790         * lib/time.in.h: Likewise.
20791         * lib/unistd.in.h: Likewise.
20792         * lib/wchar.in.h: Likewise.
20793         * lib/wctype.in.h: Likewise.
20794         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
20795         * modules/fchdir (Makefile.am): Likewise.
20796         * modules/fcntl (Makefile.am): Likewise.
20797         * modules/float (Makefile.am): Likewise.
20798         * modules/iconv_open (Makefile.am): Likewise.
20799         * modules/inttypes (Makefile.am): Likewise.
20800         * modules/locale (Makefile.am): Likewise.
20801         * modules/math (Makefile.am): Likewise.
20802         * modules/netinet_in (Makefile.am): Likewise.
20803         * modules/search (Makefile.am): Likewise.
20804         * modules/signal (Makefile.am): Likewise.
20805         * modules/stdarg (Makefile.am): Likewise.
20806         * modules/stdint (Makefile.am): Likewise.
20807         * modules/stdio (Makefile.am): Likewise.
20808         * modules/stdlib (Makefile.am): Likewise.
20809         * modules/string (Makefile.am): Likewise.
20810         * modules/strings (Makefile.am): Likewise.
20811         * modules/sys_select (Makefile.am): Likewise.
20812         * modules/sys_socket (Makefile.am): Likewise.
20813         * modules/sys_stat (Makefile.am): Likewise.
20814         * modules/sys_time (Makefile.am): Likewise.
20815         * modules/sysexits (Makefile.am): Likewise.
20816         * modules/time (Makefile.am): Likewise.
20817         * modules/unistd (Makefile.am): Likewise.
20818         * modules/wchar (Makefile.am): Likewise.
20819         * modules/wctype (Makefile.am): Likewise.
20820         Reported by Reuben Thomas <rrt@sc3d.org>.
20821
20822 2008-08-29  Bruno Haible  <bruno@clisp.org>
20823
20824         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
20825         any more.
20826
20827 2008-08-29  Simon Josefsson  <simon@josefsson.org>
20828
20829         * MODULES.html.sh (Misc): Add bitrotate.
20830
20831         * modules/bitrotate: New file.
20832
20833         * lib/bitrotate.h: New file.
20834
20835         * modules/bitrotate-tests: New file.
20836
20837         * tests/test-bitrotate.c: New file.
20838
20839         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
20840         on the bitrotate module.
20841
20842         * lib/arctwo.c: Use new bitrotate module.
20843
20844 2008-08-29  Jim Meyering  <meyering@redhat.com>
20845
20846         bootstrap: merge changes from coreutils
20847         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
20848         of copied files.  Remove a kludge, now that this is fixed.
20849         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
20850         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
20851         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
20852
20853 2008-08-29  Bruno Haible  <bruno@clisp.org>
20854
20855         * MODULES.html.sh: Remove --cvs-urls option.
20856
20857 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
20858
20859         maint.mk: adjust to file name change
20860         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
20861
20862 2008-08-28  Jim Meyering  <meyering@redhat.com>
20863
20864         * modules/getndelim2 (License): Relicense to LGPLv2+.
20865         Approved by Richard Stallman for the version of 1995, and by
20866         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
20867
20868 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
20869
20870         * lib/getdelim.c (flockfile, funlockfile): Make all of them
20871         dummy if one is not available.  Do not touch them if
20872         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
20873         (getc_maybe_unlocked): New.
20874         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
20875
20876 2008-08-26  Eric Blake  <ebb9@byu.net>
20877
20878         doc/INSTALL: resync from autoconf
20879         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
20880         (INSTALL_PRELUDE): Delete; this is done more efficiently by
20881         moving...
20882         * install.texi [!autoconf]: ...here.  Resync from autoconf.
20883         * INSTALL: Regenerate.
20884         * INSTALL.ISO: New file.
20885         * INSTALL.UTF-8: Likewise.
20886
20887 2008-08-26  Jim Meyering  <meyering@redhat.com>
20888
20889         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
20890         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
20891         these definitions conditional, so that they may be overridden, too.
20892
20893 2008-08-26  Bruno Haible  <bruno@clisp.org>
20894
20895         Generate INSTALL file variants with prettier quotes.
20896         * doc/Makefile (INSTALL_PRELUDE): New macro.
20897         (INSTALL): Use it.
20898         (INSTALL.ISO, INSTALL.UTF-8): New rules.
20899
20900 2008-08-26  Bruno Haible  <bruno@clisp.org>
20901
20902         Run makeinfo in an English locale.
20903         * doc/Makefile (MAKEINFO): New variable.
20904
20905 2008-08-26  Bruno Haible  <bruno@clisp.org>
20906
20907         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
20908         Suggested by Eric Blake.
20909
20910 2008-08-25  Bruno Haible  <bruno@clisp.org>
20911
20912         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
20913
20914 2008-08-25  Eric Blake  <ebb9@byu.net>
20915
20916         c-stack: test that stack overflow can be caught
20917         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
20918         that platform allows handling stack overflow; at least OS/2 EMX
20919         has sigaltstack, but crashes before transferring control to
20920         handler on stack overflow.
20921         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
20922         check for HAVE_STACK_OVERFLOW_HANDLING.
20923         Reported by Elbert Pol.
20924
20925 2008-08-25  Bruno Haible  <bruno@clisp.org>
20926
20927         * doc/posix-functions/strftime.texi: Fix description of strftime
20928         module.
20929
20930 2008-08-24  Bruno Haible  <bruno@clisp.org>
20931
20932         * tests/uniwidth/test-uc_width2.c: New file.
20933         * tests/uniwidth/test-uc_width2.sh: New file.
20934         * modules/uniwidth/width-tests (Files): Add the new files.
20935         (TESTS): Add uniwidth/test-uc_width2.sh.
20936         (TESTS_ENVIRONMENT): New variable.
20937         (check_PROGRAMS): Add test-uc_width2.
20938         (test_uc_width2_SOURCES): New variable.
20939
20940         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
20941         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
20942         not 0x00AB.
20943         Reported by Alexander V. Lukyanov <lav@netis.ru>.
20944
20945 2008-08-22  Eric Blake  <ebb9@byu.net>
20946
20947         test-lock, test-tls: mention why a test is skipped
20948         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
20949         skipped.
20950         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
20951
20952         count-one-bits: relax license
20953         * modules/count-one-bits (License): Relicense to LGPLv2+.
20954         Suggested by Ludovic Courtès, approved by Ben Pfaff.
20955
20956 2008-08-22  Andreas Schwab  <schwab@suse.de>
20957
20958         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
20959         Remove spurious space in assignment.
20960
20961 2008-08-21  Simon Josefsson  <simon@josefsson.org>
20962
20963         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
20964         Paul Eggert <eggert@CS.UCLA.EDU>.
20965
20966 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
20967
20968         * modules/gettext: Add m4/threadlib.m4.
20969
20970 2008-08-19  Eric Blake  <ebb9@byu.net>
20971
20972         test-c-stack: fix compilation failure on FreeBSD 5.0
20973         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
20974         headers before <sys/resource.h>.
20975         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
20976         the bug.
20977         Reported by Nelson H. F. Beebe.
20978
20979         strverscmp: migrate from "strverscmp.h" to <string.h>
20980         * modules/string (Makefile.am): Add new hooks.
20981         * modules/strverscmp (Files): Remove strverscmp.h.
20982         (Depends-on): Add string.
20983         (configure.ac): Add indicator.
20984         (Include): Mention new header.
20985         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
20986         defaults.
20987         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
20988         results.
20989         * lib/strverscmp.h: Delete.
20990         * lib/string.in.h (strverscmp): Provide declaration, when needed.
20991         * tests/test-strverscmp.c (includes): Adjust client.
20992         * lib/check-version.c (includes): Likewise.
20993         * NEWS: Document the change.
20994
20995         strverscmp: add unit test
20996         * modules/strverscmp-tests: New file.
20997         * tests/test-strverscmp.c: Likewise.
20998
20999 2008-08-19  Simon Josefsson  <simon@josefsson.org>
21000
21001         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
21002         regarding Windows crypto stuff, from Mono.
21003
21004 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
21005
21006         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
21007         if present, for intel RND.  Return error on failures.
21008
21009 2008-08-18  Ben Pfaff  <blp@gnu.org>
21010
21011         gitlog-to-changelog: give better diagnostic for failed pipe-open
21012         * build-aux/gitlog-to-changelog: Improve error message: suggest
21013         that the version of Git may be too old.
21014
21015 2008-08-18  Simon Josefsson  <simon@josefsson.org>
21016
21017         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
21018         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
21019
21020 2008-08-18  Bruno Haible  <bruno@clisp.org>
21021
21022         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
21023         pthread_in_use().
21024
21025 2008-08-18  Bruno Haible  <bruno@clisp.org>
21026
21027         * lib/glthread/threadlib.c: Include <pthread.h>.
21028
21029 2008-08-18  Bruno Haible  <bruno@clisp.org>
21030
21031         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
21032         glthread_recursive_lock_* macros.
21033         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
21034         Fix syntax error.
21035
21036 2008-08-18  Bruno Haible  <bruno@clisp.org>
21037
21038         * lib/glthread/thread.c: Avoid forcing a context switch right after
21039         thread creation.
21040
21041 2008-08-17  Bruno Haible  <bruno@clisp.org>
21042
21043         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
21044         * lib/glthread/thread.h: Provide Win32 specific implementation.
21045         * modules/thread (Files): Add lib/glthread/thread.c.
21046         (Depends-on): Add lock.
21047         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
21048
21049 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21050
21051         New module 'yield'.
21052         * modules/yield: New file.
21053         * lib/glthread/yield.h: New file.
21054         * m4/yield.m4: New file.
21055         * MODULES.html.sh (Multithreading): Add yield.
21056
21057 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21058
21059         New module 'thread'.
21060         * modules/thread: New file.
21061         * lib/glthread/thread.h: New file.
21062         * m4/thread.m4: New file.
21063         * MODULES.html.sh (Multithreading): Add thread.
21064
21065 2008-08-17  Bruno Haible  <bruno@clisp.org>
21066
21067         * lib/glthread/lock.h: Include <stdlib.h> always.
21068         * lib/glthread/tls.h: Likewise.
21069         * lib/glthread/cond.h: Likewise.
21070
21071 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21072
21073         New module 'cond'.
21074         * modules/cond: New file.
21075         * lib/glthread/cond.h: New file.
21076         * lib/glthread/cond.c: New file.
21077         * m4/cond.m4: New file.
21078         * MODULES.html.sh (Multithreading): Add cond.
21079
21080 2008-08-16  Eric Blake  <ebb9@byu.net>
21081
21082         c-stack: fix regression on Irix 5.3 from 2008-06-21
21083         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
21084         sa_sigaction...
21085         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
21086         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
21087         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
21088         * modules/signal (Makefile.am): Use the value.
21089         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
21090         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
21091         * doc/posix-headers/signal.texi (signal.h): Document this
21092         portability issue.
21093         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
21094         Reported by Tom G. Christensen.
21095
21096 2008-08-17  Bruno Haible  <bruno@clisp.org>
21097
21098         New module 'threadlib'.
21099         * modules/threadlib: New file.
21100         * lib/glthread/threadlib.c: New file, extracted from
21101         lib/glthread/lock.c.
21102         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
21103         functions.
21104         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
21105         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
21106         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
21107         macros.
21108         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
21109         (gl_DISABLE_THREADS): Remove macro.
21110         * modules/lock (Files): Remove build-aux/config.rpath.
21111         (Depends-on): Remove havelib. Add threadlib.
21112         (configure.ac-early): Remove section.
21113         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
21114         * modules/tls (Depends-on): Remove lock. Add threadlib.
21115         (Link): New section, copied from threadlib.
21116         * MODULES.html.sh (Multithreading): Add threadlib.
21117
21118 2008-08-14  Bruno Haible  <bruno@clisp.org>
21119
21120         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
21121         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
21122         glthread_rwlock_unlock, glthread_rwlock_destroy,
21123         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
21124         glthread_recursive_lock_destroy): Define as macros always.
21125         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
21126         glthread_lock_lock.
21127         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
21128         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
21129         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
21130         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
21131         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
21132         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
21133         (glthread_recursive_lock_lock_func): Renamed from
21134         glthread_recursive_lock_lock.
21135         (glthread_recursive_lock_unlock_func): Renamed from
21136         glthread_recursive_lock_unlock.
21137         (glthread_recursive_lock_destroy_func): Renamed from
21138         glthread_recursive_lock_destroy.
21139
21140 2008-08-14  Bruno Haible  <bruno@clisp.org>
21141
21142         * lib/glthread/lock.h: Renamed from lib/lock.h.
21143         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
21144         * lib/glthread/tls.h: Renamed from lib/tls.h.
21145         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
21146         * lib/fstrcmp.c: Update includes.
21147         * lib/strsignal.c: Update includes.
21148         * modules/lock (Files, Makefile.am): Update.
21149         (Include): Change to "glthread/lock.h".
21150         * modules/tls (Files, Makefile.am): Update.
21151         (Include): Change to "glthread/tls.h".
21152         * tests/test-lock.c: Update includes.
21153         * tests/test-tls.c: Update includes.
21154         * NEWS: Mention the renamed header files.
21155
21156 2008-08-11  Jim Meyering  <meyering@redhat.com>
21157
21158         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
21159
21160 2008-08-11  Eric Blake  <ebb9@byu.net>
21161
21162         test-c-stack: avoid C99-ism
21163         * tests/test-c-stack.c (main): Fix whitespace, move declaration
21164         before statement.
21165         Reported by Alain Guibert.
21166
21167 2008-08-10  Jim Meyering  <meyering@redhat.com>
21168
21169         ensure that return value of uinttostr et al are not ignored
21170         * lib/inttostr.h (__GNUC_PREREQ): Define.
21171         (__attribute_warn_unused_result__): Define.
21172         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
21173
21174 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
21175
21176         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
21177         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
21178
21179 2008-08-07  Jim Meyering  <meyering@redhat.com>
21180
21181         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
21182
21183         * modules/mkstemp (License): Relicense under LGPLv2+.
21184         * modules/tempname (License): Likewise.
21185
21186 2008-08-06  Bruno Haible  <bruno@clisp.org>
21187
21188         * lib/poll.c (poll): Further micro-optimization.
21189
21190 2008-08-06  Jim Meyering  <meyering@redhat.com>
21191
21192         inet_pton.c: use locale-independent tolower
21193         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
21194         (inet_pton6): Use c_tolower rather than tolower.
21195         * modules/inet_pton (Depends-on): Add c-ctype.
21196
21197 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
21198
21199         * lib/poll.c (poll): Avoid division when timeout is 0, cache
21200         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
21201
21202 2008-08-06  Jim Meyering  <meyering@redhat.com>
21203
21204         * modules/inet_pton (License): Relicense under LGPLv2+.
21205
21206 2008-08-03  Bruno Haible  <bruno@clisp.org>
21207
21208         Additional non-aborting API for lock and tls.
21209         * lib/lock.h: Include <errno.h>.
21210         (glthread_lock_init): New macro/function.
21211         (gl_lock_init): Define as wrapper around glthread_lock_init.
21212         (glthread_lock_lock): New macro/function.
21213         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
21214         (glthread_lock_unlock): New macro/function.
21215         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
21216         (glthread_lock_destroy): New macro/function.
21217         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
21218         (glthread_rwlock_init): New macro/function.
21219         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
21220         (glthread_rwlock_rdlock): New macro/function.
21221         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
21222         (glthread_rwlock_wrlock): New macro/function.
21223         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
21224         (glthread_rwlock_unlock): New macro/function.
21225         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
21226         (glthread_rwlock_destroy): New macro/function.
21227         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
21228         (glthread_recursive_lock_init): New macro/function.
21229         (gl_recursive_lock_init): Define as wrapper around
21230         glthread_recursive_lock_init.
21231         (glthread_recursive_lock_lock): New macro/function.
21232         (gl_recursive_lock_lock): Define as wrapper around
21233         glthread_recursive_lock_lock.
21234         (glthread_recursive_lock_unlock): New macro/function.
21235         (gl_recursive_lock_unlock): Define as wrapper around
21236         glthread_recursive_lock_unlock.
21237         (glthread_recursive_lock_destroy): New macro/function.
21238         (gl_recursive_lock_destroy): Define as wrapper around
21239         glthread_recursive_lock_destroy.
21240         (glthread_once): New macro/function.
21241         (gl_once): Define as wrapper around glthread_once.
21242         Update function declarations.
21243         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
21244         glthread_rwlock_init. Return error code.
21245         (glthread_rwlock_rdlock_multithreaded): Renamed from
21246         glthread_rwlock_rdlock. Return error code.
21247         (glthread_rwlock_wrlock_multithreaded): Renamed from
21248         glthread_rwlock_wrlock. Return error code.
21249         (glthread_rwlock_unlock_multithreaded): Renamed from
21250         glthread_rwlock_unlock. Return error code.
21251         (glthread_rwlock_destroy_multithreaded): Renamed from
21252         glthread_rwlock_destroy. Return error code.
21253         (glthread_recursive_lock_init_multithreaded): Renamed from
21254         glthread_recursive_lock_init. Return error code.
21255         (glthread_recursive_lock_lock_multithreaded): Renamed from
21256         glthread_recursive_lock_lock. Return error code.
21257         (glthread_recursive_lock_unlock_multithreaded): Renamed from
21258         glthread_recursive_lock_unlock. Return error code.
21259         (glthread_recursive_lock_destroy_multithreaded): Renamed from
21260         glthread_recursive_lock_destroy. Return error code.
21261         (glthread_once_call): Make static.
21262         (glthread_once_multithreaded): Renamed from glthread_once.
21263         * lib/tls.h: Include <errno.h>.
21264         (glthread_tls_key_init): New macro/function.
21265         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
21266         (glthread_tls_set): New macro/function.
21267         (gl_tls_set): Define as wrapper around glthread_tls_set.
21268         (glthread_tls_key_destroy): New macro/function.
21269         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
21270         Update function declarations.
21271         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
21272         glthread_tls_get.
21273         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21274
21275 2008-08-04  Eric Blake  <ebb9@byu.net>
21276
21277         gnumakefile: use space, not TAB, outside of targets
21278         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
21279
21280 2008-08-02  Jim Meyering  <meyering@redhat.com>
21281
21282         getdate.y: avoid locale-dependent date parsing failure
21283         In Turkish locales, getdate would fail to recognize keywords
21284         containing a lowercase "i".  The solution is not to rely on
21285         locale-sensitive case-conversion.
21286         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
21287         (lookup_word): Use c_toupper in place of toupper.
21288         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
21289         Reported by Vefa Bicakci <bicave@superonline.com> in
21290         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
21291         * modules/getdate (Depends-on): Add c-ctype.
21292
21293 2008-08-02  Bruno Haible  <bruno@clisp.org>
21294
21295         * gnulib-tool (func_import): When updating or creating a .gitignore
21296         file, prepend each added line with a slash, and ignore leading slashes
21297         from the existing lines.
21298         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
21299
21300 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21301
21302         Portability fix for GNU make 3.79.1.
21303         * top/GNUmakefile: Avoid 'else COND', which older GNU make
21304         versions do not understand.
21305
21306 2008-08-01  Bruno Haible  <bruno@clisp.org>
21307
21308         Work around bug of HP-UX 10.20 cc with -0.0 literal.
21309         * tests/test-isnanf.h (zero): New variable.
21310         (main): Avoid literal -0.0f.
21311         * tests/test-isnand.h (zero): New variable.
21312         (main): Avoid literal -0.0.
21313         * tests/test-isnanl.h (zero): New variable.
21314         (main): Avoid literal -0.0L.
21315         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
21316         (test_float, test_double, test_long_double): Avoid literals -0.0f,
21317         -0.0, -0.0L.
21318         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
21319         (test_signbitd): Avoid literal -0.0.
21320         (test_signbitl): Avoid literal -0.0L.
21321         * tests/test-ceilf1.c (zero): New variable.
21322         (main): Avoid literal -0.0f.
21323         * tests/test-ceill.c (zero): New variable.
21324         (main): Avoid literal -0.0L.
21325         * tests/test-floorf1.c (zero): New variable.
21326         (main): Avoid literal -0.0f.
21327         * tests/test-floorl.c (zero): New variable.
21328         (main): Avoid literal -0.0L.
21329         * tests/test-roundf1.c (zero): New variable.
21330         (main): Avoid literal -0.0f.
21331         * tests/test-round1.c (zero): New variable.
21332         (main): Avoid literal -0.0.
21333         * tests/test-roundl.c (zero): New variable.
21334         (main): Avoid literal -0.0L.
21335         * tests/test-truncf1.c (zero): New variable.
21336         (main): Avoid literal -0.0f.
21337         * tests/test-trunc1.c (zero): New variable.
21338         (main): Avoid literal -0.0.
21339         * tests/test-truncl.c (zero): New variable.
21340         (main): Avoid literal -0.0L.
21341         * tests/test-frexp.c (zero): New variable.
21342         (main): Avoid literal -0.0.
21343         * tests/test-frexpl.c (zero): New variable.
21344         (main): Avoid literal -0.0L.
21345         * tests/test-ldexpl.c (zero): New variable.
21346         (main): Avoid literal -0.0L.
21347         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21348         (zerod, zerol): New variables.
21349         (test_function): Avoid literals -0.0, -0.0L.
21350         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21351         (zerod, zerol): New variables.
21352         (test_function): Avoid literals -0.0, -0.0L.
21353         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21354         (zerod, zerol): New variables.
21355         (test_function): Avoid literals -0.0, -0.0L.
21356         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21357         (zerod, zerol): New variables.
21358         (test_function): Avoid literals -0.0, -0.0L.
21359         * tests/test-strtod.c (zero): New variable.
21360         (main): Avoid literal -0.0.
21361         Reported by Jonathan C. Patschke <jp@centtech.com>.
21362
21363 2008-07-31  Jim Meyering  <meyering@redhat.com>
21364
21365         sha256.h: correct definition of SHA224_DIGEST_SIZE
21366         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
21367         Reported by Paulie Pena IV <paulie4@gmail.com>.
21368         Define as 224 / 8, rather than as a literal.
21369         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
21370         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
21371         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
21372
21373 2008-07-31  Bruno Haible  <bruno@clisp.org>
21374
21375         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
21376         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
21377         Reported by Jonathan Patschke <jp@centtech.com>.
21378
21379 2008-07-31  Bruno Haible  <bruno@clisp.org>
21380
21381         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
21382         Reported by Paolo Bonzini <bonzini@gnu.org>.
21383
21384 2008-07-30  Eric Blake  <ebb9@byu.net>
21385
21386         test-strtod: allow compilation without -lm
21387         * tests/test-strtod.c (main): Avoid link dependence on fabs.
21388         Reported by Dennis Clarke <blastwave@gmail.com>.
21389
21390 2008-07-28  Jim Meyering  <meyering@redhat.com>
21391
21392         bootstrap: work also when there are no .po files in po/
21393         * build-aux/bootstrap (update_po_files): Complete the change
21394         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
21395
21396 2008-07-27  Jim Meyering  <meyering@redhat.com>
21397
21398         * users.txt: Add zile.
21399
21400 2008-07-26  Ben Pfaff  <blp@gnu.org>
21401
21402         Add missing dependencies on new m4/exponent[fdl].m4 files.
21403         * modules/isnanf-nolibm: Add m4/exponentf.m4.
21404         * modules/isnand-nolibm: Add m4/exponentd.m4.
21405         * modules/isnanl-nolibm: Add m4/exponentl.m4.
21406         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
21407         m4/isnan[fdl].m4, because the macros actually used moved.
21408         Reported by Jim Meyering.
21409
21410 2008-07-14  Ben Pfaff  <blp@gnu.org>
21411
21412         Add isinf module.
21413         * lib/isinf.c: New file.
21414         * lib/math.in.h: Define isinf macro if we have decided to replace
21415         it.
21416         * m4/isinf.m4: New file.
21417         * m4/math_h.m4: Initialize and substitute variables for isinf
21418         module.
21419         * modules/isinf: New file.
21420         * modules/isinf-tests: New file.
21421         * modules/math: Add substitutions for new module.
21422         * tests/test-isinf.c: New file.
21423         * doc/posix-functions/isinf.texi: Mention new module.
21424         * MODULES.html.sh: Mention new module.
21425
21426 2008-07-14  Ben Pfaff  <blp@gnu.org>
21427
21428         Factor out some macros for use by additional modules.
21429         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
21430         exponentf.m4.
21431         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
21432         exponentd.m4.
21433         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
21434         file exponentl.m4.
21435         * m4/exponentf.m4: New file.
21436         * m4/exponentd.m4: New file.
21437         * m4/exponentl.m4: New file.
21438         * modules/isnanf: Use new file m4/exponentf.m4.
21439         * modules/isnand: Use new file m4/exponentd.m4.
21440         * modules/isnanl: Use new file m4/exponentl.m4.
21441
21442 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
21443
21444         mktime.c: normalize tp->tm_isdst value to -1/0/1.
21445         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
21446         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
21447         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
21448
21449         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
21450         readlink on platforms without PATH_MAX.
21451
21452 2008-07-21  Eric Blake  <ebb9@byu.net>
21453
21454         Warn, not fail, on stale version.
21455         * top/GNUmakefile (_curr-ver): Tone down previous patch.
21456
21457         Don't allow installation with stale devel version number.
21458         * top/GNUmakefile (_is-install-target): New macro.
21459         (_curr-ver): Forbid installation with stale version number.
21460
21461 2008-07-20  Bruno Haible  <bruno@clisp.org>
21462
21463         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
21464         TESTS_ENVIRONMENT.
21465         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
21466
21467 2008-07-20  Bruno Haible  <bruno@clisp.org>
21468
21469         * lib/c-stack.h (c_stack_action): Add documentation.
21470         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
21471
21472 2008-07-20  Bruno Haible  <bruno@clisp.org>
21473
21474         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
21475         * modules/readlink (License): Likewise.
21476
21477 2008-07-17  Eric Blake  <ebb9@byu.net>
21478
21479         * modules/c-stack (Link): Fix typo.
21480
21481         Make c-stack use libsigsegv, when available.
21482         * modules/c-stack (Depends-on): Add libsigsegv.
21483         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
21484         needed.
21485         * lib/c-stack.c (SIGSTKSZ): Define fallback.
21486         (segv_handler, overflow_handler, c_stack_action)
21487         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
21488         implementation when libsigsegv is available, but only when using
21489         the library is necessary.
21490         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
21491         comment, explaining why XSI check fails on Linux.
21492         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
21493         * tests/test-c-stack2.sh: Tweak skip message.
21494         * NEWS: Document new link-time requirements.
21495
21496 2008-07-16  Eric Blake  <ebb9@byu.net>
21497
21498         c-stack: Expose false positives when not using libsigsegv.
21499         * modules/c-stack-tests (Files): Expand test.
21500         * tests/test-c-stack.c (main): Add means to conditionally trigger
21501         non-overflow SIGSEGV.
21502         * tests/test-c-stack2.sh: New file.
21503
21504 2008-07-14  Bruno Haible  <bruno@clisp.org>
21505
21506         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
21507         Reported by Eric Blake.
21508
21509 2008-07-14  Sam Steingold  <sds@gnu.org>
21510             Bruno Haible  <bruno@clisp.org>
21511
21512         New module libsigsegv.
21513         * modules/libsigsegv: New file.
21514         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
21515         modifications.
21516         * MODULES.html.sh (Signal handling): New section.
21517
21518 2008-07-14  Bruno Haible  <bruno@clisp.org>
21519
21520         * modules/unictype/ctype-* (Description): Add the word "function".
21521         Improves the resulting doc in MODULES.html.
21522
21523 2008-07-12  Ben Pfaff  <blp@gnu.org>
21524
21525         Add longlong module.
21526         * modules/longlong: New file.
21527
21528 2008-07-12  Bruno Haible  <bruno@clisp.org>
21529
21530         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
21531         to empty.
21532
21533 2008-07-10  Ben Pfaff  <blp@gnu.org>
21534
21535         Add isnan module.
21536         * doc/posix-functions/isnan.texi: Mention new module.
21537         * lib/math.in.h: Define isnan macro if we have decided to replace
21538         it.
21539         * m4/isnan.m4: New file.
21540         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
21541         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
21542         also.
21543         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
21544         redundancy.
21545         * m4/math_h.m4: Initialize and substitute variables for isnan
21546         module.
21547         * modules/isnan: New file.
21548         * modules/isnan-tests: New file.
21549         * modules/math: Add substitutions for new module.
21550         * tests/test-isnan.c: New file.
21551         * MODULES.html.sh: Mention new module.
21552
21553 2008-07-10  Ben Pfaff  <blp@gnu.org>
21554
21555         Add isnanf module.
21556         * lib/isnanf.m4: New file.
21557         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
21558         (gl_HAVE_ISNANF_IN_LIBM): New macro.
21559         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
21560         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
21561         * modules/isnanf: New file.
21562         * modules/isnanf-tests: New file.
21563         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
21564         files.
21565         * tests/test-isnanf-nolibm.c: factored most of its contents into
21566         new file tests/test-isnanf.h.
21567         * tests/test-isnanf.h: New file.
21568         * tests/test-isnanf.c: New file.
21569         * MODULES.html.sh: Mention new module.
21570         * doc/glibc-functions/isnanf.texi: Mention new module.
21571
21572 2008-07-10  Ben Pfaff  <blp@gnu.org>
21573
21574         Add isnand module.
21575         * lib/isnand.h: New file.
21576         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
21577         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
21578         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
21579         functionality also.
21580         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
21581         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
21582         (gl_HAVE_ISNAND_IN_LIBM): New macro.
21583         * modules/isnand: New file.
21584         * modules/isnand-tests: New file.
21585         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
21586         files.
21587         * tests/test-isnand-nolibm.c: factored most of its contents into
21588         new file tests/test-isnand.h.
21589         * tests/test-isnand.h: New file.
21590         * tests/test-isnand.c: New file.
21591         * MODULES.html.sh: Mention new module.
21592
21593 2008-07-10  Ben Pfaff  <blp@gnu.org>
21594
21595         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
21596         * lib/isnand.h: Rename lib/isnand-nolibm.h.
21597         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
21598         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
21599         * modules/isnanf-nolibm: Update references to renamed files.
21600         * modules/isnand-nolibm: Likewise.
21601         * modules/isnanf-nolibm-tests: Likewise.
21602         * modules/isnand-nolibm-tests: Likewise.
21603         * lib/frexp.c: Likewise.
21604         * lib/isfinite.c: Likewise.
21605         * lib/signbitd.c: Likewise.
21606         * lib/signbitf.c: Likewise.
21607         * lib/vasnprintf.c: Likewise.
21608         * tests/test-ceilf1.c: Likewise.
21609         * tests/test-ceilf2.c: Likewise.
21610         * tests/test-floorf1.c: Likewise.
21611         * tests/test-floorf2.c: Likewise.
21612         * tests/test-frexp.c: Likewise.
21613         * tests/test-round1.c: Likewise.
21614         * tests/test-round2.c: Likewise.
21615         * tests/test-roundf1.c: Likewise.
21616         * tests/test-strtod.c: Likewise.
21617         * tests/test-trunc1.c: Likewise.
21618         * tests/test-trunc2.c: Likewise.
21619         * tests/test-truncf1.c: Likewise.
21620         * tests/test-truncf2.c: Likewise.
21621         * NEWS: Mention the renamed header files.
21622
21623 2008-07-11  Jim Meyering  <meyering@redhat.com>
21624
21625         vc-list-files: make the last-resort awk code more portable
21626         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
21627         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
21628         does not support it.
21629
21630 2008-07-10  Eric Blake  <ebb9@byu.net>
21631
21632         Work with tar's bootstrap.
21633         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
21634         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
21635         an m4 comment.
21636
21637 2008-07-09  Jim Meyering  <meyering@redhat.com>
21638
21639         posix-shell.m4: fix typo that made this test malfunction
21640         * m4/posix-shell.m4: Remove capitalization in variable name.
21641
21642 2008-07-08  Bruno Haible  <bruno@clisp.org>
21643
21644         * m4/onceonly.m4: Update comments.
21645         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21646
21647 2008-07-04  Jim Meyering  <meyering@redhat.com>
21648
21649         * users.txt: Add vc-dwim.
21650         (bison, coreutils): Use the gitweb URL.
21651
21652 2008-07-03  Jim Meyering  <meyering@redhat.com>
21653
21654         * users.txt: Add libffcall.  From Sam Steingold.
21655
21656 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
21657
21658         getdate.y: do not ignore TZ with relative day, month or year offset
21659         * lib/getdate.y (get_date): Move the tz-handling block to follow the
21660         relative-date-handling, since otherwise, the latter would clobber the
21661         sole output (an updated Start value) of the tz-handling block.
21662         * tests/test-getdate.c: Tests for the fix
21663
21664 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21665
21666         Recognize 'foo_LIBRARIES += libgnu.a'.
21667         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
21668         makefile snippet has already specified an installation location,
21669         also using '+='.
21670
21671 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
21672
21673         getdate.y: factor out common actions
21674         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
21675         Use them in place of open-coded actions.
21676
21677 2008-07-01  Simon Josefsson  <simon@josefsson.org>
21678
21679         Add self-test for getdate module.
21680         * modules/getdate-tests: New file.
21681         * tests/test-getdate.c: New file.
21682
21683 2008-06-29  Bruno Haible  <bruno@clisp.org>
21684
21685         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
21686         .gitignore.
21687         Reported by Sylvain Beucler <beuc@beuc.net>.
21688
21689 2008-06-29  Bruno Haible  <bruno@clisp.org>
21690
21691         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
21692         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
21693
21694 2008-06-29  Bruno Haible  <bruno@clisp.org>
21695
21696         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
21697         EXTRA_DIST.
21698         Reported by Sylvain Beucler <beuc@beuc.net>.
21699
21700 2008-06-26  Jim Meyering  <meyering@redhat.com>
21701
21702         make several modules depend on the "open" module
21703         This provides slightly increased consistency when opening-for-write
21704         the name of a non-directory spelled with a trailing slash.
21705         * modules/chdir-safer: Likewise.
21706         * modules/chown: Likewise.
21707         * modules/clean-temp: Likewise.
21708         * modules/copy-file: Likewise.
21709         * modules/fchdir: Likewise.
21710         * modules/fcntl-safer: Likewise.
21711         * modules/pipe: Likewise.
21712         * modules/utime: Likewise.
21713         Prompted by Eric Blake and Bruno Haible.
21714
21715 2008-06-24  Andreas Schwab  <schwab@suse.de>
21716
21717         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
21718         literals can be used as initializers for global variables.
21719
21720 2008-06-23  Eric Blake  <ebb9@byu.net>
21721
21722         Make gnulib-cache.m4 easier to diff.
21723         * gnulib-tool (func_import): Allow newlines when reading cached
21724         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
21725
21726 2008-06-23  Bruno Haible  <bruno@clisp.org>
21727
21728         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
21729         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
21730         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
21731         m4/signalblocking.m4.
21732         (gl_PREREQ_SIGACTION): Don't invoke it.
21733         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
21734         gl_PREREQ_SIG_HANDLER_H.
21735         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21736         Don't check for sigaction here.
21737
21738 2008-06-23  Bruno Haible  <bruno@clisp.org>
21739
21740         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
21741         (install_handlers): Don't set the SA_RESETHAND flag.
21742
21743 2008-06-23  Bruno Haible  <bruno@clisp.org>
21744
21745         * m4/sigaction.m4: Comment fixes.
21746         * lib/signal.in.h: Likewise.
21747
21748 2008-06-23  Eric Blake  <ebb9@byu.net>
21749
21750         Fix typo.
21751         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
21752
21753         Avoid SA_ namespace.
21754         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
21755         Reported by Ralf Wildenhues.
21756
21757         Avoid test failure due to SA_RESTORER.
21758         * tests/test-sigaction.c (SA_MASK): New macro.
21759         (main): Avoid failing due to extension flags being set.
21760         Reported by Jim Meyering.
21761
21762         Revert use of sig-handler.h in sigprocmask.c.
21763         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
21764         it requires the existence of struct sigaction.
21765         * lib/sigprocmask.c (handler_t): Restore typedef.
21766         (rpl_signal, old_handlers): Use local type.
21767
21768 2008-06-22  Bruno Haible  <bruno@clisp.org>
21769
21770         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
21771         conditionally.
21772         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21773
21774 2008-06-22  Bruno Haible  <bruno@clisp.org>
21775
21776         * doc/posix-functions/siginterrupt.texi: Move note.
21777
21778         * lib/signal.in.h (SA_RESTART): New macro.
21779         * lib/sigaction.c: Update comment.
21780
21781         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
21782
21783         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
21784         (gl_PREREQ_SIGPROCMASK): Invoke it.
21785         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
21786
21787         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
21788
21789         * lib/sigprocmask.c: Update a comment.
21790
21791 2008-06-21  Eric Blake  <ebb9@byu.net>
21792
21793         Use sigaction module rather than signal().
21794         * modules/c-stack (Depends-on): Add sigaction.
21795         * modules/fatal-signal (Depends-on): Likewise.
21796         * modules/nanosleep (Depends-on): Likewise.
21797         * modules/sigprocmask (Files): Add sig-handler.h.
21798         * modules/sigaction (Files): Likewise.
21799         * lib/sig-handler.h (get_handler): New file, suggested by Paul
21800         Eggert.
21801         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
21802         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
21803         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
21804         (init_fatal_signals): Likewise.
21805         * lib/nanosleep.c (rpl_nanosleep): Likewise.
21806         (siginterrupt): Delete fallback.
21807         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
21808         instead.
21809         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
21810         siginterrupt.
21811
21812         New module sigaction, for mingw.
21813         * modules/sigaction: New module...
21814         * modules/sigaction-tests: ...and its test.
21815         * m4/sigaction.m4: New file.
21816         * lib/sigaction.c: Likewise.
21817         * tests/test-sigaction.c: Likewise.
21818         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
21819         * modules/signal (Makefile.am): Likewise.
21820         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
21821         needed.
21822         * doc/posix-headers/signal.texi (signal.h): Mention provided
21823         types.
21824         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
21825         that sigaction is preferable.
21826         * doc/posix-functions/sigaction.texi (sigaction): Mention new
21827         module.
21828         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21829         sigaction.
21830
21831         Improve robustness of sigprocmask by overriding signal.
21832         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
21833         is in use.
21834         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
21835         (SIGKILL, SIGSTOP): Provide fallbacks.
21836         (rpl_signal): Implement.
21837         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
21838         signal can be called inside handlers.
21839
21840         Fix nanosleep module on mingw.
21841         * modules/nanosleep (Depends-on): Add sys_select.
21842         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
21843
21844         Fix licensing of sigprocmask.
21845         * modules/raise (License): Relicense as LGPL.
21846
21847 2008-06-21  Bruno Haible  <bruno@clisp.org>
21848
21849         * lib/propername.c (proper_name_utf8): Don't use the transliterated
21850         result if it contains question marks.
21851         Reported by Michael Geng <linux@michaelgeng.de>.
21852
21853 2008-06-19  Bruno Haible  <bruno@clisp.org>
21854
21855         Fix CVS-ism.
21856         * doc/gnulib.texi: Include updated-stamp.texi.
21857         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
21858         (updated-stamp.texi): New rule.
21859         (gnulib.info): Depend on it.
21860         * doc/.gitignore: Add updated-stamp.texi.
21861         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
21862
21863 2008-06-19  Bruno Haible  <bruno@clisp.org>
21864
21865         * doc/Makefile (gnulib.info): Update and simplify dependencies.
21866         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21867
21868 2008-06-19  Eric Blake  <ebb9@byu.net>
21869
21870         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
21871         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
21872         Reported by Stepan Kasal.
21873
21874 2008-06-18  Bruno Haible  <bruno@clisp.org>
21875
21876         * lib/fatal-signal.c (init_fatal_signals): Add comment.
21877         Reported by Eric Blake.
21878
21879 2008-06-18  Eric Blake  <ebb9@byu.net>
21880
21881         Work around cygwin 1.5.25 strsignal bug.
21882         * tests/test-strsignal.c: Allow for const char *.
21883         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
21884
21885 2008-06-18  Simon Josefsson  <simon@josefsson.org>
21886
21887         * users.txt: Update URL to article and add author/date
21888         information.
21889
21890 2008-06-17  Bruno Haible  <bruno@clisp.org>
21891
21892         New macro gl_DISABLE_THREADS.
21893         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
21894         if the user did not pass --enable-threads or --disable-threads option.
21895         (gl_DISABLE_THREADS): New macro.
21896         Reported by Eric Blake <ebb9@byu.net>.
21897
21898 2008-06-17  Bruno Haible  <bruno@clisp.org>
21899
21900         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
21901         when the macro ignores it.
21902         Based on a patch by Eric Blake <ebb9@byu.net>.
21903
21904 2008-06-17  Bruno Haible  <bruno@clisp.org>
21905
21906         * modules/tls (License): Change to LGPLv2+.
21907         Reported by Eric Blake.
21908
21909 2008-06-17  Eric Blake  <ebb9@byu.net>
21910
21911         Simplify c-stack prerequisites.
21912         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
21913         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
21914         no longer requires <ucontext.h> to exist.  Optimize setrlimit
21915         check.
21916         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
21917         <sys/resource.h>.
21918
21919         Move c-stack test into testsuite.
21920         * modules/c-stack-tests: New file.
21921         * lib/c-stack.c [DEBUG]: Move test program...
21922         * tests/test-c-stack.c: ...into this new file.  Skip rather than
21923         fail test if sigaltstack is lacking.
21924         * tests/test-c-stack.sh: New driver file.
21925
21926 2008-06-16  Eric Blake  <ebb9@byu.net>
21927
21928         Use raise module consistently.
21929         * modules/fatal-signal (Depends-on): Add raise.
21930         * modules/sigprocmask (Depends-on): Likewise.
21931         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
21932         * lib/sigprocmask.c (sigprocmask): Likewise.
21933         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21934         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
21935
21936         Fix compliance bug in sigpending.
21937         * lib/sigprocmask.c (sigpending): Return pending array via
21938         parameter, not return value.
21939
21940 2008-06-14  Eric Blake  <ebb9@byu.net>
21941
21942         Improve obstack-printf test code.
21943         * tests/test-obstack-printf.c (test_function): Fix comment, and
21944         simplify usage of obstack_* in macros.  Add a test for coverage.
21945         Reported by Bruno Haible.
21946
21947 2008-06-14  Bruno Haible  <bruno@clisp.org>
21948
21949         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
21950         array size as a constant, not as a const variable.
21951         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
21952         AC_USE_SYSTEM_EXTENSIONS.
21953         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
21954         Test whether the obstack_printf function actually exists.
21955         * modules/obstack-printf (Depends-on): Add extensions.
21956         (Include): Remove obstack.h.
21957         * modules/obstack-printf-posix (Depends-on): Add extensions.
21958         (Include): Remove obstack.h.
21959
21960 2008-06-13  Eric Blake  <ebb9@byu.net>
21961
21962         Add obstack-printf and obstack-printf-posix modules.
21963         * modules/obstack-printf: New file.
21964         * modules/obstack-printf-posix: Likewise.
21965         * MODULES.html.sh (Misc): Mention them.
21966         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
21967         Likewise.
21968         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
21969         Likewise.
21970         * modules/stdio (Makefile.am): Accomodate new modules.
21971         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21972         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
21973         Declare.
21974         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
21975         functions.
21976         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
21977         (gl_REPLACE_OBSTACK_PRINTF): New macros
21978         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
21979         * tests/test-obstack-printf.c: New file.
21980         * modules/obstack-printf-tests: Likewise.
21981         * modules/obstack-printf-posix-tests: Likewise.
21982
21983 2008-06-11  Bruno Haible  <bruno@clisp.org>
21984
21985         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
21986         * lib/open.c: Include errno.h.
21987         (open): Fail when attempting to write to a file that has a trailing
21988         slash.
21989         * tests/test-open.c (main): Test against trailing slash bug.
21990         * doc/posix-functions/open.texi: Mention the trailing slash bug.
21991
21992 2008-06-10  Bruno Haible  <bruno@clisp.org>
21993
21994         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
21995         for $? to work inside the trap command, with various /bin/sh-s.
21996         * tests/test-vc-list-files-cvs.sh: Likewise.
21997
21998 2008-06-10  Bruno Haible  <bruno@clisp.org>
21999
22000         * lib/acl-internal.h: Don't include gettext.h here.
22001         * lib/set-mode-acl.c: Include gettext.h here.
22002         * lib/copy-acl.c: Likewise.
22003
22004 2008-06-10  Bruno Haible  <bruno@clisp.org>
22005
22006         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
22007         * lib/wait-process.c (wait_subprocess): Likewise.
22008         * lib/execute.h (execute): Add termsigp argument.
22009         * lib/execute.c (execute): Likewise.
22010         * lib/csharpcomp.c (compile_csharp_using_pnet,
22011         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
22012         * lib/csharpexec.c (execute_csharp_using_pnet,
22013         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
22014         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
22015         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
22016         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
22017         is_jikes_present): Update.
22018         * lib/javaexec.c (execute_java_class): Update.
22019         * lib/javaversion.c (execute_and_read_line): Update.
22020         * NEWS: Document the changes.
22021         Reported by Eric Blake.
22022
22023 2008-06-10  Eric Blake  <ebb9@byu.net>
22024
22025         Add missing include.
22026         * tests/test-strstr.c (includes): Add <signal.h>.
22027         * tests/test-strcasestr.c (includes): Likewise.
22028         * tests/test-memmem.c (includes): Likewise.
22029
22030 2008-06-10  Bruno Haible  <bruno@clisp.org>
22031
22032         * lib/wait-process.c (wait_subprocess): Add an assertion.
22033
22034 2008-06-10  Bruno Haible  <bruno@clisp.org>
22035
22036         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
22037
22038 2008-06-10  Bruno Haible  <bruno@clisp.org>
22039
22040         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
22041         using alarm().
22042         * tests/test-strcasestr.c (main): Likewise.
22043         * tests/test-strstr.c (main): Likewise.
22044
22045 2008-06-09  Bruno Haible  <bruno@clisp.org>
22046
22047         Work around the Solaris 10 ACE ACLs ABI change.
22048         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
22049         declare if ACL_NO_TRIVIAL is present.
22050         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
22051         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
22052         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
22053         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
22054         define if ACL_NO_TRIVIAL is present.
22055         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
22056         and use the current ABI.
22057         (file_has_acl): Use same #if condition as elsewhere.
22058         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
22059         in use, and use the current ABI.
22060         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
22061         Reported by Jim Meyering.
22062
22063 2008-06-09  Eric Blake  <ebb9@byu.net>
22064
22065         Work around environments that (stupidly) ignore SIGALRM.
22066         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
22067         before using alarm().
22068         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22069         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22070         Reported by Ian Beckwith <ianb@erislabs.net>.
22071
22072         Produce autobuild blurb earlier in log.
22073         * modules/autobuild (configure.ac-early): Move AB_INIT here.
22074
22075 2008-06-09  Jim Meyering  <meyering@redhat.com>
22076         and OndÅ™ej Vašík  <ovasik@redhat.com>
22077
22078         utimens.c: correct kernel bug work-around
22079         OndÅ™ej Vašík found that the invalid return value of 280 indicates
22080         failure, not success, and the kernel bug we're trying to work
22081         around affects not just the utimensat call, but also the fallback
22082         futimens call.
22083         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
22084         not success.
22085         [HAVE_FUTIMENS]: Use the same work-around, here.
22086
22087 2008-06-09  Jim Meyering  <meyering@redhat.com>
22088
22089         add more guards around definition of ACE_-related code
22090         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
22091         ALLOW and ACE_OWNER are also defined.
22092
22093 2008-06-08  Bruno Haible  <bruno@clisp.org>
22094
22095         * lib/acl-internal.h: Add me as co-author.
22096         * lib/file-has-acl.c: Likewise.
22097         * lib/set-mode-acl.c: Likewise.
22098         * lib/copy-acl.c: Likewise.
22099
22100 2008-06-08  Bruno Haible  <bruno@clisp.org>
22101
22102         Add support for AIX ACLs.
22103         * lib/acl-internal.h (acl_nontrivial): New declaration.
22104         * lib/file-has-acl.c (acl_nontrivial): New function.
22105         (file_has_acl): Add implementation using AIX 4 ACL API.
22106         * lib/set-mode-acl.c (qset_acl): Likewise.
22107         * lib/copy-acl.c (qcopy_acl): Likewise.
22108
22109 2008-06-08  Bruno Haible  <bruno@clisp.org>
22110
22111         Add support for HP-UX ACLs.
22112         * lib/acl-internal.h (acl_nontrivial): New declaration.
22113         * lib/file-has-acl.c (acl_nontrivial): New function.
22114         (file_has_acl): Add implementation using HP-UX 11 ACL API.
22115         * lib/set-mode-acl.c (qset_acl): Likewise.
22116         * lib/copy-acl.c (qcopy_acl): Likewise.
22117
22118 2008-06-08  Bruno Haible  <bruno@clisp.org>
22119
22120         Add support for Cygwin ACLs.
22121         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
22122         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
22123         the chmod_or_fchmod call.
22124         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
22125
22126 2008-06-08  Bruno Haible  <bruno@clisp.org>
22127
22128         Fix bug with setuid modes in Solaris 10+ code.
22129         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
22130         succeeded, when the mode contains some special bits.
22131
22132 2008-06-08  Bruno Haible  <bruno@clisp.org>
22133
22134         Add support for Solaris 7..10 ACLs.
22135         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
22136         declarations.
22137         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
22138         functions.
22139         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
22140         * lib/set-mode-acl.c (qset_acl): Likewise.
22141         * lib/copy-acl.c (qcopy_acl): Likewise.
22142
22143 2008-06-08  Bruno Haible  <bruno@clisp.org>
22144
22145         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
22146         declaration.
22147         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
22148         (acl_access_nontrivial): Remove MacOS X case.
22149         (file_has_acl): Use acl_extended_nontrivial.
22150         * lib/copy-acl.c (qcopy_acl): Likewise.
22151
22152 2008-06-08  Bruno Haible  <bruno@clisp.org>
22153
22154         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
22155
22156 2008-06-08  Jim Meyering  <meyering@redhat.com>
22157
22158         * modules/acl (Maintainer): Add Bruno Haible.
22159
22160 2008-06-07  Bruno Haible  <bruno@clisp.org>
22161
22162         Improve support for Tru64 ACLs.
22163         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
22164         ACL on OSF/1.
22165
22166 2008-06-07  Bruno Haible  <bruno@clisp.org>
22167
22168         Add support for MacOS X ACLs.
22169         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
22170         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
22171         * lib/set-mode-acl.c (qset_acl): Likewise.
22172         * lib/copy-acl.c (qcopy_acl): Likewise.
22173
22174 2008-06-07  Bruno Haible  <bruno@clisp.org>
22175
22176         Fix memory leak introduced on 2008-05-22.
22177         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
22178         use.
22179
22180 2008-06-07  Bruno Haible  <bruno@clisp.org>
22181
22182         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
22183         to construct an empty ACL.
22184
22185 2008-06-07  Bruno Haible  <bruno@clisp.org>
22186
22187         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
22188         precisely.
22189         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
22190
22191 2008-06-07  Bruno Haible  <bruno@clisp.org>
22192
22193         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
22194         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
22195
22196 2008-06-07  Bruno Haible  <bruno@clisp.org>
22197
22198         * doc/posix-functions/_setjmp.texi: Explain the use of this function
22199         regardless of POSIX.
22200         * doc/posix-functions/_longjmp.texi: Likewise.
22201         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
22202         SystemV platform in this case.
22203
22204 2008-06-06  Eric Blake  <ebb9@byu.net>
22205
22206         Document abort() bugs.
22207         * doc/posix-functions/abort.texi (abort): Mention anomalies.
22208
22209         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
22210         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
22211         sigsetjmp.
22212         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
22213         siglongjmp, but only as a macro.
22214         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
22215         is obsolete.
22216         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
22217
22218         Tweak documentation to cover cygwin argz bugs.
22219         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
22220         argz bug fix; no code change needed since no cygwin releases
22221         occurred between the last fix and the bug being tested.
22222         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
22223         module and recently fixed cygwin bugs.
22224         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
22225         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
22226         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
22227         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
22228         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
22229         Likewise.
22230         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
22231         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
22232         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
22233         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
22234         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
22235         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
22236         Likewise.
22237
22238         Avoid gcc warning on cygwin.
22239         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
22240         !ACL_NO_TRIVIAL]: Avoid unused variable.
22241
22242 2008-06-05  Eric Blake  <ebb9@byu.net>
22243
22244         Be tolerant of UNKNOWN version in gnulib-tool test dir.
22245         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
22246         git-version-gen fails to come up with a version.
22247         Reported by Simon Josefsson.
22248
22249 2008-06-05  Jim Meyering  <meyering@redhat.com>
22250             Paul Eggert  <eggert@cs.ucla.edu>
22251
22252         utimens.c: work around a probable Linux kernel bug
22253         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
22254         appears to be a kernel bug that causes utimensat to return 280
22255         instead of 0, indicating success.
22256
22257 2008-06-04  Bruno Haible  <bruno@clisp.org>
22258
22259         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
22260         2008-06-01 commit.
22261
22262 2008-06-04  Bruno Haible  <bruno@clisp.org>
22263
22264         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
22265         * lib/file-has-acl.c (acl_access_nontrivial): New function.
22266         (file_has_acl): Use it. Save errno afterwards.
22267         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
22268
22269 2008-06-03  Bruno Haible  <bruno@clisp.org>
22270
22271         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
22272         draft code. Simplify #ifs.
22273         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
22274         Put Solaris code after POSIX-draft code. Fix comments regarding
22275         Solaris 10, HP-UX. Mention Cygwin.
22276         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
22277
22278 2008-06-03  Eric Blake  <ebb9@byu.net>
22279
22280         Provide fallback for older kernels.
22281         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
22282         Provide runtime fallback if kernel lacks support.
22283         Reported by Mike Frysinger.
22284
22285 2008-06-02  Bruno Haible  <bruno@clisp.org>
22286
22287         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
22288         it exists.
22289
22290 2008-06-02  Bruno Haible  <bruno@clisp.org>
22291
22292         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
22293         * lib/copy-acl.c (qcopy_acl): Update comment.
22294
22295 2008-06-02  Bruno Haible  <bruno@clisp.org>
22296
22297         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
22298         like ACL APIs.
22299
22300 2008-06-02  Bruno Haible  <bruno@clisp.org>
22301
22302         * tests/test-file-has-acl.sh: Use different code for Cygwin.
22303         * tests/test-set-mode-acl.sh: Likewise.
22304         * tests/test-copy-acl.sh: Likewise.
22305         * tests/test-copy-file.sh: Likewise.
22306
22307 2008-06-02  Bruno Haible  <bruno@clisp.org>
22308
22309         * tests/test-file-has-acl.sh: Remove unused code.
22310
22311 2008-06-01  Bruno Haible  <bruno@clisp.org>
22312
22313         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
22314         (copy_acl): Just a wrapper around qcopy_acl that emits the error
22315         messages.
22316         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
22317
22318 2008-06-01  Bruno Haible  <bruno@clisp.org>
22319
22320         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
22321         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
22322         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
22323         APIs.
22324         * modules/acl-tests (configure.ac): Remove tests now contained in
22325         m4/acl.m4.
22326
22327 2008-06-02  Jim Meyering  <meyering@redhat.com>
22328
22329         announce-gen: use a better key-server host name
22330         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
22331         it may be more consistently reliable.  Suggested by Werner Koch
22332         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
22333
22334 2008-06-01  Bruno Haible  <bruno@clisp.org>
22335
22336         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
22337         Reported by Voroskoi Andras <voroskoi@gmail.com>.
22338
22339 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
22340
22341         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
22342
22343 2008-06-01  Bruno Haible  <bruno@clisp.org>
22344
22345         New ACL tests.
22346         * tests/test-file-has-acl.sh: New file.
22347         * tests/test-file-has-acl.c: New file.
22348         * tests/test-set-mode-acl.sh: New file.
22349         * tests/test-set-mode-acl.c: New file.
22350         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
22351         * tests/test-copy-acl.c: New file.
22352         * modules/acl-tests: New file, based on modules/copy-file-tests.
22353         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
22354         (Depends-on): Add acl-tests.
22355         (configure.ac): Remove checks.
22356         (Makefile.am): Don't create test-sameacls program here any more.
22357
22358 2008-06-01  Bruno Haible  <bruno@clisp.org>
22359
22360         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
22361         * tests/test-sameacls.c: Include progname.h.
22362         (main): Invoke set_program_name. Portability fixes for MacOS X,
22363         Solaris, HP-UX.
22364
22365 2008-06-01  Bruno Haible  <bruno@clisp.org>
22366
22367         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
22368         function.
22369         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
22370
22371 2008-06-01  Bruno Haible  <bruno@clisp.org>
22372
22373         * modules/rpmatch (Depends-on): Add strdup.
22374
22375 2008-06-01  Bruno Haible  <bruno@clisp.org>
22376
22377         * lib/pipe.c: Include unistd-safer.h.
22378         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
22379         * modules/pipe (Depends-on): Add unistd-safer.
22380
22381 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22382
22383         * modules/autobuild (configure.ac): Call AB_INIT.
22384
22385 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22386
22387         * tests/test-getaddrinfo.c: Don't print debug messages by default.
22388         Suggested by Bruno Haible <bruno@clisp.org>.
22389
22390 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22391
22392         * tests/test-base64.c: Cast size_t to unsigned long when invoking
22393         printf.  Use %lu instead of %d.  Reported by Bruno Haible
22394         <bruno@clisp.org>.
22395
22396 2008-05-29  Eric Blake  <ebb9@byu.net>
22397
22398         Prefer new POSIX 200x interfaces over futimesat.
22399         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
22400         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
22401         when available.
22402         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
22403
22404 2008-05-28  Bruno Haible  <bruno@clisp.org>
22405
22406         * modules/stpcpy (License): Change to LGPLv2+.
22407         Requested by David Lutterkort <dlutter@redhat.com>.
22408
22409 2008-05-27  Bruno Haible  <bruno@clisp.org>
22410
22411         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
22412         current mingw.
22413         Reported by Jose E. Marchesi <jemarch@gnu.org>.
22414
22415 2008-05-27  Bruno Haible  <bruno@clisp.org>
22416
22417         * modules/iconv_open (Link): New section, from module 'iconv'.
22418         * modules/striconv (Link): Likewise.
22419         * modules/striconveh (Link): Likewise.
22420         * modules/xstriconv (Link): Likewise.
22421         * modules/unicodeio (Link): Likewise.
22422         * modules/propername (Link): Likewise.
22423         Reported by Jim Meyering.
22424
22425 2008-05-26  Jim Meyering  <meyering@redhat.com>
22426
22427         sha256: do not artificially restrict buffer length to be < 2^32
22428         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
22429         uint32_t to size_t.
22430         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
22431         to match.
22432
22433         avoid unaligned access errors, e.g., on sparc
22434         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
22435         direct access through a possibly-unaligned uint64* pointer.
22436         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
22437         direct access through a possibly-unaligned uint32* pointer.
22438         Prompted by this patch from Tom "spot" Callaway:
22439         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
22440
22441         sha512.c: fix typo in comment
22442         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
22443
22444 2008-05-25  Bruno Haible  <bruno@clisp.org>
22445
22446         * lib/set-mode-acl.c: Renamed from lib/acl.c.
22447         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
22448         (Makefile.am): Update lib_SOURCES.
22449
22450 2008-05-25  Bruno Haible  <bruno@clisp.org>
22451
22452         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
22453
22454 2008-05-25  Jim Meyering  <meyering@redhat.com>
22455
22456         useless-if-before-free: freed expr may have white-space differences
22457         * build-aux/useless-if-before-free: Recognize cases in which the
22458         freed expression differs from the tested one in embedded white
22459         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
22460         $1 was used, so we can't make any regexp shy.  Improved tests now
22461         detect this.
22462
22463         useless-if-before-free: accept white space in the expression.
22464         * build-aux/useless-if-before-free: For now, any white space
22465         in the expression must be identical in the free argument.
22466
22467         useless-if-before-free: efficiency tweak
22468         * build-aux/useless-if-before-free: Make the expression-matching
22469         regexp "shy".
22470         Make the *outer* regexp shy, not the expr-matching one.
22471
22472         update code-in-comment to accept cast of free arg
22473         * build-aux/useless-if-before-free: Update regexp.
22474
22475 2008-05-25  Bruno Haible  <bruno@clisp.org>
22476
22477         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
22478         * modules/copy-file-tests (Files, Makefile.am): Update.
22479         * tests/test-copy-file.c (func_test_copy): Update.
22480
22481 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
22482
22483         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
22484
22485 2008-05-23  Bruno Haible  <bruno@clisp.org>
22486
22487         Improve support for ACLs on OSF/1.
22488         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
22489         Remove fallback for unknown flavors of ACLs.
22490
22491 2008-05-22  Bruno Haible  <bruno@clisp.org>
22492
22493         Add support for ACLs on OSF/1.
22494         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
22495         replacements.
22496         (acl_free_text): New macro fallback.
22497         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
22498         acl_free.
22499         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
22500         acl_free_text function. Require AC_C_INLINE.
22501
22502 2008-05-22  Bruno Haible  <bruno@clisp.org>
22503
22504         Make copy_acl work on MacOS X 10.5.
22505         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
22506         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
22507         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
22508         If MODE_INSIDE_ACL, don't assume that every system has the same text
22509         representation for ACLs as FreeBSD.
22510         * lib/copy-acl.c (copy_acl): Add support for platforms with
22511         !MODE_INSIDE_ACL.
22512         * lib/file-has-acl.c (file_has_acl): Likewise.
22513         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
22514         FreeBSD, MacOS X, or IRIX, respectively.
22515
22516 2008-05-22  Bruno Haible  <bruno@clisp.org>
22517
22518         * lib/acl.h: Don't include <sys/acl.h>.
22519         (GETACLCNT): Move fallback to lib/acl-internal.h.
22520         * lib/acl-internal.h: Include <sys/acl.h> here.
22521         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
22522
22523 2008-05-22  Bruno Haible  <bruno@clisp.org>
22524
22525         Split off copy_acl function to separate file.
22526         * lib/copy-acl.c: New file, extracted from lib/acl.c.
22527         * lib/acl.c (copy_acl): Moved function to separate file.
22528         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
22529         * modules/acl (Files): Add lib/copy-acl.c.
22530         (Makefiles.am): Augment lib_SOURCES.
22531
22532 2008-05-22  Bruno Haible  <bruno@clisp.org>
22533
22534         * modules/copy-file-tests: New file.
22535         * tests/test-copy-file.sh: New file.
22536         * tests/test-copy-file.c: New file.
22537         * tests/test-copy-file-sameacls.c: New file.
22538
22539 2008-05-22  Eric Blake  <ebb9@byu.net>
22540
22541         Avoid gcc warning.
22542         * tests/test-memcmp.c (main): Pass NULL indirectly.
22543
22544 2008-05-21  Bruno Haible  <bruno@clisp.org>
22545
22546         Add reference doc about ACLs.
22547         * doc/acl-resources.txt: New file.
22548         * doc/acl-cygwin.txt: New file.
22549
22550 2008-05-21  Bruno Haible  <bruno@clisp.org>
22551
22552         Avoid one more warning from gcc.
22553         * lib/vasnprintf.c (IF_LINT): Update comments.
22554         (VASNPRINTF): Use it also for the 'prefix' array initializer.
22555
22556 2008-05-21  Jim Meyering  <meyering@redhat.com>
22557
22558         avoid a warning from gcc
22559         * lib/vasnprintf.c (IF_LINT): Define.
22560         (scale10_round_decimal_long_double):
22561         Use it to avoid a "may be used uninitialized" warning.
22562         (scale10_round_decimal_double): Likewise.
22563
22564 2008-05-21  Simon Josefsson  <simon@josefsson.org>
22565
22566         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
22567         declared.
22568
22569 2008-05-20  Bruno Haible  <bruno@clisp.org>
22570
22571         * tests/test-memcmp.c (main): Test also the sign of the result. Test
22572         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
22573
22574 2008-05-20  Simon Josefsson  <simon@josefsson.org>
22575
22576         * modules/memcmp-tests: New file.
22577         * tests/test-memcmp.c: New file.
22578
22579 2008-05-19  Bruno Haible  <bruno@clisp.org>
22580
22581         * modules/propername (Notice, configure.ac): Put quoted "..." into
22582         --keyword option.
22583         * lib/propername.h: Update comments accordingly.
22584         Reported by Eric Blake.
22585
22586 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
22587
22588         * modules/getpass-gnu (Depends-on): Add fseeko.
22589
22590 2008-05-19  Simon Josefsson  <simon@josefsson.org>
22591
22592         * modules/base64-tests: New file.
22593
22594 2008-05-19  Bo Borgerson <gigabo@gmail.com>
22595
22596         * lib/base64.c (base64_decode_ctx): If a decode context structure
22597         was passed in use it to ignore newlines.  If a context structure
22598         was _not_ passed in, continue to treat newlines as garbage (this
22599         is the historical behavior).  Formerly base64_decode.
22600         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
22601         takes a decode context structure.
22602         * lib/base64.h (base64_decode): Macro for four-argument calls.
22603         (base64_decode_alloc): Likewise.
22604         * lib/base64.c (base64_decode_ctx): If a decode context structure
22605         was passed in use it to ignore newlines.  If a context structure
22606         was _not_ passed in, continue to treat newlines as garbage (this
22607         is the historical behavior).  Formerly base64_decode.
22608         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
22609         takes a decode context structure.
22610         * lib/base64.h (base64_decode): Macro for four-argument calls.
22611         (base64_decode_alloc): Likewise.
22612
22613 2008-05-19  Jim Meyering  <meyering@redhat.com>
22614
22615         avoid a warning from gcc
22616         * lib/trim.c (IF_LINT): Define.
22617         (trim2): Use it to avoid a "may be used uninitialized" warning.
22618
22619         Fix doc typo.
22620         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
22621
22622 2008-05-19  Bruno Haible  <bruno@clisp.org>
22623
22624         * doc/glibc-functions/getpass.texi: Document limits of other
22625         implementations.
22626
22627 2008-05-19  Simon Josefsson  <simon@josefsson.org>
22628             Bruno Haible <bruno@clisp.org>
22629
22630         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
22631
22632 2008-05-18  Bruno Haible  <bruno@clisp.org>
22633
22634         * modules/propername: New file, from GNU gettext.
22635         * lib/propername.h: New file, from GNU gettext.
22636         * lib/propername.c: New file, from GNU gettext.
22637         * MODULES.html.sh (Internationalization functions): Add propername.
22638
22639 2008-05-16  Jim Meyering  <meyering@redhat.com>
22640             Bruno Haible  <bruno@clisp.org>
22641
22642         Avoid some warnings from "gcc -Wshadow".
22643         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
22644
22645 2008-05-15  Eric Blake  <ebb9@byu.net>
22646
22647         Extend previous patch to cygwin 1.7.0.
22648         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
22649         fast implementation in cygwin >= 1.7.0.
22650         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22651         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22652
22653 2008-05-15  Bruno Haible  <bruno@clisp.org>
22654
22655         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
22656         implementation in glibc >= 2.9.
22657         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22658         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22659
22660 2008-05-15  Bruno Haible  <bruno@clisp.org>
22661
22662         * MODULES.html.sh (Internationalization functions): Remove linebreak.
22663         (Unicode string functions): Add unilbrk/*.
22664         Reported by Karl Berry.
22665
22666 2008-05-15  Eric Blake  <ebb9@byu.net>
22667
22668         Fix violation of <stdbool.h> replacement in regex.
22669         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
22670         * lib/regexec.c (re_search_internal): Likewise.
22671         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
22672
22673 2008-05-15  Jim Meyering  <meyering@redhat.com>
22674
22675         avoid distracting test output when git or cvs is not found
22676         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
22677         * tests/test-vc-list-files-git.sh: Likewise.
22678
22679 2008-05-15  Eric Blake  <ebb9@byu.net>
22680
22681         Glibc finally accepted the memmem speedup code, bugzilla #5514.
22682         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
22683         glibc version.
22684         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
22685         * doc/posix-functions/strstr.texi (strstr): Likewise.
22686         * lib/str-two-way.h (MAX): Sychronize with glibc.
22687
22688 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
22689
22690         * lib/regcomp.c (optimize_utf8): Add a note on why we test
22691         opr.ctx_type.
22692         (calc_first): Initialize constraint field.
22693         (duplicate_node_closure): Use it instead of special casing ANCHORS.
22694         Fix grammar.
22695         (duplicate_node): Merge constraint field for all node types.
22696         (calc_eclosure_iter): Look at constraint field for all node types.
22697         * lib/regex_internal.c (create_cd_newstate): Don't look at
22698         opr.ctx_type.
22699
22700 2008-05-14  Bruno Haible  <bruno@clisp.org>
22701
22702         Help GCC to do better code generation.
22703         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
22704         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
22705         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
22706         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
22707         Declare with attribute 'malloc' if supported.
22708
22709 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
22710
22711         use "echo STR|wc -c" rather than unportable "expr length STR"
22712         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
22713         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
22714
22715 2008-05-14  Jim Meyering  <meyering@redhat.com>
22716
22717         use dd ibs=$n count=1 ... rather than less-portable head -c$n
22718         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
22719         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
22720         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
22721         via Collin Lasse.
22722
22723 2008-05-14  Eric Blake  <ebb9@byu.net>
22724
22725         Avoid quadratic growth in gl_LIBSOURCES.
22726         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
22727         Suggested by Bruno Haible.
22728
22729         Test xmemdup0.
22730         * modules/xmemdup0-tests: New file.
22731         * tests/test-xmemdup0.c: Likewise.
22732
22733 2008-05-13  Eric Blake  <ebb9@byu.net>
22734
22735         Split xmemdup0 into its own module.
22736         * modules/xmemdup0: New file.
22737         * lib/xmemdup0.h: Likewise.
22738         * lib/xmemdup0.c: Likewise.
22739         * MODULES.html.sh (Memory management functions): Add xmemdup0.
22740         * lib/xalloc.h (xmemdup0): Remove.
22741         * lib/xmalloc.c (xmemdup0): Likewise.
22742
22743 2008-05-13  Eric Blake  <ebb9@byu.net>
22744             Bruno Haible  <bruno@clisp.org>
22745
22746         Reduce number of forks required during autoconf.
22747         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
22748         and gl_LIBSOURCES_DIR.
22749         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
22750         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
22751         m4_syscmd per file.
22752         <m4_foreach_w>: Move...
22753         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
22754
22755 2008-05-13  Eric Blake  <ebb9@byu.net>
22756
22757         * gnulib-tool: Fix various comment typos.
22758
22759 2008-05-12  Bruno Haible  <bruno@clisp.org>
22760
22761         Tailor the linebreaking algorithm.
22762         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
22763
22764 2008-05-12  Bruno Haible  <bruno@clisp.org>
22765
22766         Update to Unicode 5.0.0.
22767         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
22768         LBP_JV, LBP_JT. Redistribute values.
22769         (unilbrk_table): Change size.
22770         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
22771         Unicode TR#14 rev. 22.
22772         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
22773         LBP_JV, LBP_JT. Redistribute values.
22774         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
22775         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
22776         Update.
22777         * lib/unilbrk/lbrkprop1.h: Regenerated.
22778         * lib/unilbrk/lbrkprop2.h: Regenerated.
22779         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
22780         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
22781         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
22782         Likewise.
22783         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
22784         Likewise.
22785         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
22786         result.
22787         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22788         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22789         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22790         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
22791         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
22792         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
22793
22794 2008-05-11  Bruno Haible  <bruno@clisp.org>
22795
22796         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
22797
22798 2008-05-11  Bruno Haible  <bruno@clisp.org>
22799
22800         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
22801         * modules/unilbrk/gen-lbrk: New file.
22802
22803 2008-05-11  Bruno Haible  <bruno@clisp.org>
22804
22805         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
22806         * m4/sha512.m4 (gl_SHA512): Likewise.
22807
22808 2008-05-11  Jim Meyering  <meyering@redhat.com>
22809
22810         New modules: crypto/sha256, crypto/sha512 (from coreutils)
22811         * modules/crypto/sha256: New file.
22812         * modules/crypto/sha512: Likewise.
22813         * lib/sha256.c: Likewise.
22814         * lib/sha256.h: Likewise.
22815         * lib/sha512.c: Likewise.
22816         * lib/sha512.h: Likewise.
22817         * lib/u64.h: Likewise.
22818         * m4/sha256.m4: Likewise.
22819         * m4/sha512.m4: Likewise.
22820         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
22821
22822 2008-05-10  Bruno Haible  <bruno@clisp.org>
22823
22824         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
22825         (Input/Output <stdio.h>): Add xprintf.
22826         (Signal handling <signal.h>): Add strsignal.
22827         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
22828         (Core language properties): Add func.
22829         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
22830         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
22831         strings.
22832         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
22833         (Input/output): New section.
22834         (File system functions): Add openat-die, stat-macros.
22835         (Networking functions): Add sockets.
22836         (Unicode string functions): Add unictype/*.
22837         (Support for building libraries and executables): Add gperf.
22838         (Support for building documentation): Add agpl-3.0.
22839         (Misc): Add nocrash.
22840
22841 2008-05-10  Bruno Haible  <bruno@clisp.org>
22842
22843         * modules/unictype/gen-ctype: New file.
22844
22845 2008-05-10  Jim Meyering  <meyering@redhat.com>
22846
22847         Make chdir-safer.c more efficient on a system with no symlinks.
22848         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
22849         also if ELOOP is zero.  Suggested by Bruno Haible.
22850
22851         Make chdir-safer.c slightly safer.
22852         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
22853         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
22854
22855         Avoid compile failure on systems without ELOOP (like mingw).
22856         * lib/chdir-safer.c (ELOOP): Define if not already defined.
22857         Reported by Bruno Haible.
22858
22859 2008-05-10  Bruno Haible  <bruno@clisp.org>
22860
22861         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
22862         (is_utf8_encoding): Use a case-insensitive comparison.
22863         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
22864         streq.
22865
22866 2008-05-10  Bruno Haible  <bruno@clisp.org>
22867
22868         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
22869         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
22870         * lib/unilbrk/ulc-common.h (iconv_string_length,
22871         iconv_string_keeping_offsets): Remove declarations.
22872         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
22873         Don't include <iconv.h>, streq.h, xsize.h.
22874         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
22875         conversion.
22876         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
22877         <iconv.h>, streq.h, xsize.h.
22878         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
22879         conversion.
22880         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
22881         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
22882         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
22883         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
22884
22885 2008-05-10  Bruno Haible  <bruno@clisp.org>
22886
22887         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
22888         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
22889
22890         * modules/unilbrk/u32-width-linebreaks-tests: New file.
22891         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
22892
22893         * modules/unilbrk/u16-width-linebreaks-tests: New file.
22894         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
22895
22896         * modules/unilbrk/u8-width-linebreaks-tests: New file.
22897         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
22898
22899         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
22900         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
22901
22902         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
22903         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
22904
22905         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
22906         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
22907
22908         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
22909         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
22910
22911 2008-05-10  Bruno Haible  <bruno@clisp.org>
22912
22913         Split up 'linebreak' module.
22914         * lib/unilbrk.h: New file, based on lib/linebreak.h.
22915         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
22916         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
22917         modifications.
22918         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
22919         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
22920         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
22921         lib/linebreak.c.
22922         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
22923         lib/linebreak.c.
22924         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
22925         lib/linebreak.c.
22926         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
22927         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
22928         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
22929         lib/linebreak.c.
22930         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
22931         lib/linebreak.c.
22932         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
22933         lib/linebreak.c.
22934         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
22935         lib/linebreak.c.
22936         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
22937         lib/linebreak.c.
22938         * modules/unilbrk/base: New file.
22939         * modules/unilbrk/tables: New file.
22940         * modules/unilbrk/u8-possible-linebreaks: New file.
22941         * modules/unilbrk/u16-possible-linebreaks: New file.
22942         * modules/unilbrk/u32-possible-linebreaks: New file.
22943         * modules/unilbrk/ulc-common: New file.
22944         * modules/unilbrk/ulc-possible-linebreaks: New file.
22945         * modules/unilbrk/u8-width-linebreaks: New file.
22946         * modules/unilbrk/u16-width-linebreaks: New file.
22947         * modules/unilbrk/u32-width-linebreaks: New file.
22948         * modules/unilbrk/ulc-width-linebreaks: New file.
22949         * lib/linebreak.h: Remove file.
22950         * lib/linebreak.c: Remove file.
22951         * m4/linebreak.m4: Remove file.
22952         * modules/linebreak: Remove file.
22953         * NEWS: Mention the changes.
22954
22955 2008-05-09  Eric Blake  <ebb9@byu.net>
22956
22957         Add xmemdup0.
22958         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
22959         implementation.
22960         * lib/xmalloc.c (xmemdup0): New C implementation.
22961
22962 2008-05-08  Bruno Haible  <bruno@clisp.org>
22963
22964         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
22965
22966 2008-05-07  Eric Blake  <ebb9@byu.net>
22967
22968         Support cross-compilation of <wctype.h>.
22969         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
22970         AC_CACHE_CHECK.
22971
22972 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
22973
22974         * build-aux/vc-list-files: Add support for bzr.
22975
22976 2008-05-03  Jim Meyering  <meyering@redhat.com>
22977
22978         avoid failed assertion with tight malloc
22979         * tests/test-getndelim2.c: Correct an off-by-one assertion.
22980
22981 2008-05-03  Simon Josefsson  <simon@josefsson.org>
22982
22983         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
22984         are needed from arpa/inet.h.
22985         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
22986         Reported by Bruno Haible.
22987
22988 2008-05-02  Jim Meyering  <meyering@redhat.com>
22989
22990         avoid compilation error on FreeBSD 6
22991         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
22992
22993 2008-05-01  Jim Meyering  <meyering@redhat.com>
22994
22995         useless-if-before-free: correct --help's exit status description
22996         * build-aux/useless-if-before-free (usage): Like grep, exit 0
22997         for one or more matches, etc.  Reported by Bruno Haible.
22998
22999         vc-list-files: make the stand-alone gnulib test work
23000         * modules/vc-list-files-tests (configure.ac):
23001         Define and AC_SUBST abs_aux_dir.
23002         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
23003         $(abs_top_srcdir) to each script and having each of them
23004         duplicate the work of setting PATH, set PATH here, using
23005         the new variable, abs_aux_dir instead.
23006         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
23007         * tests/test-vc-list-files-git.sh: Likewise.
23008         Reported by Bruno Haible.
23009
23010 2008-05-01  Bruno Haible  <bruno@clisp.org>
23011
23012         * lib/getndelim2.c (getndelim2): Fix newsize computation during
23013         reallocation. Rename 'done' to 'found_delimiter'.
23014
23015 2008-05-01  Jim Meyering  <meyering@redhat.com>
23016
23017         vc-list-files: accommodate /bin/sh like the one from Solaris 10
23018         * build-aux/vc-list-files: Use `...`, not $(...).
23019
23020 2008-04-30  Jim Meyering  <meyering@redhat.com>
23021
23022         add tests for vc-list-files
23023         * modules/vc-list-files-tests: New module.
23024         * tests/test-vc-list-files-cvs.sh: New file.
23025         * tests/test-vc-list-files-git.sh: New file.
23026
23027         avoid a warning from gcc
23028         * lib/getndelim2.c (IF_LINT): Define.
23029         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
23030
23031         vc-list-files: work properly with build-aux/cvsu, too
23032         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
23033         to all cvs-based clauses.
23034
23035         vc-list-files: work properly in the CVS+awk case, too
23036         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
23037
23038         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
23039         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
23040         take more than one file argument, so .  Add quotes, just in case $dir
23041         ever contains a shell meta-character.  Prompted by Soren Hansen in
23042         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
23043
23044 2008-04-29  Eric Blake  <ebb9@byu.net>
23045
23046         Optimize getndelim2 to use block operations when possible.
23047         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
23048         freadseek, and memchr2.
23049         * lib/getndelim2.c (getndelim2): Use them for block reads.
23050
23051 2008-04-29  Bruno Haible  <bruno@clisp.org>
23052
23053         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
23054         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23055         * modules/inet_ntop (Depends-on): Add extensions.
23056         * modules/inet_pton (Depends-on): Likewise.
23057         Reported by Simon Josefsson.
23058
23059 2008-04-29  Jim Meyering  <meyering@redhat.com>
23060
23061         When the is more than one match in a block, match all of them.
23062         * build-aux/useless-if-before-free: Iterate through each block
23063         until there are no more matches.
23064
23065         Fix broken useless-if-before-free script.
23066         * build-aux/useless-if-before-free: Fix typo: missing "?" after
23067         the expression to match cast of argument to free-like function.
23068
23069 2008-04-29  Eric Blake  <ebb9@byu.net>
23070
23071         Use new header.
23072         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
23073
23074 2008-04-29  Jim Meyering  <meyering@redhat.com>
23075
23076         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
23077         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
23078         by gnulib to exist and to declare e.g., inet_ntop.
23079         Don't include "inet_ntop.h", now removed.
23080
23081         * m4/arpa_inet_h.m4: Remove trailing blanks.
23082
23083 2008-04-29  Eric Blake  <ebb9@byu.net>
23084
23085         Silence valgrind on safe reads beyond potential array bounds.
23086         * lib/rawmemchr.valgrind: New file.
23087         * lib/strchrnul.valgrind: Likewise.
23088         * modules/rawmemchr (Files): Distribute new file.
23089         * modules/strchrnul (Files): Likewise.
23090         Suggested by Bruno Haible.
23091
23092 2008-04-29  Bruno Haible  <bruno@clisp.org>
23093
23094         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
23095         (inet_ntop, inet_pton): Change portability warning's wording.
23096         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
23097         Invoke gl_CHECK_NEXT_HEADERS.
23098         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
23099         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
23100         set ARPA_INET_H.
23101         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23102         * modules/arpa_inet (Description): No longer only for systems that
23103         lack it.
23104         (Depends-on): Add include_next.
23105         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
23106         HAVE_ARPA_INET_H.
23107
23108 2008-04-29  Jim Meyering  <meyering@redhat.com>
23109
23110         * modules/mkdir (License): Re-license as LGPLv2+.
23111
23112 2008-04-29  Bruno Haible  <bruno@clisp.org>
23113
23114         * modules/rawmemchr (Maintainer): Set to Eric.
23115         * modules/strchrnul (Maintainer): Likewise.
23116
23117 2008-04-29  Simon Josefsson  <simon@josefsson.org>
23118
23119         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
23120         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
23121
23122         * modules/arpa_inet (arpa/inet.h): Use them.
23123
23124 2008-04-28  Eric Blake  <ebb9@byu.net>
23125
23126         Test getndelim2.
23127         * modules/getndelim2-tests: New file.
23128         * tests/test-getndelim2.c: Likewise.
23129         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
23130         stream.
23131         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
23132
23133         * MODULES.html.sh: Document new module.
23134
23135 2008-04-20  Bruno Haible  <bruno@clisp.org>
23136
23137         * lib/c-stack.c (die): Use raise.
23138         * modules/c-stack (Depends-on): Add raise.
23139
23140 2008-04-28  Bruno Haible  <bruno@clisp.org>
23141
23142         Expect rpmatch to be declared.
23143         * lib/yesno.c (rpmatch): Remove declaration.
23144
23145         Declare rpmatch.
23146         * lib/stdlib.in.h (rpmatch): New declaration.
23147         * lib/rpmatch.c: Include <stdlib.h> first.
23148         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
23149         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
23150         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
23151         HAVE_RPMATCH.
23152         * modules/rpmatch (Depends-on): Add stdlib, extensions.
23153         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23154         (Include): Set to <stdlib.h>.
23155         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
23156         HAVE_RPMATCH.
23157         * NEWS: Document the change.
23158
23159 2008-04-28  Bruno Haible  <bruno@clisp.org>
23160
23161         Change rpmatch to use nl_langinfo when appropriate.
23162         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
23163         (N_): New macro.
23164         (localized_pattern): New function/macro.
23165         (try): Remove match, nomatch arguments. Copy the pattern into safe
23166         memory before caching it.
23167         (rpmatch): Use localized_pattern. Add translator comments.
23168         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
23169         Suggested by Eric Blake.
23170         * modules/rpmatch (Depends-on): Add stdbool.
23171
23172 2008-04-28  Eric Blake  <ebb9@byu.net>
23173
23174         Add rawmemchr module, matching glibc.
23175         * modules/string (Makefile.am): New indicator.
23176         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
23177         * lib/string.in.h (rawmemchr): Declare when appropriate.
23178         * modules/rawmemchr: New file.
23179         * m4/rawmemchr.m4: Likewise.
23180         * lib/rawmemchr.c: Likewise.
23181         * modules/rawmemchr-tests: Likewise.
23182         * tests/test-rawmemchr.c: Likewise.
23183         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
23184         module.
23185         * modules/strchrnul (Depends-on): Add rawmemchr.
23186         * lib/strchrnul.c (strchrnul): Optimize a corner case.
23187
23188         Whitespace cleanup.
23189         * tests/test-strchrnul.c: Reindent.
23190         * lib/strchrnul.c: Likewise.
23191
23192         Optimize and test strchrnul.
23193         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
23194         * modules/strchrnul-tests: New file.
23195         * tests/test-strchrnul.c: Likewise.
23196
23197         Remove intprops dependency.
23198         * modules/memchr (Depends-on): Remove intprops.
23199         * modules/memrchr (Depends-on): Likewise.
23200         * modules/memchr2 (Depends-on): Likewise.
23201         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
23202         * lib/memrchr.c (__memrchr): Likewise.
23203         * lib/memrchr2.c (memchr2): Likewise.
23204         Reported by Simon Josefsson.
23205
23206 2008-04-28  Simon Josefsson  <simon@josefsson.org>
23207
23208         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
23209         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23210
23211 2008-04-28  Simon Josefsson  <simon@josefsson.org>
23212
23213         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
23214
23215         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
23216
23217         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
23218
23219         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
23220         declarations.
23221         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
23222
23223         * m4/inet_pton.m4: Don't check for header files.
23224
23225         * m4/inet_ntop.m4: Don't check for header files.
23226
23227 2008-04-28  Simon Josefsson  <simon@josefsson.org>
23228
23229         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
23230         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
23231         trigger for cygwin).
23232         Reported by Bruno Haible  <bruno@clisp.org>.
23233
23234 2008-04-28  Bruno Haible  <bruno@clisp.org>
23235
23236         * doc/posix-functions/strdup.texi: Mention mingw problem.
23237
23238 2008-04-27  Bruno Haible  <bruno@clisp.org>
23239
23240         * modules/stat-time-tests (Depends-on): Add sleep.
23241         * tests/test-stat-time.c (force_unlink): New function.
23242         (cleanup): Use it.
23243         (test_mtime): Remove the ctime related tests.
23244         (test_ctime): New function, containing the ctime related tests.
23245         (main): Call test_ctime, except on native Windows platforms.
23246
23247 2008-04-27  Bruno Haible  <bruno@clisp.org>
23248
23249         * lib/rpmatch.c (rpmatch): Add some comments.
23250         Reported by James Youngman <jay@gnu.org>.
23251
23252 2008-04-27  Bruno Haible  <bruno@clisp.org>
23253
23254         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
23255         quiet NaNs.
23256
23257 2008-04-27  Bruno Haible  <bruno@clisp.org>
23258
23259         Make test-yesno.sh work on mingw.
23260         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
23261         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
23262         (main): Set stdin to binary mode.
23263         * modules/yesno-tests (Depends-on): Add binary-io.
23264
23265 2008-04-27  Bruno Haible  <bruno@clisp.org>
23266
23267         Fix 'isfinite' on x86, x86_64, ia64 platforms.
23268         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
23269         argument that lie outside the IEEE 854 domain.
23270         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
23271         (gl_ISFINITE): Use it.
23272         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
23273
23274 2008-04-27  Bruno Haible  <bruno@clisp.org>
23275
23276         Allow local renaming in config.h.
23277         * lib/memrchr.c (memrchr): Don't undefine outside libc.
23278
23279 2008-04-27  Bruno Haible  <bruno@clisp.org>
23280
23281         * lib/memchr.c (__memchr): Change type of 'i'.
23282         * lib/memchr2.c (memchr2): Likewise.
23283
23284 2008-04-26  Eric Blake  <ebb9@byu.net>
23285         and Bruno Haible  <bruno@clisp.org>
23286
23287         Optimize and test memrchr.
23288         * modules/memrchr (Depends-on): Add intprops.
23289         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
23290         * modules/memrchr-tests: New file.
23291         * tests/test-memrchr.c: New file.
23292
23293 2008-04-26  Bruno Haible  <bruno@clisp.org>
23294
23295         Add tentative support for DragonFly BSD.
23296         * lib/stdio-impl.h: Add macros for DragonFly BSD.
23297         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
23298         fp.
23299         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23300         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
23301         * lib/fpurge.c (fpurge): Likewise.
23302         * lib/freadable.c (freaadable): Likewise.
23303         * lib/freadahead.c (freadahead): Likewise.
23304         * lib/freading.c (freading): Likewise.
23305         * lib/freadptr.c (freadptr): Likewise.
23306         * lib/freadseek.c (freadptrinc): Likewise.
23307         * lib/fseeko.c (fseeko): Likewise.
23308         * lib/fseterr.c (fseterr): Likewise.
23309         * lib/fwritable.c (fwritable): Likewise.
23310         * lib/fwriting.c (fwriting): Likewise.
23311
23312 2008-04-26  Bruno Haible  <bruno@clisp.org>
23313
23314         * lib/stdio-impl.h: New file.
23315         * lib/fbufmode.c: Include stdio-impl.h.
23316         (fbufmode): Use fp_, remove redundant #defines.
23317         * lib/fflush.c: Include stdio-impl.h.
23318         (clear_ungetc_buffer): Remove redundant #defines.
23319         * lib/fpurge.c: Include stdio-impl.h.
23320         (fpurge): Remove redundant #defines.
23321         * lib/freadable.c: Include stdio-impl.h.
23322         (freadable): Remove redundant #defines.
23323         * lib/freadahead.c: Include stdio-impl.h.
23324         (freadahead): Remove redundant #defines.
23325         * lib/freading.c: Include stdio-impl.h.
23326         (freading): Remove redundant #defines.
23327         * lib/freadptr.c: Include stdio-impl.h.
23328         (freadptr): Remove redundant #defines.
23329         * lib/freadseek.c: Include stdio-impl.h.
23330         (freadptrinc): Remove redundant #defines.
23331         * lib/fseeko.c: Include stdio-impl.h.
23332         (rpl_fseeko): Remove redundant #defines.
23333         * lib/fseterr.c: Include stdio-impl.h.
23334         (fseterr): Remove redundant #defines.
23335         * lib/fwritable.c: Include stdio-impl.h.
23336         (fwritable: Remove redundant #defines.
23337         * lib/fwriting.c: Include stdio-impl.h.
23338         (fwriting): Remove redundant #defines.
23339         * modules/fbufmode (Files): Add lib/stdio-impl.h.
23340         * modules/fflush (Files): Likewise.
23341         * modules/fpurge (Files): Likewise.
23342         * modules/freadable (Files): Likewise.
23343         * modules/freadahead (Files): Likewise.
23344         * modules/freading (Files): Likewise.
23345         * modules/freadptr (Files): Likewise.
23346         * modules/freadseek (Files): Likewise.
23347         * modules/fseeko (Files): Likewise.
23348         * modules/fseterr (Files): Likewise.
23349         * modules/fwritable (Files): Likewise.
23350         * modules/fwriting (Files): Likewise.
23351
23352 2008-04-26  Bruno Haible  <bruno@clisp.org>
23353
23354         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23355         restore_seek_optimization, update_fpos_cache): New functions, extracted
23356         from rpl_fflush.
23357         (rpl_fflush): Use them.
23358         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
23359         (gl_REPLACE_FFLUSH): Use it.
23360
23361 2008-04-26  Bruno Haible  <bruno@clisp.org>
23362
23363         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
23364         on Solaris.
23365         * tests/test-xstrtoimax.sh: Likewise.
23366         * tests/test-xstrtoumax.sh: Likewise.
23367         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23368
23369 2008-04-26  Bruno Haible  <bruno@clisp.org>
23370
23371         * modules/memchr-tests: New file.
23372         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
23373
23374 2008-04-26  Eric Blake  <ebb9@byu.net>
23375             Bruno Haible  <bruno@clisp.org>
23376
23377         * lib/memchr.c: Include intprops.h.
23378         (__memchr): Optimize parallel detection of matching bytes. Rename local
23379         variables. Add explanatory comments.
23380
23381 2008-04-26  Bruno Haible  <bruno@clisp.org>
23382
23383         Fix module 'memchr', broken since 2000-10-28.
23384         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
23385
23386 2008-04-26  Bruno Haible  <bruno@clisp.org>
23387
23388         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
23389         comments.
23390
23391 2008-04-25  Eric Blake  <ebb9@byu.net>
23392
23393         Use native fstatat on cygwin 1.7.0.
23394         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
23395         first.
23396
23397 2008-04-23  Eric Blake  <ebb9@byu.net>
23398
23399         Improve memchr2 performance.
23400         * lib/memchr2.c (memchr2): Further optimize parallel detection of
23401         NUL bytes.
23402         * modules/memchr2 (Depends-on): Use intprops.h.
23403
23404 2008-04-23  Simon Josefsson  <simon@josefsson.org>
23405
23406         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
23407         an inline function instead of a CPP macro.  Patch by Ben Pfaff
23408         <blp@cs.stanford.edu>.
23409
23410 2008-04-23  Simon Josefsson  <simon@josefsson.org>
23411
23412         * lib/arpa_inet.in.h: New file.
23413
23414         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
23415         (Makefile.am): Sed in substitute header file.
23416
23417         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
23418         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
23419
23420         * modules/inet_ntop (configure.ac): Use
23421         gl_ARPA_INET_MODULE_INDICATOR.
23422
23423         * modules/inet_pton (configure.ac): Use
23424         gl_ARPA_INET_MODULE_INDICATOR.
23425
23426 2008-04-22  Jim Meyering  <meyering@redhat.com>
23427
23428         * modules/verify (License): Re-license as LGPLv2+.
23429
23430 2008-04-22  Simon Josefsson  <simon@josefsson.org>
23431
23432         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
23433         parameter to void* as per POSIX standard (MinGW uses char*).
23434
23435 2008-04-21  Bruno Haible  <bruno@clisp.org>
23436
23437         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23438         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
23439         Define to replacements if REPLACE_ISWCNTRL is 1.
23440         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
23441         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
23442         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
23443         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
23444         what it fixes.
23445         * doc/posix-functions/iswalpha.texi: Likewise.
23446         * doc/posix-functions/iswblank.texi: Likewise.
23447         * doc/posix-functions/iswcntrl.texi: Likewise.
23448         * doc/posix-functions/iswdigit.texi: Likewise.
23449         * doc/posix-functions/iswgraph.texi: Likewise.
23450         * doc/posix-functions/iswlower.texi: Likewise.
23451         * doc/posix-functions/iswprint.texi: Likewise.
23452         * doc/posix-functions/iswpunct.texi: Likewise.
23453         * doc/posix-functions/iswspace.texi: Likewise.
23454         * doc/posix-functions/iswupper.texi: Likewise.
23455         * doc/posix-functions/iswxdigit.texi: Likewise.
23456         Reported by Alain Guibert.
23457
23458 2008-04-21  Bruno Haible  <bruno@clisp.org>
23459
23460         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
23461         Patch by Alain Guibert.
23462
23463 2008-04-21  Bruno Haible  <bruno@clisp.org>
23464
23465         Fix test failures on mingw.
23466         * tests/test-xstrtol.c (print_no_progname): New function.
23467         (main): Install it in error_print_progname hook.
23468         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
23469         * tests/test-xstrtoimax.sh: Likewise.
23470         * tests/test-xstrtoumax.sh: Likewise.
23471
23472 2008-04-21  Bruno Haible  <bruno@clisp.org>
23473
23474         Fix test failure on mingw.
23475         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
23476
23477 2008-04-21  Bruno Haible  <bruno@clisp.org>
23478
23479         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
23480         Actually assign a value.
23481
23482 2008-04-20  Bruno Haible  <bruno@clisp.org>
23483
23484         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
23485         take 2.
23486         * lib/canonicalize.c (canonicalize_file_name): Elide if the
23487         'canonicalize-lgpl' module is also used.
23488         * lib/canonicalize-lgpl.c: Undo last change.
23489         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
23490
23491 2008-04-20  Bruno Haible  <bruno@clisp.org>
23492
23493         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
23494         config.h. Provide _mkdir based fallback for mingw.
23495         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
23496         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
23497         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
23498         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
23499         rather than defining mkdir in config.h.
23500         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
23501         (gl_SYS_STAT_H_DEFAULTS): New macro.
23502         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
23503         HAVE_IO_H any more.
23504         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
23505         HAVE_DECL_MKDIR and HAVE_IO_H.
23506
23507 2008-04-20  Bruno Haible  <bruno@clisp.org>
23508
23509         * lib/isapipe.c: Port to native Windows platforms.
23510
23511 2008-04-20  Bruno Haible  <bruno@clisp.org>
23512
23513         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
23514
23515 2008-04-21  Eric Blake  <ebb9@byu.net>
23516
23517         Work around preprocessors that don't handle UINTMAX_MAX.
23518         * lib/memchr2.c (memchr2): Avoid embedded #if.
23519         Reported by Alain Guibert, fix suggested by Bruno Haible.
23520
23521 2008-04-21  Simon Josefsson  <simon@josefsson.org>
23522
23523         * doc/posix-functions/strftime.texi (strftime): Explain better
23524         Windows incompatibility.  Suggested by Micah Cowan
23525         <micah@cowan.name>.
23526
23527 2008-04-20  Bruno Haible  <bruno@clisp.org>
23528
23529         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
23530         unistr/u8-mblen.
23531
23532 2008-04-20  Bruno Haible  <bruno@clisp.org>
23533
23534         Fix test failure on platforms with non-GNU iconv.
23535         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
23536         (U_TO_U8): Use it, rather than u16_to_u8.
23537         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
23538         units at the end of the input string.
23539         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
23540
23541 2008-04-20  Bruno Haible  <bruno@clisp.org>
23542
23543         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
23544         when the resulting length is 0.
23545         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
23546
23547 2008-04-20  Bruno Haible  <bruno@clisp.org>
23548
23549         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
23550         works.
23551         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
23552
23553 2008-04-20  Bruno Haible  <bruno@clisp.org>
23554
23555         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
23556         * modules/tsearch-tests (configure.ac): Test for initstate function.
23557
23558 2008-04-20  Bruno Haible  <bruno@clisp.org>
23559
23560         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
23561         for nlink_t if missing.
23562         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
23563
23564 2008-04-19  Bruno Haible  <bruno@clisp.org>
23565
23566         Work around snprintf bug on Linux libc5.
23567         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
23568         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
23569         gl_SNPRINTF_SIZE1.
23570         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23571         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
23572         that test failed.
23573         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
23574         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
23575         * modules/snprintf (Files): Add m4/printf.m4.
23576         * modules/vsnprintf (Files): Likewise.
23577         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
23578         * doc/posix-functions/vsnprintf.texi: Likewise.
23579
23580 2008-04-19  Bruno Haible  <bruno@clisp.org>
23581
23582         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
23583         from 0.0058 to less than 10^-7.
23584
23585 2008-04-19  Bruno Haible  <bruno@clisp.org>
23586
23587         Fix rounding when a precision is given.
23588         * lib/vasnprintf.c (is_borderline): New function.
23589         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
23590         9...9x.
23591         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
23592         %e, %g.
23593         * tests/test-vasprintf-posix.c (test_function): Likewise.
23594         * tests/test-snprintf-posix.h (test_function): Likewise.
23595         * tests/test-sprintf-posix.h (test_function): Likewise.
23596         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
23597         * tests/test-printf-posix.h (test_function): Likewise.
23598         * tests/test-printf-posix.output: Update.
23599         Reported by John Darrington <john@darrington.wattle.id.au> via
23600         Ben Pfaff <blp@cs.stanford.edu>.
23601
23602 2008-04-18  Simon Josefsson  <simon@josefsson.org>
23603
23604         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
23605         Suggested by Bruno Haible <bruno@clisp.org>.
23606
23607 2008-04-17  Bruno Haible  <bruno@clisp.org>
23608
23609         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
23610         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
23611         implementation.
23612         Patch by Bruce Merry <bmerry@gmail.com>.
23613
23614 2008-04-17  Simon Josefsson  <simon@josefsson.org>
23615
23616         * doc/posix-functions/strftime.texi (strftime): Mention that %e
23617         doesn't work under Windows.
23618
23619 2008-04-16  Bruno Haible  <bruno@clisp.org>
23620
23621         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
23622         New macros.
23623         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
23624         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
23625         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
23626         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
23627         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
23628         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
23629         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
23630         macros.
23631         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
23632         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
23633         Northern Sotho, Uighur.
23634
23635 2008-04-16  Bruno Haible  <bruno@clisp.org>
23636
23637         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
23638         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
23639         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
23640         Reported by Daniel Bergström <daniel@octocode.com>.
23641
23642 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
23643             Bruno Haible  <bruno@clisp.org>
23644
23645         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
23646         function.
23647         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
23648         New functions, mostly extracted from gl_locale_name_default.
23649         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
23650
23651 2008-04-16  Eric Blake  <ebb9@byu.net>
23652
23653         Adjust strtod detection to catch glibc 2.7 bug.
23654         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
23655         Reported by John Gatewood Ham.
23656
23657 2008-04-16  Bruno Haible  <bruno@clisp.org>
23658
23659         Add tentative support for Linux libc5.
23660         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
23661         * lib/fpurge.c (fpurge): Likewise.
23662         * lib/freadable.c (freadable): Likewise.
23663         * lib/freadahead.c (freadahead): Likewise.
23664         * lib/freading.c (freading): Likewise.
23665         * lib/freadptr.c (freadptr): Likewise.
23666         * lib/freadseek.c (freadptrinc): Likewise.
23667         * lib/fseeko.c (rpl_fseeko): Likewise.
23668         * lib/fseterr.c (fseterr): Likewise.
23669         * lib/fwritable.c (fwritable): Likewise.
23670         * lib/fwriting.c (fwriting): Likewise.
23671         Reported by Alain Guibert <alguibert+bts@free.fr>.
23672
23673 2008-04-15  Bruno Haible  <bruno@clisp.org>
23674
23675         * modules/mathl (configure.ac): Define module indicator.
23676
23677 2008-04-15  Bruno Haible  <bruno@clisp.org>
23678
23679         * lib/logl.c (logl): Remove unused variables.
23680
23681 2008-04-15  Bruno Haible  <bruno@clisp.org>
23682
23683         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
23684         fails.
23685
23686 2008-04-15  Bruno Haible  <bruno@clisp.org>
23687
23688         * lib/trim.c (trim2): Fix argument of isspace() macro.
23689
23690 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
23691
23692         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
23693         to 0.
23694         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
23695
23696 2008-04-14  Bruno Haible  <bruno@clisp.org>
23697
23698         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
23699         AC_LANG_PROGRAM argument.
23700         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
23701         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
23702         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23703         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23704         * m4/math_h.m4 (gl_MATH_H): Likewise.
23705         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
23706         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23707         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
23708         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
23709         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23710         * m4/regex.m4 (gl_REGEX): Likewise.
23711         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
23712         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
23713         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23714         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
23715         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
23716         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23717         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23718         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23719
23720 2008-04-14  Jim Meyering  <meyering@redhat.com>
23721
23722         test-strtod: fix typos: s/abs/fabs/
23723         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
23724
23725 2008-04-13  Bruno Haible  <bruno@clisp.org>
23726
23727         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
23728         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
23729         module is also used and while not building the reloc-wrapper.
23730
23731 2008-04-13  Bruno Haible  <bruno@clisp.org>
23732
23733         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
23734
23735 2008-04-13  Bruno Haible  <bruno@clisp.org>
23736
23737         Fix AIX compilation failure introduced on 2008-04-02.
23738         * tests/test-frexp.c (exp): Undefine before redefining.
23739         * tests/test-frexpl.c (exp): Likewise.
23740
23741 2008-04-13  Bruno Haible  <bruno@clisp.org>
23742
23743         Work around a HP-UX stdio bug.
23744         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
23745         * tests/test-ftello.c (main): Likewise.
23746         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
23747         * doc/posix-functions/ftello.texi: Likewise.
23748
23749 2008-04-13  Bruno Haible  <bruno@clisp.org>
23750
23751         Make test-signbit pass on HP-UX/hppa.
23752         * tests/test-signbit.c (minus_zerol): New variable.
23753         (test_signbitl): Use it.
23754
23755 2008-04-13  Bruno Haible  <bruno@clisp.org>
23756
23757         Make truncl work on OSF/1 4.0.
23758         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
23759         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
23760         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
23761         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
23762         HAVE_DECL_TRUNCL.
23763         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
23764         HAVE_DECL_TRUNCL.
23765         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
23766
23767 2008-04-13  Bruno Haible  <bruno@clisp.org>
23768
23769         * lib/unictype.h: Remove trailing comma from enumeration definitions.
23770
23771 2008-04-13  Bruno Haible  <bruno@clisp.org>
23772
23773         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
23774         expression, so as to avoid HP-UX 11 cc compiler bug.
23775
23776 2008-04-13  Bruno Haible  <bruno@clisp.org>
23777
23778         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
23779
23780 2008-04-13  Bruno Haible  <bruno@clisp.org>
23781
23782         * lib/git-merge-changelog.c: Remove empty declaration outside of
23783         functions.
23784
23785 2008-04-13  Bruno Haible  <bruno@clisp.org>
23786
23787         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
23788
23789 2008-04-13  Bruno Haible  <bruno@clisp.org>
23790
23791         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
23792         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
23793         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
23794         also if it exists but lacks definitions of the SHUT_* macros.
23795         * modules/sys_socket (Description): Update.
23796         Reported by Elbert Pol <e.pol@chello.nl>.
23797
23798 2008-04-13  Bruno Haible  <bruno@clisp.org>
23799
23800         * lib/localcharset.c (OS2): Don't redefine if already defined.
23801         Reported by Elbert Pol <e.pol@chello.nl>.
23802
23803 2008-04-13  Bruno Haible  <bruno@clisp.org>
23804
23805         * lib/binary-io.h [__EMX__]: Include <io.h>.
23806         Reported by Elbert Pol <e.pol@chello.nl>.
23807
23808 2008-04-12  Bruno Haible  <bruno@clisp.org>
23809
23810         * lib/fpucw.h: Enable the definitions also for x86_64.
23811         Needed for NetBSD/x86_64.
23812         Reported by Thomas Klausner <tk@giga.or.at>.
23813
23814 2008-04-12  Bruno Haible  <bruno@clisp.org>
23815
23816         * tests/test-strtod.c: Include isnand.h.
23817         (main): Use isnand instead of isnan.
23818         Reported by Jim Meyering.
23819
23820 2008-04-12  Bruno Haible  <bruno@clisp.org>
23821
23822         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
23823         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
23824
23825 2008-04-12  Jim Meyering  <meyering@redhat.com>
23826
23827         * m4/math_h.m4 (gl_MATH_H): Fix typos.
23828
23829 2008-04-12  Bruno Haible  <bruno@clisp.org>
23830
23831         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
23832         Reported by Elbert Pol <e.pol@chello.nl>.
23833
23834 2008-04-12  Eric Blake  <ebb9@byu.net>
23835
23836         Work around Solaris 10 math.h bug.
23837         * m4/math_h.m4 (gl_MATH_H): Check for bug.
23838         (gl_MATH_H_DEFAULTS): Set up default.
23839         * modules/math (Makefile.am): Replace new indicators.
23840         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
23841         * tests/test-math.c (main): Test this.
23842         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
23843         * doc/posix-headers/math.texi (math.h): Mention bug.
23844         Reported by Nelson H. F. Beebe and Jim Meyering.
23845
23846 2008-04-11  Bruno Haible  <bruno@clisp.org>
23847
23848         Adapt to future versions of Apple GCC.
23849         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
23850         Reported by Peter O'Gorman <peter@pogma.com>.
23851
23852 2008-04-11  Bruno Haible  <bruno@clisp.org>
23853
23854         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
23855
23856 2008-04-11  Bruno Haible  <bruno@clisp.org>
23857
23858         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
23859
23860         * modules/getaddrinfo-tests (Makefile.am): Define
23861         test_getaddrinfo_LDADD.
23862
23863 2008-04-11  Bruno Haible  <bruno@clisp.org>
23864
23865         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
23866         (init): Fix syntax error.
23867         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
23868         is declared.
23869
23870 2008-04-11  Bruno Haible  <bruno@clisp.org>
23871
23872         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
23873         * modules/glob (Depends-on): Add stdbool.
23874
23875 2008-04-11  Bruno Haible  <bruno@clisp.org>
23876
23877         * lib/trim.c: Include <string.h>.
23878
23879 2008-04-11  Eric Blake  <ebb9@byu.net>
23880
23881         Avoid compile failure on OS/2.
23882         * lib/regex_internal.h (internal_function): Disable optimization
23883         on OS/2 (__EMX__), where it caused compiler error.
23884         Reported by Elbert Pol.
23885
23886 2008-04-11  Bruno Haible  <bruno@clisp.org>
23887
23888         Flush the standard error stream before aborting. Needed on mingw.
23889         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
23890         * tests/test-array_list.c (ASSERT): Likewise.
23891         * tests/test-array_oset.c (ASSERT): Likewise.
23892         * tests/test-avltree_list.c (ASSERT): Likewise.
23893         * tests/test-avltree_oset.c (ASSERT): Likewise.
23894         * tests/test-avltreehash_list.c (ASSERT): Likewise.
23895         * tests/test-binary-io.c (ASSERT): Likewise.
23896         * tests/test-byteswap.c (ASSERT): Likewise.
23897         * tests/test-c-ctype.c (ASSERT): Likewise.
23898         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
23899         * tests/test-c-strcasestr.c (ASSERT): Likewise.
23900         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
23901         * tests/test-c-strstr.c (ASSERT): Likewise.
23902         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
23903         * tests/test-canonicalize.c (ASSERT): Likewise.
23904         * tests/test-carray_list.c (ASSERT): Likewise.
23905         * tests/test-ceilf1.c (ASSERT): Likewise.
23906         * tests/test-ceilf2.c (ASSERT): Likewise.
23907         * tests/test-ceill.c (ASSERT): Likewise.
23908         * tests/test-count-one-bits.c (ASSERT): Likewise.
23909         * tests/test-fbufmode.c (ASSERT): Likewise.
23910         * tests/test-fflush2.c (ASSERT): Likewise.
23911         * tests/test-floorf1.c (ASSERT): Likewise.
23912         * tests/test-floorf2.c (ASSERT): Likewise.
23913         * tests/test-floorl.c (ASSERT): Likewise.
23914         * tests/test-fopen.c (ASSERT): Likewise.
23915         * tests/test-fpending.c (ASSERT): Likewise.
23916         * tests/test-fprintf-posix.c (ASSERT): Likewise.
23917         * tests/test-fpurge.c (ASSERT): Likewise.
23918         * tests/test-freadable.c (ASSERT): Likewise.
23919         * tests/test-freadahead.c (ASSERT): Likewise.
23920         * tests/test-freading.c (ASSERT): Likewise.
23921         * tests/test-freadptr.c (ASSERT): Likewise.
23922         * tests/test-freadptr2.c (ASSERT): Likewise.
23923         * tests/test-freadseek.c (ASSERT): Likewise.
23924         * tests/test-freopen.c (ASSERT): Likewise.
23925         * tests/test-frexp.c (ASSERT): Likewise.
23926         * tests/test-frexpl.c (ASSERT): Likewise.
23927         * tests/test-fseek.c (ASSERT): Likewise.
23928         * tests/test-fseeko.c (ASSERT): Likewise.
23929         * tests/test-fstrcmp.c (ASSERT): Likewise.
23930         * tests/test-ftell.c (ASSERT): Likewise.
23931         * tests/test-ftello.c (ASSERT): Likewise.
23932         * tests/test-func.c (ASSERT): Likewise.
23933         * tests/test-fwritable.c (ASSERT): Likewise.
23934         * tests/test-fwriting.c (ASSERT): Likewise.
23935         * tests/test-getdelim.c (ASSERT): Likewise.
23936         * tests/test-getline.c (ASSERT): Likewise.
23937         * tests/test-i-ring.c (ASSERT): Likewise.
23938         * tests/test-iconv-utf.c (ASSERT): Likewise.
23939         * tests/test-iconv.c (ASSERT): Likewise.
23940         * tests/test-isfinite.c (ASSERT): Likewise.
23941         * tests/test-isnand.c (ASSERT): Likewise.
23942         * tests/test-isnanf.c (ASSERT): Likewise.
23943         * tests/test-isnanl.h (ASSERT): Likewise.
23944         * tests/test-ldexpl.c (ASSERT): Likewise.
23945         * tests/test-linked_list.c (ASSERT): Likewise.
23946         * tests/test-linkedhash_list.c (ASSERT): Likewise.
23947         * tests/test-localename.c (ASSERT): Likewise.
23948         * tests/test-lseek.c (ASSERT): Likewise.
23949         * tests/test-mbscasecmp.c (ASSERT): Likewise.
23950         * tests/test-mbscasestr1.c (ASSERT): Likewise.
23951         * tests/test-mbscasestr2.c (ASSERT): Likewise.
23952         * tests/test-mbscasestr3.c (ASSERT): Likewise.
23953         * tests/test-mbscasestr4.c (ASSERT): Likewise.
23954         * tests/test-mbschr.c (ASSERT): Likewise.
23955         * tests/test-mbscspn.c (ASSERT): Likewise.
23956         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
23957         * tests/test-mbspbrk.c (ASSERT): Likewise.
23958         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
23959         * tests/test-mbsrchr.c (ASSERT): Likewise.
23960         * tests/test-mbsspn.c (ASSERT): Likewise.
23961         * tests/test-mbsstr1.c (ASSERT): Likewise.
23962         * tests/test-mbsstr2.c (ASSERT): Likewise.
23963         * tests/test-mbsstr3.c (ASSERT): Likewise.
23964         * tests/test-memchr2.c (ASSERT): Likewise.
23965         * tests/test-memmem.c (ASSERT): Likewise.
23966         * tests/test-open.c (ASSERT): Likewise.
23967         * tests/test-printf-frexp.c (ASSERT): Likewise.
23968         * tests/test-printf-frexpl.c (ASSERT): Likewise.
23969         * tests/test-printf-posix.c (ASSERT): Likewise.
23970         * tests/test-quotearg.c (ASSERT): Likewise.
23971         * tests/test-rbtree_list.c (ASSERT): Likewise.
23972         * tests/test-rbtree_oset.c (ASSERT): Likewise.
23973         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
23974         * tests/test-round1.c (ASSERT): Likewise.
23975         * tests/test-roundf1.c (ASSERT): Likewise.
23976         * tests/test-roundl.c (ASSERT): Likewise.
23977         * tests/test-signbit.c (ASSERT): Likewise.
23978         * tests/test-sleep.c (ASSERT): Likewise.
23979         * tests/test-snprintf-posix.c (ASSERT): Likewise.
23980         * tests/test-snprintf.c (ASSERT): Likewise.
23981         * tests/test-sprintf-posix.c (ASSERT): Likewise.
23982         * tests/test-stat-time.c (ASSERT): Likewise.
23983         * tests/test-strcasestr.c (ASSERT): Likewise.
23984         * tests/test-strerror.c (ASSERT): Likewise.
23985         * tests/test-striconv.c (ASSERT): Likewise.
23986         * tests/test-striconveh.c (ASSERT): Likewise.
23987         * tests/test-striconveha.c (ASSERT): Likewise.
23988         * tests/test-strsignal.c (ASSERT): Likewise.
23989         * tests/test-strstr.c (ASSERT): Likewise.
23990         * tests/test-strtod.c (ASSERT): Likewise.
23991         * tests/test-trunc1.c (ASSERT): Likewise.
23992         * tests/test-trunc2.c (ASSERT): Likewise.
23993         * tests/test-truncf1.c (ASSERT): Likewise.
23994         * tests/test-truncf2.c (ASSERT): Likewise.
23995         * tests/test-truncl.c (ASSERT): Likewise.
23996         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
23997         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
23998         * tests/test-vasnprintf.c (ASSERT): Likewise.
23999         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
24000         * tests/test-vasprintf.c (ASSERT): Likewise.
24001         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
24002         * tests/test-vprintf-posix.c (ASSERT): Likewise.
24003         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
24004         * tests/test-vsnprintf.c (ASSERT): Likewise.
24005         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
24006         * tests/test-wcwidth.c (ASSERT): Likewise.
24007         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
24008         * tests/test-xprintf-posix.c (ASSERT): Likewise.
24009         * tests/test-xvasprintf.c (ASSERT): Likewise.
24010         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
24011         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
24012         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
24013         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
24014         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
24015         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
24016         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
24017         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
24018         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
24019         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
24020         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
24021         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
24022         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
24023         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
24024         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
24025         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
24026         * tests/unictype/test-block_list.c (ASSERT): Likewise.
24027         * tests/unictype/test-block_of.c (ASSERT): Likewise.
24028         * tests/unictype/test-block_test.c (ASSERT): Likewise.
24029         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
24030         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
24031         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
24032         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
24033         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
24034         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
24035         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
24036         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
24037         * tests/unictype/test-combining.c (ASSERT): Likewise.
24038         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
24039         * tests/unictype/test-digit.c (ASSERT): Likewise.
24040         * tests/unictype/test-mirror.c (ASSERT): Likewise.
24041         * tests/unictype/test-numeric.c (ASSERT): Likewise.
24042         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
24043         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
24044         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
24045         * tests/unictype/test-scripts.c (ASSERT): Likewise.
24046         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
24047         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
24048         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
24049         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
24050         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
24051         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
24052         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
24053         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
24054         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
24055         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
24056         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
24057         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
24058         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
24059         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
24060         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
24061         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
24062         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
24063         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
24064         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
24065         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
24066         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
24067         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
24068         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
24069         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
24070         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
24071         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
24072         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
24073         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
24074         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
24075         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
24076         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
24077         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
24078         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
24079         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
24080         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
24081         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
24082         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
24083         Reported by Eric Blake.
24084
24085 2008-04-11  Bruno Haible  <bruno@clisp.org>
24086
24087         * lib/wchar.in.h: Tweak comment.
24088
24089 2008-04-11  Bruno Haible  <bruno@clisp.org>
24090
24091         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
24092         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
24093         gl_COMMON.
24094         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
24095
24096 2008-04-11  Bruno Haible  <bruno@clisp.org>
24097
24098         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
24099
24100 2008-04-11  Simon Josefsson  <simon@josefsson.org>
24101
24102         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
24103         of attempting to use non-existing /dev/*random.  Based on patch
24104         from Adam Strzelecki <ono@java.pl> in
24105         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
24106
24107 2008-04-08  Bruno Haible  <bruno@clisp.org>
24108
24109         Add tentative support for emx+gcc.
24110         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
24111         * lib/fpurge.c (fpurge): Likewise.
24112         * lib/freadable.c (freadable): Likewise.
24113         * lib/freadahead.c (freadahead): Likewise.
24114         * lib/freading.c (freading): Likewise.
24115         * lib/freadptr.c (freadptr): Likewise.
24116         * lib/freadseek.c (freadptrinc): Likewise.
24117         * lib/fseeko.c (rpl_fseeko): Likewise.
24118         * lib/fseterr.c (fseterr): Likewise.
24119         * lib/fwritable.c (fwritable): Likewise.
24120         * lib/fwriting.c (fwriting): Likewise.
24121         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
24122
24123 2008-04-09  Eric Blake  <ebb9@byu.net>
24124
24125         Avoid some autoconf warnings.
24126         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
24127         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
24128         * m4/afs.m4 (gl_AFS): Likewise.
24129         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
24130         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
24131         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24132         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
24133         (gl_INTEGER_TYPE_SUFFIX): Likewise.
24134         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
24135         (AC_CHECK_DECLS_ONCE): Likewise.
24136         Rename file...
24137         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
24138         gnulib-tool requires autoconf 2.59 or better.
24139         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
24140
24141 2008-04-08  Eric Blake  <ebb9@byu.net>
24142
24143         Use 'git describe --match' if present (added in git 1.5.5).
24144         * build-aux/git-version-gen: Limit result to tags that match 'v*'
24145         if possible.
24146
24147 2008-04-08  Bruno Haible  <bruno@clisp.org>
24148
24149         Add tentative support for OpenServer.
24150         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
24151         _ptr, _cnt.
24152         * lib/fpurge.c (fpurge): Likewise.
24153         * lib/freadable.c (freadable): Likewise.
24154         * lib/freadahead.c (freadahead): Likewise.
24155         * lib/freading.c (freading): Likewise.
24156         * lib/freadptr.c (freadptr): Likewise.
24157         * lib/freadseek.c (freadptrinc): Likewise.
24158         * lib/fseeko.c (rpl_fseeko): Likewise.
24159         * lib/fseterr.c (fseterr): Likewise.
24160         * lib/fwritable.c (fwritable): Likewise.
24161         * lib/fwriting.c (fwriting): Likewise.
24162         Reported by Roger Cornelius <rac@tenzing.org> and
24163         Brian K. White <brian@aljex.com>.
24164
24165 2008-04-06  Jim Meyering  <meyering@redhat.com>
24166
24167         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
24168
24169 2008-04-06  Bruno Haible  <bruno@clisp.org>
24170
24171         Avoid possible error with non-ASCII bytes in UTF-8 locales.
24172         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
24173         * tests/test-printf-posix.sh: Likewise.
24174         * tests/test-vfprintf-posix.sh: Likewise.
24175         * tests/test-vprintf-posix.sh: Likewise.
24176         * tests/test-xprintf-posix.sh: Likewise.
24177
24178 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24179
24180         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
24181         hide error from 'ls', needed on OS/2.
24182         Report by Elbert Pol <elbert.pol@gmail.com>.
24183
24184 2008-04-04  Eric Blake  <ebb9@byu.net>
24185
24186         Make test-fseeko.c failures meaningful.
24187         * tests/test-fseeko.c: Print line number on failure.
24188         * tests/test-fseek.c: Likewise.
24189         Reported by Nelson H. F. Beebe.
24190
24191         Improve strtod bug detection check.
24192         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
24193         required for Solaris 10.
24194         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
24195
24196 2008-04-04  Bruno Haible  <bruno@clisp.org>
24197
24198         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
24199         by m4/setenv.m4.
24200
24201 2008-04-03  Eric Blake  <ebb9@byu.net>
24202
24203         Ensure sane .version contents.
24204         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
24205         version string.
24206         * build-aux/git-version-gen: Improve documentation.
24207
24208         Make GNU make output nicer.
24209         * top/GNUmakefile [!_have-Makefile]: Add dependency on
24210         MAKECMDGOALS to enforce message for all command line targets.  Set
24211         srcdir for use in maint.mk.
24212
24213         Another maintainer tweak.
24214         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
24215         a target that regenerates version.
24216
24217 2008-04-03  Jim Meyering  <meyering@redhat.com>
24218
24219         vc-list-files: don't cause coreutils "make po-check" failure
24220         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
24221
24222 2008-04-03  Eric Blake  <ebb9@byu.net>
24223
24224         Allow VPATH usage of vc-list-files.
24225         * build-aux/vc-list-files (scriptversion): Add timestamp.
24226         (options): Add --help, --version, -C.
24227         (CVS): Support installed cvsu.
24228
24229 2008-04-02  Bruno Haible  <bruno@clisp.org>
24230
24231         Avoid some "statement with no effect" warnings from gcc.
24232         * tests/test-wctype.c (main): Explicitly ignore unused values.
24233         Reported by Jim Meyering.
24234
24235 2008-04-02  Jim Meyering  <meyering@redhat.com>
24236
24237         Avoid some warnings from "gcc -Wshadow".
24238         * tests/test-frexp.c (exp): Define to a different identifier.
24239         * tests/test-frexpl.c (exp): Likewise.
24240
24241 2008-04-03  Jim Meyering  <meyering@redhat.com>
24242
24243         bootstrap: remove dangling *.[ch] symlinks from lib
24244         * build-aux/bootstrap [dangling symlink removal]: Move find's
24245         -depth option to precede all others, to avoid a warning.
24246         Remove *.[ch] files too, and from "$source_base" (usually lib/).
24247
24248 2008-04-02  Bruno Haible  <bruno@clisp.org>
24249
24250         Avoid some warnings from "gcc -Wshadow".
24251         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
24252         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
24253         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
24254         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
24255         Reported by Jim Meyering.
24256
24257 2008-04-01  Bruno Haible  <bruno@clisp.org>
24258
24259         Fix test to work on IRIX 6.5 with cc.
24260         * tests/test-math.c (numeric_equal): New function.
24261         (main): Use it.
24262
24263 2008-04-01  Bruno Haible  <bruno@clisp.org>
24264
24265         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
24266
24267 2008-04-01  Bruno Haible  <bruno@clisp.org>
24268
24269         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
24270         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24271         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
24272         (Depends-on): Remove math.
24273
24274         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
24275         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24276         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
24277         (Depends-on): Remove math.
24278
24279         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
24280         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24281         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
24282         (Depends-on): Remove math.
24283         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
24284         (Depends-on): Remove math.
24285
24286         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
24287         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24288         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
24289         (Depends-on): Remove math.
24290         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
24291         (Depends-on): Remove math.
24292
24293         * tests/test-round1.c: Include nan.h.
24294         (main): Use NaNd instead of NAN.
24295         * modules/round-tests (Files): Add tests/nan.h.
24296
24297         * tests/test-trunc1.c: Include nan.h.
24298         (main): Use NaNd instead of NAN.
24299         * modules/trunc-tests (Files): Add tests/nan.h.
24300
24301         * tests/test-roundf1.c: Include nan.h.
24302         (main): Use NaNf instead of NAN.
24303         * modules/roundf-tests (Files): Add tests/nan.h.
24304
24305         * tests/test-truncf1.c: Include nan.h.
24306         (main): Use NaNf instead of NAN.
24307         * modules/truncf-tests (Files): Add tests/nan.h.
24308
24309         * tests/test-ceilf1.c: Include nan.h.
24310         (main): Use NaNf instead of NAN.
24311         * modules/ceilf-tests (Files): Add tests/nan.h.
24312
24313         * tests/test-floorf1.c: Include nan.h.
24314         (main): Use NaNf instead of NAN.
24315         * modules/floorf-tests (Files): Add tests/nan.h.
24316
24317         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
24318         (main): Use NaNf instead of NAN.
24319         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
24320
24321         * tests/test-isnand.c: Include nan.h instead of <math.h>.
24322         (main): Use NaNd instead of NAN.
24323         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
24324
24325         * tests/test-frexp.c: Include nan.h.
24326         (main): Use NaNd instead of NAN.
24327         * modules/frexp-tests (Files): Add tests/nan.h.
24328
24329         * lib/isnan.c: Don't include <math.h>.
24330         (FUNC): Don't use NAN macro.
24331         * modules/isnand-nolibm (Depends-on): Remove math.
24332         * modules/isnanf-nolibm (Depends-on): Remove math.
24333         * modules/isnanl (Depends-on): Remove math.
24334         * modules/isnanl-nolibm (Depends-on): Remove math.
24335
24336         * tests/nan.h: New file.
24337
24338 2008-04-01  Eric Blake  <ebb9@byu.net>
24339
24340         Fix typos.
24341         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
24342         values to be the right type.
24343
24344         For now, cater to gnulib strtod inaccuracies.
24345         * tests/test-strtod.c (main): Allow 1-ulp error on expected
24346         fractional results.  While not as nice from a QoI perspective, it
24347         is a quicker patch than correctly implementing decimal to binary
24348         rounding.
24349
24350 2008-03-31  Eric Blake  <ebb9@byu.net>
24351
24352         Guarantee a definition of NAN.
24353         * lib/math.in.h (NAN): Define if missing.
24354         * tests/test-math.c (main): Test it.
24355         * doc/posix-headers/math.texi (math.h): Document this.
24356         * lib/isnan.c (rpl_isnand): Use it.
24357         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
24358         * tests/test-floorf1.c (NaN): Likewise.
24359         * tests/test-frexp.c (NaN): Likewise.
24360         * tests/test-isnand.c (NaN): Likewise.
24361         * tests/test-isnanf.c (NaN): Likewise.
24362         * tests/test-round1.c (NaN): Likewise.
24363         * tests/test-roundf1.c (NaN): Likewise.
24364         * tests/test-snprintf-posix.h (NaN): Likewise.
24365         * tests/test-sprintf-posix.h (NaN): Likewise.
24366         * tests/test-trunc1.c (NaN): Likewise.
24367         * tests/test-truncf1.c (NaN): Likewise.
24368         * tests/test-vasnprintf-posix.c (NaN): Likewise.
24369         * tests/test-vasprintf-posix.c (NaN): Likewise.
24370         * modules/isnand-nolibm (Depends-on): Add math.
24371         * modules/isnanf-nolibm (Depends-on): Likewise.
24372         * modules/isnanl (Depends-on): Likewise.
24373         * modules/isnanl-nolibm (Depends-on): Likewise.
24374         * modules/snprintf-posix-tests (Depends-on): Likewise.
24375         * modules/sprintf-posix-tests (Depends-on): Likewise.
24376         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
24377         * modules/vsprintf-posix-tests (Depends-on): Likewise.
24378         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
24379         * modules/vasprintf-posix-tests (Depends-on): Likewise.
24380
24381 2008-03-31  Bruno Haible  <bruno@clisp.org>
24382
24383         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
24384         * doc/posix-functions/strtod.texi: Likewise.
24385
24386 2008-03-31  Bruno Haible  <bruno@clisp.org>
24387
24388         * tests/test-strtod.c (main): Don't use C99 syntax.
24389
24390 2008-03-31  Bruno Haible  <bruno@clisp.org>
24391
24392         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
24393         Reported by Eric Blake.
24394
24395 2008-03-31  Jim Meyering  <meyering@redhat.com>
24396
24397         Don't compare actual signbit return values.
24398         * tests/test-strtod.c (main): Rather, compare only their
24399         zero/non-zero nature.
24400
24401 2008-03-31  Eric Blake  <ebb9@byu.net>
24402
24403         More strtod documentation.
24404         * doc/posix-functions/strtod.texi (strtod): Interpret more test
24405         failures as distinct bugs.
24406
24407 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
24408
24409         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
24410         Problem reported by Erik Benada in
24411         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
24412
24413 2008-03-30  Bruno Haible  <bruno@clisp.org>
24414
24415         * tests/test-strtod.c: Add comments about which assertion fails on which
24416         platform.
24417         * doc/posix-functions/strtod.texi: Add info about many more platforms.
24418
24419 2008-03-30  Eric Blake  <ebb9@byu.net>
24420
24421         Test signbit behavior on zeros.
24422         * tests/test-signbit.c (test_signbitf): Add tests for zero.
24423         (test_signbitd, test_signbitl): Likewise.
24424
24425         More strtod touchups.
24426         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
24427         sign of negative underflow, for now.  Use .5, not .1.
24428         * doc/posix-functions/strtod.texi (strtod): Mention these
24429         limitations.
24430         Reported by Jim Meyering.
24431
24432 2008-03-30  Bruno Haible  <bruno@clisp.org>
24433
24434         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
24435         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
24436
24437 2008-03-30  Bruno Haible  <bruno@clisp.org>
24438
24439         Avoid failure when attempting to return empty iconv results on some
24440         platforms.
24441         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
24442         allocation, don't report ENOMEM when the resulting string is empty.
24443
24444 2008-03-30  Bruno Haible  <bruno@clisp.org>
24445
24446         Fix buffer overrun.
24447         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
24448         Don't consider the width for tmp_length. Check count against tmp_length
24449         before doing the padding. Ensure enough allocation during padding.
24450
24451 2008-03-30  Eric Blake  <ebb9@byu.net>
24452
24453         strtod touchups.
24454         * lib/strtod.c (strtod): Avoid compiler warnings.
24455         Reported by Jim Meyering.
24456
24457 2008-03-30  Bruno Haible  <bruno@clisp.org>
24458
24459         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
24460         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
24461         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
24462         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
24463         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
24464         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
24465         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
24466         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
24467
24468         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
24469         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
24470         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
24471         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
24472         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
24473         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
24474         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
24475         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
24476
24477         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
24478         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
24479         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
24480         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
24481         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
24482         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
24483         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
24484         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
24485
24486         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
24487         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
24488
24489         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
24490         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
24491
24492         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
24493         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
24494
24495         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
24496         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
24497         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
24498
24499         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
24500         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
24501         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
24502
24503         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
24504         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
24505         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
24506
24507         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
24508         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
24509         * modules/vasprintf (Depends-on): Add EOVERFLOW.
24510
24511         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
24512         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
24513         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
24514         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
24515         (Depends-on): Add EOVERFLOW.
24516         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
24517         (Depends-on): Add EOVERFLOW.
24518         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
24519         (Depends-on): Add EOVERFLOW.
24520         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
24521         (Depends-on): Add EOVERFLOW.
24522         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
24523         (Depends-on): Add EOVERFLOW.
24524         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
24525         (Depends-on): Add EOVERFLOW.
24526         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
24527         (Depends-on): Add EOVERFLOW.
24528         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
24529         (Depends-on): Add EOVERFLOW.
24530
24531         * lib/sprintf.c (EOVERFLOW): Remove fallback.
24532         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
24533         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
24534
24535         * lib/snprintf.c (EOVERFLOW): Remove fallback.
24536         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
24537         * modules/snprintf (Depends-on): Add EOVERFLOW.
24538
24539         * lib/poll.c (EOVERFLOW): Remove fallback.
24540         * modules/poll (Depends-on): Add EOVERFLOW.
24541
24542         * lib/getugroups.c (EOVERFLOW): Remove fallback.
24543         * modules/getugroups (Depends-on): Add EOVERFLOW.
24544
24545         * lib/getdelim.c (EOVERFLOW): Remove fallback.
24546         * modules/getdelim (Depends-on): Add EOVERFLOW.
24547
24548         * lib/ftell.c (EOVERFLOW): Remove fallback.
24549         * modules/ftell (Depends-on): Add EOVERFLOW.
24550
24551         * lib/fprintf.c (EOVERFLOW): Remove fallback.
24552         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
24553         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
24554
24555         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
24556
24557         * modules/EOVERFLOW-tests: New file.
24558         * tests/test-EOVERFLOW.c: New file.
24559
24560         * modules/EOVERFLOW: New file.
24561         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
24562
24563 2008-03-30  Bruno Haible  <bruno@clisp.org>
24564
24565         Fix bug introduced on 2007-06-10.
24566         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
24567         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
24568
24569 2008-03-30  Bruno Haible  <bruno@clisp.org>
24570
24571         Improve freadseek's efficiency after ungetc.
24572         * lib/freadseek.c: Include freadahead.h.
24573         (freadptrinc): New function, extracted from freadseek.
24574         (freadseek): Use it in a loop. Use freadahead to determine the number
24575         of loop iterations.
24576         * modules/freadseek (Depends-on): Add freadahead.
24577         (configure.ac): Require AC_C_INLINE.
24578
24579 2008-03-30  Bruno Haible  <bruno@clisp.org>
24580
24581         * lib/freadseek.c (freadseek): Don't ignore the return value of
24582         freadptr.
24583
24584 2008-03-29  Eric Blake  <ebb9@byu.net>
24585
24586         Add hex float support.
24587         * modules/strtod (Depends-on): Add c-ctype.
24588         (Link): Mention POW_LIB.
24589         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
24590         whitespace between 'e' and exponent.
24591         * tests/test-strtod.c (main): Enable hex float tests.
24592         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
24593         now provides.
24594
24595         Document various strtod bugs, with some fixes.
24596         * doc/posix-functions/strtod.texi (strtod): Document bugs with
24597         "-0x", "inf", "nan", and hex constants.
24598         * doc/posix-functions/atof.texi (atof): Likewise.
24599         * modules/stdlib (Makefile.am): Support strtod.
24600         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
24601         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
24602         detect additional strtod bugs.
24603         * lib/stdlib.in.h (rpl_strtod): Add declarations.
24604         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
24605         bool where appropriate.  Parse 'inf' and 'nan'.
24606         * tests/test-strtod.c: New file.
24607         * modules/strtod (Depends-on): Add stdbool, stdlib.
24608         (configure.ac): Turn on module indicator.
24609         * modules/strtod-tests: New module.
24610
24611 2008-03-29  Eric Blake  <ebb9@byu.net>
24612
24613         Fix ftell on mingw.
24614         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
24615         * modules/ftell-tests (Depends-on): Add binary-io.
24616         * modules/ftello-tests (Depends-on): Likewise.
24617         * tests/test-ftell.c (main): Enhance test to cover behavior after
24618         ungetc.  Enforce binary mode.
24619         * tests/test-ftello.c (main): Likewise.
24620
24621         Pass test-freadseek on cygwin.
24622         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
24623         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
24624         ungetc buffer.
24625
24626         * tests/test-fflush2.c (main): Fix typo.
24627
24628 2008-03-29  Bruno Haible  <bruno@clisp.org>
24629
24630         * tests/test-fflush2.c (main): Temporarily disable the contents of
24631         this test.
24632         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
24633         Reported by Eric Blake.
24634
24635 2008-03-28  Simon Josefsson  <simon@josefsson.org>
24636
24637         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
24638         (GC_SHA224_DIGEST_SIZE): Add.
24639
24640         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
24641         (gc_hash_digest_length): Likewise.
24642         (gc_hash_buffer): Likewise.
24643
24644 2008-03-25  Bruno Haible  <bruno@clisp.org>
24645
24646         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
24647         detail which gettext release to use.
24648         Reported by Simon Josefsson.
24649
24650 2008-03-26  Jim Meyering  <meyering@redhat.com>
24651
24652         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
24653         * modules/gnumakefile (clean-GNUmakefile): Also, use
24654         test ... && ... || : syntax rather than if-then ... fi.
24655
24656         gnumakefile: Don't double-quote-expand $(VPATH) value.
24657         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
24658
24659 2008-03-24  Eric Blake  <ebb9@byu.net>
24660
24661         Alter GNUmakefile to install into top directory.
24662         * modules/maintainer-makefile: Split, and add dependency...
24663         * modules/gnumakefile: to this new module.
24664         * build-aux/GNUmakefile: Move...
24665         * top/GNUmakefile: ...here.
24666         * build-aux/maint.mk: Move...
24667         * top/maint.mk: ...here.
24668         * MODULES.html.sh (Support for maintaining...): Document new
24669         module.
24670
24671 2008-03-23  Bruno Haible  <bruno@clisp.org>
24672
24673         * gnulib-tool: New options --vc-files, --no-vc-files.
24674         (func_usage): Document them.
24675         (vc_files): New variable.
24676         (func_import): Consider vc_files.
24677         (func_create_testdir): Set vc_files to empty.
24678         Suggested by Jim Meyering and Karl Berry.
24679
24680 2008-03-23  Bruno Haible  <bruno@clisp.org>
24681
24682         Fix regex compilation error on HP-UX 11.
24683         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
24684         * modules/regex (Files): Add m4/mbstate_t.m4.
24685         Reported by Ton Voon <ton.voon@altinity.com>.
24686
24687 2008-03-23  Bruno Haible  <bruno@clisp.org>
24688
24689         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
24690
24691 2008-03-23  Eric Blake  <ebb9@byu.net>
24692             Bruno Haible  <bruno@clisp.org>
24693
24694         Install files from top/ in the destination directory.
24695         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
24696         augmentation also for the files from top/.
24697         (func_import, func_create_testdir): Rewrite file names:
24698         top/filename -> filename.
24699
24700 2008-03-23  Bruno Haible  <bruno@clisp.org>
24701
24702         Tweak "gnulib --version" output.
24703         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
24704
24705 2008-03-23  Bruno Haible  <bruno@clisp.org>
24706
24707         Tweak "gnulib --version" output.
24708         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
24709         rather than contents of ChangeLog, when possible.
24710
24711 2008-03-21  Eric Blake  <ebb9@byu.net>
24712
24713         More --version tweaks.
24714         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
24715         date of last ChangeLog entry.
24716
24717 2008-03-21  Jim Meyering  <meyering@redhat.com>
24718
24719         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
24720
24721 2008-03-20  Eric Blake  <ebb9@byu.net>
24722
24723         VPATH fix.
24724         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
24725
24726 2008-03-20  Simon Josefsson  <simon@josefsson.org>
24727
24728         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
24729         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
24730
24731 2008-03-20  Eric Blake  <ebb9@byu.net>
24732
24733         Sync GNUmakefile with coreutils.
24734         * build-aux/GNUmakefile (have-Makefile): Rename...
24735         (_have-Makefile): ...to this, for namespace consideration.
24736         (GNUmakefile.cfg): Include, if present.
24737         (_autoreconf): Define a default.
24738         (_is-dist-target): New rule for rebuilds to pick up intra-release
24739         version.
24740         (maint-cfg.mk): Rename...
24741         (cfg.mk): ...to this.
24742
24743 2008-03-18  Jim Meyering  <meyering@redhat.com>
24744
24745         New script and module: mktempd
24746         * MODULES.html.sh (maint+release support): Add mktempd.
24747         * build-aux/mktempd: New file.
24748         * modules/mktempd: New file.
24749
24750 2008-03-15  Jim Meyering  <meyering@redhat.com>
24751
24752         Undo last change.
24753         * lib/sha1.c, lib/md5.c: 63 != ~63.
24754         Reported by Andreas Schwab.
24755
24756         sha1.c, md5.c: Hoist a redundant expression.
24757         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
24758         "ctx->buflen" only once, before calling *_process_block.
24759         * lib/md5.c (md5_process_bytes): Likewise.
24760
24761 2008-03-14  Eric Blake  <ebb9@byu.net>
24762
24763         Bump copyright year in files generated by gnulib-tool.
24764         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
24765         gnulib-tool, rather than hard-coding it.
24766
24767         Fix 'gnulib-tool --version' output to work with git.
24768         * gnulib-tool (func_gnulib_dir): New function, extracted from...
24769         (startup): ...here.
24770         (func_version): Use it to invoke git-version-gen, rather than
24771         relying on CVS keyword expansion.  Modernize wording.
24772         (cvsdatestamp, last_checkin_date, version): Kill unused
24773         variables.
24774
24775 2008-03-12  Jim Meyering  <meyering@redhat.com>
24776
24777         Recognize optional cast of the argument to free.
24778         * build-aux/useless-if-before-free: Update regexps.
24779
24780         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
24781
24782 2008-03-11  Bruno Haible  <bruno@clisp.org>
24783
24784         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
24785         by a single package.
24786         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
24787         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
24788         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
24789         Reported by Sam Steingold <sds@gnu.org>.
24790
24791 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
24792
24793         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
24794         repositories.
24795
24796 2008-03-11  Bruno Haible  <bruno@clisp.org>
24797
24798         Avoid conflicts between local macro definitions.
24799         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
24800         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
24801
24802 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
24803             Bruno Haible  <bruno@clisp.org>
24804
24805         Make va_copy work with some version of xlc on AIX 5.1.
24806         * lib/stdarg.in.h: New file.
24807         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
24808         On AIX, use a <stdarg.h> file substitute.
24809         * modules/stdarg (Files): Add lib/stdarg.in.h.
24810         (Depends-on): Add include_next.
24811         (Makefile.am): Build a stdarg.h substitute if requested.
24812         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
24813
24814 2008-03-10  Bruno Haible  <bruno@clisp.org>
24815
24816         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
24817         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24818         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
24819
24820 2008-03-10  Bruno Haible  <bruno@clisp.org>
24821
24822         * modules/stdlib (Depends-on): Add include_next, remove
24823         absolute-header.
24824
24825 2008-03-09  Bruno Haible  <bruno@clisp.org>
24826
24827         * lib/freadahead.h (freadahead): Document more precisely.
24828         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
24829         the sum of both buffer sizes.
24830         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
24831         * NEWS: Document the change.
24832
24833 2008-03-09  Bruno Haible  <bruno@clisp.org>
24834
24835         Extend freadptr to return also the buffer size.
24836         * lib/freadptr.h (freadptr): Add sizep argument.
24837         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
24838         (freadptr): Add sizep argument. Determine buffer size like freadahead
24839         does.
24840         * tests/test-freadptr.c: Don't include freadahead.h.
24841         (main): Adapt for new calling convention of freadptr.
24842         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
24843         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
24844         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
24845         tests/test-freadptr2.sh.
24846         (Depends): Remove freadahead.
24847         (TESTS): Add test-freadptr2.sh.
24848         (check_PROGRAMS): Add test-freadptr2.
24849
24850 2008-03-09  Bruno Haible  <bruno@clisp.org>
24851
24852         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
24853         Report and solution by Simon Josefsson.
24854
24855 2008-03-06  Bruno Haible  <bruno@clisp.org>
24856
24857         Make fflush after ungetc work on BSD platforms.
24858         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
24859         * tests/test-fflush2.c: New file.
24860         * tests/test-fflush2.sh: New file.
24861         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
24862         tests/test-fflush2.c.
24863         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
24864         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
24865
24866 2008-03-06  Eric Blake  <ebb9@byu.net>
24867
24868         Likewise for ftello.
24869         * modules/ftello (Dependencies): Add extensions.
24870         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
24871
24872 2008-03-06  Bruno Haible  <bruno@clisp.org>
24873
24874         * modules/fseeko (Dependencies): Add extensions.
24875         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
24876         Needed on glibc systems.
24877
24878 2008-03-06  Bruno Haible  <bruno@clisp.org>
24879
24880         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
24881         email address.
24882         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24883
24884 2008-03-06  Bruno Haible  <bruno@clisp.org>
24885
24886         * users.txt: Add libgnupdf.
24887
24888 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24889
24890         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
24891         (Header File Substitutes, Function Substitutes,
24892         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
24893         (Build robot for gnulib): Fix typo.
24894
24895 2008-03-06  Bruno Haible  <bruno@clisp.org>
24896
24897         * doc/gnulib-tool.texi (VCS Issues): Small updates.
24898         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24899
24900 2008-03-06  Bruno Haible  <bruno@clisp.org>
24901
24902         * doc/func.texi: New file, extracted from doc/gnulib.texi.
24903         * doc/gnulib.texi: Include it.
24904
24905 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24906
24907         * modules/func (License): Change license to unlimited; there was
24908         no LGPL parts in the module anyway.
24909
24910 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24911
24912         * modules/__func__: Renamed to modules/func.
24913         * modules/__func__-tests: Renamed to modules/func-tests.
24914         * tests/test-__func__.c: Renamed to tests/test-func.c.
24915         * m4/__func__.m4: Renamed to m4/func.m4.
24916         * doc/gnulib.texi (__func__): Section renamed to func.
24917         Suggested by Eric Blake <ebb9@byu.net>.
24918
24919 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24920
24921         * doc/gnulib.texi (__func__): Use C99 terminology when talking
24922         about __func__.  Make example self-contained.  Suggested by Eric
24923         Blake <ebb9@byu.net>.
24924
24925         * tests/test-__func__.c (main): Avoid extraneous () around __func.
24926         Suggested by Eric Blake <ebb9@byu.net>.
24927
24928 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24929
24930         * modules/__func__: New file.
24931         * modules/__func__-tests: New file.
24932         * tests/test-__func__.c: New file.
24933         * m4/__func__.m4: New file.
24934         * doc/gnulib.texi (__func__): Document __func__ module.
24935
24936 2008-03-05  Simon Josefsson  <simon@josefsson.org>
24937
24938         * modules/byteswap (License): Re-license as LGPLv2+.
24939
24940 2008-03-05  Simon Josefsson  <simon@josefsson.org>
24941
24942         * doc/Makefile: Add pdf target.
24943
24944 2008-03-05  Simon Josefsson  <simon@josefsson.org>
24945
24946         * modules/inline (License): Use 'unlimited', since there are only
24947         *.m4 files in this module.
24948
24949 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
24950             Bruno Haible  <bruno@clisp.org>
24951
24952         Add support for HP C 7.1 on OpenVMS 8.3.
24953         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
24954
24955 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
24956
24957         Update VMS specifics.
24958         * lib/getopt.c [VMS]: Remove include of unixlib.h.
24959
24960 2008-03-02  Jim Meyering  <meyering@redhat.com>
24961
24962         Remove the last dependency on the "free" module.
24963         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
24964         Reported by Bob Proulx.
24965
24966         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
24967
24968         Remove useless "if" tests before free.  Deprecate "free" module.
24969         * doc/posix-functions/free.texi: Mention that this
24970         module is no longer useful.
24971         * modules/free (Notice): Say this module is obsolete.
24972         * modules/readutmp (Depends-on): Remove free.
24973         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
24974         * lib/putenv.c (putenv): Likewise.
24975         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
24976         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
24977         * tests/test-c-strcasestr.c (main): Likewise.
24978         * tests/test-c-strstr.c (main): Likewise.
24979         * tests/test-mbscasestr1.c (main): Likewise.
24980         * tests/test-mbscasestr2.c (main): Likewise.
24981         * tests/test-mbsstr1.c (main): Likewise.
24982         * tests/test-mbsstr2.c (main): Likewise.
24983         * tests/test-memmem.c (main): Likewise.
24984         * tests/test-strcasestr.c (main): Likewise.
24985         * tests/test-striconv.c (main): Likewise.
24986         * tests/test-striconveh.c (main): Likewise.
24987         * tests/test-striconveha.c (main): Likewise.
24988         * tests/test-strstr.c (main): Likewise.
24989
24990         * build-aux/git-version-gen: Adjust a comment and the Usage string.
24991
24992         bootstrap: sync from coreutils again
24993         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
24994
24995 2008-03-01  Jim Meyering  <meyering@redhat.com>
24996
24997         bootstrap: sync from coreutils
24998         * build-aux/bootstrap (update_po_files): Copy a .po file into place
24999         also when the target doesn't exist.
25000
25001 2008-03-01  Eric Blake  <ebb9@byu.net>
25002
25003         Fix bugs in last patch.
25004         * lib/memchr2.c (memchr2): Fix typo.
25005         * tests/test-memchr2.c: Test previous bug, and don't use GNU
25006         extension.
25007         Reported by Bruce Korb.
25008
25009         New module 'memchr2'.
25010         * modules/memchr2: New file.
25011         * modules/memchr2-tests: Likewise.
25012         * lib/memchr2.h: Likewise.
25013         * lib/memchr2.c: Likewise, based on memchr.c.
25014         * tests/test-memchr2.c: New test.
25015         * MODULES.html.sh (String handling): Add memchr2.
25016
25017 2008-02-29  Bruno Haible  <bruno@clisp.org>
25018
25019         * modules/freadseek-tests: New file.
25020         * tests/test-freadseek.sh: New file.
25021         * tests/test-freadseek.c: New file.
25022
25023         New module 'freadseek'.
25024         * modules/freadseek: New file.
25025         * lib/freadseek.h: New file.
25026         * lib/freadseek.c: New file.
25027         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
25028
25029 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
25030
25031         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
25032         wydawca.
25033
25034         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
25035         program_invocation_name and program_invocation_short_name are
25036         present.
25037
25038 2008-02-28  Bruno Haible  <bruno@clisp.org>
25039
25040         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
25041         * tests/test-freadptr.sh: Also test non-seekable stdin.
25042
25043 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
25044
25045         * build-aux/bootstrap (source_base, m4_base)
25046         (doc_base, tests_base): New variables.
25047         (gnulib_tool_options): Do not hardcode base directories, use
25048         the above variables instead.
25049
25050 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
25051
25052         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
25053
25054 2008-02-28  Bruno Haible  <bruno@clisp.org>
25055
25056         * modules/freadptr-tests: New file.
25057         * tests/test-freadptr.sh: New file.
25058         * tests/test-freadptr.c: New file.
25059
25060         New module 'freadptr'.
25061         * modules/freadptr: New file.
25062         * lib/freadptr.h: New file.
25063         * lib/freadptr.c: New file.
25064         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
25065
25066 2008-02-26  Karl Berry  <karl@freefriends.org>
25067
25068         Sync from Libtool:
25069         * libltdl/argz.c (argz_add, argz_count): New functions.
25070         * libltdl/argz.in.h: Declare them.
25071         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
25072
25073 2008-02-22  Bruno Haible  <bruno@clisp.org>
25074
25075         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
25076         is a pointer type.  Needed for HP-UX 10.
25077         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
25078         * doc/posix-functions/gmtime_r.texi: Likewise.
25079         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25080
25081 2008-02-24  Bruno Haible  <bruno@clisp.org>
25082
25083         * modules/environ-tests: New file.
25084         * tests/test-environ.c: New file.
25085
25086         New module 'environ'.
25087         * modules/environ: New file.
25088         * lib/unistd.in.h (environ): New declaration.
25089         * m4/environ.m4: New file.
25090         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
25091         after use.
25092         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
25093         HAVE_DECL_ENVIRON.
25094         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
25095         HAVE_DECL_ENVIRON.
25096         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
25097         wrong claim that 'environ' is missing on some systems.
25098         * modules/execute (Depends-on): Add environ.
25099         * lib/execute.c (environ): Remove fallback declaration.
25100         * modules/pipe (Depends-on): Add environ.
25101         * lib/pipe.c (environ): Remove fallback declaration.
25102         * modules/setenv (Depends-on): Add environ.
25103         * lib/setenv.c (environ): Remove fallback declaration.
25104         * modules/unsetenv (Depends-on): Add environ.
25105         * lib/unsetenv.c (environ): Remove fallback declaration.
25106         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
25107         m4/environ.m4.
25108         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
25109         (gl_PREREQ_UNSETENV): Likewise.
25110
25111 2008-02-24  Bruno Haible  <bruno@clisp.org>
25112
25113         * doc/posix-functions/environ.texi: Document the MacOS X problem.
25114
25115 2008-02-20  Bob Proulx  <bob@proulx.com>
25116
25117         Enable use of older two part flavor 'git describe'.
25118         * build-aux/git-version-gen: If using the older two part flavor of
25119         git version then recreate the third part now present in the
25120         newer three part flavor of git describe.
25121
25122 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
25123
25124         * lib/fts.c (fts_build): Typo correction to comment.
25125
25126 2008-02-17  Bruno Haible  <bruno@clisp.org>
25127
25128         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
25129         generating no-op conflicts.
25130
25131 2008-02-17  Bruno Haible  <bruno@clisp.org>
25132
25133         Speed up by 10%.
25134         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
25135         result_entries, rather than an index-based loop.
25136
25137 2008-02-17  Bruno Haible  <bruno@clisp.org>
25138
25139         Speed up by 25%.
25140         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
25141         'hashcode_cached'.
25142         (entry_create): New function.
25143         (entry_hashcode): Use the cached hashcode if possible.
25144         (read_changelog_file, try_split_merged_entry): Use entry_create.
25145
25146 2008-02-17  Bruno Haible  <bruno@clisp.org>
25147
25148         Speed up from O(n^2) to O(n) for long ChangeLog files.
25149         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
25150         (read_changelog_file): Change implementation of entries_reversed list
25151         to rbtreehash.
25152         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
25153
25154 2008-02-17  Bruno Haible  <bruno@clisp.org>
25155
25156         New option --split-merged-entry.
25157         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
25158         (find_paragraph_end, try_split_merged_entry): New functions.
25159         (long_options): Add option --split-merged-entry.
25160         (usage): Document option --split-merged-entry.
25161         (main): Implement option --split-merged-entry.
25162         Reported by Eric Blake.
25163
25164 2008-02-17  Bruno Haible  <bruno@clisp.org>
25165
25166         * lib/git-merge-changelog.c: Include c-strstr.h.
25167         (main): Support the "git pull --rebase" situation.
25168         * modules/git-merge-changelog (Depends-on): Add c-strstr.
25169         Reported by Eric Blake.
25170
25171 2008-02-16  Eric Blake  <ebb9@byu.net>
25172
25173         Avoid doubling \ in common case of "c-maybe" quoting style.
25174         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
25175         eliding outer quotes.
25176         * lib/quotearg.h: Document this.
25177         * tests/test-quotearg.c (result_strings, inputs, results_g)
25178         (flag_results, locale_results): Test it by adding a new string to
25179         each test group.
25180         (compare_strings): Test new string.
25181
25182 2008-02-13  Eric Blake  <ebb9@byu.net>
25183
25184         Avoid trigraph quoting in default output.
25185         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
25186         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
25187         unless explicitly requested.
25188         * tests/test-quotearg.c (flag_results, main): Add additional tests.
25189
25190 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
25191
25192         Don't rely on signed integer overflowing to negative value.
25193         * lib/getugroups.c (getugroups): Include <limits.h>.
25194         Instead, compare against INT_MAX, and increment only if the test passes.
25195
25196 2008-02-13  Jim Meyering  <meyering@redhat.com>
25197         and Eric Blake  <ebb9@byu.net>
25198
25199         Avoid shadowing warning and compile errors on Linux.
25200         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
25201         forwarding macros on Linux.
25202         (dcgettext): Define a stub, for Linux.
25203         (results_g, main): Avoid warnings.
25204
25205 2008-02-12  Eric Blake  <ebb9@byu.net>
25206
25207         Silence warning in last patch.
25208         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
25209
25210         Quotearg part 4: add tests, fix c-maybe colon quoting.
25211         * lib/quotearg.h: Improve documentation.
25212         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
25213         escapes when adding outer quotes.  When quoting trigraphs, use
25214         valid C notation.  When quoting NUL, omit extra characters if next
25215         character is not digit.  Alter prototype.
25216         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
25217         callers.
25218         * modules/quotearg-tests: New module.
25219         * tests/test-quotearg.c: New test.
25220
25221 2008-02-07  Eric Blake  <ebb9@byu.net>
25222
25223         Quotearg part 3: add flag to control outer quote elision.
25224         * lib/quotearg.h (c_maybe_quoting_style): New style.
25225         (enum quoting_flags): Better documentation of flags.
25226         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
25227         c-maybe style.
25228         (quotearg_buffer_restyled): Handle new flag to elide outer
25229         quotes.
25230
25231         Quotearg part 2: add flag that can control NUL elision.
25232         * lib/quotearg.h (set_quoting_flags): New prototype.
25233         * lib/quotearg.c (struct quoting_options): Add flag field.
25234         (set_quoting_flags): New function.
25235         (quotearg_buffer_restyled): Add flags parameter.
25236         (quotearg_alloc_mem): Set the flag if length cannot be returned.
25237         (quotearg_n_options): Set the flag, since length cannot be
25238         returned.
25239         (quoting_options_from_style): Default flags correctly.
25240
25241         Quotearg part 1: more wrappers, restore quotearg_char state.
25242         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
25243         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
25244         (quotearg_colon_mem): New wrappers.
25245         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
25246         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
25247         functions.
25248         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
25249         (quotearg_colon_mem): New functions.
25250
25251 2008-02-11  Bruno Haible  <bruno@clisp.org>
25252
25253         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
25254         library in the current directory: it does not work with parallel make.
25255         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25256
25257 2008-02-11  Bruno Haible  <bruno@clisp.org>
25258
25259         * .gitattributes: New file.
25260
25261 2008-02-11  Jim Meyering  <meyering@redhat.com>
25262
25263         useless-if-before-free: Fix reversed exit values.
25264         * build-aux/useless-if-before-free: Use correct values
25265         for EXIT_MATCH and EXIT_NO_MATCH.
25266
25267         * build-aux/useless-if-before-free: Close stdout carefully.
25268
25269 2008-02-10  Bruno Haible  <bruno@clisp.org>
25270
25271         New module 'git-merge-changelog'.
25272         * modules/git-merge-changelog: New file.
25273         * lib/git-merge-changelog.c: New file.
25274
25275 2008-02-10  Jim Meyering  <meyering@redhat.com>
25276
25277         useless-if-before-free: New option: --list (-l).
25278
25279         useless-if-before-free: Don't exit immediately upon open failure.
25280         * build-aux/useless-if-before-free: Exit 2 for errors.
25281         Upon failure to open a file, don't exit immediately.
25282         Rather, just warn and continue with any remaining files.
25283
25284 2008-02-10  Bruno Haible  <bruno@clisp.org>
25285
25286         New abstract list operation 'node_set_value'.
25287         * lib/gl_list.h (gl_list_node_set_value): New function.
25288         (struct gl_list_implementation): New field node_set_value.
25289         * lib/gl_list.c (gl_list_node_set_value): New function.
25290         * lib/gl_array_list.c (gl_array_node_set_value): New function.
25291         (gl_array_list_implementation): Update.
25292         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
25293         (gl_carray_list_implementation): Update.
25294         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
25295         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
25296         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
25297         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
25298         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
25299         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
25300         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
25301         Update.
25302         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
25303         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
25304         (gl_sublist_list_implementation): Update.
25305
25306 2008-02-10  Bruno Haible  <bruno@clisp.org>
25307
25308         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
25309         Needed when ELEMENT is #defined to 'some_type *'.
25310
25311 2008-02-10  Jim Meyering  <meyering@redhat.com>
25312
25313         New script and module: useless-if-before-free
25314         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
25315         * build-aux/useless-if-before-free: New file.
25316         * modules/useless-if-before-free: New file.
25317
25318         * build-aux/gitlog-to-changelog: Use committer date, not author date.
25319
25320         xstrtol_error: Fix typo.
25321         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
25322         s/exit_failure/exit_status/.
25323
25324 2008-02-09  Jim Meyering  <meyering@redhat.com>
25325
25326         New script and module: gitlog-to-changelog
25327         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
25328         * modules/gitlog-to-changelog: New file.
25329         * build-aux/gitlog-to-changelog: New file.
25330
25331 2008-02-08  Jim Meyering  <meyering@redhat.com>
25332
25333         Avoid two "parameter unused" warnings.
25334         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
25335         Mark "st" as used.
25336
25337         Use "git COMMAND", not "git-COMMAND".
25338         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
25339         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
25340         * build-aux/git-version-gen: Use "git status", not "git-status".
25341
25342 2008-02-07  Bruno Haible  <bruno@clisp.org>
25343
25344         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
25345         Avoids a crash on Windows Vista.
25346         Reported by Adam Strzelecki <ono@java.pl> via
25347         Simon Josefsson <simon@josefsson.org>.
25348
25349 2008-02-06  Bruno Haible  <bruno@clisp.org>
25350
25351         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
25352         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
25353         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
25354         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
25355         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25356         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25357         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
25358         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
25359         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25360         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25361         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25362         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25363         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25364         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25365         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25366         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
25367         left-adjust flag.
25368         * tests/test-snprintf-posix.h (test_function): Likewise.
25369         * tests/test-sprintf-posix.h (test_function): Likewise.
25370         * tests/test-vasprintf-posix.c (test_function): Likewise.
25371         * doc/posix-functions/fprintf.texi: Update.
25372         * doc/posix-functions/printf.texi: Update.
25373         * doc/posix-functions/snprintf.texi: Update.
25374         * doc/posix-functions/sprintf.texi: Update.
25375         * doc/posix-functions/vfprintf.texi: Update.
25376         * doc/posix-functions/vprintf.texi: Update.
25377         * doc/posix-functions/vsnprintf.texi: Update.
25378         * doc/posix-functions/vsprintf.texi: Update.
25379         Reported by Peter Fales <psfales@alcatel-lucent.com>.
25380
25381 2008-02-06  Bruno Haible  <bruno@clisp.org>
25382
25383         Fix bug introduced on 2008-01-26.
25384         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
25385
25386 2008-02-06  Bruno Haible  <bruno@clisp.org>
25387
25388         Fix bug introduced on 2007-06-10.
25389         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
25390         !NEED_PRINTF_FLAG_ZERO.
25391
25392 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
25393
25394         getloadavg: use libperfstat on AIX5
25395         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
25396
25397 2008-02-03  Bruno Haible  <bruno@clisp.org>
25398
25399         * lib/diffseq.h: Add comments about required #includes.
25400         Reported by Michael Biggs <gnulib@doubleplum.net>.
25401
25402 2008-02-01  Bruno Haible  <bruno@clisp.org>
25403
25404         * users.txt: Add gnuit.
25405
25406 2008-01-31  Bruno Haible  <bruno@clisp.org>
25407
25408         * lib/md4.c (set_uint32): Mark as inline.
25409         * lib/md5.c (set_uint32): Likewise.
25410         * lib/sha1.c (set_uint32): Likewise.
25411         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
25412         * m4/md5.m4 (gl_MD5): Likewise.
25413         * m4/sha1.m4 (gl_SHA1): Likewise.
25414
25415 2008-01-31  Jim Meyering  <meyering@redhat.com>
25416
25417         Use "sizeof VAR", rather than a literal "4".
25418         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
25419         * lib/md4.c (md4_read_ctx): Likewise.
25420         * lib/sha1.c (sha1_read_ctx): Likewise.
25421
25422 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25423
25424         * tests/test-sha1.c: New file, based on test-md5.c.
25425
25426         * modules/crypto/sha1-tests: New file.
25427
25428 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25429
25430         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
25431
25432 2008-01-31  Jim Meyering  <meyering@redhat.com>
25433
25434         Prefer "sizeof v" over the equivalent "4".
25435         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
25436         * lib/md5.c (set_uint32): Likewise.
25437         * lib/sha1.c (set_uint32): Likewise.
25438
25439 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25440
25441         * lib/sha1.c (set_uint32): Mark function as static.
25442
25443 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25444
25445         md2: clarify comments to say that alignment is not required.
25446         * lib/md2.h: Remove warning about alignment in comment.
25447         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
25448         never been required.
25449
25450 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25451
25452         md4: adapt alignment constraint fix from sha1.
25453         * lib/md4.c (set_uint32): New function, from sha1.c
25454         (md4_read_ctx): Use it.
25455         (md4_finish_ctx): Doc fix.
25456         * lib/md4.h: Doc fix.
25457
25458 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25459
25460         md5: adapt alignment constraint fix from sha1.
25461         * lib/md5.c (set_uint32): New function, from sha1.c
25462         (md5_read_ctx): Use it.
25463         (md5_finish_ctx): Doc fix.
25464         * lib/md5.h: Doc fix.
25465
25466 2008-01-30  Peter Palfrader  <weasel@debian.org>
25467
25468         sha1: remove the result buffer alignment constraint
25469         * lib/sha1.c (set_uint32): New function.
25470         (sha1_read_ctx): Rewrite to remove the result buffer alignment
25471         constraint.
25472         (sha1_finish_ctx): Remove comment warning about alignment constraint.
25473         * lib/sha1.h: Likewise.
25474
25475 2008-01-30  Andreas Schwab  <schwab@suse.de>
25476             Bruno Haible  <bruno@clisp.org>
25477
25478         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
25479         correct definition of LDBL_MIN_EXP.
25480
25481 2008-01-30  Karl Berry  <karl@gnu.org>
25482
25483         * config/srclist-update: try to preserve x bit on updates.
25484         * config/srclistvars.sh: update for karl.
25485
25486 2008-01-29  Jim Meyering  <meyering@redhat.com>
25487
25488         vasnprintf.c: Avoid warning about unused label
25489         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
25490         "overflow" label definition and associated code with the
25491         same cpp condition that guards the sole use of that label.
25492
25493 2008-01-26  Bruno Haible  <bruno@clisp.org>
25494
25495         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
25496         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
25497         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
25498         * lib/isnanl-nolibm.h (isnanl): Likewise.
25499         Reported by Paul Eggert <eggert@cs.ucla.edu>.
25500
25501 2008-01-26  Bruno Haible  <bruno@clisp.org>
25502
25503         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
25504         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
25505
25506 2008-01-26  Bruno Haible  <bruno@clisp.org>
25507
25508         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
25509         GCC >= 4.0 built-in.
25510         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
25511
25512 2008-01-26  Bruno Haible  <bruno@clisp.org>
25513
25514         Rename isnan, applicable to 'double' only, to isnand.
25515         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
25516         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
25517         (configure.ac): Update.
25518         (Include): Replace "isnan.h" with "isnand.h".
25519         * m4/isnand.m4: Renamed from m4/isnan.m4.
25520         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
25521         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
25522         instead of isnan.c.
25523         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
25524         instead of HAVE_ISNAN_IN_LIBC.
25525         (isnand): Renamed from isnan.
25526         * lib/isnand.c: New file.
25527         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
25528         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
25529         (Makefile.am): Update.
25530         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
25531         Include isnand.h instead of isnan.h.
25532         (main): Test isnand instead of isnan.
25533         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
25534         isnan-nolibm.
25535         * modules/frexp (Depends-on): Likewise.
25536         * modules/frexp-tests (Depends-on): Likewise.
25537         * modules/frexp-nolibm (Depends-on): Likewise.
25538         * modules/frexp-nolibm-tests (Depends-on): Likewise.
25539         * modules/isfinite (Depends-on): Likewise.
25540         * modules/round-tests (Depends-on): Likewise.
25541         * modules/signbit (Depends-on): Likewise.
25542         * modules/signbit-tests (Depends-on): Likewise.
25543         * modules/snprintf-posix (Depends-on): Likewise.
25544         * modules/sprintf-posix (Depends-on): Likewise.
25545         * modules/trunc-tests (Depends-on): Likewise.
25546         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25547         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25548         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25549         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25550         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25551         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25552         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25553         * modules/vasnprintf-posix (Depends-on): Likewise.
25554         * modules/vasprintf-posix (Depends-on): Likewise.
25555         * modules/vfprintf-posix (Depends-on): Likewise.
25556         * modules/vsnprintf-posix (Depends-on): Likewise.
25557         * modules/vsprintf-posix (Depends-on): Likewise.
25558         * lib/frexp.c: Include isnand.h instead of isnan.h.
25559         (ISNAN): Set to isnand instead of isnan.
25560         * lib/isfinite.c: Include isnand.h instead of isnan.h.
25561         (gl_isfinited): Use isnand instead of isnan.
25562         * lib/signbitd.c: Include isnand.h instead of isnan.h.
25563         (gl_signbitd): Use isnand instead of isnan.
25564         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
25565         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
25566         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
25567         (main): Use isnand instead of isnan.
25568         * tests/test-round1.c: Include isnand.h.
25569         (main): Use isnand instead of isnan.
25570         * tests/test-round2.c: Include isnand.h instead of isnan.h.
25571         (ISNAN): Set to isnand instead of isnan.
25572         * tests/test-trunc1.c: Include isnand.h.
25573         (main): Use isnand instead of isnan.
25574         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
25575         (equal): Use isnand instead of isnan.
25576         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
25577         isnand-nolibm.
25578         * NEWS: Mention the change.
25579
25580 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
25581             Bruno Haible  <bruno@clisp.org>
25582
25583         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
25584         the GCC builtins for signbits are present and set
25585         REPLACE_SIGNBIT_USING_GCC if so.
25586         * lib/math.in.h (signbit): Define using GCC builtins if
25587         REPLACE_SIGNBIT_USING_GCC is set.
25588         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
25589         REPLACE_SIGNBIT_USING_GCC.
25590         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
25591
25592 2008-01-25  Jim Meyering  <meyering@redhat.com>
25593
25594         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
25595         * lib/poll.c: Include <config.h>, not "config.h".
25596         * tests/test-getaddrinfo.c: Likewise.
25597
25598 2008-01-25  Simon Josefsson  <simon@josefsson.org>
25599
25600         * modules/sockets-tests: New file.
25601
25602 2008-01-24  Simon Josefsson  <simon@josefsson.org>
25603
25604         * modules/sockets: New module, can be used to call WSA_Startup and
25605         WSA_Cleanup when needed.
25606
25607         * lib/sockets.h, lib/sockets.c: New files.
25608
25609         * m4/sockets.m4: New file.
25610
25611         * tests/test-sockets.c: New file.
25612
25613 2008-01-19  Bruno Haible  <bruno@clisp.org>
25614
25615         * doc/posix-headers: Renamed from doc/headers.
25616         * doc/posix-functions: Renamed from doc/functions.
25617         * doc/gnulib.texi: Update.
25618
25619 2008-01-19  Bruno Haible  <bruno@clisp.org>
25620
25621         * doc/glibc-functions/strcasestr.texi: Include contents of
25622         doc/functions/strcasestr.texi, fixing the list of platforms.
25623         * doc/functions/strcasestr.texi: Remove file.
25624
25625 2008-01-19  Bruno Haible  <bruno@clisp.org>
25626
25627         * doc/glibc-functions/memmem.texi: Include contents of
25628         doc/functions/memmem.texi.
25629         * doc/functions/memmem.texi: Remove file.
25630
25631 2008-01-18  Bruno Haible  <bruno@clisp.org>
25632
25633         * doc/glibc-functions/*.texi: New files.
25634         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
25635         to use the new files.
25636
25637 2008-01-17  Bruno Haible  <bruno@clisp.org>
25638
25639         * tests/test-gethostname.c (main): Fix printf statement.
25640
25641 2008-01-17  Simon Josefsson  <simon@josefsson.org>
25642
25643         * modules/gethostname-tests: New file.
25644
25645         * tests/test-gethostname.c: New file.
25646
25647 2008-01-17  Simon Josefsson  <simon@josefsson.org>
25648
25649         * lib/gethostname.c: Include string.h unconditionally, strncpy is
25650         used by the UNAME case.  Reported by Bruno Haible
25651         <bruno@clisp.org>.
25652
25653 2008-01-17  Eric Blake  <ebb9@byu.net>
25654
25655         Convert c-strcasestr to be more efficient.
25656         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
25657         (Depends-on): Add c-strcase, remove malloca, strnlen.
25658         * tests/test-c-strcasestr.c (main): Enhance test.
25659         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
25660
25661 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
25662
25663         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
25664         Use it in creating po/Makevars.
25665
25666 2008-01-15  Simon Josefsson  <simon@josefsson.org>
25667
25668         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
25669         Applications that requires it should initialize libgcrypt
25670         manually.
25671
25672 2008-01-16  Simon Josefsson  <simon@josefsson.org>
25673
25674         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
25675
25676 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25677
25678         Fix problem with getdate on mingw32 reported by Simon Josefsson
25679         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
25680         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
25681         tzname", when deciding whether to declare tzname.
25682         * lib/strftime.c (tzname): Likewise.
25683
25684 2008-01-15  Bruno Haible  <bruno@clisp.org>
25685
25686         Work around a MacOS X 10.5 bug in frexpl().
25687         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
25688         * doc/functions/frexpl.texi: Document the bug.
25689         Reported by Elias Pipping <pipping@gentoo.org>.
25690
25691 2008-01-14  Eric Blake  <ebb9@byu.net>
25692
25693         Touch up previous patch.
25694         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
25695         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
25696
25697         Convert strcasestr module to use Two-Way algorithm.
25698         * modules/strcasestr-simple: New module, based on the old
25699         strcasestr, but with Two-Way rather than KMP.
25700         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
25701         * lib/string.in.h (rpl_strcasestr): Declare.
25702         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
25703         performance.
25704         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
25705         * modules/string (Makefile.am): Support strcasestr.
25706         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
25707         * modules/strcasestr-tests (Depends-on): Check for alarm.
25708         * tests/test-strcasestr.c: Augment test.
25709         * lib/str-two-way.h: Clean up stray macro.
25710         * NEWS: Document new module.
25711         * MODULES.html.sh (string handling): Likewise.
25712         * doc/functions/strcasestr.texi: New file.
25713         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
25714         here, since it is not a POSIX function.
25715
25716 2008-01-14  Colin Watson  <cjwatson@debian.org>
25717             Bruno Haible  <bruno@clisp.org>
25718
25719         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
25720         works fine; if not, set REPLACE_STRSIGNAL.
25721         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
25722         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25723         REPLACE_STRSIGNAL.
25724         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
25725         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
25726         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
25727
25728 2008-01-14  Bruno Haible  <bruno@clisp.org>
25729
25730         * modules/strsignal (Include): Change to <string.h>.
25731
25732 2008-01-14  Colin Watson  <cjwatson@debian.org>
25733
25734         * modules/argp (Notice): Add a notice recommending to change
25735         XGETTEXT_OPTIONS.
25736         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
25737
25738 2008-01-13  Colin Watson  <cjwatson@debian.org>
25739
25740         * modules/strsignal-tests: New file.
25741         * tests/test-strsignal.c: New file.
25742
25743         * lib/strsignal.c: New file, from glibc with modifications.
25744         * lib/siglist.h: New file, from glibc with modifications.
25745         * lib/string.in.h (strsignal): New declaration.
25746         * m4/strsignal.m4: New file.
25747         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25748         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
25749         * modules/strsignal: New file.
25750         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
25751         HAVE_DECL_STRSIGNAL.
25752
25753 2008-01-13  Bruno Haible  <bruno@clisp.org>
25754
25755         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
25756         locale encoding is not ASCII. Needed for OpenBSD 4.0.
25757         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
25758         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25759
25760 2008-01-13  Bruno Haible  <bruno@clisp.org>
25761
25762         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
25763         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
25764         * lib/argp.h (__attribute__): Likewise.
25765         * lib/c-stack.c (__attribute__): Likewise.
25766         * lib/error.h (__attribute__): Likewise.
25767         * lib/fts.c (__attribute__): Likewise.
25768         * lib/openat.h (__attribute__): Likewise.
25769         * lib/stdio.in.h (__attribute__): Likewise.
25770         * lib/string.in.h (__attribute__): Likewise.
25771         * lib/utimens.c (__attribute__): Likewise.
25772         * lib/vasnprintf.h (__attribute__): Likewise.
25773         * lib/xalloc.h (__attribute__): Likewise.
25774         * lib/xprintf.h (__attribute__): Likewise.
25775         * lib/xstrtol.h (__attribute__): Likewise.
25776         * lib/xvasprintf.h (__attribute__): Likewise.
25777
25778 2008-01-12  Bruno Haible  <bruno@clisp.org>
25779
25780         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
25781         * doc/glibc-headers/a.out.texi: New file.
25782         * doc/glibc-headers/aliases.texi: New file.
25783         * doc/glibc-headers/alloca.texi: New file.
25784         * doc/glibc-headers/ar.texi: New file.
25785         * doc/glibc-headers/argp.texi: New file.
25786         * doc/glibc-headers/argz.texi: New file.
25787         * doc/glibc-headers/byteswap.texi: New file.
25788         * doc/glibc-headers/crypt.texi: New file.
25789         * doc/glibc-headers/endian.texi: New file.
25790         * doc/glibc-headers/envz.texi: New file.
25791         * doc/glibc-headers/err.texi: New file.
25792         * doc/glibc-headers/error.texi: New file.
25793         * doc/glibc-headers/execinfo.texi: New file.
25794         * doc/glibc-headers/fpu_control.texi: New file.
25795         * doc/glibc-headers/fstab.texi: New file.
25796         * doc/glibc-headers/fts.texi: New file.
25797         * doc/glibc-headers/getopt.texi: New file.
25798         * doc/glibc-headers/ieee754.texi: New file.
25799         * doc/glibc-headers/ifaddrs.texi: New file.
25800         * doc/glibc-headers/libintl.texi: New file.
25801         * doc/glibc-headers/mcheck.texi: New file.
25802         * doc/glibc-headers/mntent.texi: New file.
25803         * doc/glibc-headers/obstack.texi: New file.
25804         * doc/glibc-headers/paths.texi: New file.
25805         * doc/glibc-headers/printf.texi: New file.
25806         * doc/glibc-headers/pty.texi: New file.
25807         * doc/glibc-headers/resolv.texi: New file.
25808         * doc/glibc-headers/shadow.texi: New file.
25809         * doc/glibc-headers/sysexits.texi: New file.
25810         * doc/glibc-headers/ttyent.texi: New file.
25811
25812 2008-01-12  Jim Meyering  <meyering@redhat.com>
25813
25814         announce-gen: emit Gnulib's git-based version string.
25815         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
25816         New option --gnulib-version=V, where V is expected to be
25817         the output of running git describe in the gnulib directory.
25818         (get_tool_versions): Request feedback on xdelta.  I suspect it's
25819         not useful, and plan to stop publishing an xdelta file with each
25820         coreutils release.
25821
25822         * build-aux/announce-gen: Also check for lzma-compressed files.
25823
25824 2008-01-11  Bruno Haible  <bruno@clisp.org>
25825
25826         * tests/test-memmem.c (main): Increase maximum allowed time.
25827         * tests/test-strstr.c (main): Likewise.
25828
25829 2008-01-11  Bruno Haible  <bruno@clisp.org>
25830
25831         * doc/functions/memmem.texi: Add more precisions about platforms.
25832         * doc/functions/strstr.texi: Likewise.
25833
25834 2008-01-10  Eric Blake  <ebb9@byu.net>
25835
25836         * m4/strstr.m4: Delete cruft from copy-n-paste.
25837         Reported by Bruno Haible.
25838
25839 2008-01-10  Bruno Haible  <bruno@clisp.org>
25840
25841         Make c-strstr rely on strstr.
25842         * lib/c-strstr.c: Don't include str-kmp.h.
25843         (c_strstr): Define in terms of strstr.
25844         * modules/c-strstr (Files): Remove lib/str-kmp.h.
25845         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
25846
25847 2008-01-10  Bruno Haible  <bruno@clisp.org>
25848
25849         * doc/gnulib.texi (String Functions in C Locale): New section.
25850         * doc/c-ctype.texi: New file.
25851         * doc/c-strcase.texi: New file.
25852         * doc/c-strcaseeq.texi: New file.
25853         * doc/c-strcasestr.texi: New file.
25854         * doc/c-strstr.texi: New file.
25855         * doc/c-strtod.texi: New file.
25856         * doc/c-strtold.texi: New file.
25857
25858 2008-01-10  Eric Blake  <ebb9@byu.net>
25859
25860         * lib/relocatable.h: Fix a comment.
25861
25862 2008-01-10  Eric Blake  <ebb9@byu.net>
25863
25864         Share two-way algorithm.
25865         * lib/str-two-way.h: New file, merged from...
25866         * lib/memmem.c: ...here...
25867         * lib/strstr.c: ...and here.
25868         * modules/memmem (Files): Use it.
25869         * modules/strstr (Files): Likewise.
25870
25871         Avoid quadratic strstr implementations.
25872         * lib/strstr.c: New file.
25873         * m4/strstr.m4: Likewise.
25874         * modules/strstr: Likewise.
25875         * modules/strstr-tests: Likewise.
25876         * tests/test-strstr.c: Likewise.
25877         * lib/string.in.h (rpl_strstr): Declare.
25878         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
25879         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
25880         * modules/string (Makefile.am): Likewise.
25881         * MODULES.html.sh (string handling): Mention new module.
25882         * doc/functions/strstr.texi (strstr): Document the bug.
25883
25884 2008-01-10  Bruno Haible  <bruno@clisp.org>
25885
25886         * lib/relocatable.h (relocate): State whether result is freshly
25887         allocated or not.
25888         * lib/relocatable.c (relocate): Return a freshly allocated string
25889         instead of a pointer to a privately held string.
25890         Reported by Sylvain Beucler <beuc@gnu.org>.
25891
25892 2008-01-10  Colin Watson  <cjwatson@debian.org>
25893
25894         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
25895         s/S_ISNLK/S_ISLNK/.
25896
25897 2008-01-09  Bruno Haible  <bruno@clisp.org>
25898
25899         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
25900         and other files.
25901         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
25902         if it's only a guess.
25903         * modules/memmem: Simplify by depending on memmem-simple.
25904
25905 2008-01-09  Bruno Haible  <bruno@clisp.org>
25906
25907         Work around OpenBSD 4.0 tdelete() bug.
25908         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
25909         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
25910         macros and don't redefine the enum values.
25911         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
25912         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
25913         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
25914
25915 2008-01-09  Bruno Haible  <bruno@clisp.org>
25916
25917         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
25918         (main): Don't perform the tests if setlocale did not install a UTF-8
25919         locale. Needed on OpenBSD 4.0.
25920         * modules/wcwidth-tests (Depends-on): Add localcharset.
25921
25922 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
25923
25924         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
25925         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
25926         * NEWS: announce this.
25927         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
25928
25929 2008-01-09  Simon Josefsson  <simon@josefsson.org>
25930         and Eric Blake  <ebb9@byu.net>
25931
25932         Add memmem-simple module.
25933         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
25934         (gl_FUNC_MEMMEM): Separate performance from presence checks.
25935         * modules/memmem-simple: New file.
25936         * modules/memmem (Description): Tweak.
25937         * MODULES.html.sh (string handling): Mention new module.
25938         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
25939         addressed by memmem-simple.
25940         * NEWS: Document the difference.
25941
25942 2008-01-09  Eric Blake  <ebb9@byu.net>
25943
25944         Give gcc some memmem optimization hints.
25945         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
25946         (strcasestr): Declare as pure.
25947         * modules/memmem (Maintainer): Claim my implementation.
25948
25949 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25950
25951         Support AIX 6.1 and higher.
25952         * build-aux/config.libpath: Likewise.
25953         * build-aux/config.rpath: Likewise.
25954
25955 2008-01-08  Jim Meyering  <meyering@redhat.com>
25956             Bruno Haible  <bruno@clisp.org>
25957
25958         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
25959         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
25960         Reported by Peter Fales in
25961         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
25962
25963 2008-01-08  Bruno Haible  <bruno@clisp.org>
25964
25965         * modules/unictype/category-of (Depends-on): Add
25966         unictype/category-none.
25967         * modules/unictype/category-and-tests (Depends-on): Add
25968         unictype/category-{L,N,Lu,Nd}.
25969         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
25970         * modules/unictype/category-or-tests (Depends-on): Add
25971         unictype/category-{L,N}.
25972         * modules/unictype/category-name-tests (Depends-on): Add
25973         unictype/category-{Z,Nl}.
25974         Reported by Simon Josefsson.
25975
25976 2008-01-08  Bruno Haible  <bruno@clisp.org>
25977
25978         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
25979         convention better.
25980         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
25981         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
25982         Reported by Peter Miller <millerp@canb.auug.org.au>.
25983
25984 2008-01-08  Eric Blake  <ebb9@byu.net>
25985
25986         Rewrite memmem to guarantee linear complexity without malloc.
25987         * lib/memmem.c (memmem): Use Two-Way rather than
25988         Knuth-Morris-Pratt, to allow O(1) space usage.
25989         (critical_factorization, two_way_short_needle)
25990         (two_way_long_needle): New functions.
25991         (knuth_morris_pratt): Delete.
25992         * modules/memmem (Depends-on): No longer need malloca or stdbool.
25993         Add stdint.
25994         * tests/test-memmem.c (main): Add tests for periodic needle and
25995         sublinear performance.
25996         * doc/functions/memmem.texi (memmem): Document other deficiencies
25997         in cygwin and older glibc.
25998
25999 2008-01-08  Bruno Haible  <bruno@clisp.org>
26000
26001         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
26002         augmentation.
26003
26004 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
26005
26006         Add a configure time option: --disable-acl.
26007         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
26008         AC_ARG_ENABLE(acl).
26009
26010 2008-01-06  Simon Josefsson  <simon@josefsson.org>
26011
26012         * tests/test-localename.c: Don't include obsolete "setenv.h".
26013
26014         * modules/localename-tests (Depends-on): Need unsetenv.
26015
26016 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26017
26018         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
26019
26020 2008-01-06  Colin Watson  <cjwatson@debian.org>
26021
26022         * users.txt: Add man-db.
26023
26024 2008-01-07  Bruno Haible  <bruno@clisp.org>
26025
26026         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
26027         previous section name.
26028
26029 2008-01-07  Bruno Haible  <bruno@clisp.org>
26030
26031         * lib/progname.c (set_program_name): Don't strip off a leading
26032         "lt-" prefix outside a .libs directory.
26033         Suggested by Paul Eggert.
26034
26035 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
26036             Bruno Haible  <bruno@clisp.org>
26037
26038         Improve memory cleanup in 'relocatable' module.
26039         * lib/relocatable.h (compute_curr_prefix): Change return type to
26040         'char *'.
26041         * lib/relocatable.c (compute_curr_prefix): Change return type to
26042         'char *'. Free curr_installdir after use.
26043         (relocate): Free curr_prefix_better after use.
26044         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
26045
26046 2008-01-01  Bruno Haible  <bruno@clisp.org>
26047
26048         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
26049         failure on older glibc systems.
26050         Reported by Peter Fales <psfales@alcatel-lucent.com>.
26051
26052 2008-01-05  Eric Blake  <ebb9@byu.net>
26053
26054         Avoid quadratic system memmem.
26055         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
26056         Reported by Ralf Wildenhues.
26057
26058         Fix memmem test for mingw.
26059         * modules/memmem-tests (configure.ac): Check for alarm.
26060         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
26061         it.
26062         * doc/functions/memmem.texi: New file.
26063         * doc/gnulib.texi (Function Substitutes): Add memmem.
26064         Reported by Bruno Haible.
26065
26066 2008-01-04  Bruno Haible  <bruno@clisp.org>
26067
26068         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
26069         Require gl_HEADER_STRINGS_H_DEFAULTS, not
26070         gl_HEADER_STRING_H_DEFAULTS.
26071
26072 2008-01-04  Eric Blake  <ebb9@byu.net>
26073
26074         Shorten duration of memmem test.
26075         * tests/test-memmem.c (main): Use alarm to declare failure if test
26076         is taking too long.
26077         Reported by Ralf Wildenhues.
26078
26079 2007-12-21  Simon Josefsson  <simon@josefsson.org>
26080
26081         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
26082         string, needed by strerror.
26083
26084 2008-01-03  Colin Watson  <cjwatson@debian.org>
26085             Bruno Haible  <bruno@clisp.org>
26086
26087         * doc/gnulib-tool.texi (Localization): New section.
26088
26089 2008-01-02  Bruno Haible  <bruno@clisp.org>
26090
26091         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
26092         variables to 'unsigned char *' type.
26093         Reported by Paul Eggert.
26094
26095 2008-01-02  Jim Meyering  <jim@meyering.net>
26096
26097         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
26098
26099 2007-12-31  Jim Meyering  <jim@meyering.net>
26100
26101         Avoid use of private FTS type name.
26102         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
26103
26104 2007-12-30  Karl Berry  <karl@gnu.org>
26105
26106         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
26107         work around defect in Texinfo and/or the standalone Info browser.
26108
26109 2007-12-30  Bruno Haible  <bruno@clisp.org>
26110
26111         Unify 5 copies of the KMP code.
26112         * lib/str-kmp.h: New file.
26113         * lib/c-strcasestr.c: Include str-kmp.h.
26114         (knuth_morris_pratt): Remove function.
26115         (c_strcasestr): Update.
26116         * lib/c-strstr.c: Include str-kmp.h.
26117         (knuth_morris_pratt): Remove function.
26118         (c_strcasestr): Update.
26119         * lib/mbscasestr.c: Include str-kmp.h.
26120         (knuth_morris_pratt_unibyte): Remove function.
26121         * lib/mbsstr.c: Include str-kmp.h.
26122         (knuth_morris_pratt_unibyte): Remove function.
26123         * lib/strcasestr.c: Include str-kmp.h.
26124         (knuth_morris_pratt): Remove function.
26125         (strcasestr): Update.
26126         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
26127         * modules/c-strstr (Files): Likewise.
26128         * modules/mbscasestr (Files): Likewise.
26129         * modules/mbsstr (Files): Likewise.
26130         * modules/strcasestr (Files): Likewise.
26131         Suggested by Paul Eggert.
26132
26133 2007-12-30  Bruno Haible  <bruno@clisp.org>
26134
26135         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
26136         defined.
26137
26138 2007-12-30  Bruno Haible  <bruno@clisp.org>
26139
26140         * lib/xmalloca.h: Include xalloc.h.
26141         (xnmalloca): New macro.
26142
26143 2007-12-30  Bruno Haible  <bruno@clisp.org>
26144
26145         * lib/malloca.h (nmalloca): New macro.
26146         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
26147         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
26148         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
26149         knuth_morris_pratt_multibyte): Likewise.
26150         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
26151         knuth_morris_pratt_multibyte): Likewise.
26152         * lib/memmem.c (knuth_morris_pratt): Likewise.
26153         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
26154
26155 2007-12-25  Bruno Haible  <bruno@clisp.org>
26156
26157         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
26158         * lib/glob.c: Don't include openat.h.
26159         (link_exists2_p): Add back the code that deals with the
26160         !GLOB_ALTDIRFUNC case.
26161         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
26162         let it do the filename concatenation.
26163         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
26164         * modules/glob (Depends-on): Remove openat.
26165
26166 2007-12-31  Bruno Haible  <bruno@clisp.org>
26167
26168         * modules/dirfd (License): Change to LGPLv2+.
26169         Approved by Jim Meyering.
26170
26171 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26172
26173         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
26174         when multiplying M by sizeof (size_t).
26175
26176 2007-12-10  Martin Lambers  <marlam@marlam.de>
26177
26178         Override getpagesize on mingw.
26179         * lib/getpagesize.c: New file.
26180         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
26181         * modules/getpagesize (Files): Add lib/getpagesize.c.
26182         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
26183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26184         REPLACE_GETPAGESIZE.
26185         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
26186
26187 2007-12-25  Bruno Haible  <bruno@clisp.org>
26188
26189         * modules/localcharset (Notice): New field.
26190         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
26191         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
26192
26193 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26194             Bruno Haible  <bruno@clisp.org>
26195
26196         Avoid using the syntax symbol() in formatted documentation.
26197         * MODULES.html.sh (func_module): When replacing symbol() with a
26198         hyperlink, remove the parentheses. Show an error if some remain.
26199         Recognize and render the '...' syntax.
26200         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
26201         Rework. Add paragraph about GCC's inlining.
26202         * doc/alloca.texi: Likewise.
26203         * doc/error.texi: Remove parentheses from symbol reference.
26204         * doc/gnulib-intro.texi: Likewise.
26205         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
26206         * modules/fnmatch (Description): Reword to say "the ... function".
26207         * modules/full-read (Description): Likewise.
26208         * modules/full-write (Description): Likewise.
26209         * modules/safe-read (Description): Likewise.
26210         * modules/safe-write (Description): Likewise.
26211         * modules/strchrnul (Description): Likewise.
26212         * modules/trim (Description): Likewise.
26213         * modules/error (Description): Remove parentheses from symbol
26214         references.
26215         * modules/verror (Description): Likewise.
26216         Reported by Karl Berry.
26217
26218 2007-12-25  Bruno Haible  <bruno@clisp.org>
26219
26220         Fixup after 2007-10-16 commit.
26221         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
26222
26223 2007-12-24  Bruno Haible  <bruno@clisp.org>
26224
26225         Make --enable-relocatable work with DESTDIR.
26226         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
26227         to compute installdir from destprog.
26228         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
26229         also set the RELOC_DESTDIR variable.
26230         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
26231
26232 2007-12-24  Bruno Haible  <bruno@clisp.org>
26233
26234         Fix link error due to xalloc_die().
26235         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
26236         of xreadlink.
26237         * lib/relocwrapper.c: Update comments.
26238         * build-aux/install-reloc: Remove xreadlink.c from file list.
26239         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
26240         xreadlink.c.
26241         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
26242
26243 2007-12-24  Bruno Haible  <bruno@clisp.org>
26244
26245         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
26246         * lib/setenv.h: Remove file.
26247         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
26248         lib/setenv.h.
26249         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
26250         (Depends-on): Add stdlib.
26251         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
26252         gl_FUNC_UNSETENV.
26253         (Include): Replace setenv.h with <stdlib.h>.
26254         * modules/unsetenv: New file.
26255         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
26256         * lib/unsetenv.c: Include <stdlib.h> first.
26257         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
26258         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
26259         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
26260         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
26261         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
26262         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26263         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
26264         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26265         * doc/functions/unsetenv.texi: Update.
26266         * modules/xsetenv (Depends-on): Add unsetenv.
26267         * modules/getdate (Depends-on): Likewise.
26268         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
26269         * lib/xsetenv.c: Don't include setenv.h.
26270         * lib/getdate.y: Likewise.
26271         * lib/relocwrapper.c: Likewise.
26272         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
26273         (Depends-on): Add stdlib.
26274         * NEWS: Mention the changes.
26275         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
26276
26277 2007-12-23  Bruno Haible  <bruno@clisp.org>
26278
26279         * lib/memmem.c (memmem): Use lowercase variable names. Tab
26280         indentation.
26281
26282 2007-12-23  Bruno Haible  <bruno@clisp.org>
26283
26284         * lib/c-strcasestr.c: Add more comments.
26285         * lib/c-strstr.c: Likewise.
26286         * lib/mbscasestr.c: Likewise.
26287         * lib/mbsstr.c: Likewise.
26288         * lib/strcasestr.c: Likewise.
26289         * lib/memmem.c: Likewise.
26290
26291 2007-12-23  Bruno Haible  <bruno@clisp.org>
26292
26293         * tests/test-memmem.c: Include <string.h> first.
26294
26295 2007-12-22  Bruno Haible  <bruno@clisp.org>
26296
26297         * gnulib-tool (func_create_testdir): Change $auxdir while generating
26298         the contents of $testsbase.
26299         Reported by Ralf Wildenhues.
26300
26301 2007-12-22  Bruno Haible  <bruno@clisp.org>
26302
26303         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
26304         two variables local_ldadd_before, local_ldadd_last.
26305
26306 2007-12-20  Eric Blake  <ebb9@byu.net>
26307
26308         Work around circular library issue when cross-compiling.
26309         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
26310         that progname.o does not need to pull in rpl_memcmp.
26311
26312 2007-12-19  Eric Blake  <ebb9@byu.net>
26313
26314         Fix memmem to avoid O(n^2) worst-case complexity.
26315         * lib/memmem.c (knuth_morris_pratt): New function.
26316         (memmem): Use it if first few naive iterations fail.
26317         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
26318         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
26319         * modules/memchr (License): Likewise.
26320         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
26321         malloca.
26322         * tests/test-memmem.c: Rewrite, borrowing ideas from
26323         test-mbsstr1.c; the old version wouldn't even compile!
26324         * modules/memmem-tests: New file.
26325         * lib/string.in.h (rpl_memmem): Add declaration.
26326         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
26327         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
26328         REPLACE_MEMMEM.
26329
26330 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26331
26332         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
26333         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
26334         before any system include files, and undef after them all.  This
26335         should fix a problem on VMS reported by John E. Malmberg in
26336         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
26337
26338 2007-12-17  Eric Blake  <ebb9@byu.net>
26339
26340         Revert addition of verify, for BSD/OS.
26341         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
26342         can't handle large files, for the sake of obsolete platforms.
26343         * modules/fseeko (Depends-on): Remove verify.
26344         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
26345         * doc/functions/ftello.texi (ftello): Likewise.
26346         * doc/functions/fgetpos.texi (fgetpos): Likewise.
26347         Reported by Larry Jones.
26348
26349 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
26350
26351         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
26352         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
26353
26354 2007-12-17  Jim Meyering  <meyering@redhat.com>
26355
26356         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
26357         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
26358         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
26359         * modules/getcwd (Depends-on): Add openat.
26360         Reported by Petr Salinger.
26361
26362 2007-12-17  Bruno Haible  <bruno@clisp.org>
26363
26364         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
26365         avoid a segmentation fault of the configure test on x86_64 systems.
26366
26367 2007-12-15  Jim Meyering  <meyering@redhat.com>
26368
26369         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
26370
26371 2007-12-13  Eric Blake  <ebb9@byu.net>
26372
26373         Another fseek test.
26374         * tests/test-fseek.c (main): Also test ungetc handling.
26375         * tests/test-fseeko.c (main): Likewise.
26376         * modules/fseeko (Depends-on): Add verify.
26377         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
26378         large.
26379         Reported by Larry Jones.
26380
26381         Fix fseeko on mingw.
26382         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
26383         seek.
26384
26385         Beef up fseek tests.
26386         * tests/test-fseek.c (main): Also test eof handling.
26387         * tests/test-fseeko.c (main): Likewise.
26388         Reported by Larry Jones.
26389
26390 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
26391
26392         Fix fseeko on BSD-based platforms.
26393         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
26394         successful seek.
26395
26396 2007-12-12  Eric Blake  <ebb9@byu.net>
26397
26398         Allow circular dependency of separate libtests.a
26399         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
26400         when use_libtests.
26401
26402 2007-12-11  Eric Blake  <ebb9@byu.net>
26403
26404         Fix bug with -0.0L in previous patch.
26405         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
26406         * tests/test-isnan.c (main): Also test on zeroes.
26407         * tests/test-isnanf.c (main): Likewise.
26408         * tests/test-isnanl.h (main): Likewise.
26409
26410         Detect pseudo-denormals on x86 even when cross-compiling.
26411         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
26412         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
26413         invalid bit patterns that happen to satisfy ==.
26414
26415         Avoid link failures with separate libtests.a.
26416         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
26417         last, to satisfy circular dependencies.
26418
26419 2007-12-11  Eric Blake  <ebb9@byu.net>
26420         and Bruno Haible  <bruno@clisp.org>
26421
26422         Fix OpenBSD 4.0 <float.h> handling of long double.
26423         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
26424         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
26425         * doc/headers/float.texi (float.h): Document OpenBSD bug.
26426
26427 2007-12-11  Jim Meyering  <meyering@redhat.com>
26428
26429         * users.txt: Add libvirt.
26430
26431         Support versions of autoconf prior to 2.59c.
26432         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
26433         if it is not already defined.
26434
26435 2007-12-09  Bruno Haible  <bruno@clisp.org>
26436
26437         Let 'gnulib-tool --import' collect sources needed for the tests in
26438         tests/ rather than in lib/.
26439         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
26440         argument. If true, add rules to generate libtests.a, and put libtests.a
26441         into $(LDADD). Consider source files in subdirectories and set
26442         uses_subdirs.
26443         (func_emit_initmacro_start, func_emit_initmacro_end,
26444         func_emit_initmacro_done): Pass all arguments explicitly.
26445         (func_import): Determine two module lists main_modules,
26446         testsrelated_modules. Determine use_libtests. Determine two variables
26447         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
26448         instead of just sed_transform_lib_file. Determine two variables
26449         main_files and testsrelated_files. Compute 'files' as the union of
26450         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
26451         func_add_or_update. In the generated gnulib-comp.m4, collect the
26452         object files for tests/ in different variables than those for lib/.
26453         Substitute LIBTESTS_LIBDEPS.
26454         (func_create_testdir): Combine the uses_subdirs results from
26455         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
26456
26457 2007-12-09  Bruno Haible  <bruno@clisp.org>
26458
26459         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
26460         the build-aux directory.
26461
26462 2007-12-09  Bruno Haible  <bruno@clisp.org>
26463
26464         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
26465         introduced on 2006-09-09.
26466
26467 2007-12-07  Jim Meyering  <meyering@redhat.com>
26468
26469         Let these macros work also with autoconf-2.59.
26470         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
26471         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
26472         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26473
26474 2007-12-06  Jim Meyering  <meyering@redhat.com>
26475
26476         Avoid a configure-time syntax error in gl_FUNC_ACL.
26477         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
26478         function in each branch, before testing the cache variable.
26479
26480 2007-12-04  Eric Blake  <ebb9@byu.net>
26481
26482         Make scripts executable.
26483         * build-aux/config.guess: Add execute permissions.
26484         * build-aux/config.sub: Likewise.
26485         * build-aux/gendocs.sh: Likewise.
26486
26487         Fix frexp on mingw.
26488         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
26489         cross-compiling.
26490         * doc/functions/frexp.texi (frexp): Document the bug.
26491
26492         Make cygwin fseeko check more reliable.
26493         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
26494         version numbers, rather than unrelated feature check.
26495         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
26496         * doc/functions/ftello.texi (ftello): Likewise.
26497         Reported by Bruno Haible.
26498
26499         * m4/strerror.m4: Bump version number.
26500
26501 2007-12-03  Bruno Haible  <bruno@clisp.org>
26502
26503         * doc/functions/mprotect.texi: Mention the mingw problem.
26504
26505 2007-12-03  Eric Blake  <ebb9@byu.net>
26506
26507         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
26508         REPLACE_STRERROR is initialized before this macro.
26509
26510 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
26511
26512         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
26513         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
26514         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
26515         put -lsec in even for programs other than 'ls'.  This fixes a problem
26516         for gettext reported by Bruno Haible in
26517         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
26518         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
26519         Add support for Solaris 10.  This isn't efficient, but should get the
26520         job done for now.
26521
26522 2007-12-03  James Youngman  <jay@gnu.org>
26523
26524         * doc/regexprops-generic.texi: change "an close-group" to "a
26525         close-group" and "illegal" to "not allowed".
26526
26527 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26528
26529         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
26530         pr_byname.h. Needed for the rare case when the maintainer has done
26531         "make maintainer-clean" in the source directory and then attempts a
26532         build outside the source directory.
26533         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
26534         scripts_byname.h.
26535
26536 2007-12-02  Martin Lambers <marlam@marlam.de>
26537             Bruno Haible  <bruno@clisp.org>
26538
26539         * lib/getpagesize.h: Remove file.
26540         * lib/unistd.in.h: Include declaration of getpagesize here.
26541         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
26542         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
26543         HAVE_SYS_PARAM_H.
26544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
26545         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
26546         * modules/getpagesize (Files): Remove lib/getpagesize.h.
26547         (Depends-on): Add unistd.
26548         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26549         (Include): Use <unistd.h> instead of getpagesize.h.
26550         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
26551         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
26552         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
26553         gl_GETPAGESIZE invocation, already handled by module dependency.
26554         * lib/pagealign_alloc.c: Don't include getpagesize.h.
26555
26556 2007-12-02  Bruno Haible  <bruno@clisp.org>
26557
26558         * modules/strings-tests: New file.
26559         * tests/test-strings.c: New file.
26560
26561         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
26562         * lib/strings.in.h: New file.
26563         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
26564         * m4/strings_h.m4: New file.
26565         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
26566         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
26567         * modules/strings: New file.
26568         * modules/string (Makefile.am): Update.
26569         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
26570         Reported by Karl Berry.
26571
26572 2007-12-01  Eric Blake  <ebb9@byu.net>
26573
26574         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
26575         accomodate fix in cygwin 1.5.25.
26576
26577 2007-12-01  Jim Meyering  <meyering@redhat.com>
26578
26579         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
26580         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
26581         that would inhibit utf8-optimization of a regexp containing line-
26582         or buffer-anchors, e.g., `^', `$'.
26583
26584 2007-11-30  Bruno Haible  <bruno@clisp.org>
26585
26586         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
26587         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
26588         glthread_recursive_lock_init.
26589         * lib/lock.c (glthread_recursive_lock_init)
26590         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
26591         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26592
26593 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
26594
26595         New function qset_acl, like set_acl but with syscall semantics.
26596         * lib/acl.h (qset_acl): New decl.
26597         * lib/acl.c (qset_acl): New function.
26598         (set_acl): Use new function.  Use more-consistent diagnostics.
26599
26600 2007-11-28  Jim Meyering  <meyering@redhat.com>
26601
26602         * modules/physmem (License): Change from GPL to LGPLv2+.
26603
26604 2007-11-26  Bruno Haible  <bruno@clisp.org>
26605
26606         * lib/vasnprintf.c (decode_long_double): Don't abort if the
26607         'long double' type has excess precision.
26608         Reported by Jim Meyering in
26609         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
26610
26611 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26612
26613         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
26614         Sync from <http://gnu.org/licenses>.
26615         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
26616         with license text from same location.
26617         * doc/maintain.texi, doc/standards.texi:  Sync from
26618         <http://savannah.gnu.org/projects/gnustandards>.
26619
26620 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
26621         and Jim Meyering  <meyering@redhat.com>
26622
26623         Adjust getdate' grammar to accept a slightly more regular language.
26624         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
26625         Before, the former was rejected.
26626         * lib/getdate.y (digits_to_date_time): New function, factored
26627         out of ...
26628         (number): ...here.  Just call digits_to_date_time.
26629         (hybrid): New non-terminal to handle an <unsigned number,
26630         signed relative offset> sequence consistently.
26631
26632 2007-11-18  Jim Meyering  <meyering@redhat.com>
26633
26634         Pull my changes from coreutils:
26635         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
26636         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
26637         use of $gnulib_tool_option_extras, so that it's separated from the
26638         preceding argument.
26639
26640         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
26641         * build-aux/bootstrap (cp_mark_as_generated): Create any required
26642         parent destination directories before copying a file into place.
26643
26644 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
26645
26646         bootstrap: work also with 4-argument variant of AC_INIT
26647         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
26648
26649 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
26650
26651         Port test-getaddrinfo to Solaris.
26652         Problem reported by Bruno Haible in
26653         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
26654         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
26655         explanation of setting 'hints'.
26656         Don't reject an implementation merely because it returns EAI_SERVICE.
26657         (EAI_SERVICE): Define to 0 if not defined.
26658
26659 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
26660
26661         The license of gnu-make and posix-shell is now "GPLed build tool".
26662         * modules/gnu-make (License): Likewise.
26663         * modules/posix-shell (License): Likewise.
26664
26665         New module posix-shell, for determining a POSIX shell
26666         or perhaps something that is close enough to a POSIX shell.
26667         * m4/posix-shell.m4: New file.
26668         * modules/posix-shell: New file.
26669
26670         * MODULES.html.sh: Mention new module.
26671
26672         New module gnu-make, for determining whether we're using GNU Make.
26673         * m4/gnu-make.m4: New file.
26674         * modules/gnu-make: New file.
26675         * MODULES.html.sh: Mention new module.
26676
26677 2007-11-14  Jim Meyering  <meyering@redhat.com>
26678
26679         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
26680         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
26681         use this macro to create a function _definition_.
26682         Remove useless "#undef ARGMATCH_DIE".
26683
26684 2007-11-14  Bruno Haible  <bruno@clisp.org>
26685
26686         * lib/config.charset: Update for OpenBSD 4.1.
26687         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
26688
26689 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
26690
26691         Document 64-bit #if problems in stdint.texi.
26692         * doc/headers/stdint.texi (stdint.h): Mention problems with
26693         64-bit-#if, and how to work around them.
26694
26695         Don't insist on 'long long int' support in the preprocessor.  It
26696         breaks too many things.  For example, PRIdMAX still uses a 'long
26697         long int' format with the latest Sun compiler, even though
26698         HAVE_LONG_LONG_INT isn't defined due to that compiler's
26699         preprocessor problem.  This causes the latest coreutils to dump
26700         core on Solaris 10 sparc with the Sun C compiler.
26701         Instead, fix the 2007-10-16 problem in a different way, by evaluating
26702         the troublesome expressions at configure-time, not at #if-time.
26703         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
26704         preprocessor.
26705         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
26706         compile-time C checks, done at 'configure'-time.
26707         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
26708         * modules/inttypes (Makefile): Substitute the new symbols that
26709         gl_INTTYPES_H now generates.
26710         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
26711
26712 2007-11-12  Bruno Haible  <bruno@clisp.org>
26713
26714         Tests for Unicode character classification functions.
26715
26716         * modules/unictype/bidicategory-byname-tests: New file.
26717         * modules/unictype/bidicategory-name-tests: New file.
26718         * modules/unictype/bidicategory-of-tests: New file.
26719         * modules/unictype/bidicategory-test-tests: New file.
26720         * modules/unictype/block-list-tests: New file.
26721         * modules/unictype/block-of-tests: New file.
26722         * modules/unictype/block-test-tests: New file.
26723         * modules/unictype/category-C-tests: New file.
26724         * modules/unictype/category-Cc-tests: New file.
26725         * modules/unictype/category-Cf-tests: New file.
26726         * modules/unictype/category-Cn-tests: New file.
26727         * modules/unictype/category-Co-tests: New file.
26728         * modules/unictype/category-Cs-tests: New file.
26729         * modules/unictype/category-L-tests: New file.
26730         * modules/unictype/category-Ll-tests: New file.
26731         * modules/unictype/category-Lm-tests: New file.
26732         * modules/unictype/category-Lo-tests: New file.
26733         * modules/unictype/category-Lt-tests: New file.
26734         * modules/unictype/category-Lu-tests: New file.
26735         * modules/unictype/category-M-tests: New file.
26736         * modules/unictype/category-Mc-tests: New file.
26737         * modules/unictype/category-Me-tests: New file.
26738         * modules/unictype/category-Mn-tests: New file.
26739         * modules/unictype/category-N-tests: New file.
26740         * modules/unictype/category-Nd-tests: New file.
26741         * modules/unictype/category-Nl-tests: New file.
26742         * modules/unictype/category-No-tests: New file.
26743         * modules/unictype/category-P-tests: New file.
26744         * modules/unictype/category-Pc-tests: New file.
26745         * modules/unictype/category-Pd-tests: New file.
26746         * modules/unictype/category-Pe-tests: New file.
26747         * modules/unictype/category-Pf-tests: New file.
26748         * modules/unictype/category-Pi-tests: New file.
26749         * modules/unictype/category-Po-tests: New file.
26750         * modules/unictype/category-Ps-tests: New file.
26751         * modules/unictype/category-S-tests: New file.
26752         * modules/unictype/category-Sc-tests: New file.
26753         * modules/unictype/category-Sk-tests: New file.
26754         * modules/unictype/category-Sm-tests: New file.
26755         * modules/unictype/category-So-tests: New file.
26756         * modules/unictype/category-Z-tests: New file.
26757         * modules/unictype/category-Zl-tests: New file.
26758         * modules/unictype/category-Zp-tests: New file.
26759         * modules/unictype/category-Zs-tests: New file.
26760         * modules/unictype/category-and-not-tests: New file.
26761         * modules/unictype/category-and-tests: New file.
26762         * modules/unictype/category-byname-tests: New file.
26763         * modules/unictype/category-name-tests: New file.
26764         * modules/unictype/category-none-tests: New file.
26765         * modules/unictype/category-of-tests: New file.
26766         * modules/unictype/category-or-tests: New file.
26767         * modules/unictype/category-test-withtable-tests: New file.
26768         * modules/unictype/combining-class-tests: New file.
26769         * modules/unictype/ctype-alnum-tests: New file.
26770         * modules/unictype/ctype-alpha-tests: New file.
26771         * modules/unictype/ctype-blank-tests: New file.
26772         * modules/unictype/ctype-cntrl-tests: New file.
26773         * modules/unictype/ctype-digit-tests: New file.
26774         * modules/unictype/ctype-graph-tests: New file.
26775         * modules/unictype/ctype-lower-tests: New file.
26776         * modules/unictype/ctype-print-tests: New file.
26777         * modules/unictype/ctype-punct-tests: New file.
26778         * modules/unictype/ctype-space-tests: New file.
26779         * modules/unictype/ctype-upper-tests: New file.
26780         * modules/unictype/ctype-xdigit-tests: New file.
26781         * modules/unictype/decimal-digit-tests: New file.
26782         * modules/unictype/digit-tests: New file.
26783         * modules/unictype/mirror-tests: New file.
26784         * modules/unictype/numeric-tests: New file.
26785         * modules/unictype/property-alphabetic-tests: New file.
26786         * modules/unictype/property-ascii-hex-digit-tests: New file.
26787         * modules/unictype/property-bidi-arabic-digit-tests: New file.
26788         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
26789         * modules/unictype/property-bidi-block-separator-tests: New file.
26790         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
26791         * modules/unictype/property-bidi-common-separator-tests: New file.
26792         * modules/unictype/property-bidi-control-tests: New file.
26793         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
26794         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
26795         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
26796         * modules/unictype/property-bidi-european-digit-tests: New file.
26797         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
26798         * modules/unictype/property-bidi-left-to-right-tests: New file.
26799         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
26800         * modules/unictype/property-bidi-other-neutral-tests: New file.
26801         * modules/unictype/property-bidi-pdf-tests: New file.
26802         * modules/unictype/property-bidi-segment-separator-tests: New file.
26803         * modules/unictype/property-bidi-whitespace-tests: New file.
26804         * modules/unictype/property-byname-tests: New file.
26805         * modules/unictype/property-combining-tests: New file.
26806         * modules/unictype/property-composite-tests: New file.
26807         * modules/unictype/property-currency-symbol-tests: New file.
26808         * modules/unictype/property-dash-tests: New file.
26809         * modules/unictype/property-decimal-digit-tests: New file.
26810         * modules/unictype/property-default-ignorable-code-point-tests: New file.
26811         * modules/unictype/property-deprecated-tests: New file.
26812         * modules/unictype/property-diacritic-tests: New file.
26813         * modules/unictype/property-extender-tests: New file.
26814         * modules/unictype/property-format-control-tests: New file.
26815         * modules/unictype/property-grapheme-base-tests: New file.
26816         * modules/unictype/property-grapheme-extend-tests: New file.
26817         * modules/unictype/property-grapheme-link-tests: New file.
26818         * modules/unictype/property-hex-digit-tests: New file.
26819         * modules/unictype/property-hyphen-tests: New file.
26820         * modules/unictype/property-id-continue-tests: New file.
26821         * modules/unictype/property-id-start-tests: New file.
26822         * modules/unictype/property-ideographic-tests: New file.
26823         * modules/unictype/property-ids-binary-operator-tests: New file.
26824         * modules/unictype/property-ids-trinary-operator-tests: New file.
26825         * modules/unictype/property-ignorable-control-tests: New file.
26826         * modules/unictype/property-iso-control-tests: New file.
26827         * modules/unictype/property-join-control-tests: New file.
26828         * modules/unictype/property-left-of-pair-tests: New file.
26829         * modules/unictype/property-line-separator-tests: New file.
26830         * modules/unictype/property-logical-order-exception-tests: New file.
26831         * modules/unictype/property-lowercase-tests: New file.
26832         * modules/unictype/property-math-tests: New file.
26833         * modules/unictype/property-non-break-tests: New file.
26834         * modules/unictype/property-not-a-character-tests: New file.
26835         * modules/unictype/property-numeric-tests: New file.
26836         * modules/unictype/property-other-alphabetic-tests: New file.
26837         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
26838         * modules/unictype/property-other-grapheme-extend-tests: New file.
26839         * modules/unictype/property-other-id-continue-tests: New file.
26840         * modules/unictype/property-other-id-start-tests: New file.
26841         * modules/unictype/property-other-lowercase-tests: New file.
26842         * modules/unictype/property-other-math-tests: New file.
26843         * modules/unictype/property-other-uppercase-tests: New file.
26844         * modules/unictype/property-paired-punctuation-tests: New file.
26845         * modules/unictype/property-paragraph-separator-tests: New file.
26846         * modules/unictype/property-pattern-syntax-tests: New file.
26847         * modules/unictype/property-pattern-white-space-tests: New file.
26848         * modules/unictype/property-private-use-tests: New file.
26849         * modules/unictype/property-punctuation-tests: New file.
26850         * modules/unictype/property-quotation-mark-tests: New file.
26851         * modules/unictype/property-radical-tests: New file.
26852         * modules/unictype/property-sentence-terminal-tests: New file.
26853         * modules/unictype/property-soft-dotted-tests: New file.
26854         * modules/unictype/property-space-tests: New file.
26855         * modules/unictype/property-terminal-punctuation-tests: New file.
26856         * modules/unictype/property-test-tests: New file.
26857         * modules/unictype/property-titlecase-tests: New file.
26858         * modules/unictype/property-unassigned-code-value-tests: New file.
26859         * modules/unictype/property-unified-ideograph-tests: New file.
26860         * modules/unictype/property-uppercase-tests: New file.
26861         * modules/unictype/property-variation-selector-tests: New file.
26862         * modules/unictype/property-white-space-tests: New file.
26863         * modules/unictype/property-xid-continue-tests: New file.
26864         * modules/unictype/property-xid-start-tests: New file.
26865         * modules/unictype/property-zero-width-tests: New file.
26866         * modules/unictype/scripts-tests: New file.
26867         * modules/unictype/syntax-c-ident-tests: New file.
26868         * modules/unictype/syntax-c-whitespace-tests: New file.
26869         * modules/unictype/syntax-java-ident-tests: New file.
26870         * modules/unictype/syntax-java-whitespace-tests: New file.
26871         * tests/unictype/test-bidi_byname.c: New file.
26872         * tests/unictype/test-bidi_name.c: New file.
26873         * tests/unictype/test-bidi_of.c: New file.
26874         * tests/unictype/test-bidi_test.c: New file.
26875         * tests/unictype/test-block_list.c: New file.
26876         * tests/unictype/test-block_of.c: New file.
26877         * tests/unictype/test-block_test.c: New file.
26878         * tests/unictype/test-categ_and.c: New file.
26879         * tests/unictype/test-categ_and_not.c: New file.
26880         * tests/unictype/test-categ_byname.c: New file.
26881         * tests/unictype/test-categ_name.c: New file.
26882         * tests/unictype/test-categ_none.c: New file.
26883         * tests/unictype/test-categ_of.c: New file.
26884         * tests/unictype/test-categ_or.c: New file.
26885         * tests/unictype/test-categ_test_withtable.c: New file.
26886         * tests/unictype/test-combining.c: New file.
26887         * tests/unictype/test-decdigit.c: New file.
26888         * tests/unictype/test-digit.c: New file.
26889         * tests/unictype/test-mirror.c: New file.
26890         * tests/unictype/test-numeric.c: New file.
26891         * tests/unictype/test-pr_byname.c: New file.
26892         * tests/unictype/test-pr_test.c: New file.
26893         * tests/unictype/test-predicate-part1.h: New file.
26894         * tests/unictype/test-predicate-part2.h: New file.
26895         * tests/unictype/test-scripts.c: New file.
26896         * tests/unictype/test-sy_c_ident.c: New file.
26897         * tests/unictype/test-sy_java_ident.c: New file.
26898
26899         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
26900         for Unicode 5.0.0.
26901         * tests/unictype/test-categ_Cc.c: Likewise.
26902         * tests/unictype/test-categ_Cf.c: Likewise.
26903         * tests/unictype/test-categ_Cn.c: Likewise.
26904         * tests/unictype/test-categ_Co.c: Likewise.
26905         * tests/unictype/test-categ_Cs.c: Likewise.
26906         * tests/unictype/test-categ_L.c: Likewise.
26907         * tests/unictype/test-categ_Ll.c: Likewise.
26908         * tests/unictype/test-categ_Lm.c: Likewise.
26909         * tests/unictype/test-categ_Lo.c: Likewise.
26910         * tests/unictype/test-categ_Lt.c: Likewise.
26911         * tests/unictype/test-categ_Lu.c: Likewise.
26912         * tests/unictype/test-categ_M.c: Likewise.
26913         * tests/unictype/test-categ_Mc.c: Likewise.
26914         * tests/unictype/test-categ_Me.c: Likewise.
26915         * tests/unictype/test-categ_Mn.c: Likewise.
26916         * tests/unictype/test-categ_N.c: Likewise.
26917         * tests/unictype/test-categ_Nd.c: Likewise.
26918         * tests/unictype/test-categ_Nl.c: Likewise.
26919         * tests/unictype/test-categ_No.c: Likewise.
26920         * tests/unictype/test-categ_P.c: Likewise.
26921         * tests/unictype/test-categ_Pc.c: Likewise.
26922         * tests/unictype/test-categ_Pd.c: Likewise.
26923         * tests/unictype/test-categ_Pe.c: Likewise.
26924         * tests/unictype/test-categ_Pf.c: Likewise.
26925         * tests/unictype/test-categ_Pi.c: Likewise.
26926         * tests/unictype/test-categ_Po.c: Likewise.
26927         * tests/unictype/test-categ_Ps.c: Likewise.
26928         * tests/unictype/test-categ_S.c: Likewise.
26929         * tests/unictype/test-categ_Sc.c: Likewise.
26930         * tests/unictype/test-categ_Sk.c: Likewise.
26931         * tests/unictype/test-categ_Sm.c: Likewise.
26932         * tests/unictype/test-categ_So.c: Likewise.
26933         * tests/unictype/test-categ_Z.c: Likewise.
26934         * tests/unictype/test-categ_Zl.c: Likewise.
26935         * tests/unictype/test-categ_Zp.c: Likewise.
26936         * tests/unictype/test-categ_Zs.c: Likewise.
26937         * tests/unictype/test-ctype_alnum.c: Likewise.
26938         * tests/unictype/test-ctype_alpha.c: Likewise.
26939         * tests/unictype/test-ctype_blank.c: Likewise.
26940         * tests/unictype/test-ctype_cntrl.c: Likewise.
26941         * tests/unictype/test-ctype_digit.c: Likewise.
26942         * tests/unictype/test-ctype_graph.c: Likewise.
26943         * tests/unictype/test-ctype_lower.c: Likewise.
26944         * tests/unictype/test-ctype_print.c: Likewise.
26945         * tests/unictype/test-ctype_punct.c: Likewise.
26946         * tests/unictype/test-ctype_space.c: Likewise.
26947         * tests/unictype/test-ctype_upper.c: Likewise.
26948         * tests/unictype/test-ctype_xdigit.c: Likewise.
26949         * tests/unictype/test-decdigit.h: Likewise.
26950         * tests/unictype/test-digit.h: Likewise.
26951         * tests/unictype/test-numeric.h: Likewise.
26952         * tests/unictype/test-pr_alphabetic.c: Likewise.
26953         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
26954         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26955         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
26956         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
26957         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
26958         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
26959         * tests/unictype/test-pr_bidi_control.c: Likewise.
26960         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
26961         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
26962         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26963         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
26964         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26965         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26966         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26967         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26968         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
26969         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
26970         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
26971         * tests/unictype/test-pr_combining.c: Likewise.
26972         * tests/unictype/test-pr_composite.c: Likewise.
26973         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26974         * tests/unictype/test-pr_dash.c: Likewise.
26975         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26976         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
26977         * tests/unictype/test-pr_deprecated.c: Likewise.
26978         * tests/unictype/test-pr_diacritic.c: Likewise.
26979         * tests/unictype/test-pr_extender.c: Likewise.
26980         * tests/unictype/test-pr_format_control.c: Likewise.
26981         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26982         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26983         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26984         * tests/unictype/test-pr_hex_digit.c: Likewise.
26985         * tests/unictype/test-pr_hyphen.c: Likewise.
26986         * tests/unictype/test-pr_id_continue.c: Likewise.
26987         * tests/unictype/test-pr_id_start.c: Likewise.
26988         * tests/unictype/test-pr_ideographic.c: Likewise.
26989         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
26990         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
26991         * tests/unictype/test-pr_ignorable_control.c: Likewise.
26992         * tests/unictype/test-pr_iso_control.c: Likewise.
26993         * tests/unictype/test-pr_join_control.c: Likewise.
26994         * tests/unictype/test-pr_left_of_pair.c: Likewise.
26995         * tests/unictype/test-pr_line_separator.c: Likewise.
26996         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
26997         * tests/unictype/test-pr_lowercase.c: Likewise.
26998         * tests/unictype/test-pr_math.c: Likewise.
26999         * tests/unictype/test-pr_non_break.c: Likewise.
27000         * tests/unictype/test-pr_not_a_character.c: Likewise.
27001         * tests/unictype/test-pr_numeric.c: Likewise.
27002         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27003         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
27004         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
27005         * tests/unictype/test-pr_other_id_continue.c: Likewise.
27006         * tests/unictype/test-pr_other_id_start.c: Likewise.
27007         * tests/unictype/test-pr_other_lowercase.c: Likewise.
27008         * tests/unictype/test-pr_other_math.c: Likewise.
27009         * tests/unictype/test-pr_other_uppercase.c: Likewise.
27010         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
27011         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
27012         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
27013         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
27014         * tests/unictype/test-pr_private_use.c: Likewise.
27015         * tests/unictype/test-pr_punctuation.c: Likewise.
27016         * tests/unictype/test-pr_quotation_mark.c: Likewise.
27017         * tests/unictype/test-pr_radical.c: Likewise.
27018         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27019         * tests/unictype/test-pr_soft_dotted.c: Likewise.
27020         * tests/unictype/test-pr_space.c: Likewise.
27021         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27022         * tests/unictype/test-pr_titlecase.c: Likewise.
27023         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27024         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27025         * tests/unictype/test-pr_uppercase.c: Likewise.
27026         * tests/unictype/test-pr_variation_selector.c: Likewise.
27027         * tests/unictype/test-pr_white_space.c: Likewise.
27028         * tests/unictype/test-pr_xid_continue.c: Likewise.
27029         * tests/unictype/test-pr_xid_start.c: Likewise.
27030         * tests/unictype/test-pr_zero_width.c: Likewise.
27031         * tests/unictype/test-sy_c_whitespace.c: Likewise.
27032         * tests/unictype/test-sy_java_whitespace.c: Likewise.
27033
27034 2007-11-12  Bruno Haible  <bruno@clisp.org>
27035
27036         Unicode character classification functions.
27037         * lib/unictype.h: New file.
27038         * modules/unictype/base: New file.
27039         * modules/unictype/category-L: New file.
27040         * modules/unictype/category-Lu: New file.
27041         * modules/unictype/category-Ll: New file.
27042         * modules/unictype/category-Lt: New file.
27043         * modules/unictype/category-Lm: New file.
27044         * modules/unictype/category-Lo: New file.
27045         * modules/unictype/category-M: New file.
27046         * modules/unictype/category-Mn: New file.
27047         * modules/unictype/category-Mc: New file.
27048         * modules/unictype/category-Me: New file.
27049         * modules/unictype/category-N: New file.
27050         * modules/unictype/category-Nd: New file.
27051         * modules/unictype/category-Nl: New file.
27052         * modules/unictype/category-No: New file.
27053         * modules/unictype/category-P: New file.
27054         * modules/unictype/category-Pc: New file.
27055         * modules/unictype/category-Pd: New file.
27056         * modules/unictype/category-Ps: New file.
27057         * modules/unictype/category-Pe: New file.
27058         * modules/unictype/category-Pi: New file.
27059         * modules/unictype/category-Pf: New file.
27060         * modules/unictype/category-Po: New file.
27061         * modules/unictype/category-S: New file.
27062         * modules/unictype/category-Sm: New file.
27063         * modules/unictype/category-Sc: New file.
27064         * modules/unictype/category-Sk: New file.
27065         * modules/unictype/category-So: New file.
27066         * modules/unictype/category-Z: New file.
27067         * modules/unictype/category-Zs: New file.
27068         * modules/unictype/category-Zl: New file.
27069         * modules/unictype/category-Zp: New file.
27070         * modules/unictype/category-C: New file.
27071         * modules/unictype/category-Cc: New file.
27072         * modules/unictype/category-Cf: New file.
27073         * modules/unictype/category-Cs: New file.
27074         * modules/unictype/category-Co: New file.
27075         * modules/unictype/category-Cn: New file.
27076         * modules/unictype/category-or: New file.
27077         * modules/unictype/category-of: New file.
27078         * modules/unictype/category-test: New file.
27079         * modules/unictype/category-test-withtable: New file.
27080         * modules/unictype/category-byname: New file.
27081         * modules/unictype/category-none: New file.
27082         * modules/unictype/category-and: New file.
27083         * modules/unictype/category-and-not: New file.
27084         * modules/unictype/category-name: New file.
27085         * modules/unictype/combining-class: New file.
27086         * modules/unictype/category-all: New file.
27087         * modules/unictype/bidicategory-all: New file.
27088         * modules/unictype/bidicategory-byname: New file.
27089         * modules/unictype/bidicategory-name: New file.
27090         * modules/unictype/bidicategory-of: New file.
27091         * modules/unictype/bidicategory-test: New file.
27092         * modules/unictype/decimal-digit: New file.
27093         * modules/unictype/digit: New file.
27094         * modules/unictype/numeric: New file.
27095         * modules/unictype/mirror: New file.
27096         * modules/unictype/property-white-space: New file.
27097         * modules/unictype/property-alphabetic: New file.
27098         * modules/unictype/property-other-alphabetic: New file.
27099         * modules/unictype/property-not-a-character: New file.
27100         * modules/unictype/property-default-ignorable-code-point: New file.
27101         * modules/unictype/property-other-default-ignorable-code-point: New
27102         file.
27103         * modules/unictype/property-deprecated: New file.
27104         * modules/unictype/property-logical-order-exception: New file.
27105         * modules/unictype/property-variation-selector: New file.
27106         * modules/unictype/property-private-use: New file.
27107         * modules/unictype/property-unassigned-code-value: New file.
27108         * modules/unictype/property-uppercase: New file.
27109         * modules/unictype/property-other-uppercase: New file.
27110         * modules/unictype/property-lowercase: New file.
27111         * modules/unictype/property-other-lowercase: New file.
27112         * modules/unictype/property-titlecase: New file.
27113         * modules/unictype/property-soft-dotted: New file.
27114         * modules/unictype/property-id-start: New file.
27115         * modules/unictype/property-other-id-start: New file.
27116         * modules/unictype/property-id-continue: New file.
27117         * modules/unictype/property-other-id-continue: New file.
27118         * modules/unictype/property-xid-start: New file.
27119         * modules/unictype/property-xid-continue: New file.
27120         * modules/unictype/property-pattern-white-space: New file.
27121         * modules/unictype/property-pattern-syntax: New file.
27122         * modules/unictype/property-join-control: New file.
27123         * modules/unictype/property-grapheme-base: New file.
27124         * modules/unictype/property-grapheme-extend: New file.
27125         * modules/unictype/property-other-grapheme-extend: New file.
27126         * modules/unictype/property-grapheme-link: New file.
27127         * modules/unictype/property-bidi-control: New file.
27128         * modules/unictype/property-bidi-left-to-right: New file.
27129         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
27130         * modules/unictype/property-bidi-arabic-right-to-left: New file.
27131         * modules/unictype/property-bidi-european-digit: New file.
27132         * modules/unictype/property-bidi-eur-num-separator: New file.
27133         * modules/unictype/property-bidi-eur-num-terminator: New file.
27134         * modules/unictype/property-bidi-arabic-digit: New file.
27135         * modules/unictype/property-bidi-common-separator: New file.
27136         * modules/unictype/property-bidi-block-separator: New file.
27137         * modules/unictype/property-bidi-segment-separator: New file.
27138         * modules/unictype/property-bidi-whitespace: New file.
27139         * modules/unictype/property-bidi-non-spacing-mark: New file.
27140         * modules/unictype/property-bidi-boundary-neutral: New file.
27141         * modules/unictype/property-bidi-pdf: New file.
27142         * modules/unictype/property-bidi-embedding-or-override: New file.
27143         * modules/unictype/property-bidi-other-neutral: New file.
27144         * modules/unictype/property-hex-digit: New file.
27145         * modules/unictype/property-ascii-hex-digit: New file.
27146         * modules/unictype/property-ideographic: New file.
27147         * modules/unictype/property-unified-ideograph: New file.
27148         * modules/unictype/property-radical: New file.
27149         * modules/unictype/property-ids-binary-operator: New file.
27150         * modules/unictype/property-ids-trinary-operator: New file.
27151         * modules/unictype/property-zero-width: New file.
27152         * modules/unictype/property-space: New file.
27153         * modules/unictype/property-non-break: New file.
27154         * modules/unictype/property-iso-control: New file.
27155         * modules/unictype/property-format-control: New file.
27156         * modules/unictype/property-dash: New file.
27157         * modules/unictype/property-hyphen: New file.
27158         * modules/unictype/property-punctuation: New file.
27159         * modules/unictype/property-line-separator: New file.
27160         * modules/unictype/property-paragraph-separator: New file.
27161         * modules/unictype/property-quotation-mark: New file.
27162         * modules/unictype/property-sentence-terminal: New file.
27163         * modules/unictype/property-terminal-punctuation: New file.
27164         * modules/unictype/property-currency-symbol: New file.
27165         * modules/unictype/property-math: New file.
27166         * modules/unictype/property-other-math: New file.
27167         * modules/unictype/property-paired-punctuation: New file.
27168         * modules/unictype/property-left-of-pair: New file.
27169         * modules/unictype/property-combining: New file.
27170         * modules/unictype/property-composite: New file.
27171         * modules/unictype/property-decimal-digit: New file.
27172         * modules/unictype/property-numeric: New file.
27173         * modules/unictype/property-diacritic: New file.
27174         * modules/unictype/property-extender: New file.
27175         * modules/unictype/property-ignorable-control: New file.
27176         * modules/unictype/property-test: New file.
27177         * modules/unictype/property-byname: New file.
27178         * modules/unictype/property-all: New file.
27179         * modules/unictype/scripts: New file.
27180         * modules/unictype/scripts-all: New file.
27181         * modules/unictype/block-of: New file.
27182         * modules/unictype/block-test: New file.
27183         * modules/unictype/block-list: New file.
27184         * modules/unictype/block-all: New file.
27185         * modules/unictype/syntax-c-whitespace: New file.
27186         * modules/unictype/syntax-java-whitespace: New file.
27187         * modules/unictype/syntax-c-ident: New file.
27188         * modules/unictype/syntax-java-ident: New file.
27189         * modules/unictype/ctype-alnum: New file.
27190         * modules/unictype/ctype-alpha: New file.
27191         * modules/unictype/ctype-cntrl: New file.
27192         * modules/unictype/ctype-digit: New file.
27193         * modules/unictype/ctype-graph: New file.
27194         * modules/unictype/ctype-lower: New file.
27195         * modules/unictype/ctype-print: New file.
27196         * modules/unictype/ctype-punct: New file.
27197         * modules/unictype/ctype-space: New file.
27198         * modules/unictype/ctype-upper: New file.
27199         * modules/unictype/ctype-xdigit: New file.
27200         * modules/unictype/ctype-blank: New file.
27201         * lib/unictype/bidi_byname.c: New file.
27202         * lib/unictype/bidi_name.c: New file.
27203         * lib/unictype/bidi_of.c: New file.
27204         * lib/unictype/bidi_test.c: New file.
27205         * lib/unictype/bitmap.h: New file.
27206         * lib/unictype/block_test.c: New file.
27207         * lib/unictype/blocks.c: New file.
27208         * lib/unictype/categ_C.c: New file.
27209         * lib/unictype/categ_Cc.c: New file.
27210         * lib/unictype/categ_Cf.c: New file.
27211         * lib/unictype/categ_Cn.c: New file.
27212         * lib/unictype/categ_Co.c: New file.
27213         * lib/unictype/categ_Cs.c: New file.
27214         * lib/unictype/categ_L.c: New file.
27215         * lib/unictype/categ_Ll.c: New file.
27216         * lib/unictype/categ_Lm.c: New file.
27217         * lib/unictype/categ_Lo.c: New file.
27218         * lib/unictype/categ_Lt.c: New file.
27219         * lib/unictype/categ_Lu.c: New file.
27220         * lib/unictype/categ_M.c: New file.
27221         * lib/unictype/categ_Mc.c: New file.
27222         * lib/unictype/categ_Me.c: New file.
27223         * lib/unictype/categ_Mn.c: New file.
27224         * lib/unictype/categ_N.c: New file.
27225         * lib/unictype/categ_Nd.c: New file.
27226         * lib/unictype/categ_Nl.c: New file.
27227         * lib/unictype/categ_No.c: New file.
27228         * lib/unictype/categ_P.c: New file.
27229         * lib/unictype/categ_Pc.c: New file.
27230         * lib/unictype/categ_Pd.c: New file.
27231         * lib/unictype/categ_Pe.c: New file.
27232         * lib/unictype/categ_Pf.c: New file.
27233         * lib/unictype/categ_Pi.c: New file.
27234         * lib/unictype/categ_Po.c: New file.
27235         * lib/unictype/categ_Ps.c: New file.
27236         * lib/unictype/categ_S.c: New file.
27237         * lib/unictype/categ_Sc.c: New file.
27238         * lib/unictype/categ_Sk.c: New file.
27239         * lib/unictype/categ_Sm.c: New file.
27240         * lib/unictype/categ_So.c: New file.
27241         * lib/unictype/categ_Z.c: New file.
27242         * lib/unictype/categ_Zl.c: New file.
27243         * lib/unictype/categ_Zp.c: New file.
27244         * lib/unictype/categ_Zs.c: New file.
27245         * lib/unictype/categ_and.c: New file.
27246         * lib/unictype/categ_and_not.c: New file.
27247         * lib/unictype/categ_byname.c: New file.
27248         * lib/unictype/categ_name.c: New file.
27249         * lib/unictype/categ_none.c: New file.
27250         * lib/unictype/categ_of.c: New file.
27251         * lib/unictype/categ_or.c: New file.
27252         * lib/unictype/categ_test.c: New file.
27253         * lib/unictype/combining.c: New file.
27254         * lib/unictype/ctype_alnum.c: New file.
27255         * lib/unictype/ctype_alpha.c: New file.
27256         * lib/unictype/ctype_blank.c: New file.
27257         * lib/unictype/ctype_cntrl.c: New file.
27258         * lib/unictype/ctype_digit.c: New file.
27259         * lib/unictype/ctype_graph.c: New file.
27260         * lib/unictype/ctype_lower.c: New file.
27261         * lib/unictype/ctype_print.c: New file.
27262         * lib/unictype/ctype_punct.c: New file.
27263         * lib/unictype/ctype_space.c: New file.
27264         * lib/unictype/ctype_upper.c: New file.
27265         * lib/unictype/ctype_xdigit.c: New file.
27266         * lib/unictype/decdigit.c: New file.
27267         * lib/unictype/digit.c: New file.
27268         * lib/unictype/identsyntaxmap.h: New file.
27269         * lib/unictype/mirror.c: New file.
27270         * lib/unictype/numeric.c: New file.
27271         * lib/unictype/pr_alphabetic.c: New file.
27272         * lib/unictype/pr_ascii_hex_digit.c: New file.
27273         * lib/unictype/pr_bidi_arabic_digit.c: New file.
27274         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
27275         * lib/unictype/pr_bidi_block_separator.c: New file.
27276         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
27277         * lib/unictype/pr_bidi_common_separator.c: New file.
27278         * lib/unictype/pr_bidi_control.c: New file.
27279         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
27280         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
27281         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
27282         * lib/unictype/pr_bidi_european_digit.c: New file.
27283         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
27284         * lib/unictype/pr_bidi_left_to_right.c: New file.
27285         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
27286         * lib/unictype/pr_bidi_other_neutral.c: New file.
27287         * lib/unictype/pr_bidi_pdf.c: New file.
27288         * lib/unictype/pr_bidi_segment_separator.c: New file.
27289         * lib/unictype/pr_bidi_whitespace.c: New file.
27290         * lib/unictype/pr_byname.c: New file.
27291         * lib/unictype/pr_byname.gperf: New file.
27292         * lib/unictype/pr_combining.c: New file.
27293         * lib/unictype/pr_composite.c: New file.
27294         * lib/unictype/pr_currency_symbol.c: New file.
27295         * lib/unictype/pr_dash.c: New file.
27296         * lib/unictype/pr_decimal_digit.c: New file.
27297         * lib/unictype/pr_default_ignorable_code_point.c: New file.
27298         * lib/unictype/pr_deprecated.c: New file.
27299         * lib/unictype/pr_diacritic.c: New file.
27300         * lib/unictype/pr_extender.c: New file.
27301         * lib/unictype/pr_format_control.c: New file.
27302         * lib/unictype/pr_grapheme_base.c: New file.
27303         * lib/unictype/pr_grapheme_extend.c: New file.
27304         * lib/unictype/pr_grapheme_link.c: New file.
27305         * lib/unictype/pr_hex_digit.c: New file.
27306         * lib/unictype/pr_hyphen.c: New file.
27307         * lib/unictype/pr_id_continue.c: New file.
27308         * lib/unictype/pr_id_start.c: New file.
27309         * lib/unictype/pr_ideographic.c: New file.
27310         * lib/unictype/pr_ids_binary_operator.c: New file.
27311         * lib/unictype/pr_ids_trinary_operator.c: New file.
27312         * lib/unictype/pr_ignorable_control.c: New file.
27313         * lib/unictype/pr_iso_control.c: New file.
27314         * lib/unictype/pr_join_control.c: New file.
27315         * lib/unictype/pr_left_of_pair.c: New file.
27316         * lib/unictype/pr_line_separator.c: New file.
27317         * lib/unictype/pr_logical_order_exception.c: New file.
27318         * lib/unictype/pr_lowercase.c: New file.
27319         * lib/unictype/pr_math.c: New file.
27320         * lib/unictype/pr_non_break.c: New file.
27321         * lib/unictype/pr_not_a_character.c: New file.
27322         * lib/unictype/pr_numeric.c: New file.
27323         * lib/unictype/pr_other_alphabetic.c: New file.
27324         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
27325         * lib/unictype/pr_other_grapheme_extend.c: New file.
27326         * lib/unictype/pr_other_id_continue.c: New file.
27327         * lib/unictype/pr_other_id_start.c: New file.
27328         * lib/unictype/pr_other_lowercase.c: New file.
27329         * lib/unictype/pr_other_math.c: New file.
27330         * lib/unictype/pr_other_uppercase.c: New file.
27331         * lib/unictype/pr_paired_punctuation.c: New file.
27332         * lib/unictype/pr_paragraph_separator.c: New file.
27333         * lib/unictype/pr_pattern_syntax.c: New file.
27334         * lib/unictype/pr_pattern_white_space.c: New file.
27335         * lib/unictype/pr_private_use.c: New file.
27336         * lib/unictype/pr_punctuation.c: New file.
27337         * lib/unictype/pr_quotation_mark.c: New file.
27338         * lib/unictype/pr_radical.c: New file.
27339         * lib/unictype/pr_sentence_terminal.c: New file.
27340         * lib/unictype/pr_soft_dotted.c: New file.
27341         * lib/unictype/pr_space.c: New file.
27342         * lib/unictype/pr_terminal_punctuation.c: New file.
27343         * lib/unictype/pr_test.c: New file.
27344         * lib/unictype/pr_titlecase.c: New file.
27345         * lib/unictype/pr_unassigned_code_value.c: New file.
27346         * lib/unictype/pr_unified_ideograph.c: New file.
27347         * lib/unictype/pr_uppercase.c: New file.
27348         * lib/unictype/pr_variation_selector.c: New file.
27349         * lib/unictype/pr_white_space.c: New file.
27350         * lib/unictype/pr_xid_continue.c: New file.
27351         * lib/unictype/pr_xid_start.c: New file.
27352         * lib/unictype/pr_zero_width.c: New file.
27353         * lib/unictype/scripts.c: New file.
27354         * lib/unictype/sy_c_ident.c: New file.
27355         * lib/unictype/sy_c_whitespace.c: New file.
27356         * lib/unictype/sy_java_ident.c: New file.
27357         * lib/unictype/sy_java_whitespace.c: New file.
27358
27359         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
27360         Unicode 5.0.0.
27361         * lib/unictype/blocks.h: Likewise.
27362         * lib/unictype/categ_C.h: Likewise.
27363         * lib/unictype/categ_Cc.h: Likewise.
27364         * lib/unictype/categ_Cf.h: Likewise.
27365         * lib/unictype/categ_Cn.h: Likewise.
27366         * lib/unictype/categ_Co.h: Likewise.
27367         * lib/unictype/categ_Cs.h: Likewise.
27368         * lib/unictype/categ_L.h: Likewise.
27369         * lib/unictype/categ_Ll.h: Likewise.
27370         * lib/unictype/categ_Lm.h: Likewise.
27371         * lib/unictype/categ_Lo.h: Likewise.
27372         * lib/unictype/categ_Lt.h: Likewise.
27373         * lib/unictype/categ_Lu.h: Likewise.
27374         * lib/unictype/categ_M.h: Likewise.
27375         * lib/unictype/categ_Mc.h: Likewise.
27376         * lib/unictype/categ_Me.h: Likewise.
27377         * lib/unictype/categ_Mn.h: Likewise.
27378         * lib/unictype/categ_N.h: Likewise.
27379         * lib/unictype/categ_Nd.h: Likewise.
27380         * lib/unictype/categ_Nl.h: Likewise.
27381         * lib/unictype/categ_No.h: Likewise.
27382         * lib/unictype/categ_P.h: Likewise.
27383         * lib/unictype/categ_Pc.h: Likewise.
27384         * lib/unictype/categ_Pd.h: Likewise.
27385         * lib/unictype/categ_Pe.h: Likewise.
27386         * lib/unictype/categ_Pf.h: Likewise.
27387         * lib/unictype/categ_Pi.h: Likewise.
27388         * lib/unictype/categ_Po.h: Likewise.
27389         * lib/unictype/categ_Ps.h: Likewise.
27390         * lib/unictype/categ_S.h: Likewise.
27391         * lib/unictype/categ_Sc.h: Likewise.
27392         * lib/unictype/categ_Sk.h: Likewise.
27393         * lib/unictype/categ_Sm.h: Likewise.
27394         * lib/unictype/categ_So.h: Likewise.
27395         * lib/unictype/categ_Z.h: Likewise.
27396         * lib/unictype/categ_Zl.h: Likewise.
27397         * lib/unictype/categ_Zp.h: Likewise.
27398         * lib/unictype/categ_Zs.h: Likewise.
27399         * lib/unictype/categ_of.h: Likewise.
27400         * lib/unictype/combining.h: Likewise.
27401         * lib/unictype/ctype_alnum.h: Likewise.
27402         * lib/unictype/ctype_alpha.h: Likewise.
27403         * lib/unictype/ctype_blank.h: Likewise.
27404         * lib/unictype/ctype_cntrl.h: Likewise.
27405         * lib/unictype/ctype_digit.h: Likewise.
27406         * lib/unictype/ctype_graph.h: Likewise.
27407         * lib/unictype/ctype_lower.h: Likewise.
27408         * lib/unictype/ctype_print.h: Likewise.
27409         * lib/unictype/ctype_punct.h: Likewise.
27410         * lib/unictype/ctype_space.h: Likewise.
27411         * lib/unictype/ctype_upper.h: Likewise.
27412         * lib/unictype/ctype_xdigit.h: Likewise.
27413         * lib/unictype/decdigit.h: Likewise.
27414         * lib/unictype/digit.h: Likewise.
27415         * lib/unictype/mirror.h: Likewise.
27416         * lib/unictype/numeric.h: Likewise.
27417         * lib/unictype/pr_alphabetic.h: Likewise.
27418         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27419         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
27420         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
27421         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27422         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27423         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27424         * lib/unictype/pr_bidi_control.h: Likewise.
27425         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27426         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27427         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
27428         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27429         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
27430         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
27431         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
27432         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
27433         * lib/unictype/pr_bidi_pdf.h: Likewise.
27434         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27435         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27436         * lib/unictype/pr_combining.h: Likewise.
27437         * lib/unictype/pr_composite.h: Likewise.
27438         * lib/unictype/pr_currency_symbol.h: Likewise.
27439         * lib/unictype/pr_dash.h: Likewise.
27440         * lib/unictype/pr_decimal_digit.h: Likewise.
27441         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27442         * lib/unictype/pr_deprecated.h: Likewise.
27443         * lib/unictype/pr_diacritic.h: Likewise.
27444         * lib/unictype/pr_extender.h: Likewise.
27445         * lib/unictype/pr_format_control.h: Likewise.
27446         * lib/unictype/pr_grapheme_base.h: Likewise.
27447         * lib/unictype/pr_grapheme_extend.h: Likewise.
27448         * lib/unictype/pr_grapheme_link.h: Likewise.
27449         * lib/unictype/pr_hex_digit.h: Likewise.
27450         * lib/unictype/pr_hyphen.h: Likewise.
27451         * lib/unictype/pr_id_continue.h: Likewise.
27452         * lib/unictype/pr_id_start.h: Likewise.
27453         * lib/unictype/pr_ideographic.h: Likewise.
27454         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27455         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27456         * lib/unictype/pr_ignorable_control.h: Likewise.
27457         * lib/unictype/pr_iso_control.h: Likewise.
27458         * lib/unictype/pr_join_control.h: Likewise.
27459         * lib/unictype/pr_left_of_pair.h: Likewise.
27460         * lib/unictype/pr_line_separator.h: Likewise.
27461         * lib/unictype/pr_logical_order_exception.h: Likewise.
27462         * lib/unictype/pr_lowercase.h: Likewise.
27463         * lib/unictype/pr_math.h: Likewise.
27464         * lib/unictype/pr_non_break.h: Likewise.
27465         * lib/unictype/pr_not_a_character.h: Likewise.
27466         * lib/unictype/pr_numeric.h: Likewise.
27467         * lib/unictype/pr_other_alphabetic.h: Likewise.
27468         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27469         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27470         * lib/unictype/pr_other_id_continue.h: Likewise.
27471         * lib/unictype/pr_other_id_start.h: Likewise.
27472         * lib/unictype/pr_other_lowercase.h: Likewise.
27473         * lib/unictype/pr_other_math.h: Likewise.
27474         * lib/unictype/pr_other_uppercase.h: Likewise.
27475         * lib/unictype/pr_paired_punctuation.h: Likewise.
27476         * lib/unictype/pr_paragraph_separator.h: Likewise.
27477         * lib/unictype/pr_pattern_syntax.h: Likewise.
27478         * lib/unictype/pr_pattern_white_space.h: Likewise.
27479         * lib/unictype/pr_private_use.h: Likewise.
27480         * lib/unictype/pr_punctuation.h: Likewise.
27481         * lib/unictype/pr_quotation_mark.h: Likewise.
27482         * lib/unictype/pr_radical.h: Likewise.
27483         * lib/unictype/pr_sentence_terminal.h: Likewise.
27484         * lib/unictype/pr_soft_dotted.h: Likewise.
27485         * lib/unictype/pr_space.h: Likewise.
27486         * lib/unictype/pr_terminal_punctuation.h: Likewise.
27487         * lib/unictype/pr_titlecase.h: Likewise.
27488         * lib/unictype/pr_unassigned_code_value.h: Likewise.
27489         * lib/unictype/pr_unified_ideograph.h: Likewise.
27490         * lib/unictype/pr_uppercase.h: Likewise.
27491         * lib/unictype/pr_variation_selector.h: Likewise.
27492         * lib/unictype/pr_white_space.h: Likewise.
27493         * lib/unictype/pr_xid_continue.h: Likewise.
27494         * lib/unictype/pr_xid_start.h: Likewise.
27495         * lib/unictype/pr_zero_width.h: Likewise.
27496         * lib/unictype/scripts.h: Likewise.
27497         * lib/unictype/scripts_byname.gperf: Likewise.
27498         * lib/unictype/sy_c_ident.h: Likewise.
27499         * lib/unictype/sy_c_whitespace.h: Likewise.
27500         * lib/unictype/sy_java_ident.h: Likewise.
27501         * lib/unictype/sy_java_whitespace.h: Likewise.
27502
27503         * lib/unictype/Makefile: New file.
27504         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
27505         glibc.
27506         * lib/unictype/3level.h: New file, copied from glibc.
27507         * lib/unictype/3levelbit.h: New file.
27508
27509 2007-11-11  Bruno Haible  <bruno@clisp.org>
27510
27511         * modules/gperf: New file.
27512         * modules/iconv_open (Depends-on): Add it.
27513         (Makefile.am): Remove the GPERF definition.
27514
27515 2007-11-11  Bruno Haible  <bruno@clisp.org>
27516
27517         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
27518         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
27519
27520 2007-11-11  Bruno Haible  <bruno@clisp.org>
27521
27522         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
27523         (usage): Remove function.
27524
27525 2007-11-11  Bruno Haible  <bruno@clisp.org>
27526
27527         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
27528         gl_FUNC_CEILF_LIBS.
27529         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
27530         gl_FUNC_CEIL_LIBS.
27531         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
27532         gl_FUNC_CEILL_LIBS.
27533         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
27534         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
27535         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
27536
27537 2007-11-11  Bruno Haible  <bruno@clisp.org>
27538
27539         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
27540         roundf were declared but do not exist on functions.
27541         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
27542         roundl were declared but do not exist on functions.
27543         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
27544         HAVE_FLOORL_AND_CEILL, respectively.
27545         Needed for Sun C on Solaris 10.
27546
27547 2007-11-11  Bruno Haible  <bruno@clisp.org>
27548
27549         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
27550         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
27551         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
27552         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
27553         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
27554         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
27555         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
27556         HAVE_DECL_ROUNDF.
27557         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
27558         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
27559         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
27560         of HAVE_DECL_ROUND*.
27561         * modules/math (Makefile.am): Update.
27562
27563 2007-11-10  Bruno Haible  <bruno@clisp.org>
27564
27565         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
27566         ptrdiff_t as m4/intl.m4.
27567
27568 2007-11-10  Jim Meyering  <meyering@redhat.com>
27569
27570         Avoid link failure for the argmatch test.
27571         * tests/test-argmatch.c (usage): Define function to avoid a link
27572         failure: argmatch_die requires a usage function.
27573
27574 2007-11-09  Bruno Haible  <bruno@clisp.org>
27575
27576         * doc/functions/snprintf.texi: Mention BeOS deficiency.
27577         * doc/functions/vsnprintf.texi: Likewise.
27578         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
27579         with a size argument < 2.
27580
27581 2007-11-09  Bruno Haible  <bruno@clisp.org>
27582
27583         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
27584         buffer. Fixes an inefficiency introduced on 2007-11-03.
27585
27586 2007-11-09  Bruno Haible  <bruno@clisp.org>
27587
27588         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
27589         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
27590
27591 2007-11-08  Jim Meyering  <meyering@redhat.com>
27592
27593         Change cache variable name prefix "jm_" to "gl_" everywhere.
27594         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
27595         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
27596         * m4/uptime.m4: s/gl_/jm_/
27597
27598 2007-11-07  Bruno Haible  <bruno@clisp.org>
27599
27600         Update to GNU gettext 0.17.
27601         * m4/intl.m4: Update to GNU gettext 0.17.
27602         * m4/po.m4: Likewise.
27603         * modules/gettext (Files): Remove m4/ulonglong.m4.
27604         (configure.ac): Require gettext infrastructure from version 0.17.
27605
27606 2007-11-06  Bruno Haible  <bruno@clisp.org>
27607
27608         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
27609         symbolic values are not defined in a public header.
27610         * lib/freadable.c (freadable) [QNX]: Likewise.
27611         * lib/freadahead.c (freadahead) [QNX]: Likewise.
27612         * lib/freading.c (freading) [QNX]: Likewise.
27613         * lib/fseterr.c (fseterr) [QNX]: Likewise.
27614         * lib/fwritable.c (fwritable) [QNX]: Likewise.
27615         * lib/fwriting.c (fwriting) [QNX]: Likewise.
27616         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
27617         Reported by Alain Magloire.
27618
27619         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
27620
27621 2007-11-05  Bruno Haible  <bruno@clisp.org>
27622
27623         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
27624         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
27625         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
27626         Reported by Eric Blake.
27627
27628 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27629             Bruno Haible  <bruno@clisp.org>
27630
27631         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
27632         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
27633         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
27634         (malloc): Undefine also before including <stdlib.h>.
27635         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
27636         Needed on OSF/1 4.0.
27637
27638 2007-11-05  Jim Meyering  <meyering@redhat.com>
27639
27640         git-version-gen: sync from coreutils.
27641         * build-aux/git-version-gen: Add comments.
27642         Change the first '-' to '.' in the snapshot version string,
27643         e.g., 6.9-377-08144 -> 6.9.377-08144
27644         Remove first parameter.
27645         Don't declare a version "-dirty" merely because a time
27646         stamp has changed.
27647
27648 2007-11-04  Bruno Haible  <bruno@clisp.org>
27649
27650         * lib/lock.h: Protect all macro definitions containing an 'if'
27651         statement through a "do { ... } while (0)".
27652         * lib/tls.h: Likewise.
27653
27654 2007-11-04  Bruno Haible  <bruno@clisp.org>
27655
27656         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
27657
27658 2007-11-04  Bruno Haible  <bruno@clisp.org>
27659
27660         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
27661         * modules/fprintf-posix (Depends-on): Add nocrash.
27662         * modules/snprintf-posix (Depends-on): Likewise.
27663         * modules/sprintf-posix (Depends-on): Likewise.
27664         * modules/vasnprintf-posix (Depends-on): Likewise.
27665         * modules/vasprintf-posix (Depends-on): Likewise.
27666         * modules/vfprintf-posix (Depends-on): Likewise.
27667         * modules/vsnprintf-posix (Depends-on): Likewise.
27668         * modules/vsprintf-posix (Depends-on): Likewise.
27669         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27670         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27671         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27672         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27673         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27674         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27675         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27676
27677 2007-11-04  Bruno Haible  <bruno@clisp.org>
27678
27679         * modules/nocrash: New file.
27680         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
27681         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
27682
27683 2007-11-04  Bruno Haible  <bruno@clisp.org>
27684
27685         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
27686         precision handling.
27687         * tests/test-vasprintf-posix.c (test_function): Likewise.
27688         * tests/test-snprintf-posix.h (test_function): Likewise.
27689         * tests/test-sprintf-posix.h (test_function): Likewise.
27690
27691         Fix *printf behaviour for large precisions on mingw and BeOS.
27692         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
27693         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
27694         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
27695         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27696         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27697         gl_PRINTF_PRECISION and test its result. Invoke
27698         gl_PREREQ_VASNPRINTF_PRECISION.
27699         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27700         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27701         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27702         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27703         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27704         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27705         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27706         * doc/functions/fprintf.texi: Update.
27707         * doc/functions/printf.texi: Update.
27708         * doc/functions/snprintf.texi: Update.
27709         * doc/functions/sprintf.texi: Update.
27710         * doc/functions/vfprintf.texi: Update.
27711         * doc/functions/vprintf.texi: Update.
27712         * doc/functions/vsnprintf.texi: Update.
27713         * doc/functions/vsprintf.texi: Update.
27714
27715 2007-11-04  Bruno Haible  <bruno@clisp.org>
27716
27717         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
27718
27719 2007-11-04  Bruno Haible  <bruno@clisp.org>
27720
27721         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
27722         Reported by Sylvain Beucler <beuc@gnu.org>.
27723
27724 2007-11-03  Bruno Haible  <bruno@clisp.org>
27725
27726         * tests/test-fprintf-posix2.sh: New file.
27727         * tests/test-fprintf-posix2.c: New file.
27728         * modules/fprintf-posix-tests (Files): Add them.
27729         (TESTS): Add test-fprintf-posix2.sh.
27730         (configure.ac): Check for getrlimit and setrlimit.
27731         (check_PROGRAMS): Add test-fprintf-posix2.
27732
27733         * tests/test-printf-posix2.sh: New file.
27734         * tests/test-printf-posix2.c: New file.
27735         * modules/printf-posix-tests (Files): Add them.
27736         (TESTS): Add test-printf-posix2.sh.
27737         (configure.ac): Check for getrlimit and setrlimit.
27738         (check_PROGRAMS): Add test-printf-posix2.
27739
27740         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
27741         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
27742         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
27743         (decode_double): New function, copied from decode_long_double.
27744         (scale10_round_decimal_decoded): New function, extracted from
27745         scale10_round_decimal_long_double.
27746         (scale10_round_decimal_long_double): Use it.
27747         (scale10_round_decimal_double): New function.
27748         (floorlog10): New function.
27749         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
27750         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
27751         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27752         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27753         gl_PRINTF_ENOMEM and test its result. Invoke
27754         gl_PREREQ_VASNPRINTF_ENOMEM.
27755         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27756         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27757         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27758         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27759         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27760         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27761         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27762         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
27763         * modules/snprintf-posix (Depends-on): Likewise.
27764         * modules/sprintf-posix (Depends-on): Likewise.
27765         * modules/vasnprintf-posix (Depends-on): Likewise.
27766         * modules/vasprintf-posix (Depends-on): Likewise.
27767         * modules/vfprintf-posix (Depends-on): Likewise.
27768         * modules/vsnprintf-posix (Depends-on): Likewise.
27769         * modules/vsprintf-posix (Depends-on): Likewise.
27770         * doc/functions/fprintf.texi: Update.
27771         * doc/functions/printf.texi: Update.
27772         * doc/functions/snprintf.texi: Update.
27773         * doc/functions/sprintf.texi: Update.
27774         * doc/functions/vfprintf.texi: Update.
27775         * doc/functions/vprintf.texi: Update.
27776         * doc/functions/vsnprintf.texi: Update.
27777         * doc/functions/vsprintf.texi: Update.
27778
27779 2007-11-03  Bruno Haible  <bruno@clisp.org>
27780
27781         * modules/frexp-nolibm-tests: New file.
27782
27783         * modules/frexp-nolibm: New file.
27784         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
27785
27786 2007-11-03  Bruno Haible  <bruno@clisp.org>
27787
27788         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
27789         value is C99 compliant.
27790         Needed for OSF/1 5.1.
27791
27792 2007-11-03  Bruno Haible  <bruno@clisp.org>
27793
27794         Fix out-of-memory handling of vasnprintf.
27795         * lib/printf-parse.c: Include <errno.h>.
27796         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
27797         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
27798         is already set.
27799
27800 2007-11-02  Eric Blake  <ebb9@byu.net>
27801
27802         Fix tests on cygwin.
27803         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
27804
27805 2007-11-01  Bruno Haible  <bruno@clisp.org>
27806
27807         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
27808         warning.
27809         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
27810         needed for POSIX compatibility.
27811
27812 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27813
27814         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
27815         for compatibility with GNU.
27816
27817 2007-11-01  Bruno Haible  <bruno@clisp.org>
27818
27819         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
27820         (putenv): Renamed from rpl_putenv. Change argument type from
27821         'const char *' to 'char *'.
27822         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
27823         of defining putenv in config.h, just set REPLACE_PUTENV.
27824         * modules/putenv (Depends-on): Add stdlib.
27825         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27826         (Include): Use <stdlib.h>.
27827         * lib/stdlib.in.h (putenv): New declaration.
27828         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
27829         REPLACE_PUTENV.
27830         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
27831         REPLACE_PUTENV.
27832         Needed for MacOS X 10.5.0.
27833         Reported by Peter O'Gorman <peter@pogma.com>.
27834
27835 2007-11-01  Jim Meyering  <meyering@redhat.com>
27836
27837         Treat an empty date string exactly like "0".
27838         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
27839         if the remaining date string (to be parsed) is empty, use "0".
27840         Reported by Mischa Molhoek and discussed in this thread:
27841         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
27842
27843 2007-10-31  Bruno Haible  <bruno@clisp.org>
27844
27845         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
27846         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
27847         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
27848         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
27849         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
27850         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
27851
27852 2007-10-31  Bruno Haible  <bruno@clisp.org>
27853
27854         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
27855         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
27856         (AC_TYPE_LONG_LONG_INT): Use it.
27857         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
27858         it as well.
27859         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
27860         to m4/longlong.m4.
27861         * modules/stdint (Files): Remove m4/ulonglong.m4.
27862         * modules/strtoull (Files): Use m4/longlong.m4 instead of
27863         m4/ulonglong.m4.
27864         * modules/strtoumax (Files): Likewise.
27865
27866 2007-10-30  Bruno Haible  <bruno@clisp.org>
27867
27868         * modules/xvasprintf-posix: New file.
27869         Suggested by Eric Blake.
27870
27871 2007-10-30  Bruno Haible  <bruno@clisp.org>
27872
27873         * modules/xprintf-posix-tests: New file.
27874         * tests/test-xprintf-posix.sh: New file.
27875         * tests/test-xprintf-posix.c: New file.
27876         * tests/test-xfprintf-posix.c: New file.
27877
27878         * modules/xprintf-posix: New file.
27879
27880 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27881
27882         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
27883         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
27884         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
27885
27886 2007-10-29  Bruno Haible  <bruno@clisp.org>
27887
27888         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
27889         contain the special marker '_cv_'.
27890         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27891         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27892         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27893         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
27894         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27895         Reported by Ralf Wildenhues.
27896
27897 2007-10-29  Bruno Haible  <bruno@clisp.org>
27898
27899         * gnulib-tool (func_import): When --lgpl is not specified, set
27900         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
27901         GPLv3.
27902         Reported by Simon Josefsson.
27903
27904 2007-10-28  Bruno Haible  <bruno@clisp.org>
27905
27906         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
27907         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
27908         HAVE_DECL_ISFINITE.
27909         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
27910         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
27911         HAVE_DECL_ISFINITE.
27912
27913 2007-10-28  Bruno Haible  <bruno@clisp.org>
27914
27915         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
27916         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
27917
27918 2007-10-28  Bruno Haible  <bruno@clisp.org>
27919
27920         Fix link errors with Sun C 5.0 on Solaris 10.
27921         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
27922         function is declared but not present in the compiler's libm.
27923         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
27924         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
27925         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
27926         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
27927         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
27928         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
27929         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
27930         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
27931         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
27932         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
27933         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
27934         HAVE_DECL_FLOORL.
27935
27936 2007-10-28  Bruno Haible  <bruno@clisp.org>
27937
27938         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
27939         gl_FUNC_FLOORL. Cache the result.
27940         (gl_FUNC_FLOORL): Use it.
27941         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
27942         gl_FUNC_CEILL. Cache the result.
27943         (gl_FUNC_CEILL): Use it.
27944
27945         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
27946         gl_FUNC_FLOOR. Cache the result.
27947         (gl_FUNC_FLOOR): Use it.
27948         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
27949         gl_FUNC_CEIL. Cache the result.
27950         (gl_FUNC_CEIL): Use it.
27951
27952         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
27953         gl_FUNC_FLOORF. Cache the result.
27954         (gl_FUNC_FLOORF): Use it.
27955         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
27956         gl_FUNC_CEILF. Cache the result.
27957         (gl_FUNC_CEILF): Use it.
27958
27959 2007-10-28  Bruno Haible  <bruno@clisp.org>
27960
27961         * gnulib-tool: Allow specifying the LGPL version number through
27962         --lgpl=2 or --lgpl=3.
27963         (func_usage): Document --lgpl with argument.
27964         Handle --lgpl=... arguments.
27965         (func_import): Recognize also gl_LGPL calls with an argument. When
27966         --lgpl=2 is used and the module's license is just LGPL, report an
27967         error. Set sed_transform_lib_file according to the lgpl variable. In
27968         the generated files, use --lgpl or gl_LGPL invocations with argument,
27969         if necessary.
27970         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
27971         an LGPv2+ license.
27972         * doc/gnulib-tool.texi (Modified imports): Update explanation of
27973         gl_LGPL macro.
27974
27975 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27976             Bruno Haible  <bruno@clisp.org>
27977
27978         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
27979         (u16_uctomb_aux): Likewise.
27980         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
27981         !HAVE_INLINE.
27982         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
27983
27984 2007-10-28  Bruno Haible  <bruno@clisp.org>
27985
27986         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
27987         Invoke AM_GETTEXT_OPTION if it exists.
27988         * modules/vasprintf: Likewise.
27989         * modules/verror: Likewise.
27990         * modules/xprintf: Likewise.
27991         * modules/xvasprintf: Likewise.
27992
27993 2007-10-27  Ben Pfaff  <blp@gnu.org>
27994
27995         * lib/math.in.h: Define isfinite macro and prototypes for
27996         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
27997         implementations.
27998         * m4/math_h.m4: New substitutions for isfinite module.
27999         * lib/isfinite.c: New file.
28000         * m4/isfinite.m4: New file.
28001         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
28002         * modules/isfinite: New file.
28003         * modules/isfinite-tests: New file.
28004         * tests/tests-isfinite.c: New file.
28005         * doc/functions/isfinite.texi: Mention isfinite module.
28006         * MODULES.html.sh: Mention new module.
28007
28008 2007-10-27  Ben Pfaff  <blp@gnu.org>
28009
28010         Ralf Wildenhues reported that Tru64 4.0D declares the round
28011         functions but does not have definitions.
28012         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
28013         cannot be found in any library, set the output variable to
28014         "missing" instead of "".
28015         * m4/round.m4: Also use our substitute if we cannot find round in
28016         any library, even if it is declared.
28017         * m4/roundf.m4: Likewise for roundf.
28018         * m4/roundl.m4: Likewise for roundl.
28019         * lib/math.in.h: Undefine roundf, round, roundl before defining
28020         their replacements, to allow for hypothetical systems where these
28021         may be defined as macros but not available in libraries.
28022
28023 2007-10-27  Bruno Haible  <bruno@clisp.org>
28024
28025         * doc/gnulib.texi: Invoke @firstparagraphindent.
28026         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
28027         changes in gnulib.
28028         (Source changes): New section.
28029
28030 2007-10-26  Bruno Haible  <bruno@clisp.org>
28031
28032         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
28033         borrowed from autoconf.
28034
28035 2007-10-26  Bruno Haible  <bruno@clisp.org>
28036
28037         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
28038         strerror returned the empty string. Needed on HP-UX 11.00.
28039
28040 2007-10-24  Micah Cowan  <micah@cowan.name>
28041
28042         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
28043         * build-aux/bootstrap: Remove support for now-unnecessary option,
28044         --cvs-user, and envvars CVS_USER, CVS_RSH.
28045
28046 2007-10-24  Jim Meyering  <meyering@redhat.com>
28047
28048         Avoid diagnostics from sha1sum when there is no cached checksum.
28049         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
28050         if the po.s1 file hasn't been created yet.
28051
28052         * build-aux/bootstrap: Sync from coreutils:
28053         2007-10-24  Jim Meyering  <meyering@redhat.com>
28054         Get gnulib from the git repository, not from an obsolete cvs one.
28055         * build-aux/bootstrap: Suggestion from Micah Cowan.
28056         2007-10-04  Jim Meyering  <jim@meyering.net>
28057         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
28058         (update_po_files): Work also when there are no .po files in po/.
28059
28060 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
28061
28062         * README: Append ".git" to git and cg examples.
28063         Problem reported by Benoit Sigoure.
28064
28065 2007-10-23  Micah Cowan  <micah@cowan.name>
28066
28067         * users.txt: Add wget.
28068
28069 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28070
28071         Fix linking of some unistdio tests on FreeBSD.
28072         * modules/unistdio/u16-vsnprintf-tests
28073         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
28074         * modules/unistdio/u16-vsprintf-tests
28075         (test_u16_vsnprintf1_LDADD): Likewise.
28076         * modules/unistdio/u32-vsnprintf-tests
28077         (test_u32_vsnprintf1_LDADD): Likewise.
28078         * modules/unistdio/u32-vsprintf-tests
28079         (test_u32_vsprintf1_LDADD): Likewise.
28080         * modules/unistdio/u8-vsnprintf-tests
28081         (test_u8_vsnprintf1_LDADD): Likewise.
28082         * modules/unistdio/u8-vsprintf-tests
28083         (test_u8_vsprintf1_LDADD): Likewise.
28084         * modules/unistdio/ulc-vsnprintf-tests
28085         (test_ulc_vsnprintf1_LDADD): Likewise.
28086         * modules/unistdio/ulc-vsprintf-tests
28087         (test_ulc_vsprintf1_LDADD): Likewise.
28088
28089         Fix linking of some uniconv tests on FreeBSD.
28090         * modules/uniconv/u16-conv-from-enc-tests
28091         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
28092         * modules/uniconv/u16-conv-to-enc-tests
28093         (test_u16_conv_to_enc_LDADD): Likewise.
28094         * modules/uniconv/u16-strconv-from-enc-tests
28095         (test_u16_strconv_from_enc_LDADD): Likewise.
28096         * modules/uniconv/u16-strconv-to-enc-tests
28097         (test_u16_strconv_to_enc_LDADD): Likewise.
28098         * modules/uniconv/u32-conv-from-enc-tests
28099         (test_u32_conv_from_enc_LDADD): Likewise.
28100         * modules/uniconv/u32-conv-to-enc-tests
28101         (test_u32_conv_to_enc_LDADD): Likewise.
28102         * modules/uniconv/u32-strconv-from-enc-tests
28103         (test_u32_strconv_from_enc_LDADD): Likewise.
28104         * modules/uniconv/u32-strconv-to-enc-tests
28105         (test_u32_strconv_to_enc_LDADD): Likewise.
28106         * modules/uniconv/u8-conv-from-enc-tests
28107         (test_u8_conv_from_enc_LDADD): Likewise.
28108         * modules/uniconv/u8-conv-to-enc-tests
28109         (test_u8_conv_to_enc_LDADD): Likewise.
28110         * modules/uniconv/u8-strconv-from-enc-tests
28111         (test_u8_strconv_from_enc_LDADD): Likewise.
28112         * modules/uniconv/u8-strconv-to-enc-tests
28113         (test_u8_strconv_to_enc_LDADD): Likewise.
28114
28115 2007-10-22  Bruno Haible  <bruno@clisp.org>
28116
28117         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
28118         size.
28119
28120 2007-10-22  Eric Blake  <ebb9@byu.net>
28121
28122         Tweak x*printf documentation.
28123         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
28124         variable name and comments.
28125         Suggested by Bruno Haible.
28126
28127 2007-10-22  Bruno Haible  <bruno@clisp.org>
28128
28129         * lib/acl.c (copy_acl): Fix file name in comment.
28130
28131 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
28132
28133         Fix Tru64 problem with stdbool.h.
28134         * lib/stdbool.in.h (false, true):
28135         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
28136         Don't declare as an enum in this situation; it runs afoul of Tru64.
28137         Problem reported by Steven M. Schweda in
28138         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
28139
28140 2007-10-22  Eric Blake  <ebb9@byu.net>
28141
28142         Also wrap vf?printf.
28143         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
28144         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
28145         (xvprintf, xvfprintf): New functions.
28146
28147 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28148
28149         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
28150         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
28151
28152         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
28153         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
28154
28155 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
28156
28157         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
28158         by Bruno Haible.
28159
28160 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28161
28162         * lib/getloadavg.c
28163         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
28164         Undef `sys' after including sys/table.h, for Tru64 4.0D.
28165
28166         * tests/test-i-ring.c: Work for C89.
28167
28168 2007-10-22  Bruno Haible  <bruno@clisp.org>
28169
28170         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
28171         -1u, in preprocessor expression, so that we don't test for the bug
28172         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
28173         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
28174
28175 2007-10-22  Eric Blake  <ebb9@byu.net>
28176
28177         * tests/test-yesno.sh: Silence stderr during test.
28178
28179 2007-10-22  Simon Josefsson  <simon@josefsson.org>
28180
28181         * modules/crypto/gc-camellia: New file.
28182
28183         * m4/gc-camellia.m4: New file.
28184
28185         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
28186
28187         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
28188
28189 2007-10-22  Simon Josefsson  <simon@josefsson.org>
28190
28191         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
28192         --help to stdout.  Reported by sms@antinode.org (Steven
28193         M. Schweda).
28194
28195 2007-10-22  Simon Josefsson  <simon@josefsson.org>
28196
28197         * users.txt: Fix link to libksba.
28198
28199 2007-10-21  Ben Pfaff  <blp@gnu.org>
28200
28201         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
28202         round.c roundf implementation that depends on floorf and ceilf to
28203         be tested unconditionally.
28204
28205 2007-10-21  Ben Pfaff  <blp@gnu.org>
28206
28207         * m4/check-libm-func.m4: Removed.
28208         * m4/check-math-lib.m4: New file.
28209         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
28210         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
28211         definition and lack of AC_LIBOBJ([roundf]).
28212         * m4/roundl.m4: Ditto, and similarly for roundl.
28213         * modules/round: Reference new m4 file.
28214         * modules/roundf: Ditto.
28215         * modules/roundl: Ditto.
28216         * tests/test-round2.c (main): Use ROUND instead of round.
28217         Bug report from Bruno Haible.
28218
28219 2007-10-21  Bruno Haible  <bruno@clisp.org>
28220
28221         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
28222         context.
28223
28224 2007-10-21  Bruno Haible  <bruno@clisp.org>
28225
28226         * tests/test-wcwidth.c (main): Allow negative result for some control
28227         characters.
28228
28229         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
28230         Needed on OSF/1 5.1.
28231
28232 2007-10-21  Bruno Haible  <bruno@clisp.org>
28233
28234         * tests/test-floorf1.c: Include isnanf.h.
28235         (main): Use isnanf() instead of isnan().
28236         * tests/test-ceilf1.c: Include isnanf.h.
28237         (main): Use isnanf() instead of isnan().
28238         * tests/test-truncf1.c: Include isnanf.h.
28239         (main): Use isnanf() instead of isnan().
28240         * tests/test-roundf1.c: Include isnanf.h.
28241         (main): Use isnanf() instead of isnan().
28242
28243 2007-10-21  Eric Blake  <ebb9@byu.net>
28244
28245         * users.txt: Update URL for m4.
28246
28247 2007-10-21  Bruno Haible  <bruno@clisp.org>
28248
28249         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
28250
28251 2007-10-21  Bruno Haible  <bruno@clisp.org>
28252
28253         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
28254         Git's management files if the CVS files are not present.
28255
28256 2007-10-20  Bruno Haible  <bruno@clisp.org>
28257
28258         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
28259         gcc-3.4.x.
28260
28261 2007-10-20  Ben Pfaff  <blp@gnu.org>
28262
28263         * lib/math.in.h: Declare round, roundf, roundl if we are providing
28264         implementations.
28265         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
28266         * lib/round.c: New file.
28267         * lib/roundf.c: New file.
28268         * lib/roundl.c: New file.
28269         * m4/round.m4: New file.
28270         * m4/roundf.m4: New file.
28271         * m4/roundl.m4: New file.
28272         * m4/check-libm-func-m4: New file.
28273         * modules/math: Replace round, roundf, roundl related @VARS@ in
28274         math.in.h.
28275         * modules/round: New file.
28276         * modules/round-tests: New file.
28277         * modules/roundf: New file.
28278         * modules/roundf-tests: New file.
28279         * modules/roundl: New file.
28280         * modules/roundl-tests: New file.
28281         * tests/test-round1.c: New file.
28282         * tests/test-round2.c: New file.
28283         * tests/test-roundf1.c: New file.
28284         * tests/test-roundf2.c: New file.
28285         * tests/test-roundl.c: New file.
28286         * doc/functions/round.texi: Mention round module.
28287         * doc/functions/roundf.texi: Mention roundf module.
28288         * doc/functions/roundl.texi: Mention roundl module.
28289         * MODULES.html.sh: Mention new modules.
28290         Thanks to Bruno Haible for suggestions.
28291
28292 2007-10-20  Jim Meyering  <meyering@redhat.com>
28293
28294         * lib/xprintf.c: Include <config.h> unconditionally.
28295
28296         Change xprintf's license to GPL.
28297         * modules/xprintf (License): s/LGPL/GPL/, since this module
28298         depends on modules (exit and exitfail) which are GPL.
28299         Suggestion from Bruno Haible.
28300
28301         xprintf fixes.
28302         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
28303         Use a clearer diagnostic.
28304         Patch from Bruno Haible.
28305
28306 2007-10-20  Bruno Haible  <bruno@clisp.org>
28307
28308         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
28309         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
28310         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28311
28312 2007-10-20  Bruno Haible  <bruno@clisp.org>
28313
28314         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
28315         precision in the comparison result > x - 1 or similar.
28316         * tests/test-ceilf2.c (correct_result_p): Likewise.
28317         * tests/test-truncf2.c (correct_result_p): Likewise.
28318         * tests/test-trunc2.c (correct_result_p): Likewise.
28319         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28320
28321 2007-10-20  Bruno Haible  <bruno@clisp.org>
28322
28323         * modules/ceil: New file.
28324         * m4/ceil.m4: New file.
28325         * doc/functions/ceil.texi: Mention the 'ceil' module.
28326
28327 2007-10-20  Bruno Haible  <bruno@clisp.org>
28328
28329         * modules/floor: New file.
28330         * m4/floor.m4: New file.
28331         * doc/functions/floor.texi: Mention the 'floor' module.
28332
28333 2007-10-20  Bruno Haible  <bruno@clisp.org>
28334
28335         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
28336         of %a.
28337         * modules/floorf-tests (Depends-on): Likewise.
28338         * modules/truncf-tests (Depends-on): Likewise.
28339         * modules/trunc-tests (Depends-on): Likewise.
28340         Reported by Ben Pfaff.
28341
28342 2007-10-19  Jim Meyering  <meyering@redhat.com>
28343
28344         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
28345         Don't bother testing specific errno values.  Just test ferror.
28346
28347         New module: xprintf
28348         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
28349
28350 2007-10-19  Bruno Haible  <bruno@clisp.org>
28351
28352         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
28353         syntax.
28354         * modules/javaexec (Makefile.am): Likewise.
28355         * modules/relocatable-prog (Makefile.am): Likewise.
28356         Suggested by Jim Meyering.
28357
28358 2007-10-18  Bruno Haible  <bruno@clisp.org>
28359
28360         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
28361         Reported by Jim Meyering.
28362
28363 2007-10-18  Eric Blake  <ebb9@byu.net>
28364
28365         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
28366
28367 2007-10-18  Bruno Haible  <bruno@clisp.org>
28368
28369         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
28370         the format string into writable memory. Needed in Fortify conditions.
28371
28372 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
28373             Bruno Haible  <bruno@clisp.org>
28374
28375         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
28376         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
28377         * modules/trim (Depends-on): Add mbchar.
28378         (configure.ac): Add gl_FUNC_MBRTOWC.
28379         (Makefile.am): Augment lib_SOURCES.
28380
28381 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
28382
28383         Modify glob.c to use fstatat and dirfd, to simplify it.
28384         Suggested by Eric Blake.
28385         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
28386         Don't include <stdbool.h>; not used.
28387         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
28388         (link_exists_p): Simplify implementation, since we can now assume
28389         dirfd and fstatat.
28390         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
28391
28392 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28393
28394         * gnulib-tool (func_get_dependencies): Fix sed script to
28395         match only tests.
28396
28397 2007-10-17  Bruno Haible  <bruno@clisp.org>
28398
28399         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
28400         allow locale names without encoding suffix.
28401         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
28402         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28403
28404 2007-10-16  Bruno Haible  <bruno@clisp.org>
28405
28406         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
28407         * lib/getgroups.c (getgroups): Likewise.
28408         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
28409
28410 2007-10-16  Bruno Haible  <bruno@clisp.org>
28411
28412         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
28413         * modules/malloc-posix (License): Likewise.
28414         * modules/realloc-posix (License): Likewise.
28415         * modules/calloc-posix (License): Likewise.
28416         * modules/intprops (License): Change from GPL to LGPL, with
28417         Paul Eggert's approval.
28418
28419 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28420
28421         Merge glibc changes into lib/glob.c.
28422
28423         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
28424         2007-10-15 04:59:03 UTC.  Here are the changes:
28425
28426         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
28427
28428         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
28429
28430         * lib/glob.c: Add some branch prediction throughout.
28431
28432         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
28433
28434         [BZ #5103]
28435         * lib/glob.c (glob): Recognize patterns starting \/.
28436
28437         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
28438
28439         [BZ #3996]
28440         * lib/glob.c (attribute_hidden): Define if not defined.
28441         (glob): Unescape dirname, filename or username when needed and not
28442         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
28443         is NULL.  Handle unescaped [ in pattern without closing ].
28444         Don't pass GLOB_CHECK down to recursive glob for directories.
28445         (__glob_pattern_type): New function.
28446         (__glob_pattern_p): Implement using __glob_pattern_type.
28447         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
28448         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
28449         Remove unreachable code.
28450
28451         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
28452
28453         * lib/glob.c (glob_in_dir): Add some comments and asserts to
28454         explain why there are no leaks.
28455
28456         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
28457
28458         [BZ #3253]
28459         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
28460         time, rather allocate increasingly bigger arrays of pointers, if
28461         possible with alloca, if too large with malloc.
28462
28463 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28464
28465         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
28466         Problem reported by H.Merijn Brand in
28467         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
28468         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
28469         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
28470
28471 2007-10-15  Bruno Haible  <bruno@clisp.org>
28472
28473         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
28474         with explicit rpl_ prefix.
28475         * lib/fopen.c (fopen): Likewise.
28476         * lib/freopen.c (freopen): Likewise.
28477         * lib/iconv.c (iconv): Likewise.
28478         * lib/iconv_close.c (iconv_close): Likewise.
28479
28480 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28481
28482         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
28483
28484 2007-10-15  Bruno Haible  <bruno@clisp.org>
28485
28486         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
28487         <stddef.h> instead of <stdlib.h> since we only need NULL.
28488         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28489
28490 2007-10-15  Bruno Haible  <bruno@clisp.org>
28491
28492         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
28493         Replace paragraph talking about LIBOBJS.
28494         Reported by Colin Watson <cjwatson@debian.org>.
28495
28496 2007-10-15  Bruno Haible  <bruno@clisp.org>
28497
28498         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
28499         <stdlib.h> before using NULL.
28500
28501 2007-10-15  Simon Josefsson  <simon@josefsson.org>
28502
28503         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
28504         Reported by Albert Chin <china@thewrittenword.com>.
28505
28506 2007-10-14  Bruno Haible  <bruno@clisp.org>
28507
28508         * modules/iconv_open-utf-tests: New file.
28509         * tests/test-iconv-utf.c: New file.
28510
28511         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
28512         * modules/iconv_open-utf: New file.
28513         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
28514         (iconv, iconv_close): New declarations.
28515         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
28516         be defined.
28517         (iconv_open): Add special handling of conversion between UTF-8 and
28518         UTF-{16,32}{BE,LE}.
28519         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
28520         * lib/iconv_close.c: New file.
28521         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
28522         gl_FUNC_ICONV_OPEN.
28523         (gl_FUNC_ICONV_OPEN): Use it.
28524         (gl_FUNC_ICONV_OPEN_UTF): New macro.
28525         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
28526         and REPLACE_ICONV_UTF.
28527         * modules/iconv_open (Depends-on): Add c-strcase.
28528         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
28529         ICONV_CONST.
28530         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
28531
28532 2007-10-13  Albert Chin  <china@thewrittenword.com>
28533             Bruno Haible  <bruno@clisp.org>
28534
28535         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
28536         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
28537
28538 2007-10-13  Bruno Haible  <bruno@clisp.org>
28539
28540         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
28541         defined, use the ISO C99 inline semantics.
28542         * lib/argp.h (ARGP_EI): Likewise.
28543
28544 2007-10-13  Bruno Haible  <bruno@clisp.org>
28545
28546         Handle 'inline' change in gcc 4.3.0.
28547         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
28548         argp_fmtstream_write, argp_fmtstream_set_lmargin,
28549         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
28550         argp_fmtstream_point): Disable 'extern' declaration if the function
28551         definition is going to be provided inline.
28552         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
28553         semantics, not the ISO C99 inline semantics.
28554         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
28555         'extern' declaration if the function definition is going to be provided
28556         inline.
28557         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
28558         the GNU C inline semantics, not the ISO C99 inline semantics. With
28559         GCC 4.2, avoid a warning.
28560
28561 2007-10-13  Bruno Haible  <bruno@clisp.org>
28562
28563         * lib/freading.h (freading): Enable the use of __freading for
28564         glibc >= 2.7.
28565         * lib/freading.c (freading): Likewise.
28566
28567 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
28568
28569         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
28570         "warning: C99 inline functions are not supported; using GNU89".
28571
28572 2007-10-12  Bruno Haible  <bruno@clisp.org>
28573
28574         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
28575         of 2.
28576         * tests/test-ceilf2.c: New file.
28577         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
28578
28579         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
28580         * modules/ceilf-tests: Update.
28581
28582 2007-10-12  Bruno Haible  <bruno@clisp.org>
28583
28584         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
28585         of 2.
28586         * tests/test-floorf2.c: New file.
28587         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
28588
28589         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
28590         * modules/floorf-tests: Update.
28591
28592 2007-10-12  Bruno Haible  <bruno@clisp.org>
28593
28594         * tests/test-trunc2.c: New file.
28595         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
28596
28597         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
28598         * modules/trunc-tests: Update.
28599
28600 2007-10-12  Bruno Haible  <bruno@clisp.org>
28601
28602         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
28603         of 2.
28604         * tests/test-truncf2.c: New file.
28605         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
28606
28607         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
28608         * modules/truncf-tests: Update.
28609
28610 2007-10-11  Eric Blake  <ebb9@byu.net>
28611
28612         Don't claim strerror is broken on Interix.
28613         * doc/functions/strerror.texi (strerror): Known broken systems are
28614         now Solaris 8, and not Interix.
28615         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
28616         Interix on cross-compile.
28617         Reported by Martin Koeppe in
28618         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
28619
28620 2007-10-11  Bruno Haible  <bruno@clisp.org>
28621
28622         * modules/i-ring-tests: New file.
28623         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
28624         instead of assert.
28625
28626 2007-10-11  Bruno Haible  <bruno@clisp.org>
28627
28628         * modules/filenamecat-tests: New file.
28629         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
28630         * lib/filenamecat.c: Remove test code.
28631
28632 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28633
28634         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
28635
28636         * lib/strerror.c: Include <string.h> always, to test interface,
28637         and to remove the need for the dummy.
28638         Include intprops.h to compute width instead of doing it ourselves
28639         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
28640         (strerror): Define it to return NULL if there's no system strerror.
28641         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
28642         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
28643         ancient pre-strerror Unix systems well any more.  Saying "unknown
28644         system error" is enough.
28645         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
28646         simpler strerror.c implementation.
28647         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
28648         Simplify the tests to reflect the simpler strerror implementation.
28649         * modules/strerror (Depends-on): Add intprops.
28650
28651 2007-10-09  Eric Blake  <ebb9@byu.net>
28652
28653         Silence test-fpending.
28654         * modules/fpending-tests (Files): Add wrapper script.
28655         * tests/test-fpending.sh: New file.
28656
28657 2007-10-09  Bruno Haible  <bruno@clisp.org>
28658
28659         * MODULES.html.sh (func_module): Don't create a hyperlink for
28660         function names like 'printf_frexp'.
28661         (Misc): Add crc, memxor.
28662         (Characteristics of floating types): New section.
28663         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
28664         isnanf-nolibm, signbit, trunc, truncf, truncl.
28665         (Enhancements for ISO C 99 functions): New subsection Input/output.
28666         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
28667         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
28668         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
28669         (Compatibility checks for POSIX:2001 functions): Add clock-time.
28670         (Enhancements for POSIX:2001 functions): Add chdir-long.
28671         (File system functions): Add areadlink, chdir-safer, read-file.
28672         Remove cycle-check.
28673         (File system as inode set): New section.
28674         (Date and time): Add gethrxtime.
28675         (Multithreading): Add openmp.
28676         (Internationalization functions): Add localename.
28677         (Unicode string functions): Add unistr/u*-mbsnlen.
28678         (Support for maintaining and releasing projects): Add git-version-gen.
28679         (Lone files): Remove directories.
28680
28681 2007-10-08  Ben Pfaff  <blp@gnu.org>
28682
28683         * lib/xmalloca.h: Fix typo in comment.
28684
28685 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28686
28687         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
28688         when avoiding problems with integer overflow.  Use a portable test
28689         instead.
28690
28691 2007-10-08  Simon Josefsson  <simon@josefsson.org>
28692
28693         * modules/dummy (License): Change to LGPLv2+.
28694         * modules/float (License): Likewise
28695         * modules/realloc (License): Likewise
28696         * modules/stdlib (License): Likewise
28697
28698 2007-10-07  Bruno Haible  <bruno@clisp.org>
28699
28700         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
28701         * floor.c (TWO_MANT_DIG): Likewise.
28702         * ceil.c (TWO_MANT_DIG): Likewise.
28703         Reported by Ben Pfaff.
28704
28705 2007-10-07  Bruno Haible  <bruno@clisp.org>
28706
28707         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
28708         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
28709         * lib/frexp.c (FUNC): Likewise.
28710         * lib/printf-frexp.h (printf_frexp): Likewise.
28711         * lib/printf-frexpl.h (printf_frexpl): Likewise.
28712         * lib/printf-frexp.c (FUNC): Likewise.
28713         Suggested by Jim Meyering.
28714
28715 2007-10-07  Jim Meyering  <meyering@redhat.com>
28716
28717         Make xnanosleep's integer overflow test more robust.
28718         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
28719         so that gcc-4.3.0 doesn't optimize away this test for overflow.
28720
28721 2007-10-07  Bruno Haible  <bruno@clisp.org>
28722
28723         * NEWS: Mention the license change.
28724
28725         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
28726         abbreviations in the modules files.
28727
28728         Change copyright notice from GPLv2+ to GPLv3+.
28729         * README: Change copyright notice.
28730         * MODULES.html.sh: Likewise.
28731         * build-aux/bootstrap.conf: Likewise.
28732         * build-aux/config.libpath: Likewise.
28733         * build-aux/csharpcomp.sh.in: Likewise.
28734         * build-aux/csharpexec.sh.in: Likewise.
28735         * build-aux/install-reloc: Likewise.
28736         * build-aux/javacomp.sh.in: Likewise.
28737         * build-aux/javaexec.sh.in: Likewise.
28738         * build-aux/ldd.sh.in: Likewise.
28739         * build-aux/reloc-ldflags: Likewise.
28740         * build-aux/relocatable.sh.in: Likewise.
28741         * build-aux/x-to-1.in: Likewise.
28742         * check-module: Likewise.
28743         * config/srclistvars.sh: Likewise.
28744         * gnulib-tool: Likewise.
28745         * lib/acl-internal.h: Likewise.
28746         * lib/acl.c: Likewise.
28747         * lib/acl.h: Likewise.
28748         * lib/acl_entries.c: Likewise.
28749         * lib/areadlink-with-size.c: Likewise.
28750         * lib/areadlink.c: Likewise.
28751         * lib/areadlink.h: Likewise.
28752         * lib/argmatch.c: Likewise.
28753         * lib/argmatch.h: Likewise.
28754         * lib/argp-ba.c: Likewise.
28755         * lib/argp-eexst.c: Likewise.
28756         * lib/argp-fmtstream.c: Likewise.
28757         * lib/argp-fmtstream.h: Likewise.
28758         * lib/argp-fs-xinl.c: Likewise.
28759         * lib/argp-help.c: Likewise.
28760         * lib/argp-namefrob.h: Likewise.
28761         * lib/argp-parse.c: Likewise.
28762         * lib/argp-pin.c: Likewise.
28763         * lib/argp-pv.c: Likewise.
28764         * lib/argp-pvh.c: Likewise.
28765         * lib/argp-xinl.c: Likewise.
28766         * lib/argp.h: Likewise.
28767         * lib/at-func.c: Likewise.
28768         * lib/atanl.c: Likewise.
28769         * lib/backupfile.c: Likewise.
28770         * lib/backupfile.h: Likewise.
28771         * lib/basename.c: Likewise.
28772         * lib/binary-io.h: Likewise.
28773         * lib/byteswap.in.h: Likewise.
28774         * lib/c-stack.c: Likewise.
28775         * lib/c-stack.h: Likewise.
28776         * lib/c-strcasestr.c: Likewise.
28777         * lib/c-strcasestr.h: Likewise.
28778         * lib/c-strstr.c: Likewise.
28779         * lib/c-strstr.h: Likewise.
28780         * lib/c-strtod.c: Likewise.
28781         * lib/calloc.c: Likewise.
28782         * lib/canon-host.c: Likewise.
28783         * lib/canon-host.h: Likewise.
28784         * lib/canonicalize-lgpl.c: Likewise.
28785         * lib/canonicalize.c: Likewise.
28786         * lib/canonicalize.h: Likewise.
28787         * lib/ceil.c: Likewise.
28788         * lib/ceilf.c: Likewise.
28789         * lib/ceill.c: Likewise.
28790         * lib/chdir-long.c: Likewise.
28791         * lib/chdir-long.h: Likewise.
28792         * lib/chdir-safer.c: Likewise.
28793         * lib/chdir-safer.h: Likewise.
28794         * lib/chown.c: Likewise.
28795         * lib/classpath.c: Likewise.
28796         * lib/classpath.h: Likewise.
28797         * lib/clean-temp.c: Likewise.
28798         * lib/clean-temp.h: Likewise.
28799         * lib/cloexec.c: Likewise.
28800         * lib/close-stream.c: Likewise.
28801         * lib/closein.c: Likewise.
28802         * lib/closein.h: Likewise.
28803         * lib/closeout.c: Likewise.
28804         * lib/closeout.h: Likewise.
28805         * lib/concat-filename.c: Likewise.
28806         * lib/copy-file.c: Likewise.
28807         * lib/copy-file.h: Likewise.
28808         * lib/count-one-bits.h: Likewise.
28809         * lib/crc.c: Likewise.
28810         * lib/crc.h: Likewise.
28811         * lib/creat-safer.c: Likewise.
28812         * lib/csharpcomp.c: Likewise.
28813         * lib/csharpcomp.h: Likewise.
28814         * lib/csharpexec.c: Likewise.
28815         * lib/csharpexec.h: Likewise.
28816         * lib/cycle-check.c: Likewise.
28817         * lib/cycle-check.h: Likewise.
28818         * lib/diacrit.c: Likewise.
28819         * lib/diacrit.h: Likewise.
28820         * lib/diffseq.h: Likewise.
28821         * lib/dirchownmod.c: Likewise.
28822         * lib/dirent.in.h: Likewise.
28823         * lib/dirfd.c: Likewise.
28824         * lib/dirfd.h: Likewise.
28825         * lib/dirname.c: Likewise.
28826         * lib/dirname.h: Likewise.
28827         * lib/dummy.c: Likewise.
28828         * lib/dup-safer.c: Likewise.
28829         * lib/dup2.c: Likewise.
28830         * lib/eealloc.h: Likewise.
28831         * lib/error.c: Likewise.
28832         * lib/error.h: Likewise.
28833         * lib/euidaccess.c: Likewise.
28834         * lib/exclude.c: Likewise.
28835         * lib/exclude.h: Likewise.
28836         * lib/execute.c: Likewise.
28837         * lib/execute.h: Likewise.
28838         * lib/exitfail.c: Likewise.
28839         * lib/exitfail.h: Likewise.
28840         * lib/expl.c: Likewise.
28841         * lib/fatal-signal.c: Likewise.
28842         * lib/fatal-signal.h: Likewise.
28843         * lib/fbufmode.c: Likewise.
28844         * lib/fbufmode.h: Likewise.
28845         * lib/fchdir.c: Likewise.
28846         * lib/fchmodat.c: Likewise.
28847         * lib/fchownat.c: Likewise.
28848         * lib/fcntl--.h: Likewise.
28849         * lib/fcntl-safer.h: Likewise.
28850         * lib/fcntl.in.h: Likewise.
28851         * lib/fd-safer.c: Likewise.
28852         * lib/fflush.c: Likewise.
28853         * lib/file-has-acl.c: Likewise.
28854         * lib/file-set.c: Likewise.
28855         * lib/file-type.c: Likewise.
28856         * lib/file-type.h: Likewise.
28857         * lib/fileblocks.c: Likewise.
28858         * lib/filemode.c: Likewise.
28859         * lib/filemode.h: Likewise.
28860         * lib/filename.h: Likewise.
28861         * lib/filenamecat.c: Likewise.
28862         * lib/filenamecat.h: Likewise.
28863         * lib/findprog.c: Likewise.
28864         * lib/findprog.h: Likewise.
28865         * lib/float.in.h: Likewise.
28866         * lib/floor.c: Likewise.
28867         * lib/floorf.c: Likewise.
28868         * lib/floorl.c: Likewise.
28869         * lib/fopen-safer.c: Likewise.
28870         * lib/fopen.c: Likewise.
28871         * lib/fpending.c: Likewise.
28872         * lib/fpending.h: Likewise.
28873         * lib/fprintf.c: Likewise.
28874         * lib/fprintftime.h: Likewise.
28875         * lib/fpucw.h: Likewise.
28876         * lib/fpurge.c: Likewise.
28877         * lib/fpurge.h: Likewise.
28878         * lib/freadable.c: Likewise.
28879         * lib/freadable.h: Likewise.
28880         * lib/freadahead.c: Likewise.
28881         * lib/freadahead.h: Likewise.
28882         * lib/freading.c: Likewise.
28883         * lib/freading.h: Likewise.
28884         * lib/free.c: Likewise.
28885         * lib/freopen.c: Likewise.
28886         * lib/frexp.c: Likewise.
28887         * lib/frexpl.c: Likewise.
28888         * lib/fseek.c: Likewise.
28889         * lib/fseterr.c: Likewise.
28890         * lib/fseterr.h: Likewise.
28891         * lib/fstatat.c: Likewise.
28892         * lib/fstrcmp.c: Likewise.
28893         * lib/fstrcmp.h: Likewise.
28894         * lib/fsusage.c: Likewise.
28895         * lib/fsusage.h: Likewise.
28896         * lib/ftell.c: Likewise.
28897         * lib/ftello.c: Likewise.
28898         * lib/fts-cycle.c: Likewise.
28899         * lib/fts.c: Likewise.
28900         * lib/fts_.h: Likewise.
28901         * lib/full-read.c: Likewise.
28902         * lib/full-read.h: Likewise.
28903         * lib/full-write.c: Likewise.
28904         * lib/full-write.h: Likewise.
28905         * lib/fwritable.c: Likewise.
28906         * lib/fwritable.h: Likewise.
28907         * lib/fwriteerror.c: Likewise.
28908         * lib/fwriteerror.h: Likewise.
28909         * lib/fwriting.c: Likewise.
28910         * lib/fwriting.h: Likewise.
28911         * lib/gcd.c: Likewise.
28912         * lib/gcd.h: Likewise.
28913         * lib/getcwd.c: Likewise.
28914         * lib/getdate.h: Likewise.
28915         * lib/getdate.y: Likewise.
28916         * lib/getdomainname.c: Likewise.
28917         * lib/getdomainname.h: Likewise.
28918         * lib/getgroups.c: Likewise.
28919         * lib/gethostname.c: Likewise.
28920         * lib/gethrxtime.c: Likewise.
28921         * lib/gethrxtime.h: Likewise.
28922         * lib/getloadavg.c: Likewise.
28923         * lib/getndelim2.c: Likewise.
28924         * lib/getndelim2.h: Likewise.
28925         * lib/getnline.c: Likewise.
28926         * lib/getnline.h: Likewise.
28927         * lib/getopt.c: Likewise.
28928         * lib/getopt.in.h: Likewise.
28929         * lib/getopt1.c: Likewise.
28930         * lib/getopt_int.h: Likewise.
28931         * lib/getpagesize.h: Likewise.
28932         * lib/getsubopt.c: Likewise.
28933         * lib/gettime.c: Likewise.
28934         * lib/getugroups.c: Likewise.
28935         * lib/getugroups.h: Likewise.
28936         * lib/getusershell.c: Likewise.
28937         * lib/gl_anyavltree_list1.h: Likewise.
28938         * lib/gl_anyavltree_list2.h: Likewise.
28939         * lib/gl_anyhash_list1.h: Likewise.
28940         * lib/gl_anyhash_list2.h: Likewise.
28941         * lib/gl_anylinked_list1.h: Likewise.
28942         * lib/gl_anylinked_list2.h: Likewise.
28943         * lib/gl_anyrbtree_list1.h: Likewise.
28944         * lib/gl_anyrbtree_list2.h: Likewise.
28945         * lib/gl_anytree_list1.h: Likewise.
28946         * lib/gl_anytree_list2.h: Likewise.
28947         * lib/gl_anytree_oset.h: Likewise.
28948         * lib/gl_anytreehash_list1.h: Likewise.
28949         * lib/gl_anytreehash_list2.h: Likewise.
28950         * lib/gl_array_list.c: Likewise.
28951         * lib/gl_array_list.h: Likewise.
28952         * lib/gl_array_oset.c: Likewise.
28953         * lib/gl_array_oset.h: Likewise.
28954         * lib/gl_avltree_list.c: Likewise.
28955         * lib/gl_avltree_list.h: Likewise.
28956         * lib/gl_avltree_oset.c: Likewise.
28957         * lib/gl_avltree_oset.h: Likewise.
28958         * lib/gl_avltreehash_list.c: Likewise.
28959         * lib/gl_avltreehash_list.h: Likewise.
28960         * lib/gl_carray_list.c: Likewise.
28961         * lib/gl_carray_list.h: Likewise.
28962         * lib/gl_linked_list.c: Likewise.
28963         * lib/gl_linked_list.h: Likewise.
28964         * lib/gl_linkedhash_list.c: Likewise.
28965         * lib/gl_linkedhash_list.h: Likewise.
28966         * lib/gl_list.c: Likewise.
28967         * lib/gl_list.h: Likewise.
28968         * lib/gl_oset.c: Likewise.
28969         * lib/gl_oset.h: Likewise.
28970         * lib/gl_rbtree_list.c: Likewise.
28971         * lib/gl_rbtree_list.h: Likewise.
28972         * lib/gl_rbtree_oset.c: Likewise.
28973         * lib/gl_rbtree_oset.h: Likewise.
28974         * lib/gl_rbtreehash_list.c: Likewise.
28975         * lib/gl_rbtreehash_list.h: Likewise.
28976         * lib/gl_sublist.c: Likewise.
28977         * lib/gl_sublist.h: Likewise.
28978         * lib/group-member.c: Likewise.
28979         * lib/group-member.h: Likewise.
28980         * lib/hard-locale.c: Likewise.
28981         * lib/hard-locale.h: Likewise.
28982         * lib/hash-pjw.c: Likewise.
28983         * lib/hash-pjw.h: Likewise.
28984         * lib/hash-triple.c: Likewise.
28985         * lib/hash.c: Likewise.
28986         * lib/hash.h: Likewise.
28987         * lib/human.c: Likewise.
28988         * lib/human.h: Likewise.
28989         * lib/i-ring.c: Likewise.
28990         * lib/i-ring.h: Likewise.
28991         * lib/idcache.c: Likewise.
28992         * lib/imaxabs.c: Likewise.
28993         * lib/imaxdiv.c: Likewise.
28994         * lib/inet_pton.c: Likewise.
28995         * lib/inet_pton.h: Likewise.
28996         * lib/intprops.h: Likewise.
28997         * lib/inttostr.c: Likewise.
28998         * lib/inttostr.h: Likewise.
28999         * lib/inttypes.in.h: Likewise.
29000         * lib/isapipe.c: Likewise.
29001         * lib/isdir.c: Likewise.
29002         * lib/isnan.c: Likewise.
29003         * lib/isnan.h: Likewise.
29004         * lib/isnanf.c: Likewise.
29005         * lib/isnanf.h: Likewise.
29006         * lib/isnanl-nolibm.h: Likewise.
29007         * lib/isnanl.c: Likewise.
29008         * lib/isnanl.h: Likewise.
29009         * lib/javacomp.c: Likewise.
29010         * lib/javacomp.h: Likewise.
29011         * lib/javaexec.c: Likewise.
29012         * lib/javaexec.h: Likewise.
29013         * lib/javaversion.c: Likewise.
29014         * lib/javaversion.h: Likewise.
29015         * lib/javaversion.java: Likewise.
29016         * lib/lbrkprop.h: Likewise.
29017         * lib/lchmod.h: Likewise.
29018         * lib/lchown.c: Likewise.
29019         * lib/ldexpl.c: Likewise.
29020         * lib/linebreak.c: Likewise.
29021         * lib/linebreak.h: Likewise.
29022         * lib/linebuffer.c: Likewise.
29023         * lib/linebuffer.h: Likewise.
29024         * lib/locale.in.h: Likewise.
29025         * lib/logl.c: Likewise.
29026         * lib/long-options.c: Likewise.
29027         * lib/long-options.h: Likewise.
29028         * lib/lstat.c: Likewise.
29029         * lib/lstat.h: Likewise.
29030         * lib/math.in.h: Likewise.
29031         * lib/mbchar.c: Likewise.
29032         * lib/mbchar.h: Likewise.
29033         * lib/mbfile.h: Likewise.
29034         * lib/mbiter.h: Likewise.
29035         * lib/mbscasecmp.c: Likewise.
29036         * lib/mbscasestr.c: Likewise.
29037         * lib/mbschr.c: Likewise.
29038         * lib/mbscspn.c: Likewise.
29039         * lib/mbslen.c: Likewise.
29040         * lib/mbsncasecmp.c: Likewise.
29041         * lib/mbsnlen.c: Likewise.
29042         * lib/mbspbrk.c: Likewise.
29043         * lib/mbspcasecmp.c: Likewise.
29044         * lib/mbsrchr.c: Likewise.
29045         * lib/mbssep.c: Likewise.
29046         * lib/mbsspn.c: Likewise.
29047         * lib/mbsstr.c: Likewise.
29048         * lib/mbstok_r.c: Likewise.
29049         * lib/mbswidth.c: Likewise.
29050         * lib/mbswidth.h: Likewise.
29051         * lib/mbuiter.h: Likewise.
29052         * lib/memcasecmp.c: Likewise.
29053         * lib/memcasecmp.h: Likewise.
29054         * lib/memchr.c: Likewise.
29055         * lib/memcmp.c: Likewise.
29056         * lib/memcoll.c: Likewise.
29057         * lib/memcoll.h: Likewise.
29058         * lib/memcpy.c: Likewise.
29059         * lib/memrchr.c: Likewise.
29060         * lib/mkancesdirs.c: Likewise.
29061         * lib/mkdir-p.c: Likewise.
29062         * lib/mkdir-p.h: Likewise.
29063         * lib/mkdir.c: Likewise.
29064         * lib/mkdirat.c: Likewise.
29065         * lib/mkdtemp.c: Likewise.
29066         * lib/mkstemp-safer.c: Likewise.
29067         * lib/mkstemp.c: Likewise.
29068         * lib/modechange.c: Likewise.
29069         * lib/modechange.h: Likewise.
29070         * lib/mountlist.c: Likewise.
29071         * lib/mountlist.h: Likewise.
29072         * lib/mpsort.c: Likewise.
29073         * lib/nanosleep.c: Likewise.
29074         * lib/obstack.c: Likewise.
29075         * lib/obstack.h: Likewise.
29076         * lib/open-safer.c: Likewise.
29077         * lib/open.c: Likewise.
29078         * lib/openat-die.c: Likewise.
29079         * lib/openat-priv.h: Likewise.
29080         * lib/openat-proc.c: Likewise.
29081         * lib/openat.c: Likewise.
29082         * lib/openat.h: Likewise.
29083         * lib/pagealign_alloc.c: Likewise.
29084         * lib/pagealign_alloc.h: Likewise.
29085         * lib/physmem.c: Likewise.
29086         * lib/physmem.h: Likewise.
29087         * lib/pipe-safer.c: Likewise.
29088         * lib/pipe.c: Likewise.
29089         * lib/pipe.h: Likewise.
29090         * lib/posixtm.c: Likewise.
29091         * lib/posixtm.h: Likewise.
29092         * lib/posixver.c: Likewise.
29093         * lib/printf-frexp.c: Likewise.
29094         * lib/printf-frexp.h: Likewise.
29095         * lib/printf-frexpl.c: Likewise.
29096         * lib/printf-frexpl.h: Likewise.
29097         * lib/printf.c: Likewise.
29098         * lib/progname.c: Likewise.
29099         * lib/progname.h: Likewise.
29100         * lib/progreloc.c: Likewise.
29101         * lib/putenv.c: Likewise.
29102         * lib/quote.c: Likewise.
29103         * lib/quote.h: Likewise.
29104         * lib/quotearg.c: Likewise.
29105         * lib/quotearg.h: Likewise.
29106         * lib/raise.c: Likewise.
29107         * lib/readline.c: Likewise.
29108         * lib/readline.h: Likewise.
29109         * lib/readlink.c: Likewise.
29110         * lib/readtokens.c: Likewise.
29111         * lib/readtokens.h: Likewise.
29112         * lib/readtokens0.c: Likewise.
29113         * lib/readtokens0.h: Likewise.
29114         * lib/readutmp.c: Likewise.
29115         * lib/readutmp.h: Likewise.
29116         * lib/realloc.c: Likewise.
29117         * lib/relocwrapper.c: Likewise.
29118         * lib/rename-dest-slash.c: Likewise.
29119         * lib/rename.c: Likewise.
29120         * lib/rmdir.c: Likewise.
29121         * lib/rpmatch.c: Likewise.
29122         * lib/safe-read.c: Likewise.
29123         * lib/safe-read.h: Likewise.
29124         * lib/safe-write.c: Likewise.
29125         * lib/safe-write.h: Likewise.
29126         * lib/same-inode.h: Likewise.
29127         * lib/same.c: Likewise.
29128         * lib/same.h: Likewise.
29129         * lib/save-cwd.c: Likewise.
29130         * lib/save-cwd.h: Likewise.
29131         * lib/savedir.c: Likewise.
29132         * lib/savedir.h: Likewise.
29133         * lib/savewd.c: Likewise.
29134         * lib/savewd.h: Likewise.
29135         * lib/search.in.h: Likewise.
29136         * lib/setenv.c: Likewise.
29137         * lib/setenv.h: Likewise.
29138         * lib/settime.c: Likewise.
29139         * lib/sh-quote.c: Likewise.
29140         * lib/sh-quote.h: Likewise.
29141         * lib/sig2str.c: Likewise.
29142         * lib/sig2str.h: Likewise.
29143         * lib/signal.in.h: Likewise.
29144         * lib/signbitd.c: Likewise.
29145         * lib/signbitf.c: Likewise.
29146         * lib/signbitl.c: Likewise.
29147         * lib/sigprocmask.c: Likewise.
29148         * lib/sincosl.c: Likewise.
29149         * lib/sleep.c: Likewise.
29150         * lib/sprintf.c: Likewise.
29151         * lib/sqrtl.c: Likewise.
29152         * lib/stat-time.h: Likewise.
29153         * lib/stdio--.h: Likewise.
29154         * lib/stdio-safer.h: Likewise.
29155         * lib/stdlib--.h: Likewise.
29156         * lib/stdlib-safer.h: Likewise.
29157         * lib/stdlib.in.h: Likewise.
29158         * lib/stpcpy.c: Likewise.
29159         * lib/stpncpy.c: Likewise.
29160         * lib/strchrnul.c: Likewise.
29161         * lib/strcspn.c: Likewise.
29162         * lib/strerror.c: Likewise.
29163         * lib/strftime.c: Likewise.
29164         * lib/strftime.h: Likewise.
29165         * lib/striconveh.c: Likewise.
29166         * lib/striconveh.h: Likewise.
29167         * lib/striconveha.c: Likewise.
29168         * lib/striconveha.h: Likewise.
29169         * lib/stripslash.c: Likewise.
29170         * lib/strnlen1.c: Likewise.
29171         * lib/strnlen1.h: Likewise.
29172         * lib/strtod.c: Likewise.
29173         * lib/strtoimax.c: Likewise.
29174         * lib/strtok_r.c: Likewise.
29175         * lib/strtol.c: Likewise.
29176         * lib/strtoll.c: Likewise.
29177         * lib/strtoul.c: Likewise.
29178         * lib/strtoull.c: Likewise.
29179         * lib/sysexits.in.h: Likewise.
29180         * lib/tempname.c: Likewise.
29181         * lib/tempname.h: Likewise.
29182         * lib/timespec.h: Likewise.
29183         * lib/tls.c: Likewise.
29184         * lib/tls.h: Likewise.
29185         * lib/tmpdir.c: Likewise.
29186         * lib/tmpdir.h: Likewise.
29187         * lib/tmpfile-safer.c: Likewise.
29188         * lib/tmpfile.c: Likewise.
29189         * lib/trigl.c: Likewise.
29190         * lib/trigl.h: Likewise.
29191         * lib/trim.c: Likewise.
29192         * lib/trim.h: Likewise.
29193         * lib/trunc.c: Likewise.
29194         * lib/truncf.c: Likewise.
29195         * lib/truncl.c: Likewise.
29196         * lib/tsearch.c: Likewise.
29197         * lib/unicodeio.c: Likewise.
29198         * lib/unicodeio.h: Likewise.
29199         * lib/unistd--.h: Likewise.
29200         * lib/unistd-safer.h: Likewise.
29201         * lib/unistdio/ulc-fprintf.c: Likewise.
29202         * lib/unistdio/ulc-vfprintf.c: Likewise.
29203         * lib/unlinkdir.c: Likewise.
29204         * lib/unlinkdir.h: Likewise.
29205         * lib/unlocked-io.h: Likewise.
29206         * lib/unsetenv.c: Likewise.
29207         * lib/userspec.c: Likewise.
29208         * lib/utime.c: Likewise.
29209         * lib/utimecmp.c: Likewise.
29210         * lib/utimecmp.h: Likewise.
29211         * lib/utimens.c: Likewise.
29212         * lib/verify.h: Likewise.
29213         * lib/verror.c: Likewise.
29214         * lib/verror.h: Likewise.
29215         * lib/version-etc-fsf.c: Likewise.
29216         * lib/version-etc.c: Likewise.
29217         * lib/version-etc.h: Likewise.
29218         * lib/vfprintf.c: Likewise.
29219         * lib/vprintf.c: Likewise.
29220         * lib/vsprintf.c: Likewise.
29221         * lib/w32spawn.h: Likewise.
29222         * lib/wait-process.c: Likewise.
29223         * lib/wait-process.h: Likewise.
29224         * lib/wcwidth.c: Likewise.
29225         * lib/write-any-file.c: Likewise.
29226         * lib/xalloc-die.c: Likewise.
29227         * lib/xalloc.h: Likewise.
29228         * lib/xasprintf.c: Likewise.
29229         * lib/xgetcwd.c: Likewise.
29230         * lib/xgetcwd.h: Likewise.
29231         * lib/xgetdomainname.c: Likewise.
29232         * lib/xgetdomainname.h: Likewise.
29233         * lib/xgethostname.c: Likewise.
29234         * lib/xmalloc.c: Likewise.
29235         * lib/xmalloca.c: Likewise.
29236         * lib/xmalloca.h: Likewise.
29237         * lib/xmemcoll.c: Likewise.
29238         * lib/xnanosleep.c: Likewise.
29239         * lib/xreadlink.c: Likewise.
29240         * lib/xreadlink.h: Likewise.
29241         * lib/xsetenv.c: Likewise.
29242         * lib/xsetenv.h: Likewise.
29243         * lib/xstriconv.c: Likewise.
29244         * lib/xstriconv.h: Likewise.
29245         * lib/xstrndup.c: Likewise.
29246         * lib/xstrndup.h: Likewise.
29247         * lib/xstrtod.c: Likewise.
29248         * lib/xstrtod.h: Likewise.
29249         * lib/xstrtol-error.c: Likewise.
29250         * lib/xstrtol.c: Likewise.
29251         * lib/xstrtol.h: Likewise.
29252         * lib/xtime.h: Likewise.
29253         * lib/xvasprintf.c: Likewise.
29254         * lib/xvasprintf.h: Likewise.
29255         * lib/yesno.c: Likewise.
29256         * lib/yesno.h: Likewise.
29257         * posix-modules: Likewise.
29258         * tests/test-alloca-opt.c: Likewise.
29259         * tests/test-arcfour.c: Likewise.
29260         * tests/test-arctwo.c: Likewise.
29261         * tests/test-argmatch.c: Likewise.
29262         * tests/test-argp-2.sh: Likewise.
29263         * tests/test-argp.c: Likewise.
29264         * tests/test-arpa_inet.c: Likewise.
29265         * tests/test-array_list.c: Likewise.
29266         * tests/test-array_oset.c: Likewise.
29267         * tests/test-atexit.c: Likewise.
29268         * tests/test-avltree_list.c: Likewise.
29269         * tests/test-avltree_oset.c: Likewise.
29270         * tests/test-avltreehash_list.c: Likewise.
29271         * tests/test-base64.c: Likewise.
29272         * tests/test-binary-io.c: Likewise.
29273         * tests/test-byteswap.c: Likewise.
29274         * tests/test-c-ctype.c: Likewise.
29275         * tests/test-c-strcasecmp.c: Likewise.
29276         * tests/test-c-strcasestr.c: Likewise.
29277         * tests/test-c-strncasecmp.c: Likewise.
29278         * tests/test-c-strstr.c: Likewise.
29279         * tests/test-canonicalize-lgpl.c: Likewise.
29280         * tests/test-canonicalize.c: Likewise.
29281         * tests/test-carray_list.c: Likewise.
29282         * tests/test-ceilf.c: Likewise.
29283         * tests/test-ceill.c: Likewise.
29284         * tests/test-count-one-bits.c: Likewise.
29285         * tests/test-crc.c: Likewise.
29286         * tests/test-dirname.c: Likewise.
29287         * tests/test-fbufmode.c: Likewise.
29288         * tests/test-fcntl.c: Likewise.
29289         * tests/test-fflush.c: Likewise.
29290         * tests/test-floorf.c: Likewise.
29291         * tests/test-floorl.c: Likewise.
29292         * tests/test-fopen.c: Likewise.
29293         * tests/test-fprintf-posix.c: Likewise.
29294         * tests/test-fprintf-posix.h: Likewise.
29295         * tests/test-fpurge.c: Likewise.
29296         * tests/test-freadable.c: Likewise.
29297         * tests/test-freadahead.c: Likewise.
29298         * tests/test-freading.c: Likewise.
29299         * tests/test-freopen.c: Likewise.
29300         * tests/test-frexp.c: Likewise.
29301         * tests/test-frexpl.c: Likewise.
29302         * tests/test-fseek.c: Likewise.
29303         * tests/test-fseeko.c: Likewise.
29304         * tests/test-fseterr.c: Likewise.
29305         * tests/test-fstrcmp.c: Likewise.
29306         * tests/test-ftell.c: Likewise.
29307         * tests/test-ftello.c: Likewise.
29308         * tests/test-fwritable.c: Likewise.
29309         * tests/test-fwriting.c: Likewise.
29310         * tests/test-getaddrinfo.c: Likewise.
29311         * tests/test-getpass.c: Likewise.
29312         * tests/test-gettimeofday.c: Likewise.
29313         * tests/test-hmac-md5.c: Likewise.
29314         * tests/test-hmac-sha1.c: Likewise.
29315         * tests/test-iconv.c: Likewise.
29316         * tests/test-iconvme.c: Likewise.
29317         * tests/test-inttypes.c: Likewise.
29318         * tests/test-isnan.c: Likewise.
29319         * tests/test-isnanf.c: Likewise.
29320         * tests/test-isnanl-nolibm.c: Likewise.
29321         * tests/test-isnanl.c: Likewise.
29322         * tests/test-isnanl.h: Likewise.
29323         * tests/test-ldexpl.c: Likewise.
29324         * tests/test-linked_list.c: Likewise.
29325         * tests/test-linkedhash_list.c: Likewise.
29326         * tests/test-locale.c: Likewise.
29327         * tests/test-localename.c: Likewise.
29328         * tests/test-lock.c: Likewise.
29329         * tests/test-lseek.c: Likewise.
29330         * tests/test-malloca.c: Likewise.
29331         * tests/test-math.c: Likewise.
29332         * tests/test-mbscasecmp.c: Likewise.
29333         * tests/test-mbscasestr1.c: Likewise.
29334         * tests/test-mbscasestr2.c: Likewise.
29335         * tests/test-mbscasestr3.c: Likewise.
29336         * tests/test-mbscasestr4.c: Likewise.
29337         * tests/test-mbschr.c: Likewise.
29338         * tests/test-mbscspn.c: Likewise.
29339         * tests/test-mbsncasecmp.c: Likewise.
29340         * tests/test-mbspbrk.c: Likewise.
29341         * tests/test-mbspcasecmp.c: Likewise.
29342         * tests/test-mbsrchr.c: Likewise.
29343         * tests/test-mbsspn.c: Likewise.
29344         * tests/test-mbsstr1.c: Likewise.
29345         * tests/test-mbsstr2.c: Likewise.
29346         * tests/test-mbsstr3.c: Likewise.
29347         * tests/test-md5.c: Likewise.
29348         * tests/test-memmem.c: Likewise.
29349         * tests/test-netinet_in.c: Likewise.
29350         * tests/test-open.c: Likewise.
29351         * tests/test-printf-frexp.c: Likewise.
29352         * tests/test-printf-frexpl.c: Likewise.
29353         * tests/test-printf-posix.c: Likewise.
29354         * tests/test-printf-posix.h: Likewise.
29355         * tests/test-rbtree_list.c: Likewise.
29356         * tests/test-rbtree_oset.c: Likewise.
29357         * tests/test-rbtreehash_list.c: Likewise.
29358         * tests/test-read-file.c: Likewise.
29359         * tests/test-rijndael.c: Likewise.
29360         * tests/test-search.c: Likewise.
29361         * tests/test-signbit.c: Likewise.
29362         * tests/test-sleep.c: Likewise.
29363         * tests/test-snprintf-posix.c: Likewise.
29364         * tests/test-snprintf-posix.h: Likewise.
29365         * tests/test-snprintf.c: Likewise.
29366         * tests/test-sprintf-posix.c: Likewise.
29367         * tests/test-sprintf-posix.h: Likewise.
29368         * tests/test-stat-time.c: Likewise.
29369         * tests/test-stdbool.c: Likewise.
29370         * tests/test-stdint.c: Likewise.
29371         * tests/test-stdio.c: Likewise.
29372         * tests/test-stdlib.c: Likewise.
29373         * tests/test-stpncpy.c: Likewise.
29374         * tests/test-strcasestr.c: Likewise.
29375         * tests/test-striconv.c: Likewise.
29376         * tests/test-striconveh.c: Likewise.
29377         * tests/test-striconveha.c: Likewise.
29378         * tests/test-string.c: Likewise.
29379         * tests/test-sys_select.c: Likewise.
29380         * tests/test-sys_socket.c: Likewise.
29381         * tests/test-sys_stat.c: Likewise.
29382         * tests/test-sys_time.c: Likewise.
29383         * tests/test-sysexits.c: Likewise.
29384         * tests/test-time.c: Likewise.
29385         * tests/test-tls.c: Likewise.
29386         * tests/test-trunc.c: Likewise.
29387         * tests/test-truncf.c: Likewise.
29388         * tests/test-truncl.c: Likewise.
29389         * tests/test-unistd.c: Likewise.
29390         * tests/test-vasnprintf-posix.c: Likewise.
29391         * tests/test-vasnprintf-posix2.c: Likewise.
29392         * tests/test-vasnprintf.c: Likewise.
29393         * tests/test-vasprintf-posix.c: Likewise.
29394         * tests/test-vasprintf.c: Likewise.
29395         * tests/test-verify.c: Likewise.
29396         * tests/test-vfprintf-posix.c: Likewise.
29397         * tests/test-vprintf-posix.c: Likewise.
29398         * tests/test-vsnprintf-posix.c: Likewise.
29399         * tests/test-vsnprintf.c: Likewise.
29400         * tests/test-vsprintf-posix.c: Likewise.
29401         * tests/test-wchar.c: Likewise.
29402         * tests/test-wctype.c: Likewise.
29403         * tests/test-wcwidth.c: Likewise.
29404         * tests/test-xstrtol.c: Likewise.
29405         * tests/test-xvasprintf.c: Likewise.
29406         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29407         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29408         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29409         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29410         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29411         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29412         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29413         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29414         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29415         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29416         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29417         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29418         * tests/uniname/test-uninames.c: Likewise.
29419         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29420         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
29421         * tests/unistdio/test-u16-printf1.h: Likewise.
29422         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29423         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29424         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29425         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29426         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29427         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29428         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29429         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
29430         * tests/unistdio/test-u32-printf1.h: Likewise.
29431         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29432         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29433         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29434         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29435         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29436         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29437         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29438         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
29439         * tests/unistdio/test-u8-printf1.h: Likewise.
29440         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29441         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29442         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29443         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29444         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29445         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29446         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29447         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
29448         * tests/unistdio/test-ulc-printf1.h: Likewise.
29449         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29450         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29451         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29452         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29453         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29454         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29455         * tests/uniwidth/test-u16-strwidth.c: Likewise.
29456         * tests/uniwidth/test-u16-width.c: Likewise.
29457         * tests/uniwidth/test-u32-strwidth.c: Likewise.
29458         * tests/uniwidth/test-u32-width.c: Likewise.
29459         * tests/uniwidth/test-u8-strwidth.c: Likewise.
29460         * tests/uniwidth/test-u8-width.c: Likewise.
29461         * tests/uniwidth/test-uc_width.c: Likewise.
29462         * config/srclist-update: Likewise.
29463         (fixlicense): Update to GPLv3+.
29464
29465         Change copyright notice from LGPLv2.1+ to LGPLv3+.
29466         * tests/test-tsearch.c: Change copyright notice.
29467
29468         Change copyright notice from LGPLv2.0+ to LGPLv3+.
29469         * lib/c-strcaseeq.h: Change copyright notice.
29470         * lib/streq.h: Likewise.
29471         * lib/uniconv.h: Likewise.
29472         * lib/uniconv/u-conv-from-enc.h: Likewise.
29473         * lib/uniconv/u-conv-to-enc.h: Likewise.
29474         * lib/uniconv/u-strconv-from-enc.h: Likewise.
29475         * lib/uniconv/u-strconv-to-enc.h: Likewise.
29476         * lib/uniconv/u16-conv-from-enc.c: Likewise.
29477         * lib/uniconv/u16-conv-to-enc.c: Likewise.
29478         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
29479         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
29480         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
29481         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
29482         * lib/uniconv/u32-conv-from-enc.c: Likewise.
29483         * lib/uniconv/u32-conv-to-enc.c: Likewise.
29484         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
29485         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
29486         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
29487         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
29488         * lib/uniconv/u8-conv-from-enc.c: Likewise.
29489         * lib/uniconv/u8-conv-to-enc.c: Likewise.
29490         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
29491         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
29492         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
29493         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
29494         * lib/uniname.h: Likewise.
29495         * lib/uniname/uniname.c: Likewise.
29496         * lib/unistdio.h: Likewise.
29497         * lib/unistdio/u-asnprintf.h: Likewise.
29498         * lib/unistdio/u-asprintf.h: Likewise.
29499         * lib/unistdio/u-printf-args.c: Likewise.
29500         * lib/unistdio/u-printf-args.h: Likewise.
29501         * lib/unistdio/u-printf-parse.h: Likewise.
29502         * lib/unistdio/u-snprintf.h: Likewise.
29503         * lib/unistdio/u-sprintf.h: Likewise.
29504         * lib/unistdio/u-vasprintf.h: Likewise.
29505         * lib/unistdio/u-vsnprintf.h: Likewise.
29506         * lib/unistdio/u-vsprintf.h: Likewise.
29507         * lib/unistdio/u16-asnprintf.c: Likewise.
29508         * lib/unistdio/u16-asprintf.c: Likewise.
29509         * lib/unistdio/u16-printf-parse.c: Likewise.
29510         * lib/unistdio/u16-snprintf.c: Likewise.
29511         * lib/unistdio/u16-sprintf.c: Likewise.
29512         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
29513         * lib/unistdio/u16-u16-asprintf.c: Likewise.
29514         * lib/unistdio/u16-u16-snprintf.c: Likewise.
29515         * lib/unistdio/u16-u16-sprintf.c: Likewise.
29516         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
29517         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
29518         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
29519         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
29520         * lib/unistdio/u16-vasnprintf.c: Likewise.
29521         * lib/unistdio/u16-vasprintf.c: Likewise.
29522         * lib/unistdio/u16-vsnprintf.c: Likewise.
29523         * lib/unistdio/u16-vsprintf.c: Likewise.
29524         * lib/unistdio/u32-asnprintf.c: Likewise.
29525         * lib/unistdio/u32-asprintf.c: Likewise.
29526         * lib/unistdio/u32-printf-parse.c: Likewise.
29527         * lib/unistdio/u32-snprintf.c: Likewise.
29528         * lib/unistdio/u32-sprintf.c: Likewise.
29529         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
29530         * lib/unistdio/u32-u32-asprintf.c: Likewise.
29531         * lib/unistdio/u32-u32-snprintf.c: Likewise.
29532         * lib/unistdio/u32-u32-sprintf.c: Likewise.
29533         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
29534         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
29535         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
29536         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
29537         * lib/unistdio/u32-vasnprintf.c: Likewise.
29538         * lib/unistdio/u32-vasprintf.c: Likewise.
29539         * lib/unistdio/u32-vsnprintf.c: Likewise.
29540         * lib/unistdio/u32-vsprintf.c: Likewise.
29541         * lib/unistdio/u8-asnprintf.c: Likewise.
29542         * lib/unistdio/u8-asprintf.c: Likewise.
29543         * lib/unistdio/u8-printf-parse.c: Likewise.
29544         * lib/unistdio/u8-snprintf.c: Likewise.
29545         * lib/unistdio/u8-sprintf.c: Likewise.
29546         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
29547         * lib/unistdio/u8-u8-asprintf.c: Likewise.
29548         * lib/unistdio/u8-u8-snprintf.c: Likewise.
29549         * lib/unistdio/u8-u8-sprintf.c: Likewise.
29550         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
29551         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
29552         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
29553         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
29554         * lib/unistdio/u8-vasnprintf.c: Likewise.
29555         * lib/unistdio/u8-vasprintf.c: Likewise.
29556         * lib/unistdio/u8-vsnprintf.c: Likewise.
29557         * lib/unistdio/u8-vsprintf.c: Likewise.
29558         * lib/unistdio/ulc-asnprintf.c: Likewise.
29559         * lib/unistdio/ulc-asprintf.c: Likewise.
29560         * lib/unistdio/ulc-printf-parse.c: Likewise.
29561         * lib/unistdio/ulc-snprintf.c: Likewise.
29562         * lib/unistdio/ulc-sprintf.c: Likewise.
29563         * lib/unistdio/ulc-vasnprintf.c: Likewise.
29564         * lib/unistdio/ulc-vasprintf.c: Likewise.
29565         * lib/unistdio/ulc-vsnprintf.c: Likewise.
29566         * lib/unistdio/ulc-vsprintf.c: Likewise.
29567         * lib/unistr.h: Likewise.
29568         * lib/unistr/u-cpy-alloc.h: Likewise.
29569         * lib/unistr/u-cpy.h: Likewise.
29570         * lib/unistr/u-endswith.h: Likewise.
29571         * lib/unistr/u-move.h: Likewise.
29572         * lib/unistr/u-set.h: Likewise.
29573         * lib/unistr/u-startswith.h: Likewise.
29574         * lib/unistr/u-stpcpy.h: Likewise.
29575         * lib/unistr/u-stpncpy.h: Likewise.
29576         * lib/unistr/u-strcat.h: Likewise.
29577         * lib/unistr/u-strcpy.h: Likewise.
29578         * lib/unistr/u-strcspn.h: Likewise.
29579         * lib/unistr/u-strdup.h: Likewise.
29580         * lib/unistr/u-strlen.h: Likewise.
29581         * lib/unistr/u-strncat.h: Likewise.
29582         * lib/unistr/u-strncpy.h: Likewise.
29583         * lib/unistr/u-strnlen.h: Likewise.
29584         * lib/unistr/u-strpbrk.h: Likewise.
29585         * lib/unistr/u-strspn.h: Likewise.
29586         * lib/unistr/u-strstr.h: Likewise.
29587         * lib/unistr/u-strtok.h: Likewise.
29588         * lib/unistr/u16-check.c: Likewise.
29589         * lib/unistr/u16-chr.c: Likewise.
29590         * lib/unistr/u16-cmp.c: Likewise.
29591         * lib/unistr/u16-cpy-alloc.c: Likewise.
29592         * lib/unistr/u16-cpy.c: Likewise.
29593         * lib/unistr/u16-endswith.c: Likewise.
29594         * lib/unistr/u16-mblen.c: Likewise.
29595         * lib/unistr/u16-mbsnlen.c: Likewise.
29596         * lib/unistr/u16-mbtouc-aux.c: Likewise.
29597         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
29598         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
29599         * lib/unistr/u16-mbtouc.c: Likewise.
29600         * lib/unistr/u16-mbtoucr.c: Likewise.
29601         * lib/unistr/u16-move.c: Likewise.
29602         * lib/unistr/u16-next.c: Likewise.
29603         * lib/unistr/u16-prev.c: Likewise.
29604         * lib/unistr/u16-set.c: Likewise.
29605         * lib/unistr/u16-startswith.c: Likewise.
29606         * lib/unistr/u16-stpcpy.c: Likewise.
29607         * lib/unistr/u16-stpncpy.c: Likewise.
29608         * lib/unistr/u16-strcat.c: Likewise.
29609         * lib/unistr/u16-strchr.c: Likewise.
29610         * lib/unistr/u16-strcmp.c: Likewise.
29611         * lib/unistr/u16-strcpy.c: Likewise.
29612         * lib/unistr/u16-strcspn.c: Likewise.
29613         * lib/unistr/u16-strdup.c: Likewise.
29614         * lib/unistr/u16-strlen.c: Likewise.
29615         * lib/unistr/u16-strmblen.c: Likewise.
29616         * lib/unistr/u16-strmbtouc.c: Likewise.
29617         * lib/unistr/u16-strncat.c: Likewise.
29618         * lib/unistr/u16-strncmp.c: Likewise.
29619         * lib/unistr/u16-strncpy.c: Likewise.
29620         * lib/unistr/u16-strnlen.c: Likewise.
29621         * lib/unistr/u16-strpbrk.c: Likewise.
29622         * lib/unistr/u16-strrchr.c: Likewise.
29623         * lib/unistr/u16-strspn.c: Likewise.
29624         * lib/unistr/u16-strstr.c: Likewise.
29625         * lib/unistr/u16-strtok.c: Likewise.
29626         * lib/unistr/u16-to-u32.c: Likewise.
29627         * lib/unistr/u16-to-u8.c: Likewise.
29628         * lib/unistr/u16-uctomb-aux.c: Likewise.
29629         * lib/unistr/u16-uctomb.c: Likewise.
29630         * lib/unistr/u32-check.c: Likewise.
29631         * lib/unistr/u32-chr.c: Likewise.
29632         * lib/unistr/u32-cmp.c: Likewise.
29633         * lib/unistr/u32-cpy-alloc.c: Likewise.
29634         * lib/unistr/u32-cpy.c: Likewise.
29635         * lib/unistr/u32-endswith.c: Likewise.
29636         * lib/unistr/u32-mblen.c: Likewise.
29637         * lib/unistr/u32-mbsnlen.c: Likewise.
29638         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
29639         * lib/unistr/u32-mbtouc.c: Likewise.
29640         * lib/unistr/u32-mbtoucr.c: Likewise.
29641         * lib/unistr/u32-move.c: Likewise.
29642         * lib/unistr/u32-next.c: Likewise.
29643         * lib/unistr/u32-prev.c: Likewise.
29644         * lib/unistr/u32-set.c: Likewise.
29645         * lib/unistr/u32-startswith.c: Likewise.
29646         * lib/unistr/u32-stpcpy.c: Likewise.
29647         * lib/unistr/u32-stpncpy.c: Likewise.
29648         * lib/unistr/u32-strcat.c: Likewise.
29649         * lib/unistr/u32-strchr.c: Likewise.
29650         * lib/unistr/u32-strcmp.c: Likewise.
29651         * lib/unistr/u32-strcpy.c: Likewise.
29652         * lib/unistr/u32-strcspn.c: Likewise.
29653         * lib/unistr/u32-strdup.c: Likewise.
29654         * lib/unistr/u32-strlen.c: Likewise.
29655         * lib/unistr/u32-strmblen.c: Likewise.
29656         * lib/unistr/u32-strmbtouc.c: Likewise.
29657         * lib/unistr/u32-strncat.c: Likewise.
29658         * lib/unistr/u32-strncmp.c: Likewise.
29659         * lib/unistr/u32-strncpy.c: Likewise.
29660         * lib/unistr/u32-strnlen.c: Likewise.
29661         * lib/unistr/u32-strpbrk.c: Likewise.
29662         * lib/unistr/u32-strrchr.c: Likewise.
29663         * lib/unistr/u32-strspn.c: Likewise.
29664         * lib/unistr/u32-strstr.c: Likewise.
29665         * lib/unistr/u32-strtok.c: Likewise.
29666         * lib/unistr/u32-to-u16.c: Likewise.
29667         * lib/unistr/u32-to-u8.c: Likewise.
29668         * lib/unistr/u32-uctomb.c: Likewise.
29669         * lib/unistr/u8-check.c: Likewise.
29670         * lib/unistr/u8-chr.c: Likewise.
29671         * lib/unistr/u8-cmp.c: Likewise.
29672         * lib/unistr/u8-cpy-alloc.c: Likewise.
29673         * lib/unistr/u8-cpy.c: Likewise.
29674         * lib/unistr/u8-endswith.c: Likewise.
29675         * lib/unistr/u8-mblen.c: Likewise.
29676         * lib/unistr/u8-mbsnlen.c: Likewise.
29677         * lib/unistr/u8-mbtouc-aux.c: Likewise.
29678         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
29679         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
29680         * lib/unistr/u8-mbtouc.c: Likewise.
29681         * lib/unistr/u8-mbtoucr.c: Likewise.
29682         * lib/unistr/u8-move.c: Likewise.
29683         * lib/unistr/u8-next.c: Likewise.
29684         * lib/unistr/u8-prev.c: Likewise.
29685         * lib/unistr/u8-set.c: Likewise.
29686         * lib/unistr/u8-startswith.c: Likewise.
29687         * lib/unistr/u8-stpcpy.c: Likewise.
29688         * lib/unistr/u8-stpncpy.c: Likewise.
29689         * lib/unistr/u8-strcat.c: Likewise.
29690         * lib/unistr/u8-strchr.c: Likewise.
29691         * lib/unistr/u8-strcmp.c: Likewise.
29692         * lib/unistr/u8-strcpy.c: Likewise.
29693         * lib/unistr/u8-strcspn.c: Likewise.
29694         * lib/unistr/u8-strdup.c: Likewise.
29695         * lib/unistr/u8-strlen.c: Likewise.
29696         * lib/unistr/u8-strmblen.c: Likewise.
29697         * lib/unistr/u8-strmbtouc.c: Likewise.
29698         * lib/unistr/u8-strncat.c: Likewise.
29699         * lib/unistr/u8-strncmp.c: Likewise.
29700         * lib/unistr/u8-strncpy.c: Likewise.
29701         * lib/unistr/u8-strnlen.c: Likewise.
29702         * lib/unistr/u8-strpbrk.c: Likewise.
29703         * lib/unistr/u8-strrchr.c: Likewise.
29704         * lib/unistr/u8-strspn.c: Likewise.
29705         * lib/unistr/u8-strstr.c: Likewise.
29706         * lib/unistr/u8-strtok.c: Likewise.
29707         * lib/unistr/u8-to-u16.c: Likewise.
29708         * lib/unistr/u8-to-u32.c: Likewise.
29709         * lib/unistr/u8-uctomb-aux.c: Likewise.
29710         * lib/unistr/u8-uctomb.c: Likewise.
29711         * lib/unitypes.h: Likewise.
29712         * lib/uniwidth.h: Likewise.
29713         * lib/uniwidth/cjk.h: Likewise.
29714         * lib/uniwidth/u16-strwidth.c: Likewise.
29715         * lib/uniwidth/u16-width.c: Likewise.
29716         * lib/uniwidth/u32-strwidth.c: Likewise.
29717         * lib/uniwidth/u32-width.c: Likewise.
29718         * lib/uniwidth/u8-strwidth.c: Likewise.
29719         * lib/uniwidth/u8-width.c: Likewise.
29720         * lib/uniwidth/width.c: Likewise.
29721
29722 2007-10-07  Bruno Haible  <bruno@clisp.org>
29723
29724         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
29725         The file is still under LGPL (see modules/inttypes).
29726
29727 2007-10-06  Bruno Haible  <bruno@clisp.org>
29728
29729         * modules/trunc (Dependencies): Add 'extensions'.
29730         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
29731         Reported by Ben Pfaff <blp@gnu.org>.
29732
29733 2007-10-06  Bruno Haible  <bruno@clisp.org>
29734
29735         * modules/freopen-tests: New file.
29736         * tests/test-freopen.c: New file.
29737
29738         * modules/fopen-tests: New file.
29739         * tests/test-fopen.c: New file.
29740
29741         * modules/fopen: New file.
29742         * lib/fopen.c: New file.
29743         * m4/fopen.m4: New file.
29744         * modules/freopen: New file.
29745         * lib/freopen.c: New file.
29746         * m4/freopen.m4: New file.
29747         * lib/stdio.in.h (fopen, freopen): New declarations.
29748         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
29749         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
29750         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
29751         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
29752         * doc/functions/fopen.texi: Mention the 'fopen' module.
29753         * doc/functions/freopen.texi: Mention the 'freopen' module.
29754
29755 2007-10-06  Bruno Haible  <bruno@clisp.org>
29756
29757         * modules/open-tests: New file.
29758         * tests/test-open.c: New file.
29759
29760         * modules/open: New file.
29761         * lib/open.c: New file.
29762         * m4/open.m4: New file.
29763         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
29764         lib/open.c does.
29765         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
29766         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
29767         macros.
29768         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
29769         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
29770         REPLACE_OPEN.
29771         * doc/functions/open.texi: Mention the 'open' module.
29772
29773 2007-10-04  Bruno Haible  <bruno@clisp.org>
29774
29775         * modules/ceill-tests: New file.
29776         * tests/test-ceill.c: New file.
29777
29778         * modules/ceill: New file.
29779         * lib/ceill.c: Replace entire file.
29780         * m4/ceill.m4: New file.
29781         * lib/math.in.h (ceill): Replace declaration.
29782         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
29783         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
29784         * doc/functions/ceill.texi: Mention the 'ceill' module.
29785         * modules/mathl (Files): Remove lib/ceill.c.
29786         (Depends-on): Add ceill.
29787
29788 2007-10-04  Bruno Haible  <bruno@clisp.org>
29789
29790         * modules/ceilf-tests: New file.
29791         * tests/test-ceilf.c: New file.
29792
29793         * modules/ceilf: New file.
29794         * lib/ceil.c: New file.
29795         * lib/ceilf.c: New file.
29796         * m4/ceilf.m4: New file.
29797         * lib/math.in.h (ceilf): New declaration.
29798         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
29799         HAVE_DECL_CEILF.
29800         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
29801         HAVE_DECL_CEILF.
29802         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
29803
29804 2007-10-04  Bruno Haible  <bruno@clisp.org>
29805
29806         * modules/floorl-tests: New file.
29807         * tests/test-floorl.c: New file.
29808
29809         * modules/floorl: New file.
29810         * lib/floorl.c: Replace entire file.
29811         * m4/floorl.m4: New file.
29812         * lib/math.in.h (floorl): Replace declaration.
29813         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
29814         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
29815         * doc/functions/floorl.texi: Mention the 'floorl' module.
29816         * modules/mathl (Files): Remove lib/floorl.c.
29817         (Depends-on): Add floorl.
29818
29819 2007-10-04  Bruno Haible  <bruno@clisp.org>
29820
29821         * modules/floorf-tests: New file.
29822         * tests/test-floorf.c: New file.
29823
29824         * modules/floorf: New file.
29825         * lib/floor.c: New file.
29826         * lib/floorf.c: New file.
29827         * m4/floorf.m4: New file.
29828         * lib/math.in.h (floorf): New declaration.
29829         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
29830         HAVE_DECL_FLOORF.
29831         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
29832         HAVE_DECL_FLOORF.
29833         * doc/functions/floorf.texi: Mention the 'floorf' module.
29834
29835 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
29836             Bruno Haible  <bruno@clisp.org>
29837
29838         Advertise for the Git server instead of the CVS server.
29839         * doc/gnulib-intro.texi (Steady Development): Mention the Git
29840         repository instead of the CVS one.
29841         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
29842         about all VCS systems generically.
29843         * doc/gnulib.texi (Introduction): Capitalize `Git'.
29844
29845 2007-10-04  Bruno Haible  <bruno@clisp.org>
29846
29847         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
29848         means.
29849         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
29850
29851 2007-10-04  Bruno Haible  <bruno@clisp.org>
29852
29853         * modules/truncl-tests: New file.
29854         * tests/test-truncl.c: New file.
29855
29856         * modules/truncl: New file.
29857         * lib/truncl.c: New file.
29858         * m4/truncl.m4: New file.
29859         * lib/math.in.h (truncl): New declaration.
29860         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
29861         HAVE_DECL_TRUNCL.
29862         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
29863         HAVE_DECL_TRUNCL.
29864         * doc/functions/truncl.texi: Mention the 'truncl' module.
29865
29866 2007-10-04  Bruno Haible  <bruno@clisp.org>
29867
29868         * modules/truncf-tests: New file.
29869         * tests/test-truncf.c: New file.
29870
29871         * modules/truncf: New file.
29872         * lib/trunc.c: Make paramerizable through USE_* macros.
29873         * lib/truncf.c: New file.
29874         * m4/truncf.m4: New file.
29875         * lib/math.in.h (truncf): New declaration.
29876         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
29877         HAVE_DECL_TRUNCF.
29878         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
29879         HAVE_DECL_TRUNCF.
29880         * doc/functions/truncf.texi: Mention the 'truncf' module.
29881
29882 2007-10-03  Bruno Haible  <bruno@clisp.org>
29883
29884         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
29885         augmentation also for tests modules.
29886         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
29887         * modules/atexit-tests (Makefile.am): Likewise.
29888         * modules/binary-io-tests (Makefile.am): Likewise.
29889         * modules/c-strcase-tests (Makefile.am): Likewise.
29890         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
29891         * modules/canonicalize-tests (Makefile.am): Likewise.
29892         * modules/closein-tests (Makefile.am): Likewise.
29893         * modules/fprintf-posix-tests (Makefile.am): Likewise.
29894         * modules/freadahead-tests (Makefile.am): Likewise.
29895         * modules/fseek-tests (Makefile.am): Likewise.
29896         * modules/fseeko-tests (Makefile.am): Likewise.
29897         * modules/ftell-tests (Makefile.am): Likewise.
29898         * modules/ftello-tests (Makefile.am): Likewise.
29899         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
29900         * modules/isnanl-tests (Makefile.am): Likewise.
29901         * modules/lseek-tests (Makefile.am): Likewise.
29902         * modules/mbscasecmp-tests (Makefile.am): Likewise.
29903         * modules/mbscasestr-tests (Makefile.am): Likewise.
29904         * modules/mbschr-tests (Makefile.am): Likewise.
29905         * modules/mbscspn-tests (Makefile.am): Likewise.
29906         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
29907         * modules/mbspbrk-tests (Makefile.am): Likewise.
29908         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
29909         * modules/mbsrchr-tests (Makefile.am): Likewise.
29910         * modules/mbsspn-tests (Makefile.am): Likewise.
29911         * modules/mbsstr-tests (Makefile.am): Likewise.
29912         * modules/printf-posix-tests (Makefile.am): Likewise.
29913         * modules/snprintf-posix-tests (Makefile.am): Likewise.
29914         * modules/sprintf-posix-tests (Makefile.am): Likewise.
29915         * modules/tsearch-tests (Makefile.am): Likewise.
29916         * modules/uniname/uniname-tests (Makefile.am): Likewise.
29917         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
29918         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
29919         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
29920         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
29921         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
29922         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
29923         * modules/vprintf-posix-tests (Makefile.am): Likewise.
29924         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
29925         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
29926         * modules/xstrtoimax-tests (Makefile.am): Likewise.
29927         * modules/xstrtol-tests (Makefile.am): Likewise.
29928         * modules/xstrtoumax-tests (Makefile.am): Likewise.
29929         * modules/yesno-tests (Makefile.am): Likewise.
29930
29931 2007-10-03  Bruno Haible  <bruno@clisp.org>
29932
29933         * modules/trunc-tests: New file.
29934         * tests/test-trunc.c: New file.
29935
29936         * modules/trunc: New file.
29937         * lib/trunc.c: New file.
29938         * m4/trunc.m4: New file.
29939         * lib/math.in.h (trunc): New declaration.
29940         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
29941         HAVE_DECL_TRUNC.
29942         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
29943         HAVE_DECL_TRUNC.
29944         * doc/functions/trunc.texi: Mention the 'trunc' module.
29945
29946 2007-10-03  Bruno Haible  <bruno@clisp.org>
29947
29948         * tests/test-fpending.c: New file, mostly copied
29949         from coreutils/lib/t-fpending.c.
29950         * modules/fpending-tests: New file.
29951
29952 2007-10-03  Bruno Haible  <bruno@clisp.org>
29953
29954         Port the stdio extensions to QNX (untested).
29955         * lib/fseterr.c (fseterr): Add support for QNX.
29956         * lib/fbufmode.c (fbufmode): Likewise.
29957         * lib/freadable.c (freadable): Likewise.
29958         * lib/fwritable.c (fwritable): Likewise.
29959         * lib/freading.c (freading): Likewise.
29960         * lib/fwriting.c (fwriting): Likewise.
29961         * lib/freadahead.c (freadahed): Likewise.
29962         * lib/fpurge.c (fpurge): Likewise.
29963         * lib/fseeko.c (rpl_fseeko): Likewise.
29964
29965 2007-10-03  Bruno Haible  <bruno@clisp.org>
29966             Jim Meyering  <jim@meyering.net>
29967             Eric Blake  <ebb9@byu.net>
29968
29969         * doc/relocatable.texi: Use @command instead of @program.
29970
29971 2007-10-02  Jim Meyering  <jim@meyering.net>
29972
29973         Perform one more "_.h" -> ".in.h" substitution.
29974         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
29975         instead of unistd_.h here, too.
29976
29977 2007-10-01  Bruno Haible  <bruno@clisp.org>
29978
29979         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
29980         Needed for the alloca-opt module.
29981
29982 2007-09-30  Bruno Haible  <bruno@clisp.org>
29983
29984         * lib/alloca.in.h: Renamed from lib/alloca_.h.
29985         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
29986         alloca_.h.
29987         * lib/argz.in.h: Renamed from lib/argz_.h.
29988         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
29989         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
29990         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
29991         byteswap_.h.
29992         * lib/dirent.in.h: Renamed from lib/dirent_.h.
29993         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
29994         dirent_.h.
29995         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
29996         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
29997         fcntl_.h.
29998         * lib/float.in.h: Renamed from lib/float_.h.
29999         * modules/float (Files, Makefile.am): Use float.in.h instead of
30000         float_.h.
30001         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
30002         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
30003         fnmatch_.h.
30004         * lib/getopt.in.h: Renamed from lib/getopt_.h.
30005         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
30006         getopt_.h.
30007         * lib/glob.in.h: Renamed from lib/glob_.h.
30008         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
30009         * lib/iconv.in.h: Renamed from lib/iconv_.h.
30010         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
30011         iconv_.h.
30012         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
30013         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
30014         inttypes_.h.
30015         * lib/locale.in.h: Renamed from lib/locale_.h.
30016         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
30017         locale_.h.
30018         * lib/math.in.h: Renamed from lib/math_.h.
30019         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
30020         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
30021         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
30022         of netinet_in_.h. Add dependency.
30023         * lib/poll.in.h: Renamed from lib/poll_.h.
30024         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
30025         * lib/search.in.h: Renamed from lib/search_.h.
30026         * modules/search (Files, Makefile.am): Use search.in.h instead of
30027         search_.h.
30028         * lib/signal.in.h: Renamed from lib/signal_.h.
30029         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
30030         _signal.h.
30031         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
30032         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
30033         stdbool_.h.
30034         * lib/stdint.in.h: Renamed from lib/stdint_.h.
30035         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
30036         stdint_.h.
30037         * lib/stdio.in.h: Renamed from lib/stdio_.h.
30038         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
30039         stdio_.h.
30040         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
30041         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
30042         stdlib_.h.
30043         * lib/string.in.h: Renamed from lib/string_.h.
30044         * modules/string (Files, Makefile.am): Use string.in.h instead of
30045         string_.h.
30046         * doc/gnulib-tool.texi (Initial import): Update.
30047         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
30048         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
30049         of sys_select_.h. Add dependency.
30050         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
30051         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
30052         of sys_socket_.h.
30053         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
30054         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
30055         sys_stat_.h.
30056         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
30057         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
30058         sys_time_.h.
30059         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
30060         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
30061         sysexits_.h.
30062         * lib/time.in.h: Renamed from lib/time_.h.
30063         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
30064         * lib/unistd.in.h: Renamed from lib/unistd_.h.
30065         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
30066         unistd_.h.
30067         * lib/wchar.in.h: Renamed from lib/wchar_.h.
30068         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
30069         wchar_.h.
30070         * lib/wctype.in.h: Renamed from lib/wctype_.h.
30071         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
30072         wctype_.h.
30073         * build-aux/bootstrap (slurp): Update.
30074         * lib/.cppi-disable: Update.
30075
30076 2007-09-30  Bruno Haible  <bruno@clisp.org>
30077
30078         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
30079         Needed on BeOS.
30080
30081 2007-09-30  Bruno Haible  <bruno@clisp.org>
30082
30083         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
30084
30085 2007-09-29  Bruno Haible  <bruno@clisp.org>
30086
30087         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
30088
30089 2007-09-29  Bruno Haible  <bruno@clisp.org>
30090
30091         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
30092         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
30093         * build-aux/install-reloc: Compile also areadlink.c.
30094         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
30095
30096 2007-09-29  Bruno Haible  <bruno@clisp.org>
30097
30098         * gnulib-tool (func_emit_initmacro_done): Indentation.
30099
30100 2007-09-29  Bruno Haible  <bruno@clisp.org>
30101
30102         * README: Add CVS checkout update instructions.
30103         Info from Bob Proulx <bob@proulx.com>.
30104
30105 2007-09-28  Eric Blake  <ebb9@byu.net>
30106
30107         Provide move-if-change.
30108         * build-aux/move-if-change: New file, based on best practice
30109         rather than any canonical upstream location.
30110
30111 2007-09-28  Jim Meyering  <jim@meyering.net>
30112
30113         Fix canonicalize loop-detection corner case.
30114         Do not attempt to stat the symlink values stored via seen_triple.
30115         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
30116         on linux-2.6.18, (but not 2.6.22).
30117         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
30118         triple_compare.  The former compares dev,ino,filename, while the latter
30119         would actually stat dirname(filename) when dev and ino were equal.
30120         * lib/hash-triple.c: Install <string.h>.
30121         (STREQ): Define.
30122         (triple_compare_ino_str): New function.
30123         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
30124
30125 2007-09-28  Eric Blake  <ebb9@byu.net>
30126
30127         Enforce that AC_REPLACE_FUNCS files exist.
30128         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
30129         override check for typos.
30130
30131         Fix test-closein on Solaris 10.
30132         * tests/test-closein.c (main): Don't assume stdin can be inherited
30133         closed on all systems.
30134         * tests/test-closein.sh: Likewise.
30135         Reported by Piotr Tarnowski.
30136
30137 2007-09-28  Jim Meyering  <jim@meyering.net>
30138
30139         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
30140
30141 2007-09-27  Jim Meyering  <jim@meyering.net>
30142
30143         canonicalize: Avoid a false-positive cycle failure.
30144         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
30145         Sort.  Remove cycle-check.
30146         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
30147         not cycle-check.h.
30148         (seen_triple): New function.
30149         (canonicalize_filename_mode): Use it instead of cycle-check.
30150         * tests/test-canonicalize.c: Add a test for this bug.
30151         * tests/test-canonicalize.sh: Set up and run the test.
30152
30153         New module, file-set, from coreutils.
30154         * modules/file-set: Define it.
30155         * lib/file-set.c, lib/file-set.h: Implement.
30156
30157         New module, hash-triple, from coreutils.
30158         * modules/hash-triple: Define it.
30159         * lib/hash-triple.c, lib/hash-triple.h: Implement.
30160
30161 2007-09-25  Eric Blake  <ebb9@byu.net>
30162
30163         Fix strerror on Interix.
30164         * lib/string_.h (strerror): Declare replacement.
30165         * doc/functions/strerror.texi (strerror): Document the Interix
30166         shortcoming.
30167         * modules/string (Makefile.am): Support new hooks.
30168         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
30169         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
30170         gl_FUNC_STRERROR_SEPARATE.
30171         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
30172         * lib/strerror.c (rpl_strerror): Provide replacement.
30173         * modules/strerror (Depends-on): Add string.
30174         (configure.ac): Detect use of module.
30175         * tests/test-strerror.c: New file.
30176         * modules/strerror-tests: New test module.
30177         * modules/argp (Depends-on): Add strerror.
30178         * modules/error (Depends-on): Likewise.
30179         Reported by Martin Koeppe.
30180
30181 2007-09-24  Bruno Haible  <bruno@clisp.org>
30182
30183         * README: Update git instructions.
30184
30185 2007-09-24  Eric Blake  <ebb9@byu.net>
30186
30187         Revert fpending breakage from 2007-09-08.
30188         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
30189         __fpending.c.
30190
30191 2007-09-24  Jim Meyering  <jim@meyering.net>
30192
30193         filenamecat.c: Add a test.
30194         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
30195         showing how the function works when DIR is the empty string.
30196
30197 2007-09-21  Simon Josefsson  <simon@josefsson.org>
30198
30199         * tests/test-canonicalize.sh: Turn on executable bit.
30200
30201 2007-09-19  Eric Blake  <ebb9@byu.net>
30202
30203         * README: Update CVS instructions.
30204
30205 2007-09-18  Bruno Haible  <bruno@clisp.org>
30206
30207         * modules/areadlink: New file.
30208         * lib/areadlink.h (areadlink): New declaration.
30209         * lib/areadlink.c: New file, based on lib/xreadlink.c.
30210
30211 2007-09-17  Jim Meyering  <jim@meyering.net>
30212
30213         * lib/savewd.c (ESTALE) [!defined]: Define.
30214         Reported to be required on Interix by Martin Koeppe.
30215
30216 2007-09-17  Bruno Haible  <bruno@clisp.org>
30217
30218         * gnulib-tool (func_version): Use $version.
30219
30220 2007-09-16  Bruno Haible  <bruno@clisp.org>
30221
30222         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
30223         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
30224         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
30225         Reported by Greg Schafer <gschafer@zip.com.au>.
30226
30227 2007-09-15  Bruno Haible  <bruno@clisp.org>
30228
30229         * gnulib-tool (sed): Try a little harder to make bash understand the
30230         alias.
30231         Reported by Bruce Korb <bruce.korb@gmail.com>.
30232
30233 2007-09-13  Eric Blake  <ebb9@byu.net>
30234
30235         * ChangeLog: Remove conflict markers.
30236
30237 2007-09-13  Simon Josefsson  <simon@josefsson.org>
30238
30239         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
30240         Reported by Bruno Haible <bruno@clisp.org>.
30241
30242 2007-09-12  Bruno Haible  <bruno@clisp.org>
30243
30244         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
30245         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
30246         is not defined.
30247
30248 2007-09-12  Eric Blake  <ebb9@byu.net>
30249
30250         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
30251         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
30252         Autoconf definition.
30253         * modules/euidaccess (Depends-on): Add extensions, for
30254         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
30255         * modules/fnmatch (Depends-on): Likewise.
30256         * modules/getaddrinfo (Depends-on): Likewise.
30257         * modules/getdelim (Depends-on): Likewise.
30258         * modules/getline (Depends-on): Likewise.
30259         * modules/getsubopt (Depends-on): Likewise.
30260         * modules/gettext (Depends-on): Likewise.
30261         * modules/group-member (Depends-on): Likewise.
30262         * modules/mbchar (Depends-on): Likewise.
30263         * modules/memmem (Depends-on): Likewise.
30264         * modules/mempcpy (Depends-on): Likewise.
30265         * modules/memrchr (Depends-on): Likewise.
30266         * modules/pagealign_alloc (Depends-on): Likewise.
30267         * modules/readutmp (Depends-on): Likewise.
30268         * modules/stpcpy (Depends-on): Likewise.
30269         * modules/stpncpy (Depends-on): Likewise.
30270         * modules/strchrnul (Depends-on): Likewise.
30271         * modules/strndup (Depends-on): Likewise.
30272         * modules/strsep (Depends-on): Likewise.
30273         * modules/strverscmp (Depends-on): Likewise.
30274         * modules/vasprintf (Depends-on): Likewise.
30275         * modules/wcwidth (Depends-on): Likewise.
30276         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
30277         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
30278         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
30279         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
30280         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
30281         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30282         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
30283         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
30284         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
30285         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30286         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30287         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
30288         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
30289         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
30290         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
30291         * m4/readutmp.m4 (gl_READUTMP): Likewise.
30292         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30293         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
30294         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30295         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
30296         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30297         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
30298         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
30299         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
30300         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
30301         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30302         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
30303         so that lock.m4 can be used in gettext without extensions module.
30304
30305 2007-09-11  Bruno Haible  <bruno@clisp.org>
30306
30307         * m4/isc-posix.m4: Remove file.
30308         Suggested by Eric Blake.
30309
30310 2007-09-11  Eric Blake  <ebb9@byu.net>
30311
30312         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
30313
30314 2007-09-10  Bruno Haible  <bruno@clisp.org>
30315
30316         * posix-modules: Fix typo in error message.
30317         Reported by Matt <mkraai@beckman.com>.
30318
30319 2007-09-09  Bruno Haible  <bruno@clisp.org>
30320
30321         * doc/functions/getdelim.texi: Update list of platforms lacking the
30322         function.
30323         * doc/functions/getline.texi: Likewise.
30324
30325 2007-09-09  Jim Meyering  <jim@meyering.net>
30326
30327         * lib/hash.c (hash_initialize): Detect calloc failure.
30328         Reported by Bruno Haible.
30329
30330 2007-09-09  Bruno Haible  <bruno@clisp.org>
30331
30332         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
30333         malloc or realloc fails.
30334
30335 2007-09-09  Bruno Haible  <bruno@clisp.org>
30336
30337         * modules/getcwd (Depends-on): Add malloc-posix.
30338         * modules/glob (Depends-on): Likewise.
30339         * modules/putenv (Depends-on): Likewise.
30340         * modules/strdup (Depends-on): Likewise.
30341         * modules/getdelim (Depends-on): Add realloc-posix.
30342         * modules/read-file (Depends-on): Likewise.
30343
30344 2007-09-09  Bruno Haible  <bruno@clisp.org>
30345
30346         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
30347         (gl_FUNC_MALLOC_POSIX): Require it.
30348         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
30349         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
30350         * modules/realloc (Files): Add m4/malloc.m4.
30351         * modules/calloc (Files): Likewise.
30352
30353 2007-09-09  Bruno Haible  <bruno@clisp.org>
30354
30355         * modules/malloc-posix: New file.
30356         * modules/malloc (Depends-on): Add malloc-posix.
30357         * lib/malloc.c: Include errno.h.
30358         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
30359         and a POSIX-compatible malloc into a single function. Set ENOMEM
30360         when returning NULL.
30361         * m4/malloc.m4: New file.
30362         * doc/functions/malloc.texi: Mention the malloc-posix module.
30363         * lib/stdlib_.h (malloc): New declaration.
30364         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30365         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
30366         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
30367         and HAVE_MALLOC_POSIX.
30368
30369 2007-09-09  Bruno Haible  <bruno@clisp.org>
30370
30371         * modules/realloc-posix: New file.
30372         * modules/realloc (Depends-on): Add realloc-posix.
30373         * lib/realloc.c: Include errno.h.
30374         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
30375         and a POSIX-compatible realloc into a single function. Set ENOMEM
30376         when returning NULL.
30377         * m4/realloc.m4: New file.
30378         * doc/functions/realloc.texi: Mention the realloc-posix module.
30379         * lib/stdlib_.h (realloc): New declaration.
30380         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30381         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
30382         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
30383         and HAVE_REALLOC_POSIX.
30384
30385 2007-09-09  Bruno Haible  <bruno@clisp.org>
30386
30387         * modules/calloc-posix: New file.
30388         * modules/calloc (Depends-on): Add calloc-posix.
30389         * lib/calloc.c: Include errno.h.
30390         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
30391         and a POSIX-compatible calloc into a single function. Set ENOMEM
30392         when returning NULL.
30393         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
30394         * doc/functions/calloc.texi: Mention the calloc-posix module.
30395         * lib/stdlib_.h (calloc): New declaration.
30396         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30397         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
30398         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
30399         and HAVE_CALLOC_POSIX.
30400
30401 2007-09-09  Bruno Haible  <bruno@clisp.org>
30402
30403         Allow for modules to show an arbitrary notice.
30404         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
30405         * gnulib-tool: New option --extract-notice.
30406         (func_usage): Document it.
30407         (sed_extract_prog): Update.
30408         (func_get_notice): New function.
30409         (func_modules_notice): New function.
30410         (func_import, func_create_testdir): Invoke it.
30411         Suggested by Jim Meyering.
30412
30413 2007-09-09  Bruno Haible  <bruno@clisp.org>
30414
30415         * gnulib-tool: New options --verbose, --quiet.
30416         (func_usage): Document them.
30417         (verbose): New variable.
30418         (func_execute_command): New function.
30419         (func_import): Don't show the module list and the file list if
30420         $verbose < 0.
30421         (func_create_testdir): Likewise. Use func_execute_command.
30422         (func_create_megatestdir): Use func_execute_command.
30423
30424 2007-09-08  Bruno Haible  <bruno@clisp.org>
30425
30426         * gnulib-tool (func_import): Prefer rsync over wget when available,
30427         for fetching the PO files.
30428
30429 2007-09-08  Bruno Haible  <bruno@clisp.org>
30430
30431         * posix-modules: New file. Portions copied from gnulib-tool.
30432         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
30433
30434 2007-09-08  Jim Meyering  <jim@meyering.net>
30435
30436         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
30437         * lib/fpending.h: Rename from __fpending.h.
30438         * lib/fpending.c: Rename from __fpending.c.
30439         Include "fpending.h", not "__fpending.h".
30440         * lib/__fpending.h, lib/__fpending.c: Remove files.
30441         * modules/fpending (Files): Reflect new file names.
30442         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
30443
30444 2007-09-08  Bruno Haible  <bruno@clisp.org>
30445
30446         * m4/inttypes-h.m4: Remove stub file.
30447
30448 2007-09-07  Simon Josefsson  <simon@josefsson.org>
30449
30450         * doc/headers/stdint.texi: Discuss #include_next issue.
30451
30452 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
30453
30454         * build-aux/bootstrap: Remove obsolete comment about wget --help.
30455
30456 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30457
30458         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
30459         in variable name.
30460
30461 2007-09-03  Jim Meyering  <jim@meyering.net>
30462
30463         New module: git-version-gen.
30464         * modules/git-version-gen: New file.
30465
30466         Import changes from coreutils for bootstrap script.
30467
30468         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
30469
30470         bootstrap: uses rsync to download the .po files
30471         * build-aux/bootstrap (po_download_command_format): New global.
30472         (download_po_files): Use rsync.
30473         (update_po_files): Don't remove .po files after download,
30474         so future rsync runs can take advantage of the copies.
30475
30476         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
30477
30478         Solve the unnecessary-.po-file-regeneration problem once and for all.
30479         * build-aux/bootstrap (download_po_files): New function, renamed from
30480         get_translations.  Now, downloads, but doesn't update LINGUAS.
30481         (update_po_files): New function.
30482
30483         bootstrap: Ignore more.
30484         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
30485         uniwidth to e.g., lib/.gitignore.
30486         (slurp): Handle the sys_stat_.h -> sys mapping, too.
30487
30488         * build-aux/bootstrap: New setting: vc_ignore.
30489         (insert_sorted_if_absent): Create $file if absent.
30490         Adapt to new, possibly empty, list: $vc_ignore.
30491
30492         bootstrap: generate more ignorable names
30493         * build-aux/bootstrap (slurp): When generating ignorable names,
30494         also map .sin to .sed, .gperf to .c, and .y to .c.
30495
30496 2007-09-03  Jim Meyering  <jim@meyering.net>
30497
30498         * build-aux/git-version-gen: New file, from coreutils.  For details, see
30499         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
30500
30501 2007-09-02  Bruno Haible  <bruno@clisp.org>
30502
30503         Fix mis-recognition of 'mcs' on QNX 6.
30504         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
30505         output contains the string "Mono".
30506         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
30507         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
30508
30509 2007-09-01  Bruno Haible  <bruno@clisp.org>
30510
30511         Fix collision between uniwidth/* and linebreak modules.
30512         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
30513         u32_width): Remove declarations.
30514         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
30515         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
30516         streq3, streq2, streq1, streq0): Remove functions.
30517         (STREQ): Remove macro.
30518         (is_cjk_encoding): Remove function.
30519         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
30520         (uc_width, u8_width, u16_width, u32_width): Remove functions.
30521         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
30522         * NEWS: Document the change.
30523
30524 2007-09-01  Bruno Haible  <bruno@clisp.org>
30525
30526         * lib/streq.h: Add double-inclusion guard.
30527
30528 2007-09-01  Karl Berry  <karl@gnu.org>
30529
30530         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
30531
30532 2007-08-28  Jim Meyering  <jim@meyering.net>
30533
30534         Rename mreadlink_with_size to areadlink_with_size.
30535         * NEWS: Document the change.
30536         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
30537         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
30538         * lib/mreadlink.h: Rename this to...
30539         * lib/areadlink.h: ...this.
30540         * modules/mreadlink-with-size: Rename this to...
30541         * modules/areadlink-with-size: ...this.
30542         * lib/canonicalize.c: Reflect the renaming.
30543         * modules/canonicalize: Likewise.
30544
30545 2007-08-26  Bruno Haible  <bruno@clisp.org>
30546
30547         * gnulib-tool (func_import): When deciding which files to remove,
30548         consider also dangling symbolic links.
30549         Reported by Eric Blake.
30550
30551 2007-08-26  Bruno Haible  <bruno@clisp.org>
30552
30553         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
30554
30555 2007-08-23  Simon Josefsson  <simon@josefsson.org>
30556
30557         * lib/readline.c: Don't include getline.h, the prototype is now
30558         found in stdio.h.
30559
30560 2007-08-23  Jim Meyering  <jim@meyering.net>
30561
30562         Getdelim touchup.
30563         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
30564         around the funlockfile call, since funlockfile never sets errno.
30565         Don't set errno upon failed realloc.
30566
30567 2007-08-22  Eric Blake  <ebb9@byu.net>
30568
30569         Getline touchups.
30570         * lib/getdelim.c (getdelim): Revert regression that required *n to
30571         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
30572         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
30573         getdelim, rather than whether implementation is missing.
30574         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
30575         * lib/stdio_.h (getline): Also declare if replacement is
30576         required.
30577         * doc/functions/getdelim.texi: New file.
30578         * doc/functions/getline.texi: Likewise.
30579         * doc/gnulib.texi (Function Substitutes): Add new files.
30580         Reported by Bruno Haible.
30581
30582 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
30583
30584         * users.txt: Add Guile.
30585
30586 2007-08-22  Eric Blake  <ebb9@byu.net>
30587
30588         * tests/test-getdelim.c (main): Use remove, not unlink.
30589         * tests/test-getline.c (main): Likewise.
30590
30591         Move getline and getdelim into stdio.h, per POSIX 200x.
30592         * modules/getline (Files): Remove getline.h.
30593         (Depends-on): Add stdio.
30594         (configure.ac): Add module indicator.
30595         * modules/getdelim (Files): Remove getdelim.h.
30596         (Depends-on): Add stdio.
30597         (configure.ac): Add module indicator.
30598         * modules/stdio (Makefile.am): Work with new indicators.
30599         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
30600         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
30601         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30602         * lib/getdelim.h: Delete.
30603         * lib/getline.h: Delete.
30604         * lib/stdio_.h (getdelim, getline): Declare.
30605         * modules/getdelim-tests: New module.
30606         * modules/getline-tests: Likewise.
30607         * tests/test-getdelim.c: New file.
30608         * tests/test-getline.c: Likewise.
30609         * NEWS: Document the change.
30610         * lib/getline.c: Update choice of header.
30611         * lib/csharpcomp.c: Likewise.
30612         * lib/getpass.c: Likewise.
30613         * lib/javacomp.c: Likewise.
30614         * lib/javaversion.c: Likewise.
30615         * lib/yesno.c: Likewise.
30616         * lib/getdelim.c: Likewise.
30617         (getdelim): Set errno on failure, and avoid memory leak.
30618
30619 2007-08-19  Bruno Haible  <bruno@clisp.org>
30620
30621         * modules/closein (Depends-on): Add freadahead.
30622         * lib/closein.c: Include freadahead.h.
30623         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
30624         is zero.
30625
30626 2007-08-19  Bruno Haible  <bruno@clisp.org>
30627
30628         * modules/freadahead-tests: New file.
30629         * tests/test-freadahead.sh: New file.
30630         * tests/test-freadahead.c: New file.
30631
30632         * modules/freadahead: New file.
30633         * lib/freadahead.h: New file.
30634         * lib/freadahead.c: New file.
30635         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
30636         fbufmode, fpurge, freadable, fwritable.
30637
30638 2007-08-19  Eric Blake  <ebb9@byu.net>
30639
30640         Test yesno in combination with closein.
30641         * lib/yesno.c (yesno): Document use of stdin.
30642         * modules/yesno-tests (Files): New module.
30643         * tests/test-yesno.c (main): New file.
30644         * tests/test-yesno.sh: Likewise.
30645
30646 2007-08-19  Bruno Haible  <bruno@clisp.org>
30647
30648         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
30649         * lib/fseeko.c (rpl_fseeko): Likewise.
30650         * lib/fseterr.c (fseterr): Likewise.
30651
30652 2007-08-19  Bruno Haible  <bruno@clisp.org>
30653
30654         * tests/test-lseek.c (main): Disable a test for BeOS.
30655         * doc/functions/lseek.texi: Document the BeOS bug.
30656
30657 2007-08-19  Bruno Haible  <bruno@clisp.org>
30658             Eric Blake  <ebb9@byu.net>
30659
30660         * lib/lseek.c: Include <sys/stat.h>.
30661         (rpl_lseek): Add workaround code also for Unix platforms.
30662         Needed for BeOS.
30663         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
30664         * doc/functions/lseek.texi: Document BeOS definiency.
30665
30666 2007-08-18  Bruno Haible  <bruno@clisp.org>
30667
30668         * modules/fstrcmp-tests: New file.
30669         * tests/test-fstrcmp.c: New file.
30670
30671 2007-08-18  Bruno Haible  <bruno@clisp.org>
30672
30673         * modules/fstrcmp: New file, from GNU gettext with modifications.
30674         * lib/fstrcmp.h: New file, from GNU gettext.
30675         * lib/fstrcmp.c: New file, from GNU gettext.
30676         * MODULES.html.sh (String handling): Add fstrcmp.
30677
30678 2007-08-18  Bruno Haible  <bruno@clisp.org>
30679
30680         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
30681         'bool'.
30682         (diag, compareseq): Remove const from the ctxt argument.
30683         (USE_HEURISTIC): Undefine at the end.
30684
30685 2007-08-18  Jim Meyering  <jim@meyering.net>
30686
30687         New file: lib/idcache.h
30688         * NEWS: Mention the addition.
30689         * modules/idcache (Files): Add lib/idcache.h
30690         * lib/idcache.c: Include "idcache.h".
30691         Don't include <sys/types.h>.
30692         Add a FIXME comment.
30693         Move file-scoped "static" declarations to the top.
30694         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
30695
30696 2007-08-17  Bruno Haible  <bruno@clisp.org>
30697         and Paul Eggert  <eggert@cs.ucla.edu>
30698
30699         * MODULES.html.sh: Add diffseq.
30700         * modules/diffseq: New file.
30701         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
30702         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
30703
30704 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30705
30706         Import changes from coreutils for bootstrap script.
30707
30708         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
30709
30710         * build-aux/bootstrap (slurp): Work even in environments where
30711         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
30712         current code does not slurp files whose names start with ".", and
30713         this looks like it might be a troublesome area.
30714
30715         2007-07-11  Jim Meyering  <jim@meyering.net>
30716
30717         If there's a GPL vN copyright comment, require that N == 3.
30718
30719         2007-07-08  Jim Meyering  <jim@meyering.net>
30720
30721         Run the coreutils-specific code only if tests/Makefile.am.in exists.
30722         * build-aux/bootstrap (mam_template): Move definition out of loop.
30723
30724         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
30725
30726         * build-aux/bootstrap (symlink_to_dir): Rename function from
30727         symlink_to_gnulib.  Add a directory parameter.  Update all
30728         callers.
30729         (cp_mark_as_generated): Also check for -- and link to -- files in
30730         gl/.
30731
30732         2007-07-08  Jim Meyering  <jim@meyering.net>
30733
30734         Adapt to deeper hierarchy in gnulib.
30735         * build-aux/bootstrap (symlink_to_dir): If the destination
30736         directory doesn't exist, create it. This is required at least for
30737         "lib/uniwidth/cjk.h".
30738
30739         2007-05-15  Jim Meyering  <jim@meyering.net>
30740
30741         * build-aux/bootstrap: Now that generated Makefile.am files
30742         are no longer under version control, they must be created at
30743         bootstrap time.
30744
30745 2007-08-14  Ben Pfaff  <blp@gnu.org>
30746
30747         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
30748
30749 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30750
30751         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
30752         given the changes below.
30753         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
30754         even on hosts that have padding bits beyond the supported 64.
30755
30756 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30757
30758         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
30759         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
30760         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
30761         depends on it.
30762         (xstrtol_error): Remove.
30763         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
30764         but with a different signature.
30765         (ATTRIBUTE_NORETURN, __attribute__): New macros.
30766         * lib/xstrtol-error.c: Include exitfail.h.
30767         (xstrtol_fatal): New function, with a different signature from the
30768         old xstrtol_error, so that the caller need not worry about passing
30769         in an exit status, or about storage management of the option argument.
30770         (xstrtol_error): Now a static function.  Redo signature to
30771         implement xstrtol_fatal.  Output the correct number of hyphens in
30772         front of the option so that the caller need not worry about
30773         storage management.
30774         (N_): New macro.
30775         (_): Remove; not used now.
30776         * modules/xstrtol: Depend on getopt.
30777         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
30778         of old STRTOL_FATAL_ERROR macro.
30779         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
30780         of test program.
30781         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
30782         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
30783
30784 2007-08-08  Eric Blake  <ebb9@byu.net>
30785
30786         * lib/xstrtol-error.c: Add missing include.
30787
30788         Move xstrtol messages into gnulib domain, when --pobase is used.
30789         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
30790         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
30791         * modules/xstrtol (Files): Distribute new file.
30792         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
30793         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
30794         * tests/test-xstrtol.c: ...into new file.
30795         * tests/test-xstrtoul.c: Also test xstrtoul.
30796         * tests/test-xstrtoimax.c: Also test xstrtoimax.
30797         * tests/test-xstrtoumax.c: Also test xstrtoumax.
30798         * tests/test-xstrtol.sh: Drive the tests.
30799         * tests/test-xstrtoimax.sh: Likewise.
30800         * tests/test-xstrtoumax.sh: Likewise.
30801         * modules/xstrtol-tests: New module.
30802         * modules/xstrtoimax-tests: Likewise.
30803         * modules/xstrtoumax-tests: Likewise.
30804
30805 2007-08-08  Jim Meyering  <jim@meyering.net>
30806
30807         New function: mfile_name_concat.
30808         * lib/filenamecat.c (mfile_name_concat): New function, just like
30809         file_name_concat, but return NULL upon failure rather than exiting
30810         with a diagnostic.
30811         * lib/filenamecat.h: Declare it.
30812
30813 2007-08-07  Bruno Haible  <bruno@clisp.org>
30814
30815         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
30816         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
30817         warning from gcc.
30818         Reported by Eric Blake.
30819
30820 2007-08-07  Simon Josefsson  <simon@josefsson.org>
30821
30822         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
30823         * modules/crypto/arcfour (License): Likewise.
30824         * modules/crypto/des-tests (License): Likewise.
30825         * modules/crypto/gc-arctwo-tests (License): Likewise.
30826         * modules/crypto/gc-des-tests (License): Likewise.
30827         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
30828         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
30829         * modules/crypto/gc-md2-tests (License): Likewise.
30830         * modules/crypto/gc-md4-tests (License): Likewise.
30831         * modules/crypto/gc-md5-tests (License): Likewise.
30832         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
30833         * modules/crypto/gc-rijndael-tests (License): Likewise.
30834         * modules/crypto/gc-sha1-tests (License): Likewise.
30835         * modules/crypto/gc-tests (License): Likewise.
30836         * modules/crypto/hmac-md5 (License): Likewise.
30837         * modules/crypto/hmac-sha1 (License): Likewise.
30838         * modules/crypto/md2-tests (License): Likewise.
30839         * modules/crypto/md4-tests (License): Likewise.
30840         * modules/crypto/md5 (License): Likewise.
30841         * modules/crypto/rijndael (License): Likewise.
30842         * modules/crypto/sha1 (License): Likewise.
30843         * modules/memxor (License): Likewise.
30844
30845 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
30846         and Bruno Haible  <bruno@clisp.org>
30847
30848         * NEWS: Describe interface changes to human, xstrtol.
30849         * lib/human.h: Include <xstrtol.h>.
30850         (human_options): Return enum strtol_error, not int.  Remove
30851         bool arg; take int * instead.
30852         * lib/human.c: Don't include "gettext.h".
30853         (_): Remove; no longer used.
30854         Don't include <xstrtol.h>, since human.h does it.
30855         (human_options): Adjust to abovementioned interface changes.
30856         Do not report error to stderr; that's now the caller's
30857         responsibility.
30858         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
30859         interface change.
30860         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
30861         Str, Argument_type_string.  All uses changed.  Put " argument"
30862         in diagnostics to make them clearer.  Change wording of suffix
30863         message for clarity.
30864         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
30865         Argument_type_string.
30866         (STRTOL_FATAL_WARN): Remove; no longer used.
30867         * modules/human (Depends-on): Remove gettext-h.
30868
30869 2007-08-06  Simon Josefsson  <simon@josefsson.org>
30870
30871         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
30872
30873 2007-07-31  Bruno Haible  <bruno@clisp.org>
30874
30875         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
30876         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
30877         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
30878
30879 2007-07-31  Bruno Haible  <bruno@clisp.org>
30880
30881         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
30882         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
30883
30884 2007-07-30  Bruno Haible  <bruno@clisp.org>
30885
30886         * modules/base64 (License): Use the synonymous term "LGPLv2+".
30887         * modules/c-ctype (License): Likewise.
30888         * modules/c-strcase (License): Likewise.
30889         * modules/check-version (License): Likewise.
30890         * modules/iconv (License): Likewise.
30891         * modules/iconv_open (License): Likewise.
30892         * modules/read-file (License): Likewise.
30893         * modules/striconv (License): Likewise.
30894         * modules/strverscmp (License): Likewise.
30895         * modules/vasprintf (License): Likewise.
30896         * modules/crypto/des (License): Likewise.
30897         * modules/crypto/gc (License): Likewise.
30898         * modules/crypto/gc-arcfour (License): Likewise.
30899         * modules/crypto/gc-arctwo (License): Likewise.
30900         * modules/crypto/gc-des (License): Likewise.
30901         * modules/crypto/gc-hmac-md5 (License): Likewise.
30902         * modules/crypto/gc-hmac-sha1 (License): Likewise.
30903         * modules/crypto/gc-md2 (License): Likewise.
30904         * modules/crypto/gc-md4 (License): Likewise.
30905         * modules/crypto/gc-md5 (License): Likewise.
30906         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
30907         * modules/crypto/gc-random (License): Likewise.
30908         * modules/crypto/gc-rijndael (License): Likewise.
30909         * modules/crypto/gc-sha1 (License): Likewise.
30910         * modules/crypto/md2 (License): Likewise.
30911         * modules/crypto/md4 (License): Likewise.
30912
30913 2007-07-30  Jim Meyering  <jim@meyering.net>
30914
30915         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
30916         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
30917         it has valid stat data.  This bug would cause du not to count the
30918         sizes of inaccessible directories.
30919         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
30920         in <http://bugzilla.redhat.com/250077>.
30921
30922 2007-07-25  Peter O'Gorman  <peter@pogma.com>
30923             Bruno Haible  <bruno@clisp.org>
30924
30925         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
30926         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
30927         #include_next, gives a diagnostic about it, but reports no error in
30928         the exit code.
30929         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
30930
30931 2007-07-24  Ben Pfaff  <blp@gnu.org>
30932
30933         Improve name: "count-one-bits" is better than "popcount".
30934         * MODULES.html.sh: Update name.
30935         * lib/popcount.h: Renamed lib/count-one-bits.h.
30936         (popcount): Renamed count_one_bits.
30937         (popcountl): Renamed count_one_bits_l.
30938         (popcountll): Renamed count_one_bits_ll.
30939         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
30940         * modules/popcount: Renamed module/count-one-bits.
30941         * modules/popcount-tests: Renamed module/count-one-bits-tests.
30942         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
30943
30944 2007-07-23  Ben Pfaff  <blp@gnu.org>
30945
30946         * lib/popcount.h (popcount32): Reduce size of constants, to allow
30947         better code generation, and add U to large constants to avoid
30948         warnings, in non-GCC case.
30949         Suggested by Bruno Haible.
30950
30951 2007-07-23  Ben Pfaff  <blp@gnu.org>
30952
30953         * lib/popcount.h: Use verify_true instead of if...abort.
30954         * modules/popcount: Depend on verify module.
30955         Suggested by Jim Meyering.
30956
30957 2007-07-23  Bruno Haible  <bruno@clisp.org>
30958
30959         * gnulib-tool (func_import): Create a .cvsignore file also when the
30960         directory is not yet in CVS but the toplevel directory is. When
30961         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
30962         Reported by Karl Berry.
30963
30964 2007-07-22  Ben Pfaff  <blp@gnu.org>
30965
30966         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
30967         case.
30968         Suggested by Eric Blake.
30969
30970 2007-07-22  Ben Pfaff  <blp@gnu.org>
30971
30972         New module: popcount.
30973         * MODULES.html.sh: Add popcount.
30974         * modules/popcount: New file.
30975         * modules/popcount-tests: New file.
30976         * tests/test-popcount.c: New file.
30977         * lib/popcount.h: New file.
30978         * m4/popcount.m4: New file.
30979
30980 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
30981
30982         * build-aux/announce-gen: Update to GPLv3.
30983
30984         * build-aux/config.guess: Update from config.
30985
30986 2007-07-21  Bruno Haible  <bruno@clisp.org>
30987
30988         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
30989         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
30990
30991 2007-07-20  Jim Meyering  <jim@meyering.net>
30992
30993         * check-module: Diagnose a self-dependency.
30994
30995 2007-07-19  Bruno Haible  <bruno@clisp.org>
30996
30997         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
30998         empty.
30999         Reported by Eric Blake.
31000
31001 2007-07-18  Bruno Haible  <bruno@clisp.org>
31002
31003         * gnulib-tool: New options --po-base, --po-domain.
31004         (func_usage): Document them.
31005         (pobase, po_domain): New variables.
31006         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
31007         DEFAULT_TEXT_DOMAIN.
31008         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
31009         (func_import): Consider pobase and po_domain. Create a po/ directory.
31010         (func_create_testdir): Set pobase and po_domain to empty.
31011         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
31012         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
31013
31014 2007-07-18  Bruno Haible  <bruno@clisp.org>
31015
31016         * gnulib-tool (func_get_automake_snippet): Synthesize also an
31017         EXTRA_DIST augmentation for files in build-aux/.
31018
31019 2007-07-16  Bruno Haible  <bruno@clisp.org>
31020
31021         * modules/lseek (License): Use the synonymous term "LGPLv2+".
31022         * modules/getdelim (License): Likewise.
31023
31024 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31025
31026         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
31027         * modules/d-type (License): Likewise.
31028         * modules/extensions (License): Likewise.
31029         * modules/fnmatch (License): Likewise.
31030         * modules/fseeko (License): Likewise.
31031         * modules/getaddrinfo (License): Likewise.
31032         * modules/getline (License): Likewise.
31033         * modules/getlogin_r (License): Likewise.
31034         * modules/getpass (License): Likewise.
31035         * modules/gettimeofday (License): Likewise.
31036         * modules/glob (License): Likewise.
31037         * modules/inet_ntop (License): Likewise.
31038         * modules/malloc (License): Likewise.
31039         * modules/malloca (License): Likewise.
31040         * modules/memmem (License): Likewise.
31041         * modules/mempcpy (License): Likewise.
31042         * modules/memset (License): Likewise.
31043         * modules/minmax (License): Likewise.
31044         * modules/mktime (License): Likewise.
31045         * modules/netinet_in (License): Likewise.
31046         * modules/pathmax (License): Likewise.
31047         * modules/poll (License): Likewise.
31048         * modules/regex (License): Likewise.
31049         * modules/snprintf (License): Likewise.
31050         * modules/stdbool (License): Likewise.
31051         * modules/stdint (License): Likewise.
31052         * modules/stdio (License): Likewise.
31053         * modules/strcase (License): Likewise.
31054         * modules/strcasestr (License): Likewise.
31055         * modules/strdup (License): Likewise.
31056         * modules/string (License): Likewise.
31057         * modules/strndup (License): Likewise.
31058         * modules/strnlen (License): Likewise.
31059         * modules/strpbrk (License): Likewise.
31060         * modules/strptime (License): Likewise.
31061         * modules/strsep (License): Likewise.
31062         * modules/sys_select (License): Likewise.
31063         * modules/sys_socket (License): Likewise.
31064         * modules/sys_stat (License): Likewise.
31065         * modules/sys_time (License): Likewise.
31066         * modules/time (License): Likewise.
31067         * modules/time_r (License): Likewise.
31068         * modules/timegm (License): Likewise.
31069         * modules/unistd (License): Likewise.
31070         * modules/vsnprintf (License): Likewise.
31071         * modules/wctype (License): Likewise.
31072
31073 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31074
31075         * modules/argz (License): LGPLv2+.
31076
31077 2007-07-15  Karl Berry  <karl@gnu.org>
31078
31079         * doc/gnulib.texi: revise node structure per new fdl.texi.
31080
31081 2007-07-14  Bruno Haible  <bruno@clisp.org>
31082
31083         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
31084         the output file.
31085         * lib/uniname/uninames.h: Regenerated.
31086
31087 2007-07-14  Karl Berry  <karl@gnu.org>
31088
31089         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
31090         omitting sectioning and index commands.
31091
31092 2007-07-13  Bruno Haible  <bruno@clisp.org>
31093
31094         New gnulib-tool option --more-symlinks.
31095         * gnulib-tool (func_usage): Document --more-symlinks.
31096         (do_copyrights): New variable.
31097         Recognize option --more-symlinks.
31098         (func_import): Don't add a copyright notice transform to
31099         sed_transform_lib_file if do_copyrights is empty.
31100
31101 2007-07-13  Bruno Haible  <bruno@clisp.org>
31102
31103         * lib/vasnprintf.c (decimal_point_char): Define also if
31104         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
31105         && !NEED_PRINTF_DIRECTIVE_A.
31106         Reported by Clemens Koller <clemens.koller@anagramm.de> via
31107         Gary V. Vaughan <gary@gnu.org>.
31108
31109 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
31110
31111         * lib/inttypes_.h: Undo previous change, since it was fixed
31112         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
31113
31114 2007-07-13  Bruno Haible  <bruno@clisp.org>
31115
31116         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
31117         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
31118
31119 2007-07-13  Jim Meyering  <jim@meyering.net>
31120
31121         df: Don't fail for Tru64's "file-on-file mount".
31122         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
31123         so we fall through and use statfs instead.  Details here:
31124         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
31125         Reported by Albert Chin.
31126
31127 2007-07-13  Bruno Haible  <bruno@clisp.org>
31128
31129         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
31130         * modules/configmake (License): Likewise.
31131         * modules/gettext (License): Likewise.
31132         * modules/gettext-h (License): Likewise.
31133         * modules/include_next (License): Likewise.
31134         * modules/link-warning (License): Likewise.
31135         * modules/localcharset (License): Likewise.
31136         * modules/localename (License): Likewise.
31137         * modules/lock (License): Likewise.
31138         * modules/relocatable-lib-lgpl (License): Likewise.
31139         * modules/size_max (License): Likewise.
31140         * modules/vasnprintf (License): Likewise.
31141         * modules/wchar (License): Likewise.
31142         * modules/xsize (License): Likewise.
31143
31144 2007-07-13  Bruno Haible  <bruno@clisp.org>
31145
31146         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
31147         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
31148
31149 2007-07-12  Bruno Haible  <bruno@clisp.org>
31150
31151         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
31152         in the modules files.
31153
31154 2007-07-11  Karl Berry  <karl@gnu.org>
31155
31156         * MODULES.html.sh (func_module): use
31157          sed -e '\|^'"${includefile}"'$|d'
31158          instead of /.../d, to avoid errors on $includefile's containing /.
31159
31160 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
31161
31162         * gnulib-tool (func_import): Avoid duplication of --avoid
31163         statements
31164         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
31165         names to `_' in variable names.
31166
31167 2007-07-10  Eric Blake  <ebb9@byu.net>
31168
31169         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
31170         * NEWS: Document this change.
31171
31172 2007-07-08  Bruno Haible  <bruno@clisp.org>
31173
31174         Update to Unicode 5.0.
31175         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
31176         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
31177         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
31178         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
31179         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
31180         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
31181         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
31182         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
31183         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
31184         U+10A3F, U+1D242..U+1D244.
31185         (nonspacing_table_ind): Update.
31186         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
31187         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
31188
31189 2007-07-08  Bruno Haible  <bruno@clisp.org>
31190
31191         Update to Unicode 5.0.
31192         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
31193         code transform. Extend the name index field of unicode_name_to_code and
31194         unicode_code_to_name from 16 to 24 bits.
31195         * lib/uniname/uniname.c (unicode_character_name,
31196         unicode_name_character): Add the range 0x12xxx to the code transform.
31197         * lib/uniname/uninames.h: Regenerated.
31198         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
31199
31200 2007-07-07  Bruno Haible  <bruno@clisp.org>
31201
31202         * modules/wcwidth-tests: New file.
31203         * tests/test-wcwidth.c: New file.
31204
31205         Work around MacOS X wcwidth() bug.
31206         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
31207         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
31208         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
31209         original wcwidth in non-UTF-8 locales.
31210         * modules/wcwidth (Depends-on): Add localcharset, streq,
31211         uniwidth/width.
31212         * doc/functions/wcwidth.texi: Update.
31213
31214 2007-07-07  Bruno Haible  <bruno@clisp.org>
31215
31216         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
31217         (wcwidth): New declaration.
31218         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
31219         macros.
31220         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
31221         here. Prepare for creating <wchar.h> unconditionally.
31222         * modules/wchar (Depends-on): Add link-warning.
31223         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
31224         REPLACE_WCWIDTH, and GL_LINK_WARNING.
31225         * lib/wcwidth.h: Remove file.
31226         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
31227         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
31228         * modules/wcwidth (Files): Remove lib/wcwidth.h.
31229         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
31230         (Include): Replace wcwidth.h with <wchar.h>.
31231         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
31232         * lib/mbchar.h: Don't include wcwidth.h.
31233         * lib/mbswidth.c: Likewise.
31234         * NEWS: Mention the change.
31235
31236 2007-07-07  Bruno Haible  <bruno@clisp.org>
31237
31238         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
31239         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
31240         definition with an external declaration.
31241         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
31242         defined as a function. Remove AC_C_INLINE requirement.
31243         * modules/wcwidth (Files): Add lib/wcwidth.c.
31244         (Makefile.am): Remove redundant statement.
31245
31246 2007-07-07  Bruno Haible  <bruno@clisp.org>
31247
31248         * MODULES.html.sh (Unicode string functions): Add the new modules.
31249
31250         * tests/uniwidth/test-u32-strwidth.c: New file.
31251         * modules/uniwidth/u32-strwidth-tests: New file.
31252
31253         * lib/uniwidth/u32-strwidth.c: New file.
31254         * modules/uniwidth/u32-strwidth: New file.
31255
31256         * tests/uniwidth/test-u16-strwidth.c: New file.
31257         * modules/uniwidth/u16-strwidth-tests: New file.
31258
31259         * lib/uniwidth/u16-strwidth.c: New file.
31260         * modules/uniwidth/u16-strwidth: New file.
31261
31262         * tests/uniwidth/test-u8-strwidth.c: New file.
31263         * modules/uniwidth/u8-strwidth-tests: New file.
31264
31265         * lib/uniwidth/u8-strwidth.c: New file.
31266         * modules/uniwidth/u8-strwidth: New file.
31267
31268         * tests/uniwidth/test-u32-width.c: New file.
31269         * modules/uniwidth/u32-width-tests: New file.
31270
31271         * lib/uniwidth/u32-width.c: New file.
31272         * modules/uniwidth/u32-width: New file.
31273
31274         * tests/uniwidth/test-u16-width.c: New file.
31275         * modules/uniwidth/u16-width-tests: New file.
31276
31277         * lib/uniwidth/u16-width.c: New file.
31278         * modules/uniwidth/u16-width: New file.
31279
31280         * tests/uniwidth/test-u8-width.c: New file.
31281         * modules/uniwidth/u8-width-tests: New file.
31282
31283         * lib/uniwidth/u8-width.c: New file.
31284         * modules/uniwidth/u8-width: New file.
31285
31286         * tests/uniwidth/test-uc_width.c: New file.
31287         * modules/uniwidth/width-tests: New file.
31288
31289         * lib/uniwidth/width.c: New file, from GNU libiconv.
31290         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
31291         * modules/uniwidth/width: New file.
31292
31293         * lib/uniwidth.h: New file, from GNU libiconv.
31294         * modules/uniwidth/base: New file.
31295
31296 2007-07-07  Bruno Haible  <bruno@clisp.org>
31297
31298         * lib/uniname.h: New file, from GNU gettext.
31299         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
31300         * lib/uniname/uninames.h: New file, from GNU gettext.
31301         * lib/uniname/uniname.c: New file, from GNU gettext.
31302         * tests/uniname/test-uninames.sh: New file.
31303         * tests/uniname/test-uninames.c: New file, from GNU gettext.
31304         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
31305         * modules/uniname/base: New file.
31306         * modules/uniname/uniname: New file.
31307         * modules/uniname/uniname-tests: New file.
31308         * MODULES.html.sh (Unicode string functions): Add the new modules.
31309
31310 2007-07-06  Bruno Haible  <bruno@clisp.org>
31311
31312         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
31313
31314 2007-07-06  Bruno Haible  <bruno@clisp.org>
31315
31316         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
31317         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
31318         includes <cygwin/sys_time.h> which includes <sys/select.h> which
31319         include <sys/time.h>.
31320         Reported by Eric Blake.
31321
31322 2007-07-06  Eric Blake  <ebb9@byu.net>
31323
31324         Fix testing canonicalize on cygwin.
31325         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
31326         Revert patch from 2007-06-19.
31327         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
31328         canonicalize module is also in use.
31329         * tests/test-canonicalize.c: New file.
31330         * tests/test-canonicalize.sh: Likewise.
31331         * modules/canonicalize-tests: Likewise.
31332
31333 2007-07-06  Jim Meyering  <jim@meyering.net>
31334
31335         * lib/getugroups.c (getugroups): Detect getgrent failure.
31336         Adjust comment to reflect reality: this function may return -1.
31337
31338 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
31339
31340         * build-aux/bootstrap (TP_URL,get_translations): Update to use
31341         the new TP address.
31342         (usage): Fix typo
31343         (gnulib_mk): New variable.
31344
31345 2007-07-05  Jim Meyering  <jim@meyering.net>
31346
31347         Don't let endgrent clobber errno, no matter how improbable.
31348         * lib/getugroups.c (getugroups): Save and restore errno around
31349         endgrent call.
31350
31351         Close the group DB even when failing with 2^31 or more members.
31352         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
31353
31354 2007-07-04  Jim Meyering  <jim@meyering.net>
31355
31356         * lib/getugroups.h: New file.
31357         * lib/getugroups.c: Include "getugroups.h".
31358         Remove uses of "register" keyword.
31359         Move local variable, "cp", down into scope where used.
31360         Give "username" parameter the "const" attribute.
31361         * modules/getugroups (Files): Add lib/getugroups.h
31362
31363 2007-07-04  Karl Berry  <karl@gnu.org>
31364
31365         * MODULES.html.sh (func_all_modules): Complete rename of
31366         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
31367
31368 2007-07-02  Bruno Haible  <bruno@clisp.org>
31369
31370         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
31371         mode, when inttypes.h comes from gnulib.
31372         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
31373
31374 2007-07-02  Simon Josefsson  <simon@josefsson.org>
31375
31376         * NEWS: Mention lgpl module name change.
31377
31378         * modules/lgpl-2.1: Renamed from lgpl.
31379
31380         * NEWS: Mention gpl module name change.
31381
31382         * modules/gpl-3.0: New file, based on gpl-2.0.
31383
31384         * modules/gpl-2.0: Renamed from gpl.
31385
31386         * modules/gpl: Fix filename, doc/gpl.texi is now found at
31387         doc/gpl-2.0.texi.
31388
31389 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
31390
31391         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
31392         #define __STDC_LIMIT_MACROS temporarily while including
31393         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
31394         Problem reported by Joel E. Denny in
31395         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
31396
31397 2007-07-01  Bruno Haible  <bruno@clisp.org>
31398
31399         * lib/unistdio.h: New file.
31400         * lib/unistdio/u-asnprintf.h: New file.
31401         * lib/unistdio/u-asprintf.h: New file.
31402         * lib/unistdio/u-printf-args.c: New file.
31403         * lib/unistdio/u-printf-args.h: New file.
31404         * lib/unistdio/u-printf-parse.h: New file.
31405         * lib/unistdio/u-snprintf.h: New file.
31406         * lib/unistdio/u-sprintf.h: New file.
31407         * lib/unistdio/u-vasprintf.h: New file.
31408         * lib/unistdio/u-vsnprintf.h: New file.
31409         * lib/unistdio/u-vsprintf.h: New file.
31410         * lib/unistdio/ulc-asnprintf.c: New file.
31411         * lib/unistdio/ulc-asprintf.c: New file.
31412         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
31413         * lib/unistdio/ulc-printf-parse.c: New file.
31414         * lib/unistdio/ulc-snprintf.c: New file.
31415         * lib/unistdio/ulc-sprintf.c: New file.
31416         * lib/unistdio/ulc-vasnprintf.c: New file.
31417         * lib/unistdio/ulc-vasprintf.c: New file.
31418         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
31419         * lib/unistdio/ulc-vsnprintf.c: New file.
31420         * lib/unistdio/ulc-vsprintf.c: New file.
31421         * lib/unistdio/u8-asnprintf.c: New file.
31422         * lib/unistdio/u8-asprintf.c: New file.
31423         * lib/unistdio/u8-printf-parse.c: New file.
31424         * lib/unistdio/u8-snprintf.c: New file.
31425         * lib/unistdio/u8-sprintf.c: New file.
31426         * lib/unistdio/u8-vasnprintf.c: New file.
31427         * lib/unistdio/u8-vasprintf.c: New file.
31428         * lib/unistdio/u8-vsnprintf.c: New file.
31429         * lib/unistdio/u8-vsprintf.c: New file.
31430         * lib/unistdio/u8-u8-asnprintf.c: New file.
31431         * lib/unistdio/u8-u8-asprintf.c: New file.
31432         * lib/unistdio/u8-u8-snprintf.c: New file.
31433         * lib/unistdio/u8-u8-sprintf.c: New file.
31434         * lib/unistdio/u8-u8-vasnprintf.c: New file.
31435         * lib/unistdio/u8-u8-vasprintf.c: New file.
31436         * lib/unistdio/u8-u8-vsnprintf.c: New file.
31437         * lib/unistdio/u8-u8-vsprintf.c: New file.
31438         * lib/unistdio/u16-asnprintf.c: New file.
31439         * lib/unistdio/u16-asprintf.c: New file.
31440         * lib/unistdio/u16-printf-parse.c: New file.
31441         * lib/unistdio/u16-snprintf.c: New file.
31442         * lib/unistdio/u16-sprintf.c: New file.
31443         * lib/unistdio/u16-vasnprintf.c: New file.
31444         * lib/unistdio/u16-vasprintf.c: New file.
31445         * lib/unistdio/u16-vsnprintf.c: New file.
31446         * lib/unistdio/u16-vsprintf.c: New file.
31447         * lib/unistdio/u16-u16-asnprintf.c: New file.
31448         * lib/unistdio/u16-u16-asprintf.c: New file.
31449         * lib/unistdio/u16-u16-snprintf.c: New file.
31450         * lib/unistdio/u16-u16-sprintf.c: New file.
31451         * lib/unistdio/u16-u16-vasnprintf.c: New file.
31452         * lib/unistdio/u16-u16-vasprintf.c: New file.
31453         * lib/unistdio/u16-u16-vsnprintf.c: New file.
31454         * lib/unistdio/u16-u16-vsprintf.c: New file.
31455         * lib/unistdio/u32-asnprintf.c: New file.
31456         * lib/unistdio/u32-asprintf.c: New file.
31457         * lib/unistdio/u32-printf-parse.c: New file.
31458         * lib/unistdio/u32-snprintf.c: New file.
31459         * lib/unistdio/u32-sprintf.c: New file.
31460         * lib/unistdio/u32-vasnprintf.c: New file.
31461         * lib/unistdio/u32-vasprintf.c: New file.
31462         * lib/unistdio/u32-vsnprintf.c: New file.
31463         * lib/unistdio/u32-vsprintf.c: New file.
31464         * lib/unistdio/u32-u32-asnprintf.c: New file.
31465         * lib/unistdio/u32-u32-asprintf.c: New file.
31466         * lib/unistdio/u32-u32-snprintf.c: New file.
31467         * lib/unistdio/u32-u32-sprintf.c: New file.
31468         * lib/unistdio/u32-u32-vasnprintf.c: New file.
31469         * lib/unistdio/u32-u32-vasprintf.c: New file.
31470         * lib/unistdio/u32-u32-vsnprintf.c: New file.
31471         * lib/unistdio/u32-u32-vsprintf.c: New file.
31472         * tests/unistdio/test-ulc-asnprintf1.c: New file.
31473         * tests/unistdio/test-ulc-asnprintf1.h: New file.
31474         * tests/unistdio/test-ulc-printf1.h: New file.
31475         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
31476         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
31477         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
31478         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
31479         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
31480         * tests/unistdio/test-ulc-vasprintf1.c: New file.
31481         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
31482         * tests/unistdio/test-ulc-vsprintf1.c: New file.
31483         * tests/unistdio/test-u8-asnprintf1.c: New file.
31484         * tests/unistdio/test-u8-asnprintf1.h: New file.
31485         * tests/unistdio/test-u8-printf1.h: New file.
31486         * tests/unistdio/test-u8-vasnprintf1.c: New file.
31487         * tests/unistdio/test-u8-vasnprintf2.c: New file.
31488         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
31489         * tests/unistdio/test-u8-vasnprintf3.c: New file.
31490         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
31491         * tests/unistdio/test-u8-vasprintf1.c: New file.
31492         * tests/unistdio/test-u8-vsnprintf1.c: New file.
31493         * tests/unistdio/test-u8-vsprintf1.c: New file.
31494         * tests/unistdio/test-u16-asnprintf1.c: New file.
31495         * tests/unistdio/test-u16-asnprintf1.h: New file.
31496         * tests/unistdio/test-u16-printf1.h: New file.
31497         * tests/unistdio/test-u16-vasnprintf1.c: New file.
31498         * tests/unistdio/test-u16-vasnprintf2.c: New file.
31499         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
31500         * tests/unistdio/test-u16-vasnprintf3.c: New file.
31501         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
31502         * tests/unistdio/test-u16-vasprintf1.c: New file.
31503         * tests/unistdio/test-u16-vsnprintf1.c: New file.
31504         * tests/unistdio/test-u16-vsprintf1.c: New file.
31505         * tests/unistdio/test-u32-asnprintf1.c: New file.
31506         * tests/unistdio/test-u32-asnprintf1.h: New file.
31507         * tests/unistdio/test-u32-printf1.h: New file.
31508         * tests/unistdio/test-u32-vasnprintf1.c: New file.
31509         * tests/unistdio/test-u32-vasnprintf2.c: New file.
31510         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
31511         * tests/unistdio/test-u32-vasnprintf3.c: New file.
31512         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
31513         * tests/unistdio/test-u32-vasprintf1.c: New file.
31514         * tests/unistdio/test-u32-vsnprintf1.c: New file.
31515         * tests/unistdio/test-u32-vsprintf1.c: New file.
31516         * modules/unistdio/base: New file.
31517         * modules/unistdio/u-printf-args: New file.
31518         * modules/unistdio/ulc-asnprintf: New file.
31519         * modules/unistdio/ulc-asprintf: New file.
31520         * modules/unistdio/ulc-fprintf: New file.
31521         * modules/unistdio/ulc-printf-parse: New file.
31522         * modules/unistdio/ulc-snprintf: New file.
31523         * modules/unistdio/ulc-sprintf: New file.
31524         * modules/unistdio/ulc-vasnprintf: New file.
31525         * modules/unistdio/ulc-vasprintf: New file.
31526         * modules/unistdio/ulc-vfprintf: New file.
31527         * modules/unistdio/ulc-vsnprintf: New file.
31528         * modules/unistdio/ulc-vsprintf: New file.
31529         * modules/unistdio/u8-asnprintf: New file.
31530         * modules/unistdio/u8-asprintf: New file.
31531         * modules/unistdio/u8-printf-parse: New file.
31532         * modules/unistdio/u8-snprintf: New file.
31533         * modules/unistdio/u8-sprintf: New file.
31534         * modules/unistdio/u8-vasnprintf: New file.
31535         * modules/unistdio/u8-vasprintf: New file.
31536         * modules/unistdio/u8-vsnprintf: New file.
31537         * modules/unistdio/u8-vsprintf: New file.
31538         * modules/unistdio/u8-u8-asnprintf: New file.
31539         * modules/unistdio/u8-u8-asprintf: New file.
31540         * modules/unistdio/u8-u8-snprintf: New file.
31541         * modules/unistdio/u8-u8-sprintf: New file.
31542         * modules/unistdio/u8-u8-vasnprintf: New file.
31543         * modules/unistdio/u8-u8-vasprintf: New file.
31544         * modules/unistdio/u8-u8-vsnprintf: New file.
31545         * modules/unistdio/u8-u8-vsprintf: New file.
31546         * modules/unistdio/u16-asnprintf: New file.
31547         * modules/unistdio/u16-asprintf: New file.
31548         * modules/unistdio/u16-printf-parse: New file.
31549         * modules/unistdio/u16-snprintf: New file.
31550         * modules/unistdio/u16-sprintf: New file.
31551         * modules/unistdio/u16-vasnprintf: New file.
31552         * modules/unistdio/u16-vasprintf: New file.
31553         * modules/unistdio/u16-vsnprintf: New file.
31554         * modules/unistdio/u16-vsprintf: New file.
31555         * modules/unistdio/u16-u16-asnprintf: New file.
31556         * modules/unistdio/u16-u16-asprintf: New file.
31557         * modules/unistdio/u16-u16-snprintf: New file.
31558         * modules/unistdio/u16-u16-sprintf: New file.
31559         * modules/unistdio/u16-u16-vasnprintf: New file.
31560         * modules/unistdio/u16-u16-vasprintf: New file.
31561         * modules/unistdio/u16-u16-vsnprintf: New file.
31562         * modules/unistdio/u16-u16-vsprintf: New file.
31563         * modules/unistdio/u32-asnprintf: New file.
31564         * modules/unistdio/u32-asprintf: New file.
31565         * modules/unistdio/u32-printf-parse: New file.
31566         * modules/unistdio/u32-snprintf: New file.
31567         * modules/unistdio/u32-sprintf: New file.
31568         * modules/unistdio/u32-vasnprintf: New file.
31569         * modules/unistdio/u32-vasprintf: New file.
31570         * modules/unistdio/u32-vsnprintf: New file.
31571         * modules/unistdio/u32-vsprintf: New file.
31572         * modules/unistdio/u32-u32-asnprintf: New file.
31573         * modules/unistdio/u32-u32-asprintf: New file.
31574         * modules/unistdio/u32-u32-snprintf: New file.
31575         * modules/unistdio/u32-u32-sprintf: New file.
31576         * modules/unistdio/u32-u32-vasnprintf: New file.
31577         * modules/unistdio/u32-u32-vasprintf: New file.
31578         * modules/unistdio/u32-u32-vsnprintf: New file.
31579         * modules/unistdio/u32-u32-vsprintf: New file.
31580         * modules/unistdio/ulc-asnprintf-tests: New file.
31581         * modules/unistdio/ulc-vasnprintf-tests: New file.
31582         * modules/unistdio/ulc-vasprintf-tests: New file.
31583         * modules/unistdio/ulc-vsnprintf-tests: New file.
31584         * modules/unistdio/ulc-vsprintf-tests: New file.
31585         * modules/unistdio/u8-asnprintf-tests: New file.
31586         * modules/unistdio/u8-vasnprintf-tests: New file.
31587         * modules/unistdio/u8-vasprintf-tests: New file.
31588         * modules/unistdio/u8-vsnprintf-tests: New file.
31589         * modules/unistdio/u8-vsprintf-tests: New file.
31590         * modules/unistdio/u16-asnprintf-tests: New file.
31591         * modules/unistdio/u16-vasnprintf-tests: New file.
31592         * modules/unistdio/u16-vasprintf-tests: New file.
31593         * modules/unistdio/u16-vsnprintf-tests: New file.
31594         * modules/unistdio/u16-vsprintf-tests: New file.
31595         * modules/unistdio/u32-asnprintf-tests: New file.
31596         * modules/unistdio/u32-vasnprintf-tests: New file.
31597         * modules/unistdio/u32-vasprintf-tests: New file.
31598         * modules/unistdio/u32-vsnprintf-tests: New file.
31599         * modules/unistdio/u32-vsprintf-tests: New file.
31600         * MODULES.html.sh (Unicode string functions): Add the new modules.
31601
31602 2007-07-01  Bruno Haible  <bruno@clisp.org>
31603
31604         * lib/sprintf.c (sprintf): Limit the available length estimation,
31605         to avoid address wraparound.
31606         * lib/vsprintf.c (vsprintf): Likewise.
31607         * modules/sprintf-posix (Dependencies): Add stdint.
31608         * modules/vsprintf-posix (Dependencies): Likewise.
31609
31610 2007-07-01  Bruno Haible  <bruno@clisp.org>
31611
31612         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
31613         Windows PATH as well. Conservative double-quoting. Comments.
31614
31615 2007-07-01  Bruno Haible  <bruno@clisp.org>
31616             Eric Blake  <ebb9@byu.net>
31617             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31618
31619         * gnulib-tool (self_abspathname): Fix algorithm to cope with
31620         empty components in $PATH, denoting '.'.
31621
31622 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31623
31624         * gnulib-tool: Fix indentation.
31625         (func_create_megatestdir): Likewise.
31626         Report by Bruno Haible.
31627
31628 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31629
31630         Sync from Automake.
31631         * build-aux/gnupload: Fix shell portability issues with for loops.
31632         Report by Karl Berry.
31633
31634 2007-06-29  Simon Josefsson  <simon@josefsson.org>
31635
31636         * build-aux/maint.mk (POURL): Use translationproject.org.
31637
31638 2007-06-27  Simon Josefsson  <simon@josefsson.org>
31639             Bruno Haible  <bruno@clisp.org>
31640
31641         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
31642         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
31643         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
31644         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
31645         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
31646
31647 2007-06-27  Bruno Haible  <bruno@clisp.org>
31648
31649         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
31650         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
31651
31652 2007-06-26  Karl Berry  <karl@gnu.org>
31653
31654         * MODULES.html.sh: remove xreadlink-with-size.
31655
31656 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
31657
31658         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
31659         method that I hope also handles the double-include problem noted
31660         by Bruno Haible in
31661         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
31662
31663 2007-06-23  Bruno Haible  <bruno@clisp.org>
31664
31665         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31666         Don't let the 'mostlyclean' target fail if the last subdirectory could
31667         not be removed.
31668         Reported by Karl Berry.
31669
31670 2007-06-23  Bruno Haible  <bruno@clisp.org>
31671
31672         * gnulib-tool (echo): Add a speedier workaround for ksh.
31673         * tests/test-echo.sh: Likewise.
31674
31675 2007-06-23  Bruno Haible  <bruno@clisp.org>
31676
31677         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
31678         * tests/test-echo.sh: Likewise.
31679
31680 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31681
31682         * gnulib-tool (IFS): Initialize early, so we don't set it to
31683         empty later.
31684         (self_abspathname): Rewrite algorithm to set it, reindent.
31685         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
31686         (func_create_megatestdir): Merge some sed scripts.
31687
31688 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
31689
31690         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
31691         exposed by Sun Studio 11 cc on Solaris 8.
31692
31693 2007-06-22  Bruno Haible  <bruno@clisp.org>
31694
31695         * gnulib-tool (echo): Ensure the echo primitive does not interpret
31696         backslashes.
31697         * tests/test-echo.sh: New file.
31698
31699 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31700
31701         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
31702         simplify `sed_replace_build_aux' scripts, they are portable but
31703         echoing them with `echo' is not.
31704         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
31705
31706 2007-06-21  Karl Berry  <karl@gnu.org>
31707
31708         * config/srclist.txt: guess we can't handle the licenses via
31709         srclist at the moment.
31710
31711 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
31712
31713         * MODULES.html.sh: Add include_next.
31714         * modules/include_next: New file.
31715
31716 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
31717
31718         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
31719         INCLUDE_NEXT.
31720         (gl_CHECK_NEXT_HEADERS): New macro.
31721         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
31722         the obsolescent gl_ABSOLUTE_HEADER.
31723         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
31724         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
31725         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
31726         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31727         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31728         * m4/math_h.m4 (gl_MATH_H): Likewise.
31729         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
31730         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
31731         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
31732         * m4/stdint.m4 (gl_STDINT_H): Likewise.
31733         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
31734         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
31735         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
31736         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31737         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
31738         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
31739         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
31740         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
31741         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
31742         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
31743         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31744         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31745         * m4/inttypes.m4 (gl_INTTYPES_H): Define
31746         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
31747         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
31748         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
31749         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
31750         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
31751         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
31752         * lib/float_.h: Likewise.
31753         * lib/inttypes_.h: Likewise.
31754         * lib/math_.h: Likewise.
31755         * lib/search_.h: Likewise.
31756         * lib/signal_.h: Likewise.
31757         * lib/stdint_.h: Likewise.
31758         * lib/stdio_.h: Likewise.
31759         * lib/stdlib_.h: Likewise.
31760         * lib/string_.h: Likewise.
31761         * lib/sys_stat_.h: Likewise.
31762         * lib/sys_time_.h: Likewise.
31763         * lib/time_.h: Likewise.
31764         * lib/unistd_.h: Likewise.
31765         * lib/wchar_.h: Likewise.
31766         * lib/wctype_.h: Likewise.
31767         * lib/dirent_.h: Likewise.
31768         * lib/iconv_.h: Likewise.
31769         * lib/locale_.h: Likewise.
31770         * lib/netinet_in_.h: Likewise.
31771         * lib/sys_select_.h: Likewise.
31772         * lib/sys_socket_.h: Likewise.
31773         * lib/sysexits_.h: Likewise.
31774         * modules/fcntl (Depends-on): Depend on include_next, not
31775         absolute_header.
31776         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
31777         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
31778         * modules/fchdir: Likewise.
31779         * modules/float: Likewise.
31780         * modules/iconv_open: Likewise.
31781         * modules/inttypes: Likewise.
31782         * modules/locale: Likewise.
31783         * modules/math: Likewise.
31784         * modules/netinet_in: Likewise.
31785         * modules/search: Likewise.
31786         * modules/signal: Likewise.
31787         * modules/stdint: Likewise.
31788         * modules/stdio: Likewise.
31789         * modules/stdlib: Likewise.
31790         * modules/string: Likewise.
31791         * modules/sys_select: Likewise.
31792         * modules/sys_socket: Likewise.
31793         * modules/sys_stat: Likewise.
31794         * modules/sys_time: Likewise.
31795         * modules/sysexits: Likewise.
31796         * modules/time: Likewise.
31797         * modules/unistd: Likewise.
31798         * modules/wchar: Likewise.
31799         * modules/wctype: Likewise.
31800         * modules/sys_stat: Change maintainer to "all".
31801         * modules/unistd: Likewise.
31802
31803 2007-06-20  Karl Berry  <karl@gnu.org>
31804
31805         * config/srclist.txt: track www changes in license files.
31806
31807 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
31808
31809         * build-aux/bootstrap: Remove stray dot.
31810         Make sure build_aux settings are honored when linking
31811         gnulib_extra_files.
31812
31813 2007-06-19  Eric Blake  <ebb9@byu.net>
31814
31815         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
31816         Allow compilation on cygwin.
31817
31818 2007-06-19  Jim Meyering  <jim@meyering.net>
31819
31820         xreadlink-with-size: Remove module.  No longer used.
31821         Ex-callers now use xreadlink or mreadlink-with-size.
31822         * modules/xreadlink-with-size: Remove module.
31823         * lib/xreadlink-with-size.c: Remove file.
31824         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
31825         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
31826         just before the function definition *is* accurate.
31827
31828         Eliminate one way canonicalize_filename_mode could exit.
31829         * lib/canonicalize.c (canonicalize_filename_mode):
31830         Use mreadlink_with_size, not xreadlink_with_size.
31831
31832 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
31833
31834         Detect porting problems to FreeBSD/arm, which has time_t wider than
31835         long int.  Original problem reported for GNU diff by Xin Li in
31836         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
31837         * modules/getdate (Depends-on): Add intprops, verify.
31838         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
31839         is an integer type no wider than long int.
31840
31841 2007-06-18  Jim Meyering  <jim@meyering.net>
31842
31843         New module: mreadlink-with-size.
31844         * MODULES.html.sh: Add mreadlink-with-size.
31845         * modules/mreadlink-with-size: New module
31846         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
31847         not xreadlink-with-size.
31848         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
31849
31850 2007-06-16  Bruno Haible  <bruno@clisp.org>
31851
31852         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
31853         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
31854         Reported by Gary V. Vaughan <gary@gnu.org>.
31855
31856 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
31857
31858         Revamp lchown so that it lives in unistd.h where it belongs.
31859         * lib/lchown.h: Remove.
31860         * lib/dirchownmod.c: Don't include lib/lchown.h.
31861         * lib/fchownat.c: Likewise.
31862         * lib/openat.c: Likewise.
31863         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
31864         does not follow symlinks.
31865         (EOPNOTSUPP): Define if not defined.
31866         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
31867         is defined to 0.
31868         (lchown): New decl.
31869         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
31870         Do not check for lchown decl.
31871         Set REPLACE_LCHOWN.
31872         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
31873         REPLACE_LCHOWN.
31874         * modules/chown: Make it clear it follows symlinks.
31875         * modules/lchown: Make it clear it doesn't follow symlinks.
31876         (Files): Remove lib/lchown.h
31877         (Depends-on): Add unistd.
31878         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
31879         (Include): Include <unistd.h>, not "lchown.h".
31880         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
31881         REPLACE_LCHOWN.
31882
31883 2007-06-15  Jim Meyering  <jim@meyering.net>
31884
31885         Change license (GPL to LGPL) of fsusage and dependents.
31886         * modules/fsusage (License): Change to LGPL.
31887         * modules/full-read (License): Likewise.
31888         * modules/full-write (License): Likewise.
31889         * modules/safe-read (License): Likewise.
31890         * modules/safe-write (License): Likewise.
31891
31892 2007-06-14  Ben Pfaff  <blp@gnu.org>
31893
31894         Missing part of allocsa -> malloca transition.
31895         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
31896         gl_MALLOCA.
31897
31898 2007-06-12  Bruno Haible  <bruno@clisp.org>
31899
31900         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
31901         to ia64, x86_64, i386.
31902         Reported by Eric Blake.
31903
31904 2007-06-12  Bruno Haible  <bruno@clisp.org>
31905
31906         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
31907         cross-compiling to x86_64.
31908
31909 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
31910
31911         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
31912         glitch reported by Ralf Wildenhues in
31913         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
31914
31915         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
31916         Vin Shelton.
31917
31918 2007-06-11  Bruno Haible  <bruno@clisp.org>
31919
31920         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
31921         replacement string.
31922         Reported by Eric Blake.
31923
31924 2007-06-10  Bruno Haible  <bruno@clisp.org>
31925
31926         Prepare vasnprintf code for use with Unicode strings.
31927         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
31928         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
31929         TYPE_U32_STRING.
31930         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
31931         a_u32_string variants.
31932         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
31933         * lib/printf-args.c: Don't include config.h and the specification
31934         header if PRINTF_FETCHARGS is already defined.
31935         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
31936         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
31937         TYPE_U16_STRING, TYPE_U32_STRING.
31938         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
31939         u16_directive, u16_directives, u32_directive, u32_directives): New
31940         types.
31941         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
31942         New declarations.
31943         * lib/printf-parse.c: Don't include config.h and the specification
31944         header if PRINTF_PARSE is already defined. Eliminate the set of
31945         parameters for WIDE_CHAR_VERSION; the user of this file must provide
31946         them now. Include c-ctype.h.
31947         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
31948         directive and CHAR_T_ONLY_ASCII.
31949         * lib/vasnprintf.c: Don't include config.h and the specification header
31950         if VASNPRINTF is already defined.
31951         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
31952         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
31953         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
31954         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
31955         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
31956         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
31957         code accordingly.
31958         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
31959         pad_ourselves also in this case, with the 'c' and 's' directives, and
31960         with a different notion of "width".
31961         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
31962
31963 2007-06-10  Bruno Haible  <bruno@clisp.org>
31964
31965         * modules/unistr/u32-mbsnlen: New file.
31966         * lib/unistr/u32-mbsnlen.c: New file.
31967
31968         * modules/unistr/u16-mbsnlen: New file.
31969         * lib/unistr/u16-mbsnlen.c: New file.
31970
31971         * modules/unistr/u8-mbsnlen: New file.
31972         * lib/unistr/u8-mbsnlen.c: New file.
31973
31974         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
31975         declarations.
31976
31977 2007-06-10  Bruno Haible  <bruno@clisp.org>
31978
31979         * lib/string_.h (mbsnlen): New declaration.
31980         * lib/mbsnlen.c: New file.
31981         * m4/mbsnlen.m4: New file.
31982         * modules/mbsnlen: New file.
31983         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
31984         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
31985         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
31986
31987 2007-06-10  Bruno Haible  <bruno@clisp.org>
31988
31989         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
31990
31991 2007-06-10  Bruno Haible  <bruno@clisp.org>
31992
31993         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
31994         * lib/mbuiter.h: Likewise.
31995
31996 2007-06-10  Bruno Haible  <bruno@clisp.org>
31997
31998         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
31999         declaration.
32000
32001 2007-06-10  Karl Berry  <karl@gnu.org>
32002
32003         * config/srclist.txt: remove gettext entries, Bruno prefers
32004         to update individually.
32005
32006 2007-06-10  Bruno Haible  <bruno@clisp.org>
32007
32008         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
32009         'maxlen'. Ensure only length + width bytes are allocated, not
32010         length + 1 + width.
32011
32012 2007-06-09  Bruno Haible  <bruno@clisp.org>
32013
32014         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
32015         (CHAR_T): Remove macro.
32016         (VASNPRINTF): Update.
32017
32018 2007-06-09  Bruno Haible  <bruno@clisp.org>
32019
32020         * MODULES.html.sh (Unicode string functions): Add the new modules.
32021
32022         * modules/uniconv/u32-conv-to-enc: New file.
32023         * lib/uniconv/u32-conv-to-enc.c: New file.
32024         * modules/uniconv/u32-conv-to-enc-tests: New file.
32025         * tests/uniconv/test-u32-conv-to-enc.c: New file.
32026
32027         * modules/uniconv/u16-conv-to-enc: New file.
32028         * lib/uniconv/u16-conv-to-enc.c: New file.
32029         * lib/uniconv/u-conv-to-enc.h: New file.
32030         * modules/uniconv/u16-conv-to-enc-tests: New file.
32031         * tests/uniconv/test-u16-conv-to-enc.c: New file.
32032
32033         * modules/uniconv/u8-conv-to-enc: New file.
32034         * lib/uniconv/u8-conv-to-enc.c: New file.
32035         * modules/uniconv/u8-conv-to-enc-tests: New file.
32036         * tests/uniconv/test-u8-conv-to-enc.c: New file.
32037
32038         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
32039         u32_conv_to_encoding): New declarations.
32040
32041 2007-06-09  Bruno Haible  <bruno@clisp.org>
32042
32043         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
32044
32045 2007-06-09  Bruno Haible  <bruno@clisp.org>
32046
32047         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
32048         * modules/malloca: Renamed from modules/allocsa, updated.
32049         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
32050         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
32051         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
32052         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
32053         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
32054         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
32055         * modules/xmalloca: Renamed from modules/xallocsa, updated.
32056         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
32057         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
32058         * modules/c-strcasestr (Depends-on): Update.
32059         * lib/c-strcasestr.c: Update.
32060         * modules/c-strstr (Depends-on): Update.
32061         * lib/c-strstr.c: Update.
32062         * modules/canonicalize-lgpl (Depends-on): Update.
32063         * lib/canonicalize-lgpl.c: Update.
32064         * modules/clean-temp (Depends-on): Update.
32065         * lib/clean-temp.c: Update.
32066         * modules/csharpcomp (Depends-on): Update.
32067         * lib/csharpcomp.c: Update.
32068         * modules/csharpexec (Depends-on): Update.
32069         * lib/csharpexec.c: Update.
32070         * modules/javacomp (Depends-on): Update.
32071         * lib/javacomp.c: Update.
32072         * modules/javaexec (Depends-on): Update.
32073         * lib/javaexec.c: Update.
32074         * modules/mbscasestr (Depends-on): Update.
32075         * lib/mbscasestr.c: Update.
32076         * modules/mbsstr (Depends-on): Update.
32077         * lib/mbsstr.c: Update.
32078         * modules/setenv (Depends-on): Update.
32079         * lib/setenv.c: Update.
32080         * modules/strcasestr (Depends-on): Update.
32081         * lib/strcasestr.c: Update.
32082         * modules/striconveha (Depends-on): Update.
32083         * lib/striconveha.c: Update.
32084         * modules/relocatable-prog-wrapper (Files): Update.
32085         * lib/relocwrapper.c: Update.
32086         * build-aux/install-reloc: Update.
32087         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
32088
32089 2007-06-08  Bruno Haible  <bruno@clisp.org>
32090
32091         Port to uClibc.
32092         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
32093         * lib/fpurge.c (fpurge): Likewise.
32094         * lib/freading.c (freading): Likewise.
32095         * lib/fseeko.c (rpl_fseeko): Likewise.
32096         * lib/fseterr.c (fseterr): Likewise.
32097         * lib/fwriting.c (fwriting): Likewise.
32098         * tests/test-fflush.c (main): Avoid a failure on uClibc.
32099
32100 2007-06-08  Bruno Haible  <bruno@clisp.org>
32101
32102         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
32103         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
32104         * modules/gettext (Files): Add m4/intlmacosx.m4.
32105
32106 2007-06-07  Bruno Haible  <bruno@clisp.org>
32107
32108         * modules/localename-tests: New file.
32109         * tests/test-localename.c: New file.
32110
32111         New module 'localename'.
32112         * lib/localename.h: New file.
32113         * lib/localename.c: New file, from GNU gettext.
32114         * m4/localename.m4: New file.
32115         * modules/localename: New file.
32116
32117 2007-06-07  Bruno Haible  <bruno@clisp.org>
32118
32119         Work around the lack of <wchar.h> on some builds of uClibc.
32120         * doc/headers/wchar.texi: Update.
32121         * lib/wchar_.h: Include <wchar.h> only if it exists.
32122         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
32123         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
32124         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
32125         doesn't exist.
32126         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
32127         * modules/mbfile (Depends-on): Add wchar.
32128         * modules/mbiter (Depends-on): Likewise.
32129         * modules/mbuiter (Depends-on): Likewise.
32130         Reported by Simon Josefsson.
32131
32132 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
32133
32134         Work around problem reported by Steven M. Schweda in
32135         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
32136         Tru64 5.1B with the Compaq compiler environment installed declares
32137         an 'isblank' function but does not define it in the C library.
32138         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
32139         * lib/regex_internal.h (isblank): Likewise.
32140         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
32141         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32142
32143 2007-06-05  Bruno Haible  <bruno@clisp.org>
32144
32145         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
32146         ia64.
32147         * modules/printf-safe: New file.
32148         * modules/fprintf-posix (Depends-on): Add printf-safe.
32149         * modules/printf-posix (Depends-on): Likewise.
32150         * modules/snprintf-posix (Depends-on): Likewise.
32151         * modules/sprintf-posix (Depends-on): Likewise.
32152         * modules/vasnprintf-posix (Depends-on): Likewise.
32153         * modules/vasprintf-posix (Depends-on): Likewise.
32154         * modules/vfprintf-posix (Depends-on): Likewise.
32155         * modules/vprintf-posix (Depends-on): Likewise.
32156         * modules/vsnprintf-posix (Depends-on): Likewise.
32157         * modules/vsprintf-posix (Depends-on): Likewise.
32158         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
32159         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
32160         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
32161         "no" on i386, x86_64, ia64.
32162         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
32163         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32164         on i386, x86_64, ia64.
32165         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
32166         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32167         on i386, x86_64, ia64.
32168         * tests/test-vasnprintf-posix.c: Include float.h.
32169         (LDBL80_WORDS): New macro.
32170         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32171         on i386, x86_64, ia64.
32172         * tests/test-vasprintf-posix.c: Include float.h.
32173         (LDBL80_WORDS): New macro.
32174         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32175         on i386, x86_64, ia64.
32176         * tests/test-snprintf-posix.c: Include float.h.
32177         * tests/test-sprintf-posix.c: Likewise.
32178         * tests/test-vsnprintf-posix.c: Likewise.
32179         * tests/test-vsprintf-posix.c: Likewise.
32180
32181 2007-06-05  Bruno Haible  <bruno@clisp.org>
32182
32183         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
32184         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
32185         non-IEEE numbers on i386, x86_64, ia64.
32186         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
32187         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
32188         * tests/test-isnanl.h: Include float.h.
32189         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
32190
32191 2007-06-05  Bruno Haible  <bruno@clisp.org>
32192
32193         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
32194         also the %a / %A. Handle the %a / %A code before this extra handling.
32195
32196 2007-06-05  Bruno Haible  <bruno@clisp.org>
32197
32198         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
32199         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
32200
32201 2007-06-05  Bruno Haible  <bruno@clisp.org>
32202
32203         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
32204         typo in variable name.
32205
32206 2007-06-05  Eric Blake  <ebb9@byu.net>
32207
32208         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
32209         Reported by Simon Josefsson.
32210
32211 2007-06-04  Bruno Haible  <bruno@clisp.org>
32212
32213         Avoid test failures on some PowerPC platforms.
32214         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
32215         Define differently for PowerPC.
32216         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
32217         Reported by Gary V. Vaughan <gary@gnu.org>.
32218
32219 2007-06-02  Bruno Haible  <bruno@clisp.org>
32220
32221         Fix test-stdint failure on FreeBSD/ia64.
32222         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
32223         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
32224         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
32225         * doc/headers/stdint.texi: Update.
32226
32227 2007-06-01  Bruno Haible  <bruno@clisp.org>
32228
32229         * tests/test-binary-io.c (main): Pass a third argument to open().
32230         Reported by Gary V. Vaughan <gary@gnu.org>.
32231
32232 2007-06-01  Bruno Haible  <bruno@clisp.org>
32233
32234         * doc/functions/frexpl.texi: Update for mingw.
32235
32236 2007-06-01  Bruno Haible  <bruno@clisp.org>
32237
32238         * tests/test-lseek.c (main): Disable test of errno for invalid third
32239         argument.
32240         * doc/functions/lseek.texi: Update.
32241         Reported by Gary V. Vaughan <gary@gnu.org>.
32242
32243 2007-05-28  Bruno Haible  <bruno@clisp.org>
32244
32245         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
32246
32247 2007-05-31  Eric Blake  <ebb9@byu.net>
32248
32249         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
32250         cross compiling.
32251
32252 2007-05-30  Eric Blake  <ebb9@byu.net>
32253         and Bruno Haible  <bruno@clisp.org>
32254
32255         Work around mingw test failures exposed by m4-1.4.9b.
32256         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
32257         * tests/test-unistd.c: Disable uid_t and git_t tests for the
32258         moment.
32259
32260 2007-05-30  Bruno Haible  <bruno@clisp.org>
32261
32262         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
32263         assuming that they are closed. Needed on HP-UX 11.
32264
32265 2007-05-29  Bruno Haible  <bruno@clisp.org>
32266
32267         Fix a problem with #include_next.
32268         * lib/dirent_.h: Split the double-inclusion guard.
32269         * lib/fcntl_.h: Likewise.
32270         * lib/float_.h: Likewise.
32271         * lib/iconv_.h: Likewise.
32272         * lib/inttypes_.h: Likewise.
32273         * lib/locale_.h: Likewise.
32274         * lib/math_.h: Likewise.
32275         * lib/netinet_in_.h: Likewise.
32276         * lib/search_.h: Likewise.
32277         * lib/signal_.h: Likewise.
32278         * lib/stdint_.h: Likewise.
32279         * lib/stdio_.h: Likewise.
32280         * lib/stdlib_.h: Likewise.
32281         * lib/string_.h: Likewise.
32282         * lib/sys_select_.h: Likewise.
32283         * lib/sys_socket_.h: Likewise.
32284         * lib/sys_stat_.h: Likewise.
32285         * lib/sys_time_.h: Likewise.
32286         * lib/sysexits_.h: Likewise.
32287         * lib/time_.h: Likewise.
32288         * lib/unistd_.h: Likewise.
32289         * lib/wchar_.h: Likewise.
32290         * lib/wctype_.h: Likewise.
32291
32292 2007-05-29  Bruno Haible  <bruno@clisp.org>
32293
32294         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
32295         for the moment.
32296
32297 2007-05-29  Bruno Haible  <bruno@clisp.org>
32298
32299         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
32300         invocation.
32301         Reported by Eric Blake.
32302
32303 2007-05-29  Bruno Haible  <bruno@clisp.org>
32304
32305         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
32306         compiling case.
32307
32308 2007-05-29  Eric Blake  <ebb9@byu.net>
32309             Bruno Haible  <bruno@clisp.org>
32310
32311         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
32312         cross compiles.
32313
32314 2007-05-28  Eric Blake  <ebb9@byu.net>
32315
32316         * modules/closein-tests (test_closein_LDADD): Support test on
32317         cygwin with libtool.
32318
32319 2007-05-28  Bruno Haible  <bruno@clisp.org>
32320
32321         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
32322         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32323         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32324         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32325         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32326         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32327         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32328         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32329         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32330
32331 2007-05-28  Eric Blake  <ebb9@byu.net>
32332
32333         Unconditionally include <config.h> in unit tests.
32334         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
32335         * tests/test-allocsa.c, tests/test-arcfour.c,
32336         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
32337         tests/test-array_list.c, tests/test-array_oset.c,
32338         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
32339         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
32340         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
32341         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
32342         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
32343         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
32344         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
32345         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
32346         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
32347         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
32348         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
32349         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
32350         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
32351         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
32352         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
32353         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
32354         test-md5.c, test-memmem.c, test-printf-posix.c,
32355         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
32356         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
32357         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
32358         test-strcasestr.c, test-striconv.c, test-striconveh.c,
32359         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
32360         test-vasnprintf-posix2.c, test-vasnprintf.c,
32361         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
32362         test-vfprintf-posix.c, test-vprintf-posix.c,
32363         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
32364         test-xvasprintf.c: Likewise.
32365
32366 2007-05-28  Bruno Haible  <bruno@clisp.org>
32367
32368         * gnulib-tool (func_import): Remember the --with-tests command-line
32369         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
32370         Reported by Eric Blake.
32371
32372 2007-05-28  Bruno Haible  <bruno@clisp.org>
32373
32374         * modules/ftell-tests: New file.
32375         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
32376         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
32377
32378         * lib/ftell.c: New file.
32379         * modules/ftell: New file.
32380         * m4/ftell.m4: New file.
32381         * doc/functions/ftell.texi: Update.
32382         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
32383         REPLACE_FTELL.
32384         * lib/stdio_.h (rpl_ftell): New declaration.
32385         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
32386         REPLACE_FTELL.
32387
32388 2007-05-28  Eric Blake  <ebb9@byu.net>
32389
32390         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
32391
32392 2007-05-28  Bruno Haible  <bruno@clisp.org>
32393
32394         * modules/fseek-tests: New file.
32395         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
32396         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
32397
32398         * lib/fseek.c: New file.
32399         * modules/fseek: New file.
32400         * m4/fseek.m4: New file.
32401         * doc/functions/fseek.texi: Update.
32402         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
32403         REPLACE_FSEEK.
32404         * lib/stdio_.h (rpl_fseek): New declaration.
32405         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
32406         REPLACE_FSEEK.
32407
32408 2007-05-28  Bruno Haible  <bruno@clisp.org>
32409
32410         * lib/stdio_.h (fflush): More comments.
32411
32412 2007-05-28  Bruno Haible  <bruno@clisp.org>
32413
32414         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
32415         runtime test.
32416
32417 2007-05-28  Eric Blake  <ebb9@byu.net>
32418
32419         Improve lseek module.
32420         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
32421         * lib/unistd_.h (lseek): Scale back link warning message.
32422         * tests/test-lseek.c: Beef up test.
32423         * tests/test-lseek.sh: Exercise more facets of lseek.
32424         Reported by Bruno Haible.
32425
32426 2007-05-28  Bruno Haible  <bruno@clisp.org>
32427
32428         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
32429         to define.
32430
32431 2007-05-27  Bruno Haible  <bruno@clisp.org>
32432
32433         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
32434
32435 2007-05-27  Bruno Haible  <bruno@clisp.org>
32436
32437         * modules/openmp: New file.
32438         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
32439         Noah Misch.
32440
32441 2007-05-26  Bruno Haible  <bruno@clisp.org>
32442
32443         * modules/chdir-long (Depends-on): Add fchdir.
32444         * modules/chdir-safer (Depends-on): Likewise.
32445         * modules/fts (Depends-on): Likewise.
32446         * modules/fts-lgpl (Depends-on): Likewise.
32447         * modules/openat (Depends-on): Likewise.
32448         * modules/savewd (Depends-on): Likewise.
32449
32450 2007-05-24  Eric Blake  <ebb9@byu.net>
32451
32452         Fix lseek on mingw.
32453         * modules/lseek: New module.
32454         * m4/lseek.m4: New file.
32455         * lib/lseek.c: New file.
32456         * modules/lseek-tests: New file.
32457         * tests/test-lseek.c: New file.
32458         * tests/test-lseek.sh: New file.
32459         * MODULES.html.sh: Document lseek module.
32460         * modules/fflush (Depends-on): Add lseek, fseeko.
32461         * modules/fseeko (Depends-on): Likewise.
32462         * modules/ftello (Depends-on): Likewise.
32463         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
32464         broken.
32465         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
32466         broken.
32467         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
32468         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
32469         * lib/ftello.c (rpl_ftello): Likewise.
32470         * tests/test-fseeko.c (main): Test this.
32471         * tests/test-fseeko.sh: Likewise.
32472         * tests/test-ftello.c (main): Likewise.
32473         * tests/test-ftello.sh: Likewise.
32474         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
32475         implies replacing fseek.
32476         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
32477         HAVE_FTELLO.
32478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
32479         * modules/unistd (Makefile.am): Likewise.
32480         * lib/unistd_.h (lseek): Declare a replacement.
32481         * doc/functions/lseek.texi (lseek): Document this fix.
32482         * doc/functions/fseek.texi (fseek): Likewise.
32483         * doc/functions/ftell.texi (ftell): Likewise.
32484
32485 2007-05-24  Bruno Haible  <bruno@clisp.org>
32486
32487         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
32488         in the printed representation of a NaN.
32489         * tests/test-vasprintf-posix.c (test_function): Likewise.
32490         * tests/test-snprintf-posix.h (test_function): Likewise.
32491         * tests/test-sprintf-posix.h (test_function): Likewise.
32492         Reported by Eric Blake.
32493
32494 2007-05-23  Eric Blake  <ebb9@byu.net>
32495
32496         Fix fseeko/ftello on cygwin 1.5.24.
32497         * doc/functions/fseeko.texi (fseeko): Document the fix.
32498         * doc/functions/ftello.texi (ftello): Document the fix.
32499         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
32500         * doc/functions/stdout.text (stdout): New file.
32501         * doc/functions/stderr.text (stderr): New file.
32502         * doc/gnulib.texi (Function Substitutes): Use new files.
32503         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
32504         prior to 1.7.0.
32505         * tests/test-ftello.c (main): Likewise for ftello.
32506         * tests/test-fseeko.sh: New file.
32507         * tests/test-ftello.sh: New file.
32508         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
32509         with seekable stdin.
32510         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
32511         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
32512         (gl_REPLACE_FSEEKO): New macro.
32513         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
32514         * modules/fseeko (Files): Distribute fseeko.c.
32515         * modules/ftello (Files): Distribute ftello.c.
32516         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
32517         mode.
32518         * lib/ftello.c (rpl_ftello): New file.
32519         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
32520         fseeko, ftello.
32521         (gl_STDIN_LARGE_OFFSET): New macro.
32522         * modules/stdio (Makefile.am): Perform the replacement.
32523         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
32524
32525 2007-05-23  Bruno Haible  <bruno@clisp.org>
32526
32527         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
32528         GNULIB_POSIXCHECK is defined.
32529
32530 2007-05-21  Bruno Haible  <bruno@clisp.org>
32531
32532         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
32533         Check also the output for NaN arguments. When cross-compiling, guess
32534         no on IRIX.
32535         * lib/vasnprintf.c: Update comments.
32536         * tests/test-vasnprintf-posix.c (strisnan): New function.
32537         (test_function): Use it.
32538         * tests/test-vasprintf-posix.c (strisnan): New function.
32539         (test_function): Use it.
32540         * tests/test-snprintf-posix.h (strisnan): New function.
32541         (test_function): Use it.
32542         * tests/test-sprintf-posix.h (strisnan): New function.
32543         (test_function): Use it.
32544         Reported by Eric Blake.
32545
32546 2007-05-20  Bruno Haible  <bruno@clisp.org>
32547
32548         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
32549         numbers that fails on BeOS.
32550         * doc/functions/frexpl.texi: Update.
32551
32552 2007-05-20  Jim Meyering  <jim@meyering.net>
32553
32554         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
32555         forced upon us by glibc-2.6.
32556
32557 2007-05-20  Bruno Haible  <bruno@clisp.org>
32558
32559         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
32560         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
32561         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
32562         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
32563         NEED_PRINTF_INFINITE.
32564         (is_infinitel): New function.
32565         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
32566         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
32567         gl_PREREQ_VASNPRINTF_INFINITE.
32568         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
32569         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32570         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
32571         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
32572         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
32573         gl_PREREQ_VASNPRINTF_INFINITE.
32574         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32575         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32576         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32577         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32578         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32579         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32580         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32581         * doc/functions/fprintf.texi: Update.
32582         * doc/functions/printf.texi: Update.
32583         * doc/functions/snprintf.texi: Update.
32584         * doc/functions/sprintf.texi: Update.
32585         * doc/functions/vfprintf.texi: Update.
32586         * doc/functions/vprintf.texi: Update.
32587         * doc/functions/vsnprintf.texi: Update.
32588         * doc/functions/vsprintf.texi: Update.
32589
32590 2007-05-20  Bruno Haible  <bruno@clisp.org>
32591
32592         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
32593         was not found in libc.
32594         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32595
32596 2007-05-20  Bruno Haible  <bruno@clisp.org>
32597
32598         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
32599         printed as "-nan" instead of "nan".
32600         * tests/test-vasprintf-posix.c (test_function): Likewise.
32601         * tests/test-snprintf-posix.h (test_function): Likewise.
32602         * tests/test-sprintf-posix.h (test_function): Likewise.
32603         Needed for HP-UX 11.
32604
32605 2007-05-20  Jim Meyering  <jim@meyering.net>
32606
32607         Fix buggy test for the fchownat-deref bug.
32608         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
32609         symlink required for the run-test.  Without it, this test would
32610         always declare that fchownat doesn't work, and client code would
32611         unnecessarily use the replacement function with fixed libc.
32612         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
32613         Reported by Greg Schafer.
32614
32615 2007-05-19  Bruno Haible  <bruno@clisp.org>
32616
32617         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
32618         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
32619         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
32620         Needed for IRIX 6.5 and Solaris 2.5.1.
32621
32622 2007-05-19  Bruno Haible  <bruno@clisp.org>
32623
32624         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
32625         (test_function): Skip tests involving -0.0 on platforms where
32626         -0.0 = 0.0.
32627         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
32628         (test_function): Skip tests involving -0.0 on platforms where
32629         -0.0 = 0.0.
32630         * tests/test-snprintf-posix.h (have_minus_zero): New function.
32631         (test_function): Skip tests involving -0.0 on platforms where
32632         -0.0 = 0.0.
32633         * tests/test-sprintf-posix.h (have_minus_zero): New function.
32634         (test_function): Skip tests involving -0.0 on platforms where
32635         -0.0 = 0.0.
32636         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
32637         tests.
32638         * tests/test-printf-posix.h (test_function): Likewise.
32639         * tests/test-printf-posix.output: Remove all -0.0 related results.
32640         Needed for IRIX 6.5.
32641
32642 2007-05-19  Bruno Haible  <bruno@clisp.org>
32643
32644         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
32645         printed as "nan0x7fffffff" instead of "nan".
32646         * tests/test-vasprintf-posix.c (test_function): Likewise.
32647         * tests/test-snprintf-posix.h (test_function): Likewise.
32648         * tests/test-sprintf-posix.h (test_function): Likewise.
32649         * tests/test-fprintf-posix.h (NaN): Remove macro.
32650         (test_function): Remove all NaN related tests.
32651         * tests/test-printf-posix.h (NaN): Remove macro.
32652         (test_function): Remove all NaN related tests.
32653         * tests/test-printf-posix.output: Remove all NaN related results.
32654         Needed for IRIX 6.5.
32655
32656 2007-05-19  Bruno Haible  <bruno@clisp.org>
32657
32658         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
32659         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
32660
32661 2007-05-19  Bruno Haible  <bruno@clisp.org>
32662
32663         * lib/float_.h: New file.
32664         * m4/float_h.m4: New file.
32665         * modules/float: New file.
32666         * modules/isnanl (Dependencies): Add float.
32667         * modules/isnanl-nolibm (Dependencies): Likewise.
32668         * modules/mathl (Dependencies): Likewise.
32669         * modules/printf-frexpl (Dependencies): Likewise.
32670         * modules/signbit (Dependencies): Likewise.
32671         * modules/vasnprintf (Dependencies): Likewise.
32672         * doc/headers/float.texi: Update.
32673
32674 2007-05-19  Jim Meyering  <jim@meyering.net>
32675
32676         * lib/utimens.c (gl_futimens): Rename from futimens,
32677         now that glibc-2.6 declares futimens.
32678         * lib/utimens.h: Likewise.
32679
32680 2007-05-19  Bruno Haible  <bruno@clisp.org>
32681
32682         Avoid test failures on mingw.
32683         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
32684         * tests/test-printf-posix.sh: Likewise.
32685         * tests/test-vfprintf-posix.sh: Likewise.
32686         * tests/test-vprintf-posix.sh: Likewise.
32687
32688 2007-05-19  Bruno Haible  <bruno@clisp.org>
32689
32690         Fix *printf result for NaN, Inf, -0.0 on mingw.
32691         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
32692         * lib/vasnprintf.c: Include math.h and isnan.h.
32693         (is_infinite_or_zero): New function.
32694         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
32695         values in the %f, %F, %e, %E, %g, %G directives.
32696         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
32697         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32698         gl_PRINTF_INFINITE and test its result. Invoke
32699         gl_PREREQ_VASNPRINTF_INFINITE.
32700         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32701         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32702         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32703         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32704         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32705         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32706         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32707         * doc/functions/fprintf.texi: Update.
32708         * doc/functions/printf.texi: Update.
32709         * doc/functions/snprintf.texi: Update.
32710         * doc/functions/sprintf.texi: Update.
32711         * doc/functions/vfprintf.texi: Update.
32712         * doc/functions/vprintf.texi: Update.
32713         * doc/functions/vsnprintf.texi: Update.
32714         * doc/functions/vsprintf.texi: Update.
32715
32716 2007-05-19  Bruno Haible  <bruno@clisp.org>
32717
32718         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
32719         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
32720         Instead of multiplying with 10^k, set extra_zeroes to k.
32721         (scale10_round_long_double): Remove function.
32722
32723 2007-05-18  Bruno Haible  <bruno@clisp.org>
32724
32725         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
32726         introduced on 2007-05-06.
32727
32728 2007-05-18  Bruno Haible  <bruno@clisp.org>
32729
32730         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
32731         %g directives.
32732         * tests/test-vasprintf-posix.c (test_function): Likewise.
32733         * tests/test-snprintf-posix.h (test_function): Likewise.
32734         * tests/test-sprintf-posix.h (test_function): Likewise.
32735
32736 2007-05-18  Bruno Haible  <bruno@clisp.org>
32737
32738         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
32739         (strmatch): New function.
32740         (test_function): Test the %f directive on numbers of various exponents.
32741         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
32742         (strmatch): New function.
32743         (test_function): Test the %f directive on numbers of various exponents.
32744         * tests/test-snprintf-posix.h (strmatch): New function.
32745         (test_function): Test the %f directive on numbers of various exponents.
32746         * tests/test-sprintf-posix.h (strmatch): New function.
32747         (test_function): Test the %f directive on numbers of various exponents.
32748         * tests/test-snprintf-posix.c (SIZEOF): New macro.
32749         * tests/test-sprintf-posix.c (SIZEOF): New macro.
32750         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
32751         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
32752
32753 2007-05-18  Bruno Haible  <bruno@clisp.org>
32754
32755         Add support for 'long double' number output.
32756         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
32757         * lib/vasnprintf.c: Include math.h and float+.h.
32758         (mp_limb_t): New type.
32759         (GMP_LIMB_BITS): New macro.
32760         (mp_twolimb_t): New type.
32761         (GMP_TWOLIMB_BITS): New macro.
32762         (mpn_t): New type.
32763         (multiply, divide, convert_to_decimal, decode_long_double,
32764         scale10_round_long_double, scale10_round_decimal_long_double,
32765         floorlog10l): New functions.
32766         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
32767         for the %f, %F, %e, %E, %g, %G directives.
32768         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
32769         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32770         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
32771         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
32772         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32773         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32774         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32775         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32776         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32777         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32778         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32779         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
32780         * modules/snprintf-posix (Depends-on): Likewise.
32781         * modules/sprintf-posix (Depends-on): Likewise.
32782         * modules/vasnprintf-posix (Depends-on): Likewise.
32783         * modules/vasprintf-posix (Depends-on): Likewise.
32784         * modules/vfprintf-posix (Depends-on): Likewise.
32785         * modules/vsnprintf-posix (Depends-on): Likewise.
32786         * modules/vsprintf-posix (Depends-on): Likewise.
32787         * modules/vasnprintf (Files): Add lib/float+.h.
32788         * doc/functions/fprintf.texi: Update.
32789         * doc/functions/printf.texi: Update.
32790         * doc/functions/snprintf.texi: Update.
32791         * doc/functions/sprintf.texi: Update.
32792         * doc/functions/vfprintf.texi: Update.
32793         * doc/functions/vprintf.texi: Update.
32794         * doc/functions/vsnprintf.texi: Update.
32795         * doc/functions/vsprintf.texi: Update.
32796
32797 2007-05-18  Bruno Haible  <bruno@clisp.org>
32798
32799         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
32800
32801 2007-05-18  Bruno Haible  <bruno@clisp.org>
32802
32803         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
32804         for printing 64-bit integers. Needed for mingw.
32805
32806 2007-05-18  Bruno Haible  <bruno@clisp.org>
32807
32808         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
32809         gl_FUNC_FREXPL_WORKS.
32810         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
32811
32812 2007-05-18  Bruno Haible  <bruno@clisp.org>
32813
32814         * modules/frexpl-nolibm-tests: New file.
32815
32816         * modules/frexpl-nolibm: New file.
32817         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
32818
32819 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
32820
32821         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
32822         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
32823         GCC 4.2, which otherwise issues a lot of warnings.
32824         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
32825         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
32826         Likewise.
32827         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
32828         * modules/iconv_open (iconv.h): Likewise.
32829         * modules/locale (locale.h): Likewise.
32830         * modules/netinet_in (netinet/in.h): Likewise.
32831         * modules/sys_select (sys_select.h): Likewise.
32832         * modules/sys_socket (sys/socket.h): Likewise.
32833         * modules/sys_stat (sys/stat.h): Likewise.
32834         * modules/sysexits (sysexits.h): Likewise.
32835         * modules/unistd (unistd.h): Likewise.
32836
32837 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32838
32839         * modules/closein-tests (Makefile.am): Distribute
32840         `test-closein.sh'.
32841
32842 2007-05-17  Bruno Haible  <bruno@clisp.org>
32843
32844         * tests/test-printf-posix.output: Renamed from
32845         tests/test-fprintf-posix.out.
32846         * modules/fprintf-posix-tests: Update.
32847         * modules/printf-posix-tests: Update.
32848         * modules/vfprintf-posix-tests: Update.
32849         * modules/vprintf-posix-tests: Update.
32850         * tests/test-fprintf-posix.sh: Update.
32851         * tests/test-printf-posix.sh: Update.
32852         * tests/test-vfprintf-posix.sh: Update.
32853         * tests/test-vprintf-posix.sh: Update.
32854         Reported by Ralf Wildenhues.
32855
32856 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
32857
32858         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
32859         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
32860         GCC 4.2, which otherwise issues a lot of warnings.
32861         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
32862         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
32863         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
32864         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
32865         it should no longer be needed.
32866         * lib/string_.h: Likewise.
32867         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
32868         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
32869         * modules/inttypes (inttypes.h): Likewise.
32870         * modules/math (math.h): Likewise.
32871         * modules/search (search.h): Likewise.
32872         * modules/signal (signal.h): Likewise.
32873         * modules/stdint (stdint.h): Likewise.
32874         * modules/stdio (stdio.h): Likewise.
32875         * modules/stdlib (stdlib.h): Likewise.
32876         * modules/string (string.h): Likewise.
32877         * modules/sys_time (sys/time.h): Likewise.
32878         * modules/time (time.h): Likewise.
32879         * modules/wchar (wchar.h): Likewise.
32880         * modules/wctype (wtype.h): Likewise.
32881
32882 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
32883
32884         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
32885
32886 2007-05-13  Bruno Haible  <bruno@clisp.org>
32887
32888         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
32889         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32890         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
32891         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
32892         (gl_PREREQ_STRTOK_R): Don't require it here.
32893
32894 2007-05-13  Bruno Haible  <bruno@clisp.org>
32895
32896         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
32897         when used in C++ mode.
32898
32899 2007-05-12  Bruno Haible  <bruno@clisp.org>
32900
32901         * lib/linebuffer.h: Tweak doc.
32902         * lib/linebuffer.c: Likewise.
32903
32904 2007-05-12  James Youngman  <jay@gnu.org>
32905
32906         * lib/linebuffer.c (readlinebuffer_delim): New function,
32907         like readlinebuffer, but use a caller-specified delimiter.
32908         (readlinebuffer): Just call readlinebuffer_delim with '\n'
32909         as the delimiter.
32910         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
32911
32912 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32913
32914         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
32915         * modules/openat (Files): Remove openat-die.c.
32916         (Depends-on): Add openat-die.
32917         * modules/openat-die: New module.
32918
32919 2007-05-06  Bruno Haible  <bruno@clisp.org>
32920
32921         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
32922         Update with info about Cygwin.
32923         * doc/functions/fprintf.texi: Update.
32924         * doc/functions/printf.texi: Update.
32925         * doc/functions/snprintf.texi: Update.
32926         * doc/functions/sprintf.texi: Update.
32927         * doc/functions/vfprintf.texi: Update.
32928         * doc/functions/vprintf.texi: Update.
32929         * doc/functions/vsnprintf.texi: Update.
32930         * doc/functions/vsprintf.texi: Update.
32931         Reported by Eric Blake.
32932
32933 2007-05-06  Bruno Haible  <bruno@clisp.org>
32934
32935         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
32936         padding ourselves for the floating-point directives.
32937         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
32938         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
32939         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32940         gl_PRINTF_FLAG_ZERO and test its result. Invoke
32941         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
32942         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32943         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
32944         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32945         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32946         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32947         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32948         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32949         * tests/test-snprintf-posix.h (test_function): Also check the width
32950         and some flags in the %f directive.
32951         * tests/test-sprintf-posix.h (test_function): Likewise.
32952         * tests/test-vasnprintf-posix.c (test_function): Likewise.
32953         * tests/test-vasprintf-posix.c (test_function): Likewise.
32954         * doc/functions/fprintf.texi: Update.
32955         * doc/functions/printf.texi: Update.
32956         * doc/functions/snprintf.texi: Update.
32957         * doc/functions/sprintf.texi: Update.
32958         * doc/functions/vfprintf.texi: Update.
32959         * doc/functions/vprintf.texi: Update.
32960         * doc/functions/vsnprintf.texi: Update.
32961         * doc/functions/vsprintf.texi: Update.
32962
32963 2007-05-06  Bruno Haible  <bruno@clisp.org>
32964
32965         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
32966         pass the ' flag character to sprintf or snprintf.
32967         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
32968         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
32969         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32970         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
32971         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
32972         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32973         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
32974         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32975         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32976         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32977         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32978         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32979         * tests/test-snprintf-posix.h (test_function): Also check the grouping
32980         flag.
32981         * tests/test-sprintf-posix.h (test_function): Likewise.
32982         * tests/test-vasnprintf-posix.c (test_function): Likewise.
32983         * tests/test-vasprintf-posix.c (test_function): Likewise.
32984         * doc/functions/fprintf.texi: Update.
32985         * doc/functions/printf.texi: Update.
32986         * doc/functions/snprintf.texi: Update.
32987         * doc/functions/sprintf.texi: Update.
32988         * doc/functions/vfprintf.texi: Update.
32989         * doc/functions/vprintf.texi: Update.
32990         * doc/functions/vsnprintf.texi: Update.
32991         * doc/functions/vsprintf.texi: Update.
32992
32993 2007-05-01  Bruno Haible  <bruno@clisp.org>
32994
32995         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
32996
32997 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
32998
32999         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
33000         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
33001
33002 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
33003
33004         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
33005         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
33006         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
33007
33008 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
33009
33010         * lib/argp-help.c (struct hol_entry): New member `ord'.
33011         (HOL_ENTRY_PTRCMP): Use ord for comparison
33012         (hol_sort): Initialize ord.
33013
33014 2007-05-01  Bruno Haible  <bruno@clisp.org>
33015
33016         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
33017         Reported by Eric Blake.
33018         * doc/gnulib.texi (Function Substitutes): Update.
33019
33020 2007-05-01  Bruno Haible  <bruno@clisp.org>
33021
33022         * doc/functions.texi: Remove file, now redundant through
33023         doc/functions/*.texi.
33024
33025 2007-05-01  Bruno Haible  <bruno@clisp.org>
33026
33027         * modules/argp (Depends-on): Add sleep.
33028
33029 2007-05-01  Bruno Haible  <bruno@clisp.org>
33030
33031         * modules/sleep-tests: New file.
33032         * tests/test-sleep.c: New file.
33033
33034         * modules/sleep: New file.
33035         * lib/sleep.c: New file.
33036         * m4/sleep.m4: New file.
33037         * lib/unistd_.h (sleep): New declaration.
33038         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
33039         HAVE_SLEEP.
33040         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
33041         * doc/functions/sleep.texi: Document the sleep module.
33042
33043 2007-05-01  Bruno Haible  <bruno@clisp.org>
33044
33045         * lib/sigprocmask.h: Remove file.
33046         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
33047         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
33048         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
33049         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
33050         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
33051         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
33052         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
33053         HAVE_SIGSET_T as a shell variable.
33054         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
33055         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
33056         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
33057         (Depends-on): Add signal. Remove verify.
33058         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
33059         (Include): Mention <signal.h> instead of sigprocmask.h.
33060         * NEWS: Mention the change.
33061         * lib/fatal-signal.c: Don't include sigprocmask.h.
33062
33063 2007-05-01  Bruno Haible  <bruno@clisp.org>
33064
33065         * modules/signal: New file.
33066         * lib/signal_.h: New file.
33067         * m4/signal_h.m4: New file.
33068
33069 2007-05-01  Bruno Haible  <bruno@clisp.org>
33070
33071         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
33072         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
33073         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
33074         HAVE_WCTYPE_CTMP_BUG into wctype.h.
33075
33076 2007-05-01  Bruno Haible  <bruno@clisp.org>
33077
33078         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
33079         configure time.
33080         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
33081         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
33082         * modules/sys_stat (Makefile.am): Substitute their values into
33083         sys/stat.h.
33084
33085 2007-05-01  Bruno Haible  <bruno@clisp.org>
33086
33087         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
33088         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
33089         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
33090
33091 2007-05-01  Bruno Haible  <bruno@clisp.org>
33092
33093         * doc/header/assert.texi: Undo last change: don't mention the gnulib
33094         'assert' module here.
33095
33096 2007-05-01  Bruno Haible  <bruno@clisp.org>
33097
33098         * doc/functions/*.texi: New files.
33099         * doc/functions/google-ranking.txt: New file.
33100         * doc/gnulib.texi (Function Substitutes): New chapter.
33101         (ctime, inet_ntoa): Remove sections.
33102         * doc/ctime.texi: Remove file.
33103         * doc/inet_ntoa.texi: Remove file.
33104         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
33105         dependencies.
33106         (%.info): New rule, specifying a --reference-limit.
33107
33108 2007-05-01  Bruno Haible  <bruno@clisp.org>
33109
33110         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
33111
33112 2007-05-01  Bruno Haible  <bruno@clisp.org>
33113
33114         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
33115         the portability of 'mkdir' to mingw systems.
33116
33117 2007-05-01  Bruno Haible  <bruno@clisp.org>
33118
33119         * doc/headers/google-ranking.txt: New file.
33120
33121 2007-04-30  Eric Blake  <ebb9@byu.net>
33122
33123         Prefer fseeko to fseek.
33124         * modules/getpass (Depends-on): Add fseeko.
33125         * lib/getpass.c (getpass): Use fseeko, not fseek.
33126
33127 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
33128
33129         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
33130         assumes the sorting is stable, while most qsort implementations
33131         are not.  Use argument addresses to ensure they never compare as
33132         equal.
33133
33134         * tests/test-argp-2.sh (usage-indent test): Fix output
33135         (func_compare): Restore diff options
33136         * tests/test-argp.c: Restore #include "progname.h"
33137
33138 2007-04-29  Bruno Haible  <bruno@clisp.org>
33139
33140         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
33141         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33142         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
33143         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33144         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
33145         (configure.ac): Define CHECK_SNPRINTF_POSIX.
33146         (TESTS, check_PROGRAMS): Add test-snprintf.
33147         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
33148         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
33149         (TESTS, check_PROGRAMS): Add test-vsnprintf.
33150         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
33151         assertions that fail on HP-UX, OSF/1, or IRIX.
33152         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
33153
33154 2007-04-29  Bruno Haible  <bruno@clisp.org>
33155
33156         * MODULES.html.sh (posix_functions): Remove 'contents'.
33157
33158 2007-04-29  Karl Berry  <karl@gnu.org>
33159
33160         * config/srclist.txt (gendocs_template_min): new entry.
33161
33162 2007-04-29  Bruno Haible  <bruno@clisp.org>
33163
33164         Work around fpurge bug on BSD systems.
33165         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
33166         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
33167         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
33168         fpurge to rpl_fpurge if the system already has this function.
33169         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
33170         the case where the system already has this function. Correct invariants
33171         on BSD systems.
33172         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
33173         BSD systems.
33174
33175 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
33176
33177         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
33178         proposed by Sven Verdoolaege.
33179
33180         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
33181         options.
33182         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
33183         (usage and help tests): Update
33184
33185 2007-04-29  Bruno Haible  <bruno@clisp.org>
33186
33187         * tests/test-fflush.c (main): Use a file of size 17, not 10.
33188         Print more information in case of failure. Disable a test on BeOS.
33189
33190 2007-04-29  Bruno Haible  <bruno@clisp.org>
33191
33192         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
33193         This helps debugging on systems on which no gdb is available.
33194
33195 2007-04-29  Bruno Haible  <bruno@clisp.org>
33196
33197         * lib/freading.h: Improve comments.
33198         * lib/fwriting.h: Likewise.
33199         * tests/test-freading.c (main): Don't check freading immediately after
33200         repositioning. Needed for glibc.
33201
33202 2007-04-29  Bruno Haible  <bruno@clisp.org>
33203
33204         * lib/freading.c (freading): Trivial simplification.
33205
33206 2007-04-28  Bruno Haible  <bruno@clisp.org>
33207
33208         * tests/test-fwriting.c (main): Also test the interaction between
33209         fflush and fwriting.
33210         * modules/fwriting-tests (Depends-on): Add fflush.
33211
33212         * tests/test-freading.c (main): Also test the interaction between
33213         fflush and freading.
33214         * modules/freading-tests (Depends-on): Add fflush.
33215
33216 2007-04-28  Bruno Haible  <bruno@clisp.org>
33217
33218         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
33219         fseeko and ftello.
33220         Suggested by Eric Blake.
33221
33222 2007-04-28  Jim Meyering  <jim@meyering.net>
33223
33224         Avoid false-negative in gl_STDINT_H's C99 conformance test.
33225         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
33226         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
33227
33228 2007-04-27  Eric Blake  <ebb9@byu.net>
33229
33230         * doc/headers/assert.texi (assert.h): Document assert module use.
33231
33232 2007-04-27  Bruno Haible  <bruno@clisp.org>
33233
33234         * doc/headers/*.texi: New files.
33235         * doc/gnulib.texi (Header File Substitutes): New chapter.
33236         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
33237         dependencies.
33238         (standards.info ,standards.html, standards.dvi): Update dependencies.
33239         (mostlyclean, clean): New targets.
33240
33241 2007-04-27  Bruno Haible  <bruno@clisp.org>
33242
33243         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
33244         * modules/sysexits (Files, Makefile.am): Update.
33245
33246         * lib/sys_socket_.h: Renamed from lib/socket_.h.
33247         * modules/sys_socket (Files, Makefile.am): Update.
33248
33249         * lib/sys_stat_.h: Renamed from lib/stat_.h.
33250         * modules/sys_stat (Files, Makefile.am): Update.
33251
33252 2007-04-27  Eric Blake  <ebb9@byu.net>
33253
33254         * lib/freading.h: Improve comments.
33255         * lib/fwriting.h: Likewise.
33256         * lib/fflush.c: Likewise.
33257
33258         Fix closein for mingw.
33259         * modules/closein-tests: Add tests for closein.
33260         * tests/test-closein.c: New file.
33261         * tests/test-closein.sh: Likewise.
33262         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
33263         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
33264
33265 2007-04-27  Bruno Haible  <bruno@clisp.org>
33266
33267         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
33268         version is < 6.
33269         * lib/math_.h [__DECC]: Likewise.
33270         * lib/stdio_.h [__DECC]: Likewise.
33271         * lib/stdlib_.h [__DECC]: Likewise.
33272         * lib/string_.h [__DECC]: Likewise.
33273         * lib/time_.h [__DECC]: Likewise.
33274         * lib/wchar_.h [__DECC]: Likewise.
33275         * lib/wctype_.h [__DECC]: Likewise.
33276
33277 2007-04-27  Bruno Haible  <bruno@clisp.org>
33278
33279         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
33280
33281 2007-04-27  Bruno Haible  <bruno@clisp.org>
33282
33283         * lib/fflush.c: Add comments.
33284         * modules/fpurge-tests (Depends-on): Add fflush.
33285         * modules/freadable-tests (Depends-on): Likewise.
33286         * modules/fwritable-tests (Depends-on): Likewise.
33287
33288 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
33289
33290         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
33291         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
33292         Report by Bruno Haible <bruno@clisp.org>.
33293
33294 2007-04-26  Eric Blake  <ebb9@byu.net>
33295
33296         Fix fflush on mingw.
33297         * modules/fflush (Depends-on): Add freading.
33298         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
33299         but unread data.
33300
33301 2007-04-26  Eric Blake  <ebb9@byu.net>
33302         and Bruno Haible  <bruno@clisp.org>
33303
33304         Implement freading and fwriting.
33305         * lib/freading.c: New file.
33306         * lib/freading.h: Likewise.
33307         * m4/freading.m4: Likewise.
33308         * modules/freading: Likewise.
33309         * modules/freading-tests: Likewise.
33310         * tests/test-freading.c: Likewise.
33311         * lib/fwriting.c: New file.
33312         * lib/fwriting.h: Likewise.
33313         * m4/fwriting.m4: Likewise.
33314         * modules/fwriting: Likewise.
33315         * modules/fwriting-tests: Likewise.
33316         * tests/test-fwriting.c: Likewise.
33317         * MODULES.html.sh (File stream based Input/Output): Mention them.
33318
33319 2007-04-26  Bruno Haible  <bruno@clisp.org>
33320
33321         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
33322         'long' when we assume it.
33323         Suggested by Eric Blake.
33324
33325 2007-04-26  Bruno Haible  <bruno@clisp.org>
33326
33327         Ensure fseeko, ftello are declared on glibc systems.
33328         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
33329         * modules/fseeko (configure.ac-early): Likewise.
33330         * modules/ftello (configure.ac-early): Likewise.
33331         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
33332         AC_FUNC_FSEEKO for this.
33333         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
33334         (gl_CHECK_FSEEKO): Remove macro.
33335
33336 2007-04-26  Bruno Haible  <bruno@clisp.org>
33337
33338         * tests/test-fflush.c (main): Also check the ftell result after
33339         fflush and fseek/fseeko.
33340         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
33341         file descriptor position cache in the stream.
33342         * lib/fseeko.c (rpl_fseeko): Likewise.
33343
33344 2007-04-26  Bruno Haible  <bruno@clisp.org>
33345
33346         * modules/fflush-tests (Depends-on): Add fseeko.
33347
33348 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
33349             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33350
33351         * lib/argz_.h: ensure error_t definition is obtained in same
33352         mechanism system argz.h would have.
33353         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
33354         argz facilities are known bad.  Err on the side of caution if
33355         cross-compiling.
33356
33357 2007-04-25  Eric Blake  <ebb9@byu.net>
33358
33359         * lib/fpurge.c (includes): Use stdlib.h for free.
33360         * tests/test-fflush.c (main): Also test fflush-fseeko.
33361
33362 2007-04-25  Bruno Haible  <bruno@clisp.org>
33363
33364         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
33365         * lib/fseeko.c: New file.
33366         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
33367         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
33368         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
33369         gl_FUNC_FSEEKO.
33370         (gl_FUNC_FSEEKO): Invoke it.
33371         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
33372         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
33373         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
33374
33375 2007-04-25  Bruno Haible  <bruno@clisp.org>
33376
33377         * modules/fflush (Depends-on): Add ftello.
33378
33379 2007-04-25  Bruno Haible  <bruno@clisp.org>
33380
33381         * modules/ftello-tests: New file.
33382         * tests/test-ftello.c: New file.
33383
33384         * modules/ftello: New file.
33385         * m4/ftello.m4: New file.
33386         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
33387         HAVE_FTELLO.
33388         * lib/stdio_.h (ftello): New declaration.
33389         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
33390         HAVE_FTELLO.
33391
33392 2007-04-25  Bruno Haible  <bruno@clisp.org>
33393
33394         * modules/fseeko-tests: New file.
33395         * tests/test-fseeko.c: New file.
33396
33397         * modules/fseeko: New file.
33398         * m4/fseeko.m4: New file.
33399         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
33400         HAVE_FSEEKO.
33401         * lib/stdio_.h (fseeko): New declaration.
33402         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
33403         HAVE_FSEEKO.
33404
33405 2007-04-25  Bruno Haible  <bruno@clisp.org>
33406
33407         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
33408
33409 2007-04-25  Bruno Haible  <bruno@clisp.org>
33410
33411         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
33412         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
33413         * tests/test-unistd.c: Likewise.
33414         * tests/test-fcntl.c: Likewise.
33415
33416 2007-04-23  Eric Blake  <ebb9@byu.net>
33417
33418         * lib/fflush.c: Fix missing include.
33419         Reported by Bruno Haible.
33420
33421 2007-04-23  Bruno Haible  <bruno@clisp.org>
33422
33423         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
33424         Reported by Eric Blake.
33425
33426 2007-04-23  Bruno Haible  <bruno@clisp.org>
33427
33428         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
33429
33430 2007-04-23  Bruno Haible  <bruno@clisp.org>
33431
33432         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
33433
33434 2007-04-23  Bruno Haible  <bruno@clisp.org>
33435
33436         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
33437         Needed on HP-UX 11.
33438
33439 2007-04-16  Eric Blake  <ebb9@byu.net>
33440
33441         Make fflush rely on fpurge.
33442         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
33443         open coding all variants.
33444         * modules/fflush (Depends-on): Add fpurge and unistd.
33445         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
33446         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
33447
33448         Fix --with-tests compilation on cygwin.
33449         * modules/argmatch-tests (Makefile.am): List gnulib library first
33450         in LDADD.
33451         * modules/argp-tests (Makefile.am): Likewise.
33452         * modules/array-list-tests (Makefile.am): Likewise.
33453         * modules/array-oset-tests (Makefile.am): Likewise.
33454         * modules/avltree-list-tests (Makefile.am): Likewise.
33455         * modules/avltree-oset-tests (Makefile.am): Likewise.
33456         * modules/avltreehash-list-tests (Makefile.am): Likewise.
33457         * modules/carray-list-tests (Makefile.am): Likewise.
33458         * modules/dirname-tests (Makefile.am): Likewise.
33459         * modules/frexp-tests (Makefile.am): Likewise.
33460         * modules/isnanl-tests (Makefile.am): Likewise.
33461         * modules/linked-list-tests (Makefile.am): Likewise.
33462         * modules/linkedhash-list-tests (Makefile.am): Likewise.
33463         * modules/lock-tests (Makefile.am): Likewise.
33464         * modules/rbtree-list-tests (Makefile.am): Likewise.
33465         * modules/rbtree-oset-tests (Makefile.am): Likewise.
33466         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
33467         * modules/tls-tests (Makefile.am): Likewise.
33468         * modules/tsearch-tests (Makefile.am): Likewise.
33469         * modules/xvasprintf-tests (Makefile.am): Likewise.
33470
33471         Fix fpurge for cygwin.
33472         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
33473         value.
33474         * modules/fpurge-tests (Depends-on): Clean up trash.
33475
33476 2007-04-16  Simon Josefsson  <simon@josefsson.org>
33477
33478         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
33479
33480         * m4/autobuild.m4: Re-indent.
33481
33482 2007-04-13  Bruno Haible  <bruno@clisp.org>
33483
33484         * modules/fpurge-tests: New file.
33485         * tests/test-fpurge.c: New file.
33486
33487         * modules/fpurge: New file.
33488         * lib/fpurge.h: New file.
33489         * lib/fpurge.c: New file.
33490         * m4/fpurge.m4: New file.
33491
33492 2007-04-13  Bruno Haible  <bruno@clisp.org>
33493
33494         * modules/fbufmode-tests: New file.
33495         * tests/test-fbufmode.c: New file.
33496
33497         * modules/fbufmode: New file.
33498         * lib/fbufmode.h: New file.
33499         * lib/fbufmode.c: New file.
33500         * m4/fbufmode.m4: New file.
33501
33502 2007-04-13  Bruno Haible  <bruno@clisp.org>
33503
33504         * modules/fwritable-tests: New file.
33505         * tests/test-fwritable.c: New file.
33506
33507         * modules/fwritable: New file.
33508         * lib/fwritable.h: New file.
33509         * lib/fwritable.c: New file.
33510         * m4/fwritable.m4: New file.
33511
33512 2007-04-13  Bruno Haible  <bruno@clisp.org>
33513
33514         * modules/freadable-tests: New file.
33515         * tests/test-freadable.c: New file.
33516
33517         * modules/freadable: New file.
33518         * lib/freadable.h: New file.
33519         * lib/freadable.c: New file.
33520         * m4/freadable.m4: New file.
33521
33522 2007-04-13  Bruno Haible  <bruno@clisp.org>
33523
33524         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
33525         MOSTLYCLEANFILES.
33526
33527 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
33528
33529         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
33530         gzip bootstrap.conf to avoid dragging in i18n machinery.
33531         (gnulib_tool_option): Use it.
33532
33533 2007-04-13  Bruno Haible  <bruno@clisp.org>
33534
33535         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
33536         %F directives.
33537         * tests/test-vasprintf-posix.c (test_function): Likewise.
33538         * tests/test-snprintf-posix.h (test_function): Likewise.
33539         * tests/test-sprintf-posix.h (test_function): Likewise.
33540         * tests/test-fprintf-posix.h (test_function): Likewise.
33541         * tests/test-printf-posix.h (test_function): Likewise.
33542         * tests/test-fprintf-posix.out: Likewise.
33543
33544 2007-04-13  Bruno Haible  <bruno@clisp.org>
33545
33546         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
33547         * modules/tls-tests (configure.ac): Likewise.
33548         Reported by Arto C. Nirkko <anirkko@insel.ch>.
33549
33550 2007-04-13  Bruno Haible  <bruno@clisp.org>
33551
33552         * lib/tls.c (glthread_tls_get): Fix return type.
33553         Patch by Arto C. Nirkko <anirkko@insel.ch>.
33554
33555 2007-04-12  Eric Blake  <ebb9@byu.net>
33556
33557         * modules/gettime (Depends-on): Remove gettime.
33558         Reported by Dmitry V. Levin.
33559
33560 2007-04-12  Bruno Haible  <bruno@clisp.org>
33561
33562         * modules/fflush (Include): Mention <stdio.h>.
33563         * modules/strtoimax (Include): Mention <inttypes.h>.
33564         * modules/strtoumax (Include): Likewise.
33565
33566 2007-04-12  Eric Blake  <ebb9@byu.net>
33567
33568         * .cvsignore: New file.
33569         * .gitignore: Likewise.
33570
33571 2007-04-12  Bruno Haible  <bruno@clisp.org>
33572
33573         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
33574         not before, since $(LDADD) often contains libgnu.a.
33575         * modules/striconv-tests (test_striconv_LDADD): Likewise.
33576         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
33577         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
33578         Needed on Cygwin.
33579
33580 2007-04-12  Eric Blake  <ebb9@byu.net>
33581
33582         Work around glibc's failure to flush stdin on fclose.
33583         * lib/closein.c (close_stdin): Flush stdin before closing.
33584
33585         Work around glibc's failure to reset seekable stdin on exit.
33586         * modules/closein: New module.
33587         * lib/closein.c: New file.
33588         * lib/closein.h: Likewise.
33589         * m4/closein.m4: Likewise.
33590         * MODULES.html.sh (File stream based Input/Output): Document it.
33591
33592 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33593
33594         * gnulib-tool: Rename generated 'autobuild' script to
33595         'do-autobuild' in --create-megatestdir output.
33596
33597         * doc/gnulib.texi (Build robot for gnulib): Fix.
33598
33599 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33600
33601         * modules/sysexits (Depends-on): Add absolute-header.
33602
33603 2007-04-12  Eric Blake  <ebb9@byu.net>
33604
33605         No need to preserve errno on success.
33606         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
33607         Reported by Bruno Haible.
33608
33609 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33610
33611         * MODULES.html.sh (Support for maintaining and releasing
33612         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
33613
33614 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33615
33616         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
33617
33618 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33619
33620         * modules/autobuild: New module.
33621
33622         * m4/autobuild.m4: New file.
33623
33624 2007-04-11  Bruno Haible  <bruno@clisp.org>
33625
33626         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
33627         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
33628         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
33629         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
33630         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33631         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33632         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33633         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33634         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33635         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33636         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
33637         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33638         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33639         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
33640         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33641         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33642         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
33643         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33644         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33645         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
33646         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33647         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33648         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
33649         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33650         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33651         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
33652         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33653         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33654         Reported by Eric Blake.
33655
33656 2007-04-11  Bruno Haible  <bruno@clisp.org>
33657
33658         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
33659
33660 2007-04-10  Bruno Haible  <bruno@clisp.org>
33661
33662         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
33663         for NaN and Infinity. Needed on FreeBSD 6.1.
33664         * tests/test-vasnprintf-posix.c (test_function): Undo last change
33665         regarding results for "%010a" of Infinity and NaN.
33666         * tests/test-vasprintf-posix.c (test_function): Likewise.
33667         * tests/test-snprintf-posix.h (test_function): Likewise.
33668         * tests/test-sprintf-posix.h (test_function): Likewise.
33669         * tests/test-fprintf-posix.h (test_function): Likewise.
33670         * tests/test-printf-posix.h (test_function): Likewise.
33671         * tests/test-fprintf-posix.out: Likewise.
33672
33673 2007-04-10  Bruno Haible  <bruno@clisp.org>
33674
33675         * modules/locale-tests: New file.
33676         * tests/test-locale.c: New file.
33677
33678         * modules/locale: New file.
33679         * lib/locale_.h: New file.
33680         * m4/locale_h.m4: New file.
33681
33682 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
33683             Bruno Haible  <bruno@clisp.org>
33684
33685         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
33686         be determined, test for availability of the copysignf, copysign,
33687         copysignl functions.
33688         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
33689         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
33690         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
33691
33692 2007-04-09  Eric Blake  <ebb9@byu.net>
33693
33694         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
33695         * modules/stdio (Makefile.am): Support fflush.
33696         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33697         * modules/fflush: New file.
33698         * lib/fflush.c: Likewise.
33699         * m4/fflush.m4: Likewise.
33700         * modules/fflush-tests: New test.
33701         * tests/test-fflush.c: Likewise.
33702         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
33703
33704 2007-04-06  Bruno Haible  <bruno@clisp.org>
33705
33706         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
33707         (VASNPRINTF): Use signbit for faster determination whether to print a
33708         minus sign.
33709         * modules/vasnprintf (Files): Remove lib/float+.h.
33710         * modules/fprintf-posix (Depends-on): Add signbit.
33711         * modules/snprintf-posix (Depends-on): Likewise.
33712         * modules/sprintf-posix (Depends-on): Likewise.
33713         * modules/vasnprintf-posix (Depends-on): Likewise.
33714         * modules/vasprintf-posix (Depends-on): Likewise.
33715         * modules/vfprintf-posix (Depends-on): Likewise.
33716         * modules/vsnprintf-posix (Depends-on): Likewise.
33717         * modules/vsprintf-posix (Depends-on): Likewise.
33718
33719 2007-04-06  Bruno Haible  <bruno@clisp.org>
33720
33721         * tests/test-frexp.c (main): Test also the sign bit of zero results.
33722         * tests/test-frexpl.c (main): Likewise.
33723         * tests/test-ldexpl.c (main): Likewise.
33724         * modules/frexp-tests (Depends-on): Add signbit.
33725         * modules/frexpl-tests (Depdends-on): Likewise.
33726         * modules/ldexpl-tests (Depdends-on): Likewise.
33727
33728 2007-04-06  Bruno Haible  <bruno@clisp.org>
33729
33730         * modules/signbit-tests: New file.
33731         * tests/test-signbit.c: New file.
33732
33733         * modules/signbit: New file.
33734         * lib/signbitf.c: New file.
33735         * lib/signbitd.c: New file.
33736         * lib/signbitl.c: New file.
33737         * m4/signbit.m4: New file.
33738         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
33739         (signbit): New macro.
33740         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
33741         REPLACE_SIGNBIT.
33742         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
33743         REPLACE_FREXPL into math.h.
33744
33745 2007-04-06  Bruno Haible  <bruno@clisp.org>
33746
33747         * modules/isnanf-nolibm-tests: New file.
33748         * tests/test-isnanf.c: New file.
33749
33750         * modules/isnanf-nolibm: New file.
33751         * lib/isnanf.h: New file.
33752         * lib/isnanf.c: New file.
33753         * lib/isnan.c: Consider the USE_FLOAT macro.
33754         * m4/isnanf.m4: New file.
33755
33756 2007-04-06  Bruno Haible  <bruno@clisp.org>
33757
33758         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
33759         (Link): New section.
33760
33761         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
33762
33763 2007-04-06  Bruno Haible  <bruno@clisp.org>
33764
33765         Assume the 'long double' type.
33766         * m4/longdouble.m4: Remove file.
33767         * config/srclist.txt: Don't mention longdouble.m4.
33768         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
33769         * lib/float+.h: Likewise.
33770         * lib/frexp.c: Likewise.
33771         * lib/printf-args.h: Likewise.
33772         * lib/printf-args.c: Likewise.
33773         * lib/printf-frexp.c: Likewise.
33774         * lib/printf-parse.c: Likewise.
33775         * lib/vasnprintf.c: Likewise.
33776         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
33777         * m4/intl.m4: Likewise.
33778         * m4/isnanl.m4: Likewise.
33779         * m4/printf.m4: Likewise.
33780         * m4/printf-frexpl.m4: Likewise.
33781         * m4/vasnprintf.m4: Likewise.
33782         * modules/allocsa (Files): Remove m4/longdouble.m4.
33783         * modules/gettext (Files): Likewise.
33784         * modules/relocatable-prog-wrapper (Files): Likewise.
33785         * modules/vasnprintf (Files): Likewise.
33786         * modules/isnanl (Files): Likewise.
33787         (Include): Simplify.
33788         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
33789         (Include): Simplify.
33790         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
33791         (Include): Simplify.
33792         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
33793         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33794         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
33795         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33796         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
33797         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33798         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
33799         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33800         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
33801         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33802         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
33803         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33804         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
33805         * tests/test-isnanl.c: Likewise.
33806         * tests/test-snprintf-posix.h: Likewise.
33807         * tests/test-sprintf-posix.h: Likewise.
33808         * tests/test-vasnprintf-posix.c: Likewise.
33809         * tests/test-vasnprintf-posix2.c: Likewise.
33810         * tests/test-vasprintf-posix.c: Likewise.
33811
33812 2007-04-06  Bruno Haible  <bruno@clisp.org>
33813
33814         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
33815         * lib/math_.h [__DECC]: Include the overridden include file through
33816         #include_next, outside the double-inclusion guard.
33817         * lib/stdio_.h [__DECC]: Likewise.
33818         * lib/stdlib_.h [__DECC]: Likewise.
33819         * lib/string_.h [__DECC]: Likewise.
33820         * lib/time_.h [__DECC]: Likewise.
33821         * lib/wchar_.h [__DECC]: Likewise.
33822         * lib/wctype_.h [__DECC]: Likewise.
33823         * lib/inttypes_.h [__DECC]: Likewise.
33824         Reported by Albert Chin <china@thewrittenword.com> in
33825         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
33826
33827 2007-04-04  Eric Blake  <ebb9@byu.net>
33828
33829         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
33830         1.5.x.
33831
33832 2007-04-04  Bruno Haible  <bruno@clisp.org>
33833
33834         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
33835         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
33836
33837 2007-04-04  Bruno Haible  <bruno@clisp.org>
33838
33839         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
33840         results for "%010a" of Infinity and NaN.
33841         * tests/test-vasprintf-posix.c (test_function): Likewise.
33842         * tests/test-snprintf-posix.h (test_function): Likewise.
33843         * tests/test-sprintf-posix.h (test_function): Likewise.
33844         * tests/test-fprintf-posix.h (test_function): Remove these tests.
33845         * tests/test-printf-posix.h (test_function): Likewise.
33846         * tests/test-fprintf-posix.out: Update.
33847         Needed for FreeBSD 6.1.
33848
33849 2007-04-04  Bruno Haible  <bruno@clisp.org>
33850
33851         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
33852         directly used by the gnulib modules nor by gnulib-tool.
33853
33854 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
33855
33856         * DEPENDENCIES: Give overall description of version dependency
33857         desirability.  Use more-typical names for apps.
33858         Add shell, coreutils, diffutils, grep, tar, gzip.
33859
33860 2007-04-04  Simon Josefsson  <simon@josefsson.org>
33861
33862         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
33863
33864 2007-04-04  Karl Berry  <karl@gnu.org>
33865
33866         * MODULES.html.sh (func_module): missing '.
33867
33868 2007-04-03  Bruno Haible  <bruno@clisp.org>
33869
33870         * modules/argmatch-tests (Makefile.am): New variable
33871         test_argmatch_LDADD.
33872         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
33873         * modules/array-list-tests (Makefile.am): New variable
33874         test_array_list_LDADD.
33875         * modules/array-oset-tests (Makefile.am): New variable
33876         test_array_oset_LDADD.
33877         * modules/avltree-list-tests (Makefile.am): New variable
33878         test_avltree_list_LDADD.
33879         * modules/avltree-oset-tests (Makefile.am): New variable
33880         test_avltree_oset_LDADD.
33881         * modules/avltreehash-list-tests (Makefile.am): New variable
33882         test_avltreehash_list_LDADD.
33883         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
33884         test_canonicalize_lgpl_LDADD.
33885         * modules/carray-list-tests (Makefile.am): New variable
33886         test_carray_list_LDADD.
33887         * modules/dirname-tests (Makefile.am): New variable
33888         test_dirname_LDADD.
33889         * modules/linked-list-tests (Makefile.am): New variable
33890         test_linked_list_LDADD.
33891         * modules/linkedhash-list-tests (Makefile.am): New variable
33892         test_linkedhash_list_LDADD.
33893         * modules/rbtree-list-tests (Makefile.am): New variable
33894         test_rbtree_list_LDADD.
33895         * modules/rbtree-oset-tests (Makefile.am): New variable
33896         test_rbtree_oset_LDADD.
33897         * modules/rbtreehash-list-tests (Makefile.am): New variable
33898         test_rbtreehash_list_LDADD.
33899         * modules/xvasprintf-tests (Makefile.am): New variable
33900         test_xvasprintf_LDADD.
33901         Reported by Eric Blake.
33902
33903 2007-04-03  Eric Blake  <ebb9@byu.net>
33904
33905         * DEPENDENCIES: Weaken m4 requirements.
33906
33907 2007-04-03  Bruno Haible  <bruno@clisp.org>
33908
33909         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
33910         * modules/isnanl-tests (configure.ac): Likewise.
33911
33912 2007-04-03  Ben Pfaff  <blp@gnu.org>
33913
33914         * modules/iconv_open: Add $(srcdir)/ to source directory
33915         references in Makefile fragments that call gperf, to fix VPATH
33916         builds.
33917
33918 2007-04-03  Bruno Haible  <bruno@clisp.org>
33919
33920         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
33921         * lib/ldexpl.c: Undo last change.
33922
33923 2007-04-03  Bruno Haible  <bruno@clisp.org>
33924
33925         * modules/printf-frexpl (Depends-on): Undo last change.
33926         (Files): Add m4/ldexpl.m4.
33927
33928 2007-04-03  Bruno Haible  <bruno@clisp.org>
33929
33930         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
33931         * modules/isnanl (Link): New section.
33932
33933         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
33934         * modules/frexp (Link): New section.
33935
33936         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
33937         * modules/frexpl (Link): New section.
33938
33939         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
33940         * modules/ldexpl (Link): New section.
33941
33942 2007-04-03  Bruno Haible  <bruno@clisp.org>
33943
33944         * modules/TEMPLATE-EXTENDED: New file.
33945         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
33946
33947 2007-04-03  Bruno Haible  <bruno@clisp.org>
33948
33949         * DEPENDENCIES: New file.
33950         Suggested by Simon Josefsson.
33951
33952 2007-04-03  Bruno Haible  <bruno@clisp.org>
33953
33954         * doc/gnulib.texi: Escape @.
33955
33956 2007-04-03  James Youngman  <jay@gnu.org>
33957         and Paul Eggert  <eggert@cs.ucla.edu>
33958
33959         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
33960         birthtime on all systems that have birthtime, not just those which
33961         use st_birthtimensec rather than st_birthtim.  Putting zero in
33962         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
33963         that the birth time is not available for files on an NFS mount.
33964
33965 2007-04-03  Simon Josefsson  <simon@josefsson.org>
33966
33967         * modules/memxor: Move back from crypto/, suggested by Bruno.
33968         * modules/crypto/hmac-sha1: Fix memxor dependency.
33969
33970         * modules/crypto/gc: Moved from ../.
33971
33972 2007-04-02  Eric Blake  <ebb9@byu.net>
33973
33974         * lib/ldexpl.c (includes): Avoid libm.
33975
33976         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
33977
33978 2007-04-02  Bruno Haible  <bruno@clisp.org>
33979
33980         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
33981         on IRIX.
33982
33983 2007-04-02  Bruno Haible  <bruno@clisp.org>
33984
33985         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
33986         x86 or x86_64 platforms running MacOS X.
33987         Reported by Ryan Schmidt <@ryandesign.com>.
33988
33989 2007-04-02  Bruno Haible  <bruno@clisp.org>
33990
33991         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
33992         i386.
33993
33994 2007-04-01  Simon Josefsson  <simon@josefsson.org>
33995
33996         * modules/crypto/arcfour: Moved from ../.
33997         * modules/crypto/arcfour-tests: Moved from ../.
33998         * modules/crypto/arctwo: Moved from ../.
33999         * modules/crypto/arctwo-tests: Moved from ../.
34000         * modules/crypto/des: Moved from ../.
34001         * modules/crypto/des-tests: Moved from ../.
34002         * modules/crypto/gc-arcfour: Moved from ../.
34003         * modules/crypto/gc-arcfour-tests: Moved from ../.
34004         * modules/crypto/gc-arctwo: Moved from ../.
34005         * modules/crypto/gc-arctwo-tests: Moved from ../.
34006         * modules/crypto/gc-des: Moved from ../.
34007         * modules/crypto/gc-des-tests: Moved from ../.
34008         * modules/crypto/gc-hmac-md5: Moved from ../.
34009         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
34010         * modules/crypto/gc-hmac-sha1: Moved from ../.
34011         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
34012         * modules/crypto/gc-md2: Moved from ../.
34013         * modules/crypto/gc-md2-tests: Moved from ../.
34014         * modules/crypto/gc-md4: Moved from ../.
34015         * modules/crypto/gc-md4-tests: Moved from ../.
34016         * modules/crypto/gc-md5: Moved from ../.
34017         * modules/crypto/gc-md5-tests: Moved from ../.
34018         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
34019         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
34020         * modules/crypto/gc-random: Moved from ../.
34021         * modules/crypto/gc-rijndael: Moved from ../.
34022         * modules/crypto/gc-rijndael-tests: Moved from ../.
34023         * modules/crypto/gc-sha1: Moved from ../.
34024         * modules/crypto/gc-sha1-tests: Moved from ../.
34025         * modules/crypto/gc-tests: Moved from ../.
34026         * modules/crypto/hmac-md5: Moved from ../.
34027         * modules/crypto/hmac-md5-tests: Moved from ../.
34028         * modules/crypto/hmac-sha1: Moved from ../.
34029         * modules/crypto/hmac-sha1-tests: Moved from ../.
34030         * modules/crypto/md2: Moved from ../.
34031         * modules/crypto/md2-tests: Moved from ../.
34032         * modules/crypto/md4: Moved from ../.
34033         * modules/crypto/md4-tests: Moved from ../.
34034         * modules/crypto/md5: Moved from ../.
34035         * modules/crypto/md5-tests: Moved from ../.
34036         * modules/crypto/memxor: Moved from ../.
34037         * modules/crypto/rijndael: Moved from ../.
34038         * modules/crypto/rijndael-tests: Moved from ../.
34039         * modules/crypto/sha1: Moved from ../.
34040
34041 2007-03-30  James Youngman  <jay@gnu.org>
34042
34043         * tests/test-stat-time.c (prepare_test): use chmod() rather than
34044         rename() to change the ctime of a file (because ctime is unaffected
34045         by rename on jfs2 on AIX 5.1).
34046         (main): Start by doing cleanup, in case a previous run failed leaving
34047         test files behind.
34048
34049 2007-03-31  Bruno Haible  <bruno@clisp.org>
34050
34051         Support old proprietary implementations of iconv.
34052         * modules/iconv_open: New file.
34053         * lib/iconv_.h: New file.
34054         * m4/iconv_h.m4: New file.
34055         * lib/iconv_open.c: New file.
34056         * lib/iconv_open-aix.gperf: New file.
34057         * lib/iconv_open-hpux.gperf: New file.
34058         * lib/iconv_open-irix.gperf: New file.
34059         * lib/iconv_open-osf.gperf: New file.
34060         * m4/iconv_open.m4: New file.
34061         * modules/linebreak (Depends-on): Add iconv_open.
34062         * modules/striconv (Depends-on): Likewise.
34063         * modules/striconveh (Depends-on): Likewise.
34064         * modules/unicodeio (Depends-on): Likewise.
34065         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
34066         (iconv_t)(-1).
34067         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
34068         conversion if cd is (iconv_t)(-1).
34069         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
34070         is not possible.
34071
34072 2007-03-31  Bruno Haible  <bruno@clisp.org>
34073
34074         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34075         work on Solaris either. Protect also second use of "autodetect_jp".
34076
34077 2007-03-31  Bruno Haible  <bruno@clisp.org>
34078
34079         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
34080         the function is not present.
34081
34082 2007-03-31  Bruno Haible  <bruno@clisp.org>
34083
34084         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
34085         the function is not present.
34086
34087 2007-03-31  Bruno Haible  <bruno@clisp.org>
34088
34089         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
34090         a bug in HP-UX iconv_open().
34091
34092 2007-03-31  Bruno Haible  <bruno@clisp.org>
34093
34094         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
34095         (Mathematics <math.h>): New section, add fpieee.
34096         (Input/output <stdio.h>): Add fseterr.
34097         (Mathematics <math.h>): New section, add printf-frexp.
34098         (Container data structures): Add sublist.
34099         (Core language properties): Add fpucw, inline.
34100         (Functions for greatest-width integer types <inttypes.h>): Add
34101         imaxabs, imaxdiv, inttypes.
34102         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
34103         isnanl-nolibm, ldexp.
34104         (Mathematics <math.h>): New section, add printf-frexpl.
34105         (Support for systems lacking POSIX:2001): Add fprintf-posix,
34106         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
34107         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
34108         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
34109         (Unicode string functions): Add unistr/u*-mbtoucr.
34110         (Java): Add javacomp-script, javaexec-script.
34111         (C#): Add csharpcomp-script, csharpexec-script.
34112         (Support for building libraries and executables): Add havelib,
34113         relocatable-*.
34114         (Support for maintaining and releasing projects): Renamed from
34115         'Support for maintaining and release projects'. Add announce-gen.
34116
34117 2007-03-31  Bruno Haible  <bruno@clisp.org>
34118
34119         * README: Talk primarily about git.
34120         (git and CVS): Renamed from CVS.
34121         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
34122         gnulib is available through git.
34123         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
34124
34125 2007-03-30  Bruno Haible  <bruno@clisp.org>
34126
34127         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
34128         * lib/poll_.h: Likewise.
34129         * lib/stat_.h: Likewise.
34130         * lib/sys_time_.h: Likewise.
34131         * lib/sysexit_.h: Likewise.
34132         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
34133         * lib/stdbool_.h: Likewise.
34134         * lib/byteswap_.h: Add double-inclusion guard.
34135
34136 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
34137
34138         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
34139
34140 2007-03-30  Karl Berry  <karl@gnu.org>
34141
34142         * config/srclist-update: double space after USA in the license
34143         substitution, since that's how it's usually (?) written.
34144
34145 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
34146
34147         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
34148         reported by Bruno Haible.
34149
34150 2007-03-29  Bruno Haible  <bruno@clisp.org>
34151
34152         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
34153         a bug in AIX iconv().
34154
34155 2007-03-29  Bruno Haible  <bruno@clisp.org>
34156
34157         * modules/ldexpl-tests: New file.
34158         * tests/test-ldexpl.c: New file.
34159
34160 2007-03-29  Bruno Haible  <bruno@clisp.org>
34161
34162         * lib/ldexpl.c: Include fpucw.h.
34163         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
34164         multiplication.
34165         * modules/ldexpl (Depends-on): Add fpucw.
34166
34167 2007-03-29  Bruno Haible  <bruno@clisp.org>
34168
34169         * modules/ldexpl: New file.
34170         * m4/ldexpl.m4: New file.
34171         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
34172         set.
34173         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
34174         REPLACE_LDEXPL.
34175         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
34176         REPLACE_LDEXPL.
34177         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34178         gl_FUNC_LDEXPL_WORKS.
34179         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
34180         * modules/mathl (Files): Remove lib/ldexpl.c.
34181         (Depends-on): Add ldexpl.
34182
34183 2007-03-29  Bruno Haible  <bruno@clisp.org>
34184
34185         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
34186
34187 2007-03-29  Bruno Haible  <bruno@clisp.org>
34188
34189         * tests/test-striconveh.c (main): Don't assume that a direct conversion
34190         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
34191         and possibly also HP-UX.
34192         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34193         work on AIX, IRIX, HP-UX, OSF/1.
34194         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
34195         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
34196         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
34197         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
34198         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
34199         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
34200
34201 2007-03-29  Bruno Haible  <bruno@clisp.org>
34202
34203         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
34204
34205 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
34206
34207         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
34208         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
34209
34210 2007-03-29  Eric Blake  <ebb9@byu.net>
34211
34212         * lib/acl-internal.h: Remove redundant include.
34213         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
34214         Cygwin when a file is locked.
34215
34216 2007-03-29  Bruno Haible  <bruno@clisp.org>
34217
34218         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
34219         file.
34220         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
34221
34222 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
34223
34224         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
34225         try to remove a parent directory if the child couldn't be removed
34226         (except for the first rmdir, which could fail because the child
34227         doesn't exist).  Problem reported by Jeff Blaine in
34228         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
34229
34230 2007-03-28  Bruno Haible  <bruno@clisp.org>
34231
34232         * lib/striconveh.c (utf8conv_carefully): New function.
34233         (mem_cd_iconveh_internal): Invoke it.
34234
34235 2007-03-28  Bruno Haible  <bruno@clisp.org>
34236
34237         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
34238         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
34239         input.
34240         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
34241         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
34242         unistr/u8-uctomb.
34243
34244 2007-03-28  Bruno Haible  <bruno@clisp.org>
34245
34246         * modules/unistr/u8-mbtoucr: New file.
34247         * lib/unistr/u8-mbtoucr.c: New file.
34248         * modules/unistr/u16-mbtoucr: New file.
34249         * lib/unistr/u16-mbtoucr.c: New file.
34250         * modules/unistr/u16-mbtoucr: New file.
34251         * lib/unistr/u16-mbtoucr.c: New file.
34252         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
34253
34254 2007-03-27  Simon Josefsson  <simon@josefsson.org>
34255             Bruno Haible  <bruno@clisp.org>
34256
34257         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
34258         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
34259         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
34260
34261         * m4/stdio_h.m4: Add stubs for vasprintf too.
34262
34263         * modules/stdio: Support vasprintf in sed command.
34264
34265         * modules/vasprintf: Depend on stdio for prototypes.  Remove
34266         vasprintf.h.  Add stdio module indicator.
34267
34268         * lib/stdio_.h: Declare asprintf and vasprintf, based on
34269         vasprintf.h.
34270
34271         * lib/vasprintf.h: File removed.
34272
34273         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
34274         * lib/vasprintf.c: Ditto.
34275         * lib/xvasprintf.c: Ditto.
34276         * tests/test-vasprintf-posix.c: Ditto.
34277         * tests/test-vasprintf.c: Ditto.
34278
34279 2007-03-27  Bruno Haible  <bruno@clisp.org>
34280
34281         Make vasnprintf multithread-safe.
34282         * lib/vasnprintf.c (decimal_point_char): New function.
34283         (VASNPRINTF): Use it.
34284         Suggested by Simon Josefsson.
34285
34286 2007-03-27  Eric Blake  <ebb9@byu.net>
34287
34288         Support sub-second birthtime on cygwin.
34289         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
34290         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
34291         (get_stat_birthtime): Also work with st_birthtim.
34292
34293 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
34294
34295         * lib/stat-time.h (USE_BIRTHTIME): Remove.
34296         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
34297         (get_stat_birthtime_ns): Do not try to use "spare" fields.
34298         (get_stat_birthtime_ns): Simplify compile-time tests.
34299         (get_stat_birthtime): Change the API to look like
34300         get_stat_mtime etc., except return a negative tv_nsec on error.
34301         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
34302         Don't check for "spare" fields.
34303         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
34304         or for struct stat.st_birthtime, as these tests aren't used.
34305         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
34306
34307 2007-03-27  Bruno Haible  <bruno@clisp.org>
34308
34309         * lib/stat-time.h: Include <sys/stat.h>.
34310
34311 2007-03-27  James Youngman  <jay@gnu.org>
34312
34313         * lib/stat-time.h (get_stat_birthtime): New function for
34314           retrieving st_birthtime as provided by UFS2 (hence *BSD).
34315         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
34316           and its variants.
34317         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
34318         * modules/stat-time-test: New file.
34319         * tests/test-stat-time.c: New test, devised by Bruno Haible.
34320
34321 2007-03-26  Bruno Haible  <bruno@clisp.org>
34322
34323         Better support of signalling NaNs.
34324         * lib/atanl.c: Include isnanl.h.
34325         (atanl): Perform test for NaN at the beginning of the function and
34326         through a call to isnanl.
34327         * lib/cosl.c: Include isnanl.h.
34328         (cosl): Perform test for NaN at the beginning of the function and
34329         through a call to isnanl.
34330         * lib/ldexpl.c: Include isnanl.h.
34331         (ldexpl): Perform test for NaN through a call to isnanl.
34332         * lib/logl.c: Include isnanl.h.
34333         (logl): Perform test for NaN at the beginning of the function and
34334         through a call to isnanl.
34335         * lib/sinl.c: Include isnanl.h.
34336         (sinl): Perform test for NaN at the beginning of the function and
34337         through a call to isnanl.
34338         * lib/sqrtl.c: Include isnanl.h.
34339         (sqrtl): Perform test for NaN at the beginning of the function and
34340         through a call to isnanl.
34341         * lib/tanl.c: Include isnanl.h.
34342         (tanl): Perform test for NaN at the beginning of the function and
34343         through a call to isnanl.
34344         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
34345         * modules/mathl (Depends-on): Add isnanl.
34346
34347 2007-03-26  Eric Blake  <ebb9@byu.net>
34348
34349         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
34350         regression in logic sense of previous patch.
34351
34352 2007-03-26  Bruno Haible  <bruno@clisp.org>
34353
34354         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
34355         unportable shell command "if ! ...".
34356         Reported by Ralf Wildenhues.
34357
34358 2007-03-25  Bruno Haible  <bruno@clisp.org>
34359
34360         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
34361         <sysexits.h> file, and only add EX_CONFIG.
34362         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
34363         absolute file name and whether it is sufficient. Substitute also
34364         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
34365         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
34366         ABSOLUTE_SYSEXITS_H into sysexits.h.
34367
34368 2007-03-25  Bruno Haible  <bruno@clisp.org>
34369
34370         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
34371         hints is NULL.
34372
34373 2007-03-25  Bruno Haible  <bruno@clisp.org>
34374
34375         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
34376         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
34377
34378 2007-03-25  Bruno Haible  <bruno@clisp.org>
34379
34380         * lib/vasnprintf.c: Include langinfo.h.
34381         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
34382         multithread-safe.
34383         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
34384         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
34385         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34386         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34387         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34388         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34389         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34390         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
34391         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34392         Reported by Simon Josefsson.
34393
34394 2007-03-25  Bruno Haible  <bruno@clisp.org>
34395
34396         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
34397         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
34398         * modules/vasnprintf (Depends-on): Add stdint.
34399
34400 2007-03-25  Bruno Haible  <bruno@clisp.org>
34401
34402         * modules/fpieee: New file.
34403         * m4/fpieee.m4: New file.
34404         * modules/isnan-nolibm (Depends-on): Add fpieee.
34405         * modules/isnanl-nolibm (Depends-on): Add fpieee.
34406         * modules/isnanl (Depends-on): Add fpieee.
34407
34408 2007-03-25  Bruno Haible  <bruno@clisp.org>
34409
34410         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
34411
34412 2007-03-25  Bruno Haible  <bruno@clisp.org>
34413
34414         Avoid test failures on IRIX 6.5.
34415         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
34416         (main): Use it.
34417         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
34418         macros.
34419         (main): Use them.
34420
34421 2007-03-25  Bruno Haible  <bruno@clisp.org>
34422
34423         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
34424         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
34425         exists but doesn't work.
34426         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
34427         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
34428         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
34429         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
34430
34431 2007-03-25  Bruno Haible  <bruno@clisp.org>
34432
34433         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
34434         returns inf. Needed on IRIX 6.5.
34435
34436 2007-03-25  Bruno Haible  <bruno@clisp.org>
34437
34438         * tests/test-frexpl.c: Include isnanl-nolibm.h.
34439         (main): Use isnanl instead of x != x idiom.
34440         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
34441
34442         * tests/test-frexp.c: Include isnan.h.
34443         (main): Use isnan instead of x != x idiom.
34444         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
34445
34446 2007-03-25  Bruno Haible  <bruno@clisp.org>
34447
34448         * tests/test-frexp.c (NaN): New function/macro.
34449         (main): Use it instead of 0.0 / 0.0.
34450         * tests/test-isnan.c (NaN): New function/macro.
34451         (main): Use it instead of 0.0 / 0.0.
34452         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
34453         (test_function): Use it instead of 0.0 / 0.0.
34454         * tests/test-vasprintf-posix.c (NaN): New function/macro.
34455         (test_function): Use it instead of 0.0 / 0.0.
34456         * tests/test-snprintf-posix.h (NaN): New function/macro.
34457         (test_function): Use it instead of 0.0 / 0.0.
34458         * tests/test-sprintf-posix.h (NaN): New function/macro.
34459         (test_function): Use it instead of 0.0 / 0.0.
34460         * tests/test-fprintf-posix.h (NaN): New function/macro.
34461         (test_function): Use it instead of 0.0 / 0.0.
34462         * tests/test-printf-posix.h (NaN): New function/macro.
34463         (test_function): Use it instead of 0.0 / 0.0.
34464
34465         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
34466
34467 2007-03-25  Bruno Haible  <bruno@clisp.org>
34468
34469         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
34470
34471 2007-03-25  Bruno Haible  <bruno@clisp.org>
34472
34473         * lib/regexec.c (merge_state_with_log): Make static.
34474
34475 2007-03-25  Bruno Haible  <bruno@clisp.org>
34476
34477         * lib/trigl.c (kernel_rem_pio2): Make static.
34478
34479 2007-03-25  Bruno Haible  <bruno@clisp.org>
34480
34481         * lib/sincosl.c (sincosl_table): Make static.
34482
34483 2007-03-25  Bruno Haible  <bruno@clisp.org>
34484
34485         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
34486         if the compiler does not support C99.
34487
34488 2007-03-25  Bruno Haible  <bruno@clisp.org>
34489
34490         * modules/time (Makefile.am): Ensure all rule action lines start with a
34491         tab.
34492
34493 2007-03-24  Bruno Haible  <bruno@clisp.org>
34494
34495         * modules/tsearch-tests: New file.
34496         * tests/test-tsearch.sh: New file.
34497         * tests/test-tsearch.c: New file, mostly copied from glibc.
34498
34499         * modules/search-tests: New file.
34500         * tests/test-search.c: New file.
34501
34502         * modules/search: New file.
34503         * lib/search_.h: New file, incorporating lib/tsearch.h.
34504         * m4/search_h.m4: New file.
34505         * lib/tsearch.h: Remove file.
34506         * lib/tsearch.c: Include search.h instead of tsearch.h.
34507         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
34508         HAVE_TSEARCH.
34509         * modules/tsearch (Files): Remove lib/tsearch.h.
34510         (Depends-on): Add search.
34511         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
34512         (Include): Change tsearch.h into search.h.
34513
34514 2007-03-24  Bruno Haible  <bruno@clisp.org>
34515
34516         * modules/fpucw: New file.
34517         * lib/fpucw.h: New file.
34518         * lib/frexp.c: Include fpucw.h.
34519         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
34520         (FUNC): Use them.
34521         * lib/printf-frexp.c: Include fpucw.h.
34522         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
34523         (FUNC): Use them.
34524         * lib/vasnprintf.c: Include fpucw.h.
34525         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
34526         'long double' calculations.
34527         * tests/test-frexpl.c: Include fpucw.h.
34528         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
34529         * tests/test-printf-frexpl.c: Include fpucw.h.
34530         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
34531         * modules/frexpl (Depends-on): Add fpucw.
34532         * modules/printf-frexpl (Depends-on): Likewise.
34533         * modules/fprintf-posix (Depends-on): Likewise.
34534         * modules/snprintf-posix (Depends-on): Likewise.
34535         * modules/sprintf-posix (Depends-on): Likewise.
34536         * modules/vasnprintf-posix (Depends-on): Likewise.
34537         * modules/vasprintf-posix (Depends-on): Likewise.
34538         * modules/vfprintf-posix (Depends-on): Likewise.
34539         * modules/vsnprintf-posix (Depends-on): Likewise.
34540         * modules/vsprintf-posix (Depends-on): Likewise.
34541         * modules/frexpl-tests (Depends-on): Likewise.
34542         * modules/printf-frexpl-tests (Depends-on): Likewise.
34543
34544 2007-03-24  Bruno Haible  <bruno@clisp.org>
34545
34546         * lib/float+.h: New file.
34547         * lib/isnan.c: Include float+.h.
34548         (SIZE): New macro.
34549         (FUNC): Compare only SIZE bytes of the value.
34550         * lib/vasnprintf.c: Include float+.h.
34551         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
34552         SIZEOF_LDBL or SIZEOF_DBL bytes.
34553         * modules/isnan-nolibm (Files): Add lib/float+.h.
34554         * modules/isnanl-nolibm (Files): Add lib/float+.h.
34555         * modules/isnanl (Files): Add lib/float+.h.
34556         * modules/vasnprintf (Files): Add lib/float+.h.
34557
34558 2007-03-24  Bruno Haible  <bruno@clisp.org>
34559
34560         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
34561         include isnanl-nolibm.h.
34562
34563 2007-03-24  Bruno Haible  <bruno@clisp.org>
34564
34565         * tests/test-read-file.c (main): Don't produce spurious output for
34566         expected situations. Make the test fail if it encountered unexpected
34567         results.
34568
34569 2007-03-24  Bruno Haible  <bruno@clisp.org>
34570
34571         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
34572         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
34573
34574 2007-03-24  Bruno Haible  <bruno@clisp.org>
34575
34576         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
34577
34578 2007-03-24  Bruno Haible  <bruno@clisp.org>
34579
34580         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
34581         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
34582
34583         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
34584         * modules/utf8-ucs4: Turn into a symbolic link to module
34585         unistr/u8-mbtouc.
34586
34587         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
34588         utf8-ucs4-unsafe.
34589         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
34590         unistr/u8-mbtouc-unsafe.
34591
34592         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
34593         * modules/utf16-ucs4: Turn into a symbolic link to module
34594         unistr/u16-mbtouc.
34595
34596         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
34597         utf16-ucs4-unsafe.
34598         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
34599         unistr/u16-mbtouc-unsafe.
34600
34601         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
34602         * modules/ucs4-utf8: Turn into a symbolic link to module
34603         unistr/u8-ubtomb.
34604
34605         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
34606         * modules/ucs4-utf16: Turn into a symbolic link to module
34607         unistr/u16-ubtomb.
34608
34609 2007-03-24  Bruno Haible  <bruno@clisp.org>
34610
34611         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
34612         Enable the function only if HAVE_INLINE.
34613         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
34614         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
34615         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
34616         Enable the function only if HAVE_INLINE.
34617         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
34618         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
34619         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
34620         Enable the function only if HAVE_INLINE.
34621         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
34622         Enable the function only if HAVE_INLINE.
34623         * modules/utf8-ucs4: Update.
34624         * modules/utf8-ucs4-unsafe: Update.
34625         * modules/utf16-ucs4: Update.
34626         * modules/utf16-ucs4-unsafe: Update.
34627         * modules/ucs4-utf8: Update.
34628         * modules/ucs4-utf16: Update.
34629
34630 2007-03-24  Bruno Haible  <bruno@clisp.org>
34631
34632         * lib/utf8-ucs4.h: Remove file.
34633         * lib/utf8-ucs4-unsafe.h: Remove file.
34634         * lib/utf16-ucs4.h: Remove file.
34635         * lib/utf16-ucs4-unsafe.h: Remove file.
34636         * lib/ucs4-utf8.h: Remove file.
34637         * lib/ucs4-utf16.h: Remove file.
34638         * lib/unistr.h: Include their previous contents.
34639         * m4/utf-ucs4.m4: Remove file.
34640         * m4/ucs4-utf.m4: Remove file.
34641         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
34642         (Depends-on): Add unistr/base.
34643         (configure.ac): Remove gl_UTF_UCS4.
34644         (Makefile.am): Update.
34645         (Include): Change to unistr.h.
34646         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
34647         (Depends-on): Add unistr/base.
34648         (configure.ac): Remove gl_UTF_UCS4.
34649         (Makefile.am): Update.
34650         (Include): Change to unistr.h.
34651         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
34652         (Depends-on): Add unistr/base.
34653         (configure.ac): Remove gl_UTF_UCS4.
34654         (Makefile.am): Update.
34655         (Include): Change to unistr.h.
34656         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
34657         (Depends-on): Add unistr/base.
34658         (configure.ac): Remove gl_UTF_UCS4.
34659         (Makefile.am): Update.
34660         (Include): Change to unistr.h.
34661         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
34662         (Depends-on): Add unistr/base.
34663         (configure.ac): Remove gl_UCS4_UTF.
34664         (Makefile.am): Update.
34665         (Include): Change to unistr.h.
34666         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
34667         (Depends-on): Add unistr/base.
34668         (configure.ac): Remove gl_UCS4_UTF.
34669         (Makefile.am): Update.
34670         (Include): Change to unistr.h.
34671         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
34672         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
34673         utf8-ucs4-unsafe.h.
34674         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
34675         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
34676         utf16-ucs4-unsafe.h.
34677         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
34678         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
34679         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
34680         * lib/unistr/u8-strchr.c: Likewise.
34681         * lib/unistr/u8-strrchr.c: Likewise.
34682         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
34683         * lib/unistr/u16-strchr.c: Likewise.
34684         * lib/unistr/u16-strrchr.c: Likewise.
34685         * lib/striconveh.c: Update.
34686         * lib/linebreak.c: Update.
34687
34688 2007-03-24  Bruno Haible  <bruno@clisp.org>
34689
34690         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
34691         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
34692
34693 2007-03-22  Bruno Haible  <bruno@clisp.org>
34694
34695         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
34696
34697 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
34698
34699         * MODULES.html.sh (File system functions): New module write-any-file.
34700         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
34701         * m4/write-any-file.m4: New files.
34702
34703 2007-03-23  Eric Blake  <ebb9@byu.net>
34704
34705         * gnulib-tool: Rearrange space-tab sequences, since some editors
34706         like to eat them.
34707
34708 2007-03-23  Eric Blake  <ebb9@byu.net>
34709
34710         * lib/version-etc.c (version_etc_va): Update license wording to
34711         be more concise.  Recommended by Richard Stallman.
34712
34713 2007-03-22  Bruno Haible  <bruno@clisp.org>
34714
34715         * lib/poll.c (MSG_PEEK): New fallback definition.
34716
34717 2007-03-22  Bruno Haible  <bruno@clisp.org>
34718
34719         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
34720         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
34721         (main): Update.
34722         Fixes a compilation error on BeOS.
34723
34724 2007-03-22  Bruno Haible  <bruno@clisp.org>
34725
34726         * modules/frexpl-tests: New file.
34727         * tests/test-frexpl.c: New file.
34728
34729         * modules/frexpl: New file.
34730         * m4/frexpl.m4: New file.
34731         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
34732         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
34733         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
34734         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
34735         (Depends-on): Add frexpl. Remove isnanl-nolibm.
34736         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
34737
34738 2007-03-22  Bruno Haible  <bruno@clisp.org>
34739
34740         * lib/frexpl.c: Share code with lib/frexp.c.
34741         * modules/mathl (Files): Add lib/frexp.c.
34742         (Depends-on): Add isnanl-nolibm.
34743
34744 2007-03-22  Bruno Haible  <bruno@clisp.org>
34745
34746         * modules/printf-frexp (Files): Add m4/frexp.m4.
34747         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
34748         only if the found frexp function actually works.
34749
34750 2007-03-22  Bruno Haible  <bruno@clisp.org>
34751
34752         * lib/frexp.c: Remove older implementation that uses divisions.
34753
34754 2007-03-21  Bruno Haible  <bruno@clisp.org>
34755
34756         * modules/frexp-tests: New file.
34757         * tests/test-frexp.c: New file.
34758
34759         * modules/frexp: New file.
34760         * lib/frexp.c: New file.
34761         * m4/frexp.m4: New file.
34762         * lib/math_.h (frexp): New declaration.
34763         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
34764         REPLACE_FREXP.
34765         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
34766
34767 2007-03-21  Bruno Haible  <bruno@clisp.org>
34768
34769         * modules/isnanl-tests: New file.
34770         * tests/test-isnanl.c: New file.
34771
34772         * modules/isnanl: New file.
34773         * lib/isnanl.h: New file.
34774         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
34775         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
34776         gl_FUNC_ISNANL_WORKS.
34777         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
34778         New macros.
34779
34780 2007-03-21  Bruno Haible  <bruno@clisp.org>
34781
34782         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
34783         lib/isnanl.h.
34784         (Include): Update.
34785         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
34786         * lib/vasnprintf.c: Update.
34787         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
34788         tests/test-isnanl.h, remove tests/test-isnanl.c.
34789         (Makefile.am): Update.
34790         * tests/test-isnanl-nolibm.c: New file.
34791         * tests/test-isnanl.h: New file.
34792         * tests/test-isnanl.c: Remove file.
34793
34794 2007-03-21  Jim Meyering  <jim@meyering.net>
34795
34796         When trying to open ".", treat ESTALE like EACCES.
34797         * lib/savewd.c (savewd_save): Resort to forking not just upon
34798         failure with EACCES, but also when errno is ESTALE.
34799
34800 2007-03-20  Bruno Haible  <bruno@clisp.org>
34801
34802         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
34803         Needed on AIX 5.1. Reported by Matthew Woehlke.
34804
34805 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34806
34807         Suggestions by Bruno Haible:
34808         * lib/acl-internal.h: Include "gettext.h" rather than rolling
34809         our own.
34810         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
34811         * modules/acl (Depends-on): Add gettext.
34812
34813 2007-03-19  Bruno Haible  <bruno@clisp.org>
34814
34815         * modules/iconvme: Remove file.
34816         * lib/iconvme.h: Remove file.
34817         * lib/iconvme.c: Remove file.
34818         * m4/iconvme.m4: Remove file.
34819
34820 2007-03-19  Bruno Haible  <bruno@clisp.org>
34821
34822         * doc/relocatable-maint.texi: Break long shell script line.
34823         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
34824
34825 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34826
34827         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
34828         handle file_has_acl.
34829         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
34830         * lib/acl.c: Move header inclusions and related macro defns into
34831         lib/acl-internal.h.
34832         (S_ISLNK): Remove defn, since that's now done for us.
34833         (file_has_acl): Move to lib/file-has-acl.c.
34834         Call acl_trivial if available.  This is the crucial part of the fix.
34835         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
34836         shared within the library.  Rewrite a bit, partly to make it compatible
34837         with the GNU coding style.
34838         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
34839         Remove unnecessary double-quotes.
34840         Don't test for acl_to_text; the build will catch that.
34841         Replace acl_entries if it doesn't exist and it is needed.
34842         Check for -lsec and acl_trivial (as used on Solaris 10).
34843         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
34844         lib/file-has-acl.c.
34845         (Depends-on): Add sys_stat, for S_ISLNK.
34846
34847 2007-03-19  Ben Pfaff  <blp@gnu.org>
34848
34849         * doc/gnulib.texi: Fix typos.
34850         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
34851
34852 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34853
34854         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
34855         If size is zero here, buf must be zero.
34856
34857 2007-03-19  Simon Josefsson  <simon@josefsson.org>
34858
34859         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
34860         <bruno@clisp.org>.
34861
34862 2007-03-18  Bruno Haible  <bruno@clisp.org>
34863
34864         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
34865         Suggested by Eric Blake.
34866
34867 2007-03-18  Ben Pfaff  <blp@gnu.org>
34868
34869         * doc/relocatable.texi: Recommend using as prefix a directory
34870         that does not exist and will never be created.  Based on
34871         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
34872         and others.
34873
34874 2007-03-17  Bruno Haible  <bruno@clisp.org>
34875
34876         * lib/fchownat.c: Include lchown.h.
34877
34878 2007-03-17  Bruno Haible  <bruno@clisp.org>
34879
34880         Fix endless loop when the given allocated size was > INT_MAX.
34881         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
34882         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
34883         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
34884         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
34885         * lib/sprintf.c (sprintf): Likewise.
34886
34887 2007-03-17  Bruno Haible  <bruno@clisp.org>
34888
34889         * tests/test-argp-2.sh (func_compare): Output a context diff.
34890
34891 2007-03-17  Bruno Haible  <bruno@clisp.org>
34892
34893         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
34894         locale's decimal-point character.
34895
34896 2007-03-17  Bruno Haible  <bruno@clisp.org>
34897
34898         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
34899         before comparing it. Needed because on some platforms (e.g. x86) a
34900         'long double' occupies less bytes than sizeof (long double).
34901
34902 2007-03-17  Bruno Haible  <bruno@clisp.org>
34903
34904         * tests/test-crc.c (main): Make printf statements 64-bit clean.
34905         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
34906         * tests/test-getaddrinfo.c (simple): Likewise.
34907         * tests/test-read-file.c (main): Likewise.
34908
34909 2007-03-17  Bruno Haible  <bruno@clisp.org>
34910
34911         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
34912
34913 2007-03-17  Bruno Haible  <bruno@clisp.org>
34914
34915         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
34916         unused variable.
34917
34918 2007-03-17  Bruno Haible  <bruno@clisp.org>
34919
34920         * tests/test-c-strcasecmp.c: Include c-strcase.h.
34921         * tests/test-c-strncasecmp.c: Likewise.
34922
34923 2007-03-17  Bruno Haible  <bruno@clisp.org>
34924
34925         * modules/stdlib (Depends-on): Add unistd.
34926         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
34927         Needed for MacOS X 10.3.
34928
34929 2007-03-17  Bruno Haible  <bruno@clisp.org>
34930
34931         * lib/unistr/u-strdup.h: Include <stdlib.h>.
34932
34933 2007-03-17  Bruno Haible  <bruno@clisp.org>
34934
34935         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
34936
34937 2007-03-17  Bruno Haible  <bruno@clisp.org>
34938
34939         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
34940         to reflect files copied from gnulib (with or without modifications).
34941         Suggested by Jim Meyering.
34942
34943 2007-03-17  Eric Blake  <ebb9@byu.net>
34944
34945         * NEWS: Document stdlib change from 2007-02-18.
34946
34947 2007-03-17  Jim Meyering  <jim@meyering.net>
34948
34949         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
34950         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
34951         someone uses a name containing shell meta-characters.
34952         Reported by Alfred M. Szmidt.
34953
34954         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
34955
34956 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
34957
34958         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
34959         and copy gettext configuration files only if configure.ac contains
34960         a use of AM_GNU_GETTEXT_VERSION.
34961
34962 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
34963
34964         * build-aux/bootstrap (gnulib_name): New variable.
34965         (gnulib_tool_options): Use it.
34966
34967 2007-03-13  Simon Josefsson  <simon@josefsson.org>
34968
34969         * tests/test-des.c: Use new namespace.
34970
34971 2007-03-15  Bruno Haible  <bruno@clisp.org>
34972
34973         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
34974         Reported by James Youngman <jay@gnu.org>.
34975
34976 2007-03-15  Bruno Haible  <bruno@clisp.org>
34977
34978         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
34979         declared prototype. Needed with cc on OSF/1 5.1.
34980
34981 2007-03-15  Bruno Haible  <bruno@clisp.org>
34982
34983         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
34984         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
34985         (struct gl_list_implementation): Add dispose_fn argument to the
34986         'create_empty', 'create' methods.
34987         (struct gl_list_impl_base): Add field 'dispose_fn'.
34988         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
34989         argument.
34990         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
34991         dispose_fn argument.
34992         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
34993         dispose_fn on the dropped values.
34994         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
34995         dispose_fn argument.
34996         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
34997         dropped values.
34998         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
34999         (gl_tree_remove_node): Call dispose_fn on the dropped value.
35000         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
35001         (gl_tree_remove_node): Call dispose_fn on the dropped value.
35002         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
35003         argument.
35004         (gl_tree_list_free): Call dispose_fn on the dropped values.
35005         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
35006         the dropped values.
35007         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
35008         Add dispose_fn argument.
35009         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
35010         Call dispose_fn on the dropped values.
35011         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
35012         Add dispose_fn argument.
35013         (gl_sublist_create): Initialize the 'dispose_fn' field.
35014         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
35015         * tests/test-array_list.c (main): Update.
35016         * tests/test-carray_list.c (main): Update.
35017         * tests/test-avltree_list.c (main): Update.
35018         * tests/test-rbtree_list.c (main): Update.
35019         * tests/test-avltreehash_list.c (main): Update.
35020         * tests/test-rbtreehash_list.c (main): Update.
35021         * tests/test-linked_list.c (main): Update.
35022         * tests/test-linkedhash_list.c (main): Update.
35023         * tests/test-array_oset.c (main): Update.
35024
35025 2007-03-15  Bruno Haible  <bruno@clisp.org>
35026
35027         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
35028         (gl_oset_create_empty): Add dispose_fn argument.
35029         (struct gl_oset_implementation): Add dispose_fn argument to
35030         'create_empty' method.
35031         (struct gl_oset_impl_base): Add dispose_fn field.
35032         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
35033         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
35034         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
35035         values.
35036         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
35037         (gl_tree_oset_free): Call dispose_fn on the dropped values.
35038         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35039         dropped value.
35040         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35041         dropped value.
35042         * tests/test-array_oset.c (main): Update.
35043         * tests/test-avltree_oset.c (main): Update.
35044         * tests/test-rbtree_oset.c (main): Update.
35045         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
35046
35047 2007-03-13  Bruno Haible  <bruno@clisp.org>
35048
35049         * tests/test-stdbool.c (i): Update after last patch.
35050
35051 2007-03-12  Bruno Haible  <bruno@clisp.org>
35052
35053         * lib/quotearg.c: Include <wctype.h> early, before the definition of
35054         the iswprint macro. Needed on Solaris 2.5.1.
35055
35056 2007-03-12  Bruno Haible  <bruno@clisp.org>
35057
35058         * tests/test-printf-frexp.c (main): Declare x as volatile.
35059
35060 2007-03-12  Simon Josefsson  <simon@josefsson.org>
35061
35062         * doc/gnulib.texi (Build robot for gnulib): New section.
35063
35064 2007-03-12  Jim Meyering  <jim@meyering.net>
35065
35066         * build-aux/bootstrap: New file.
35067         * build-aux/bootstrap.conf: New file, from coreutils.
35068
35069 2007-03-11  Bruno Haible  <bruno@clisp.org>
35070
35071         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
35072
35073 2007-03-12  Simon Josefsson  <simon@josefsson.org>
35074
35075         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
35076         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
35077         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
35078
35079 2007-03-11  Bruno Haible  <bruno@clisp.org>
35080
35081         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
35082         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
35083
35084 2007-03-11  Bruno Haible  <bruno@clisp.org>
35085
35086         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
35087         formula. Needed for SunPRO C 5.0.
35088
35089 2007-03-11  Bruno Haible  <bruno@clisp.org>
35090
35091         * modules/long-options (Depends-on): Add getopt.
35092
35093 2007-03-11  Bruno Haible  <bruno@clisp.org>
35094
35095         * modules/modechange (Depends-on): Add stdbool.
35096
35097 2007-03-11  Bruno Haible  <bruno@clisp.org>
35098
35099         * modules/i-ring (Depends-on): Add stdbool.
35100
35101 2007-03-11  Bruno Haible  <bruno@clisp.org>
35102
35103         * modules/gc-des (Depends-on): Add stdbool.
35104
35105 2007-03-11  Bruno Haible  <bruno@clisp.org>
35106
35107         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
35108
35109 2007-03-11  Bruno Haible  <bruno@clisp.org>
35110
35111         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
35112
35113 2007-03-11  Bruno Haible  <bruno@clisp.org>
35114
35115         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
35116
35117 2007-03-11  Bruno Haible  <bruno@clisp.org>
35118
35119         * lib/vasnprintf.c (sprintf): Undefine.
35120
35121 2007-03-11  Bruno Haible  <bruno@clisp.org>
35122
35123         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
35124         initializers in SunPRO C and Compaq C compilers.
35125
35126 2007-03-11  Bruno Haible  <bruno@clisp.org>
35127
35128         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
35129         decrementing code ANSI C compliant.
35130
35131 2007-03-11  Bruno Haible  <bruno@clisp.org>
35132
35133         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
35134         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
35135
35136 2007-03-11  Bruno Haible  <bruno@clisp.org>
35137
35138         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
35139         <stdbool.h> substitute doesn't pass.
35140
35141 2007-03-11  Bruno Haible  <bruno@clisp.org>
35142
35143         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
35144
35145 2007-03-11  Bruno Haible  <bruno@clisp.org>
35146
35147         * gnulib-tool (func_create_megatestdir): Create also an autobuild
35148         script, for submission to autobuild.josefsson.org.
35149
35150 2007-03-10  Bruno Haible  <bruno@clisp.org>
35151
35152         * modules/canonicalize-lgpl-tests: New file.
35153         * tests/test-canonicalize-lgpl.sh: New file.
35154         * tests/test-canonicalize-lgpl.c: New file.
35155
35156         * modules/c-strcase-tests: New file.
35157         * tests/test-c-strcase.sh: New file.
35158         * tests/test-c-strcasecmp.c: New file.
35159         * tests/test-c-strncasecmp.c: New file.
35160
35161         * modules/atexit-tests: New file.
35162         * tests/test-atexit.sh: New file.
35163         * tests/test-atexit.c: New file.
35164
35165 2007-03-10  Bruno Haible  <bruno@clisp.org>
35166
35167         * tests/test-binary-io.sh: Use temporary filenames that are not so
35168         likely to clash with those of other tests (in a parallel make).
35169         * tests/test-binary-io.c: Likewise.
35170
35171 2007-03-10  Bruno Haible  <bruno@clisp.org>
35172
35173         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
35174         fallback; use #error instead.
35175         Suggested by Simon Josefsson.
35176
35177 2007-03-10  Bruno Haible  <bruno@clisp.org>
35178
35179         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
35180         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
35181         first and the last.
35182
35183 2007-03-10  Bruno Haible  <bruno@clisp.org>
35184
35185         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
35186
35187 2007-03-10  Bruno Haible  <bruno@clisp.org>
35188
35189         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
35190         "make distcheck".
35191         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
35192         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
35193         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
35194
35195 2007-03-10  Bruno Haible  <bruno@clisp.org>
35196
35197         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
35198         variable.
35199         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
35200         variable.
35201
35202 2007-03-09  Eric Blake  <ebb9@byu.net>
35203         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
35204
35205         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
35206         types are not being provided by gnulib.
35207         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
35208         types are supported.
35209
35210 2007-03-10  Bruno Haible  <bruno@clisp.org>
35211
35212         * lib/stdio_.h (__attribute__): New macro.
35213         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
35214         vsprintf): Specify __attribute__ __format__ for GCC.
35215         Suggested by Eric Blake.
35216
35217 2007-03-09  Bruno Haible  <bruno@clisp.org>
35218
35219         * modules/printf-posix-tests: New file.
35220         * tests/test-printf-posix.sh: New file.
35221         * tests/test-printf-posix.c: New file.
35222
35223         * modules/printf-posix: New file.
35224         * lib/printf.c: New file.
35225         * m4/printf-posix-rpl.m4: New file.
35226         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
35227         REPLACE_PRINTF.
35228         * lib/stdio_.h (printf): New declaration.
35229         (format, __format__, ____printf____, ____scanf____, ____strftime____,
35230         ____strfmon____): New macros.
35231         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
35232         REPLACE_PRINTF.
35233
35234 2007-03-09  Bruno Haible  <bruno@clisp.org>
35235
35236         * tests/test-vasnprintf-posix2.sh: New file.
35237         * tests/test-vasnprintf-posix2.c: New file.
35238         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
35239         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
35240         (Makefile.am): Activate test-vasnprintf-posix2.sh.
35241
35242         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
35243         a locale dependent decimal point, rather than always '.'.
35244
35245 2007-03-09  Eric Blake  <ebb9@byu.net>
35246
35247         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
35248         spite of platforms like Tandem/NSK that define it to -1.
35249
35250 2007-03-08  Bruno Haible  <bruno@clisp.org>
35251
35252         * modules/vprintf-posix-tests: New file.
35253         * tests/test-vprintf-posix.sh: New file.
35254         * tests/test-vprintf-posix.c: New file.
35255         * tests/test-printf-posix.h: New file.
35256
35257         * modules/vprintf-posix: New file.
35258         * lib/vprintf.c: New file.
35259         * m4/vprintf-posix.m4: New file.
35260         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
35261         REPLACE_VPRINTF.
35262         * lib/stdio_.h (vprintf): New declaration.
35263         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
35264         REPLACE_VPRINTF.
35265
35266 2007-03-08  Bruno Haible  <bruno@clisp.org>
35267
35268         * modules/fprintf-posix-tests: New file.
35269         * tests/test-fprintf-posix.sh: New file.
35270         * tests/test-fprintf-posix.c: New file.
35271
35272         * modules/fprintf-posix: New file.
35273         * lib/fprintf.c: New file.
35274         * m4/fprintf-posix.m4: New file.
35275         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
35276         REPLACE_FPRINTF.
35277         * lib/stdio_.h (fprintf): New declaration.
35278         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
35279         REPLACE_FPRINTF.
35280
35281 2007-03-08  Bruno Haible  <bruno@clisp.org>
35282
35283         * modules/vfprintf-posix-tests: New file.
35284         * tests/test-vfprintf-posix.sh: New file.
35285         * tests/test-vfprintf-posix.c: New file.
35286         * tests/test-fprintf-posix.h: New file.
35287         * tests/test-fprintf-posix.out: New file.
35288
35289         * modules/vfprintf-posix: New file.
35290         * lib/vfprintf.c: New file.
35291         * m4/vfprintf-posix.m4: New file.
35292         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
35293         REPLACE_VFPRINTF.
35294         * lib/stdio_.h (vfprintf): New declaration.
35295         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
35296         REPLACE_VFPRINTF.
35297
35298 2007-03-08  Bruno Haible  <bruno@clisp.org>
35299
35300         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
35301
35302 2007-03-08  Bruno Haible  <bruno@clisp.org>
35303
35304         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
35305         instead of 'expr' invocations.
35306         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35307         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35308         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35309         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35310         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35311         Suggested by Paul Eggert.
35312
35313 2007-03-08  Bruno Haible  <bruno@clisp.org>
35314
35315         * modules/fseterr-tests: New file.
35316         * tests/test-fseterr.c: New file.
35317
35318         * modules/fseterr: New file.
35319         * lib/fseterr.h: New file.
35320         * lib/fseterr.c: New file.
35321
35322 2007-03-08  Bruno Haible  <bruno@clisp.org>
35323
35324         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
35325         * lib/getopt_.h: Likewise.
35326         * lib/mbswidth.h: Likewise.
35327         * lib/setenv.h: Likewise.
35328         * lib/vasnprintf.h: Likewise.
35329         * lib/vasprintf.h: Likewise.
35330         * lib/verror.h: Likewise.
35331         * lib/xsetenv.h: Likewise.
35332         * lib/xvasprintf.h: Likewise.
35333
35334 2007-03-08  Jim Meyering  <jim@meyering.net>
35335
35336         * users.txt: Add parted.
35337
35338         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
35339
35340 2007-03-07  Bruno Haible  <bruno@clisp.org>
35341
35342         * m4/printf.m4: Make the shell script snippets copy&pastable.
35343
35344 2007-03-02  Bruno Haible  <bruno@clisp.org>
35345
35346         * lib/netinet_in_.h: New file.
35347         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
35348         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
35349         * modules/netinet_in (Files): Add lib/netinet_in_.h.
35350         (Depends-on): Add absolute-header.
35351         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
35352         into netinet/in.h.
35353
35354 2007-03-03  Bruno Haible  <bruno@clisp.org>
35355
35356         * lib/sys_select_.h: New file.
35357         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
35358         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
35359         * modules/sys_select (Files): Add lib/sys_select_.h.
35360         (Depends-on): Add absolute-header.
35361         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
35362         into sys/select.h.
35363
35364 2007-03-02  Bruno Haible  <bruno@clisp.org>
35365
35366         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
35367         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
35368         values.
35369         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
35370         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
35371         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
35372         * modules/sys_socket (Depends-on): Add absolute-header.
35373         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
35374         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
35375         (Include): Remove requirement of inclusion of <sys/types.h>.
35376
35377 2007-03-02  Bruno Haible  <bruno@clisp.org>
35378
35379         * lib/byteswap_.h (bswap_32): Fix formula.
35380
35381 2007-03-06  Bruno Haible  <bruno@clisp.org>
35382
35383         * modules/sprintf-posix-tests: New file.
35384         * tests/test-sprintf-posix.c: New file.
35385
35386         * modules/sprintf-posix: New file.
35387         * lib/sprintf.c: New file.
35388         * m4/sprintf-posix.m4: New file.
35389         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
35390         REPLACE_SPRINTF.
35391         * lib/stdio_.h (sprintf): New declaration.
35392         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
35393         REPLACE_SPRINTF.
35394
35395 2007-03-06  Bruno Haible  <bruno@clisp.org>
35396
35397         * modules/vsprintf-posix-tests: New file.
35398         * tests/test-vsprintf-posix.c: New file.
35399         * tests/test-sprintf-posix.h: New file.
35400
35401         * modules/vsprintf-posix: New file.
35402         * lib/vsprintf.c: New file.
35403         * m4/vsprintf-posix.m4: New file.
35404         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
35405         REPLACE_VSPRINTF.
35406         * lib/stdio_.h (vsprintf): New declaration.
35407         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
35408         REPLACE_VSPRINTF.
35409
35410 2007-03-06  Bruno Haible  <bruno@clisp.org>
35411
35412         * modules/vsnprintf (Depend-on): Remove minmax.
35413
35414 2007-03-06  Bruno Haible  <bruno@clisp.org>
35415
35416         * modules/snprintf-posix-tests: New file.
35417         * tests/test-snprintf-posix.c: New file.
35418
35419         * modules/snprintf-posix: New file.
35420         * m4/snprintf-posix.m4: New file.
35421         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
35422         gl_FUNC_SNPRINTF.
35423         (gl_FUNC_SNPRINTF): Invoke it.
35424         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
35425         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
35426         is set.
35427         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
35428
35429 2007-03-06  Bruno Haible  <bruno@clisp.org>
35430
35431         * modules/vsnprintf-posix-tests: New file.
35432         * tests/test-vsnprintf-posix.c: New file.
35433         * tests/test-snprintf-posix.h: New file.
35434
35435         * modules/vsnprintf-posix: New file.
35436         * m4/vsnprintf-posix.m4: New file.
35437         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
35438         gl_FUNC_VSNPRINTF.
35439         (gl_FUNC_VSNPRINTF): Invoke it.
35440         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
35441         * lib/stdio_.h (vsnprintf): Define as a replacement if
35442         REPLACE_VSNPRINTF is set.
35443         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
35444
35445 2007-03-06  Bruno Haible  <bruno@clisp.org>
35446
35447         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
35448         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
35449
35450 2007-03-06  Bruno Haible  <bruno@clisp.org>
35451
35452         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
35453         (asinl): Declare also if HAVE_DECL_ASINL is set.
35454         (atanl): Declare also if HAVE_DECL_ATANL is set.
35455         (ceill): Declare also if HAVE_DECL_CEILL is set.
35456         (cosl): Declare also if HAVE_DECL_COSL is set.
35457         (expl): Declare also if HAVE_DECL_EXPL is set.
35458         (floorl): Declare also if HAVE_DECL_FLOORL is set.
35459         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
35460         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
35461         (logl): Declare also if HAVE_DECL_LOGL is set.
35462         (sinl): Declare also if HAVE_DECL_SINL is set.
35463         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
35464         (tanl): Declare also if HAVE_DECL_TANL is set.
35465         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
35466         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
35467         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
35468         declaration of frexpl, ldexpl.
35469         * modules/printf-frexpl (Depends-on): Add math.
35470         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
35471
35472 2007-03-05  Bruno Haible  <bruno@clisp.org>
35473
35474         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
35475         frexpl and ldexpl are declared.
35476         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
35477
35478 2007-03-05  Bruno Haible  <bruno@clisp.org>
35479
35480         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
35481         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
35482
35483 2007-03-05  Bruno Haible  <bruno@clisp.org>
35484
35485         * lib/stdio_.h: Include <stddef.h>.
35486
35487 2007-03-05  Bruno Haible  <bruno@clisp.org>
35488
35489         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
35490
35491 2007-03-05  Bruno Haible  <bruno@clisp.org>
35492
35493         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
35494         NetBSD 4, from Ralf Wildenhues.
35495
35496 2007-03-04  Bruno Haible  <bruno@clisp.org>
35497
35498         * lib/vasprintf.h: Update #if logic for the case when the functions
35499         exist but are overridden.
35500
35501 2007-03-04  Bruno Haible  <bruno@clisp.org>
35502
35503         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
35504         implementations: glibc-2.4 and MacOS X 10.3.
35505         * tests/test-vasnprintf-posix.c (test_function): Test also the case
35506         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
35507         * tests/test-vasprintf-posix.c (test_function): Likewise.
35508
35509 2007-03-04  Bruno Haible  <bruno@clisp.org>
35510
35511         * modules/vasprintf-posix-tests: New file.
35512         * tests/test-vasprintf-posix.c: New file.
35513
35514         * modules/vasprintf-posix: New file.
35515         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
35516         defined.
35517         * m4/vasprintf-posix.m4: New file.
35518         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
35519         gl_FUNC_VASPRINTF.
35520         (gl_FUNC_VASPRINTF): Invoke it.
35521         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
35522         here.
35523         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
35524
35525 2007-03-04  Bruno Haible  <bruno@clisp.org>
35526
35527         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
35528         REPLACE_GETTIMEOFDAY.
35529         * modules/sys_time (Makefile.am): Likewise.
35530         * m4/sys_time_h.m4: Likewise.
35531         * m4/gettimeofday.m4: Likewise.
35532
35533 2007-03-04  Bruno Haible  <bruno@clisp.org>
35534
35535         * modules/vasnprintf-posix-tests: New file.
35536         * tests/test-vasnprintf-posix.c: New file.
35537
35538         * modules/vasnprintf-posix: New file.
35539         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
35540         printf-frexpl.h.
35541         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
35542         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
35543         REPLACE_VASNPRINTF is defined.
35544         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
35545         gl_FUNC_VASNPRINTF.
35546         (gl_FUNC_VASNPRINTF): Invoke it.
35547         * m4/vasnprintf-posix.m4: New file.
35548         * m4/printf.m4: New file.
35549
35550 2007-03-04  Bruno Haible  <bruno@clisp.org>
35551
35552         Compile progreloc.c only if --enable-relocatable is specified.
35553         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
35554         if --enable-relocatable was specified.
35555         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
35556         lib_SOURCES.
35557
35558 2007-03-04  Jim Meyering  <jim@meyering.net>
35559
35560         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
35561         Use it consistently, rather than enumerating errno constants.
35562
35563 2007-03-04  Bruno Haible  <bruno@clisp.org>
35564
35565         * modules/xvasprintf-tests: New file.
35566         * tests/test-xvasprintf.c: New file.
35567
35568         * modules/vasprintf-tests: New file.
35569         * tests/test-vasprintf.c: New file.
35570
35571         * modules/vasnprintf-tests: New file.
35572         * tests/test-vasnprintf.c: New file.
35573
35574         * modules/vsnprintf-tests: New file.
35575         * tests/test-vsnprintf.c: New file.
35576
35577         * modules/snprintf-tests: New file.
35578         * tests/test-snprintf.c: New file.
35579
35580 2007-03-04  Bruno Haible  <bruno@clisp.org>
35581
35582         Compile relocatable.c only if --enable-relocatable is specified.
35583         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
35584         gl_RELOCATABLE_LIBRARY.
35585         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
35586         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
35587         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
35588         gl_RELOCATABLE_LIBRARY.
35589         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
35590         (Makefile.am): Remove lib_SOURCES.
35591         * modules/relocatable-lib-lgpl (configure.ac): Invoke
35592         gl_RELOCATABLE_LIBRARY.
35593         (Makefile.am): Remove lib_SOURCES.
35594         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
35595         always.
35596         * modules/relocatable-prog-wrapper (configure.ac): Invoke
35597         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
35598
35599 2007-03-04  Bruno Haible  <bruno@clisp.org>
35600
35601         * modules/argmatch-tests: New file.
35602         * tests/test-argmatch.c: New file.
35603
35604         * tests/test-allocsa.c (main): Halve the number of loop runs.
35605
35606         * modules/alloca-opt-tests: New file.
35607         * tests/test-alloca-opt.c: New file.
35608
35609 2007-03-04  Jim Meyering  <jim@meyering.net>
35610
35611         Work around difference between Linux ACLs and Solaris 10 ZFS.
35612         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
35613         for EINVAL.
35614
35615 2007-03-03  Bruno Haible  <bruno@clisp.org>
35616
35617         * modules/relocatable-prog (Depends-on): Add back progreloc's
35618         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
35619
35620 2007-03-03  Bruno Haible  <bruno@clisp.org>
35621
35622         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
35623         * modules/relocatable-lib: New file.
35624
35625 2007-03-03  Bruno Haible  <bruno@clisp.org>
35626
35627         * modules/relocatable-prog: Renamed from modules/relocatable.
35628         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
35629
35630 2007-03-03  Bruno Haible  <bruno@clisp.org>
35631
35632         * modules/relocatable-script (Files): Add doc/relocatable.texi,
35633         m4/relocatable-lib.m4.
35634         (Depends-on): Remove 'relocatable'.
35635         (configure.ac): Add gl_RELOCATABLE_NOP.
35636
35637 2007-03-03  Bruno Haible  <bruno@clisp.org>
35638
35639         * modules/relocatable-prog-wrapper: New file.
35640         * modules/relocatable (Depends-on): Add it. Remove all other
35641         dependencies except progname.
35642         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
35643
35644         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
35645         (gl_FUNC_STRERROR): Nop.
35646         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
35647
35648         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
35649         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
35650
35651         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
35652         (gl_FUNC_READLINK): Update.
35653
35654         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
35655
35656 2007-03-03  Bruno Haible  <bruno@clisp.org>
35657
35658         * lib/xreadlink.c: Include <unistd.h> unconditionally.
35659         * modules/xreadlink (Depends-on): Add unistd.
35660         * modules/xreadlink-with-size (Depends-on): Likewise.
35661
35662 2007-03-03  Bruno Haible  <bruno@clisp.org>
35663
35664         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
35665         extracted from gt_FUNC_SETENV.
35666         (gt_FUNC_SETENV): Remove macro.
35667         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
35668         remove gt_FUNC_SETENV.
35669
35670 2007-03-03  Bruno Haible  <bruno@clisp.org>
35671
35672         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
35673         ENABLE_RELOCATABLE here.
35674         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
35675
35676 2007-03-03  Bruno Haible  <bruno@clisp.org>
35677
35678         * modules/rbtreehash-list-tests (Depends-on): Add progname.
35679         * tests/test-rbtreehash_list.c: Include progname.h.
35680         (main): Call set_program_name.
35681
35682         * modules/rbtree-oset-tests (Depends-on): Add progname.
35683         * tests/test-rbtree_oset.c: Include progname.h.
35684         (main): Call set_program_name.
35685
35686         * modules/rbtree-list-tests (Depends-on): Add progname.
35687         * tests/test-rbtree_list.c: Include progname.h.
35688         (main): Call set_program_name.
35689
35690         * modules/linked-list-tests (Depends-on): Add progname.
35691         * tests/test-linked_list.c: Include progname.h.
35692         (main): Call set_program_name.
35693
35694 2007-03-03  Bruno Haible  <bruno@clisp.org>
35695
35696         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
35697         All uses of __restrict changed to _Restrict_.
35698         * lib/glob_.h (__restrict): Remove macro.
35699
35700 2007-03-02  Bruno Haible  <bruno@clisp.org>
35701
35702         * modules/gettext (configure.ac): Require gettext infrastructure
35703         from version 0.16.1.
35704
35705 2007-03-02  Bruno Haible  <bruno@clisp.org>
35706
35707         * modules/linkedhash-list-tests (Depends-on): Add progname.
35708         * tests/test-linkedhash_list.c: Include progname.h.
35709         (main): Call set_program_name.
35710
35711         * modules/carray-list-tests (Depends-on): Add progname.
35712         * tests/test-carray_list.c: Include progname.h.
35713         (main): Call set_program_name.
35714
35715         * modules/avltreehash-list-tests (Depends-on): Add progname.
35716         * tests/test-avltreehash_list.c: Include progname.h.
35717         (main): Call set_program_name.
35718
35719         * modules/avltree-oset-tests (Depends-on): Add progname.
35720         * tests/test-avltree_oset.c: Include progname.h.
35721         (main): Call set_program_name.
35722
35723         * modules/avltree-list-tests (Depends-on): Add progname.
35724         * tests/test-avltree_list.c: Include progname.h.
35725         (main): Call set_program_name.
35726
35727         * modules/array-oset-tests (Depends-on): Add progname.
35728         * tests/test-array_oset.c: Include progname.h.
35729         (main): Call set_program_name.
35730
35731         * modules/array-list-tests (Depends-on): Add progname.
35732         * tests/test-array_list.c: Include progname.h.
35733         (main): Call set_program_name.
35734
35735         * modules/argp-tests (Depends-on): Add progname.
35736         * tests/test-argp.c: Include argp.h first. Include progname.h.
35737         (main): Call set_program_name.
35738
35739 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
35740
35741         * doc/gnulib-tool.texi (Initial import): Reword description of
35742         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
35743         limited effect even if defined after the first system include.
35744
35745 2007-03-01  Bruno Haible  <bruno@clisp.org>
35746
35747         * build-aux/config.libpath: Update to libtool-1.5.22.
35748         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35749
35750 2007-03-01  Bruno Haible  <bruno@clisp.org>
35751
35752         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
35753         foo_CFLAGS.
35754         Reported by Ralf Wildenhues.
35755
35756 2007-03-01  Bruno Haible  <bruno@clisp.org>
35757
35758         * build-aux/install-reloc: Remove object files left over by some
35759         compilers.
35760         Reported by Ralf Wildenhues.
35761
35762 2007-03-01  Bruno Haible  <bruno@clisp.org>
35763
35764         * build-aux/install-reloc: Break long lines.
35765
35766 2007-03-01  Bruno Haible  <bruno@clisp.org>
35767
35768         * doc/relocatable.texi: Document that it may not work on OpenBSD.
35769         Reported by Ralf Wildenhues.
35770
35771 2007-03-01  Bruno Haible  <bruno@clisp.org>
35772
35773         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
35774         include ordering constraints.
35775
35776 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
35777
35778         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
35779         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
35780         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
35781         as another example.
35782         * lib/time_.h: Fix misspelling.
35783         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
35784         Require gl_HEADER_TIME_H_DEFAULTS.
35785         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
35786         * m4/time_r.m4 (gl_TIME_R): Likewise.
35787         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
35788
35789 2007-03-01  Bruno Haible  <bruno@clisp.org>
35790
35791         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
35792         * m4/utimens.m4 (gl_UTIMENS): Likewise.
35793
35794 2007-03-01  Jim Meyering  <jim@meyering.net>
35795
35796         * modules/xreadlink (Maintainer): Add my name.
35797         * modules/xreadlink-with-size (Depends-on): Alphabetize.
35798
35799 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
35800             Bruno Haible  <bruno@clisp.org>
35801
35802         * build-aux/install-reloc: Compile also c-ctype.c.
35803         * build-aux/relocatable.sh.in: New file.
35804         * doc/relocatable.texi: New file.
35805         * doc/relocatable-maint.texi: New file.
35806         * doc/gnulib.texi: Include relocatable-maint.texi.
35807         * lib/progreloc.c: Include unistd.h unconditionally.
35808         * lib/relocwrapper.c: Include unistd.h unconditionally.
35809         Include c-ctype.h.
35810         (add_dotbin): Use c_tolower.
35811         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
35812         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
35813         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
35814         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
35815         to m4/relocatable-lib.m4.
35816         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
35817         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
35818         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
35819         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
35820         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
35821         * modules/relocatable: New file.
35822         * modules/relocatable-lib: New file.
35823         * modules/relocatable-script: New file.
35824
35825 2007-02-28  Bruno Haible  <bruno@clisp.org>
35826
35827         Import --enable-relocatable infrastructure.
35828         * build-aux/config.libpath: New file, from GNU gettext.
35829         * build-aux/install-reloc: New file, from GNU gettext.
35830         * build-aux/reloc-ldflags: New file, from GNU gettext.
35831         * lib/relocatable.h: New file, from GNU gettext.
35832         * lib/relocatable.c: New file, from GNU gettext.
35833         * lib/relocwrapper.c: New file, from GNU gettext.
35834         * m4/relocatable.m4: New file, from GNU gettext.
35835
35836 2007-02-28  Bruno Haible  <bruno@clisp.org>
35837
35838         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
35839
35840         * modules/xreadlink: New file, from GNU gettext with modifications.
35841         * lib/xreadlink.c: New file, from GNU gettext.
35842         * lib/xreadlink.h: Add comments.
35843         (xreadlink): New declaration.
35844
35845         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
35846         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
35847         lib/xreadlink-with-size.c.
35848         (configure.ac): Remove gl_XREADLINK invocation.
35849         (Makefile.am): Augment lib_SOURCES.
35850         * m4/xreadlink.m4: Remove file.
35851         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
35852         (xreadlink_with_size): Renamed from xreadink.
35853         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
35854         * modules/canonicalize (Depends-on): Replace xreadlink with
35855         xreadlink-with-size.
35856         * lib/canonicalize.c (canonicalize_filename_mode): Update.
35857
35858 2007-02-25  Jim Meyering  <jim@meyering.net>
35859
35860         * build-aux/announce-gen: When complaining about excess arguments,
35861         list them.
35862
35863 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
35864
35865         * README: Document signed integer overflow situation more
35866         accurately.
35867
35868 2007-02-25  Bruno Haible  <bruno@clisp.org>
35869
35870         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
35871         'a' or 'A' conversion.
35872
35873 2007-02-25  Bruno Haible  <bruno@clisp.org>
35874
35875         * modules/filename: Renamed from modules/pathname.
35876         (Files): Replace lib/pathname.h with lib/filename.h. Replace
35877         lib/concatpath.c with lib/concat-filename.c.
35878         (Makefile.am): Update.
35879         (Include): Replace pathname.h with filename.h.
35880         * lib/filename.h: Renamed from lib/pathname.h.
35881         (concatenated_filename): Renamed from concatenated_pathname.
35882         * lib/concat-filename.c: Renamed from lib/concatpath.c.
35883         (concatenated_filename): Renamed from concatenated_pathname.
35884         * lib/findprog.c: Include filename.h instead of pathname.h.
35885         (find_in_path): Update.
35886         * lib/javacomp.c: Include filename.h instead of pathname.h.
35887         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
35888         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
35889         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
35890         is_oldgcj_14_13_usable, is_javac_usable): Update.
35891         * lib/javaexec.c: Include filename.h instead of pathname.h.
35892         (execute_java_class): Update.
35893         * modules/findprog: Update.
35894         * modules/javacomp: Update.
35895         * modules/javaexec: Update.
35896         * MODULES.html.sh (File system functions): Add 'filename', remove
35897         'pathname'.
35898
35899 2007-02-25  Bruno Haible  <bruno@clisp.org>
35900
35901         * modules/printf-frexpl-tests: New file.
35902         * tests/test-printf-frexpl.c: New file.
35903
35904         * modules/printf-frexpl: New file.
35905         * lib/printf-frexpl.h: New file.
35906         * lib/printf-frexpl.c: New file.
35907         * m4/printf-frexpl.m4: New file.
35908
35909 2007-02-25  Bruno Haible  <bruno@clisp.org>
35910
35911         * modules/printf-frexp-tests: New file.
35912         * tests/test-printf-frexp.c: New file.
35913
35914         * modules/printf-frexp: New file.
35915         * lib/printf-frexp.h: New file.
35916         * lib/printf-frexp.c: New file.
35917         * m4/printf-frexp.m4: New file.
35918
35919 2007-02-25  Bruno Haible  <bruno@clisp.org>
35920
35921         Assume automake >= 1.10 for the tests.
35922         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
35923         * modules/arctwo-tests: Likewise.
35924         * modules/argp-tests: Likewise.
35925         * modules/avltree-list-tests: Likewise.
35926         * modules/avltree-oset-tests: Likewise.
35927         * modules/avltreehash-list-tests: Likewise.
35928         * modules/carray-list-tests: Likewise.
35929         * modules/crc-tests: Likewise.
35930         * modules/des-tests: Likewise.
35931         * modules/gc-arcfour-tests: Likewise.
35932         * modules/gc-arctwo-tests: Likewise.
35933         * modules/gc-des-tests: Likewise.
35934         * modules/gc-hmac-md5-tests: Likewise.
35935         * modules/gc-hmac-sha1-tests: Likewise.
35936         * modules/gc-md2-tests: Likewise.
35937         * modules/gc-md4-tests: Likewise.
35938         * modules/gc-md5-tests: Likewise.
35939         * modules/gc-pbkdf2-sha1-tests: Likewise.
35940         * modules/gc-rijndael-tests: Likewise.
35941         * modules/gc-sha1-tests: Likewise.
35942         * modules/gc-tests: Likewise.
35943         * modules/getaddrinfo-tests: Likewise.
35944         * modules/hmac-md5-tests: Likewise.
35945         * modules/hmac-sha1-tests: Likewise.
35946         * modules/linked-list-tests: Likewise.
35947         * modules/linkedhash-list-tests: Likewise.
35948         * modules/lock-tests: Likewise.
35949         * modules/md2-tests: Likewise.
35950         * modules/md4-tests: Likewise.
35951         * modules/md5-tests: Likewise.
35952         * modules/rbtree-list-tests: Likewise.
35953         * modules/rbtree-oset-tests: Likewise.
35954         * modules/rbtreehash-list-tests: Likewise.
35955         * modules/read-file-tests: Likewise.
35956         * modules/rijndael-tests: Likewise.
35957         * modules/stdint-tests: Likewise.
35958         * modules/tls-tests: Likewise.
35959
35960 2007-02-24  Bruno Haible  <bruno@clisp.org>
35961
35962         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
35963         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
35964         function; instead check whether isnan with a double argument links.
35965         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
35966         function; instead check whether isnan with a 'long double' argument
35967         links.
35968         Reported by Eric Blake <ebb9@byu.net>.
35969
35970 2007-02-24  Bruno Haible  <bruno@clisp.org>
35971
35972         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
35973         defined.
35974         * lib/isnanl.c: Remove all code. Just include isnan.c.
35975         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
35976
35977 2007-02-25  Jim Meyering  <jim@meyering.net>
35978
35979         Avoid conflicting types for 'unsetenv' on FreeBSD.
35980         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
35981         conflicting with FreeBSD's (5.0 and 6.1) function declaration
35982         in stdlib.h.
35983
35984 2007-02-24  Bruno Haible  <bruno@clisp.org>
35985
35986         * modules/isnanl-nolibm-tests: New file.
35987         * tests/test-isnanl.c: New file.
35988
35989         * modules/isnanl-nolibm: New file.
35990         * lib/isnanl.h: New file.
35991         * lib/isnanl.c: New file.
35992         * m4/isnanl.m4: New file.
35993
35994 2007-02-24  Bruno Haible  <bruno@clisp.org>
35995
35996         * modules/isnan-nolibm-tests: New file.
35997         * tests/test-isnan.c: New file.
35998
35999         * modules/isnan-nolibm: New file.
36000         * lib/isnan.h: New file.
36001         * lib/isnan.c: New file.
36002         * m4/isnan.m4: New file.
36003
36004 2007-02-24  Bruno Haible  <bruno@clisp.org>
36005
36006         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
36007         assume that an exponent fits in 20 bits.
36008
36009 2007-02-24  Jim Meyering  <jim@meyering.net>
36010
36011         * m4/regex.m4: Update the description of the configure-time option,
36012         --without-included-regex, to state accurately what the defaults are,
36013         and perhaps to give people an idea why using this option is risky.
36014
36015 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
36016
36017         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
36018         loops on small arguments.  This attempts to avoid the problem
36019         Bruno Haible reported for AIX 4.3.2 in
36020         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
36021
36022 2007-02-23  Bruno Haible  <bruno@clisp.org>
36023
36024         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
36025         Needed for help2man.
36026
36027 2007-02-23  Karl Berry  <karl@gnu.org>
36028
36029         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
36030         exists, foo.h should be cvs-ignored, not committed.
36031
36032 2007-02-23  Eric Blake  <ebb9@byu.net>
36033
36034         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
36035         * lib/stat-time.h (includes): Likewise.
36036         * lib/utimecmp.c (includes): Likewise.
36037         * lib/utimens.h (includes): Likewise.
36038         * lib/getdate.y (includes): Also include "timespec.h" for use
36039         internal to the module.
36040         * modules/utimens (Depends-on): Revert yesterday's patch.
36041         * modules/nanosleep (Depends-on): Add missing dependency.
36042
36043 2007-02-22  Bruno Haible  <bruno@clisp.org>
36044
36045         * lib/glob.c: Don't include getlogin_r.h.
36046
36047 2007-02-22  Jim Meyering  <jim@meyering.net>
36048
36049         * modules/utimens (Depends-on): Add timespec, required for
36050         utimens.h's inclusion of timespec.h.
36051
36052 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
36053
36054         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
36055         long unreadable paths in GNU/Linux.  Problem reported by Andreas
36056         Schwab in
36057         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
36058         I'll try to think of a better way to fix the Solaris problem.
36059
36060         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
36061         like glibc; on Solaris 10, it fails with errno == EINVAL.
36062         POSIX says the behavior is unspecified if the first argument is NULL,
36063         so play it safe and never pass NULL to the system getcwd.
36064
36065 2007-02-21  Jim Meyering  <jim@meyering.net>
36066
36067         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
36068         of gettimeofday.  It would conflict with the one now always
36069         provided via sys_time_.h.  Reported by Matthew Woehlke, as
36070         an IRIX 6.5 build failure.
36071
36072 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
36073
36074         Minor fixups to port to Solaris 10 with Sun C 5.8.
36075         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
36076         * modules/getcwd (Depends-on): Add dirfd.
36077         * lib/putenv.c (putenv): #undef it.
36078         (rpl_putenv): New decl.
36079         (malloc, free): Include <stdlib.h> rather than prototyping separately.
36080
36081 2007-02-20  Bruno Haible  <bruno@clisp.org>
36082
36083         * modules/stdio-tests: New file.
36084         * tests/test-stdio.c: New file.
36085
36086         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
36087         (Depends-on): Add stdio.
36088         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36089         (Include): Use <stdio.h> instead of vsnprintf.h.
36090         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36091         HAVE_DECL_VSNPRINTF.
36092         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
36093
36094         * modules/snprintf (Files): Remove lib/snprintf.h.
36095         (Depends-on): Add stdio.
36096         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36097         (Include): Use <stdio.h> instead of snprintf.h.
36098         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36099         HAVE_DECL_SNPRINTF.
36100         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
36101         * lib/getaddrinfo.c: Likewise.
36102
36103         * modules/stdio: New file.
36104         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
36105         * lib/snprintf.h: Remove file.
36106         * lib/vsnprintf.h: Remove file.
36107         * lib/.cppi-disable: Remove snprintf.h.
36108         * m4/stdio_h.m4: New file.
36109         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
36110
36111 2007-02-20  Jim Meyering  <jim@meyering.net>
36112
36113         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
36114         used by e.g., mingw.  From Bruno Haible.
36115
36116 2007-02-19  Bruno Haible  <bruno@clisp.org>
36117
36118         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
36119         warnings.
36120         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36121
36122 2007-02-19  Bruno Haible  <bruno@clisp.org>
36123
36124         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
36125         from mingw users.
36126
36127 2007-02-19  Bruno Haible  <bruno@clisp.org>
36128
36129         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
36130         warnings.
36131         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
36132
36133 2007-02-19  Jim Meyering  <jim@meyering.net>
36134
36135         Don't use FD after a successful "fdopendir (fd)".
36136         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
36137         Reset it by calling dirfd on the just-obtained DIR*.
36138
36139         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
36140         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
36141
36142 2007-02-18  Bruno Haible  <bruno@clisp.org>
36143
36144         * lib/readlink.c: Include <unistd.h>.
36145         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
36146         HAVE_READLINK.
36147         * modules/readlink (Depends-on): Add unistd.
36148         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36149         (Include): Add <unistd.h>.
36150
36151         * lib/getlogin_r.h: Remove file.
36152         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
36153         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
36154         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
36155         HAVE_DECL_GETLOGIN_R.
36156         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
36157         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36158         (Include): Use <unistd.h> instead of getlogin_r.h.
36159
36160         * lib/getcwd.h: Remove file.
36161         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
36162         * lib/xgetcwd.c: Likewise.
36163         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
36164         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
36165         * modules/getcwd (Files): Remove lib/getcwd.h.
36166         (Depends-on): Add unistd.
36167         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36168         (Include): Use <unistd.h> instad of getcwd.h.
36169
36170         * lib/ftruncate.c: Include <unistd.h> first.
36171         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
36172         Set HAVE_FTRUNCATE.
36173         * modules/ftruncate (Depends-on): Add unistd.
36174         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36175
36176         * lib/fchdir.c: Include <unistd.h> first.
36177         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
36178         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
36179         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
36180         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36181         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
36182
36183         * lib/dup2.c: Include <unistd.h> first.
36184         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
36185         HAVE_DUP2.
36186         * modules/dup2 (Depends-on): Add unistd.
36187         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36188
36189         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
36190         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
36191         REPLACE_CHOWN. Don't define chown as a macro here.
36192         * modules/chown (Depends-on): Add unistd.
36193         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36194
36195         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
36196         Add definition for GL_LINK_WARNING.
36197         (chown, dup2): New declarations.
36198         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
36199         link warning.
36200         (ftruncate): New declaration.
36201         (getcwd): New declaration, taken from old getcwd.h.
36202         (getlogin_r): New declaration, taken from old getlogin_r.h.
36203         (readlink): New declaration.
36204         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
36205         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
36206         (gl_PREREQ_UNISTD): Remove macro.
36207         (gl_UNISTD_MODULE_INDICATOR): New macro.
36208         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
36209         many new variables. Don't set UNISTD_H.
36210         * modules/unistd (Description): Change.
36211         (Depends-on): Add link-warning.
36212         (configure.ac): Update.
36213         (Makefile.am): Create unistd.h always. Substitute many new variables
36214         into it.
36215
36216 2007-02-18  Bruno Haible  <bruno@clisp.org>
36217
36218         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
36219         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
36220         HAVE_GETSUBOPT.
36221         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
36222         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
36223         * lib/getsubopt.h: Remove file.
36224         * modules/getsubopt (Files): Remove lib/getsubopt.h.
36225         (Depends-on): Add stdlib.
36226         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36227         (Includes): Use <stdlib.h> instead of getsubopt.h.
36228         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
36229         Set HAVE_GETSUBOPT.
36230         * lib/getsubopt.c: Don't include getsubopt.h.
36231
36232 2007-02-18  Bruno Haible  <bruno@clisp.org>
36233
36234         * modules/fchdir (Depends-on): Add dup2.
36235
36236 2007-02-18  Bruno Haible  <bruno@clisp.org>
36237
36238         * lib/stdlib_.h: Handle glibc's special invocation convention
36239         specially.
36240
36241 2007-02-18  Bruno Haible  <bruno@clisp.org>
36242
36243         * modules/stdlib-tests: New file.
36244         * tests/test-stdlib.c: New file.
36245
36246         * modules/mkstemp (Files): Remove lib/mkstemp.h.
36247         (Depends-on): Add stdlib.
36248         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36249         (Includes): Use <stdlib.h> instead of mkstemp.h.
36250         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36251         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
36252         * lib/mkstemp.c: Don't include mkstemp.h.
36253         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
36254         * lib/stdlib--.h: Don't include mkstemp.h.
36255
36256         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
36257         (Depends-on): Add stdlib.
36258         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36259         (Includes): Use <stdlib.h> instead of mkdtemp.h.
36260         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36261         HAVE_MKDTEMP.
36262         * lib/mkdtemp.c: Don't include mkdtemp.h.
36263         * lib/clean-temp.c: Don't include mkdtemp.h.
36264
36265         * modules/exit (Files): Remove lib/exit.h.
36266         (Depends-on): Add stdlib.
36267         (Makefile.am): Remove lib_SOURCES.
36268         (Include): Use <stdlib.h> instead of exit.h.
36269         * lib/argmatch.c: Don't include exit.h.
36270         * lib/execute.c: Likewise.
36271         * lib/pagealign_alloc.c: Likewise.
36272         * lib/pipe.c: Likewise.
36273         * lib/wait-process.c: Likewise.
36274         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
36275         * lib/exitfail.c: Likewise.
36276         * lib/savewd.c: Likewise.
36277         * lib/xsetenv.c: Likewise.
36278
36279         * modules/stdlib: New file.
36280         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
36281         and extra comments about mkstemp().
36282         * lib/exit.h: Remove file.
36283         * lib/mkdtemp.h: Remove file.
36284         * lib/mkstemp.h: Remove file.
36285         * m4/stdlib_h.m4: New file.
36286         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
36287
36288 2007-02-18  Bruno Haible  <bruno@clisp.org>
36289
36290         * modules/math-tests: New file.
36291         * tests/test-math.c: New file.
36292
36293         * modules/math: New file.
36294         * modules/mathl (Files): Remove lib/mathl.h.
36295         (Depends-on): Add math.
36296         (Makefile.am): Don't mention mathl.h.
36297         (Include): Use <math.h> instead of mathl.h.
36298         * lib/math_.h: New file.
36299         * lib/mathl.h: Remove file.
36300         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
36301         mathl.h.
36302         * lib/asinl.c: Likewise.
36303         * lib/atanl.c: Likewise.
36304         * lib/ceill.c: Likewise.
36305         * lib/cosl.c: Likewise.
36306         * lib/expl.c: Likewise.
36307         * lib/floorl.c: Likewise.
36308         * lib/frexpl.c: Likewise.
36309         * lib/ldexpl.c: Likewise.
36310         * lib/logl.c: Likewise.
36311         * lib/sincosl.c: Likewise.
36312         * lib/sinl.c: Likewise.
36313         * lib/sqrtl.c: Likewise.
36314         * lib/tanl.c: Likewise.
36315         * lib/trigl.c: Likewise.
36316         * m4/math_h.m4: New file.
36317         * MODULES.html.sh (Mathematics): Add math.
36318
36319 2007-02-17  Bruno Haible  <bruno@clisp.org>
36320
36321         * modules/wctype-tests: New file.
36322         * tests/test-wctype.c: New file.
36323
36324         * modules/wchar-tests: New file.
36325         * tests/test-wchar.c: New file.
36326
36327         * modules/unistd-tests: New file.
36328         * tests/test-unistd.c: New file.
36329
36330         * modules/time-tests: New file.
36331         * tests/test-time.c: New file.
36332
36333         * modules/sysexits-tests: New file.
36334         * tests/test-sysexits.c: New file.
36335
36336         * modules/sys_time-tests: New file.
36337         * tests/test-sys_time.c: New file.
36338
36339         * modules/sys_stat-tests: New file.
36340         * tests/test-sys_stat.c: New file.
36341
36342         * modules/sys_socket-tests: New file.
36343         * tests/test-sys_socket.c: New file.
36344
36345         * modules/sys_select-tests: New file.
36346         * tests/test-sys_select.c: New file.
36347
36348         * modules/string-tests: New file.
36349         * tests/test-string.c: New file.
36350
36351         * modules/stdbool-tests: New file.
36352         * tests/test-stdbool.c: New file.
36353
36354         * modules/netinet_in-tests: New file.
36355         * tests/test-netinet_in.c: New file.
36356
36357         * modules/inttypes-tests: New file.
36358         * tests/test-inttypes.c: New file.
36359
36360         * modules/fcntl-tests: New file.
36361         * tests/test-fcntl.c: New file.
36362
36363         * modules/byteswap-tests: New file.
36364         * tests/test-byteswap.c: New file.
36365
36366         * modules/arpa_inet-tests: New file.
36367         * tests/test-arpa_inet.c: New file.
36368
36369 2007-02-17  Bruno Haible  <bruno@clisp.org>
36370
36371         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
36372         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
36373         if the corresponding module is not enabled. Emit link warnings if
36374         the function is used nevertheless.
36375         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
36376         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
36377         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
36378         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
36379         * modules/inttypes (Depends-on): Add link-warning.
36380         (Makefile.am): Copy the contents of build-aux/link-warning.h into
36381         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
36382         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
36383         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
36384         * modules/imaxdiv (configure.ac): Likewise.
36385         * modules/strtoimax (configure.ac): Likewise.
36386         * modules/strtoumax (configure.ac): Likewise.
36387
36388 2007-02-17  Bruno Haible  <bruno@clisp.org>
36389
36390         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
36391         gl_STRING_MODULE_INDICATOR_DEFAULTS.
36392         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
36393         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
36394
36395 2007-02-17  Bruno Haible  <bruno@clisp.org>
36396
36397         * modules/link-warning: New file.
36398         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
36399         * lib/string_.h (GL_LINK_WARNING): Remove definition.
36400         * modules/string (Depends-on): Add link-warning.
36401         (Makefile.am): Copy the contents of build-aux/link-warning.h into
36402         string.h.
36403         * MODULES.html.sh (Support for building libraries and executables): Add
36404         link-warning.
36405
36406 2007-02-17  Bruno Haible  <bruno@clisp.org>
36407
36408         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
36409         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
36410         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
36411         long lines.
36412
36413 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
36414             Bruno Haible  <bruno@clisp.org>
36415
36416         * modules/tmpfile: New file.
36417         * lib/tmpfile.c: New file.
36418         * m4/tmpfile.m4: New file.
36419         * MODULES.html.sh (func_all_modules): New section "Input/output".
36420
36421 2007-02-15  Bruno Haible  <bruno@clisp.org>
36422
36423         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
36424         (supports_delete_on_close): New function.
36425         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
36426
36427 2007-02-14  Bruno Haible  <bruno@clisp.org>
36428
36429         * modules/mbspcasecmp-tests: New file.
36430         * tests/test-mbspcasecmp.sh: New file.
36431         * tests/test-mbspcasecmp.c: New file.
36432
36433         New module mbspcasecmp.
36434         * modules/mbspcasecmp: New file.
36435         * lib/mbspcasecmp.c: New file.
36436         * lib/string_.h (strncasecmp): Change warning message.
36437         (mbspcasecmp): New declaration.
36438         * m4/mbspcasecmp.m4: New file.
36439         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36440         GNULIB_MBSPCASECMP.
36441         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
36442         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
36443
36444 2007-02-14  Bruno Haible  <bruno@clisp.org>
36445
36446         * modules/mbsncasecmp-tests: New file.
36447         * tests/test-mbsncasecmp.sh: New file.
36448         * tests/test-mbsncasecmp.c: New file.
36449
36450         New module mbsncasecmp.
36451         * modules/mbsncasecmp: New file.
36452         * lib/mbsncasecmp.c: New file.
36453         * lib/string_.h (mbsncasecmp): New declaration.
36454         * m4/mbsncasecmp.m4: New file.
36455         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36456         GNULIB_MBSNCASECMP.
36457         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
36458         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
36459
36460 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
36461
36462         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
36463         Verify that it doesn't overlap with our flags.
36464         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
36465         do not have the desired effect in multibyte locales; instead, use
36466         mbscasecmp.
36467         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
36468         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
36469         we don't require GNU fnmatch ourselves (if our users require it, they
36470         should do so explicitly).
36471
36472         Fix regex code so it doesn't rely on strcasecmp.
36473         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
36474         Otherwise, include gnulib's langinfo.h.
36475         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
36476         undesirable behavior in non-C locales.  Instead, rely on localecharset.
36477         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
36478         * modules/regex (FILES): Remove m4/codeset.m4.
36479         (Depends-on): Add localcharset.  Remove strcase.
36480
36481 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36482
36483         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
36484         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
36485
36486 2007-02-13  Bruno Haible  <bruno@clisp.org>
36487
36488         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
36489         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36490
36491 2007-02-12  Bruno Haible  <bruno@clisp.org>
36492
36493         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
36494         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
36495         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
36496         time warning rather than a link error.
36497
36498 2007-02-12  Bruno Haible  <bruno@clisp.org>
36499
36500         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
36501         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36502         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36503
36504 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
36505
36506         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
36507         args, not 2.
36508
36509 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
36510
36511         New module 'time', so that apps can include <time.h> as per
36512         POSIX and GNU instead of separate include files like time_r.h
36513         and timegm.h.  This implementation tries out a simpler approach
36514         for replacing decls in standard include files (as compared to
36515         the string module), somewhat as an experiment.
36516
36517         * config/srclist.txt: Comment out mktime.c for now.
36518         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
36519         since it doesn't apply any more.  Use generic wording instead.
36520         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
36521         'time'.
36522         * lib/time_.h, m4/time_h.m4, modules/time: New files.
36523         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
36524         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
36525         Don't include <sys/types.h>; no longer needed since we assume C89.
36526         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
36527         * lib/strftime.c: Likewise.
36528         * lib/time_r.c: Likewise.
36529         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
36530         * lib/nanosleep.c: Include <time.h> first, to check interface.
36531         * lib/strptime.c: Likewise.
36532         * lib/time_r.c: Likewise.
36533         * lib/timegm.c: Likewise.
36534         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
36535         needed.
36536         * lib/timegm.c: Don't include timegm.h; no longer needed.
36537         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
36538         time.h now handles any problems in that area.
36539         (struct timespec, nanosleep): Remove; time.h now arranges for these.
36540         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
36541         that time.h defines struct timespec.
36542         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
36543         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
36544         handles that.
36545         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
36546         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
36547         needed.  Set REPLACE_LOCALTIME.
36548         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
36549         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
36550         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
36551         nanosleep; time_h.m4 now does that.  Don't require
36552         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
36553         module handles this now.
36554         * modules/getdate (Depends-on): Remove timespec.  Add time.
36555         * modules/nanosleep (Depends-on): Likewise.
36556         * modules/stat-time (Depends-on): Likewise.
36557         * modules/nanosleep (Include): Include time.h, not timespec.h.
36558         * modules/strptime (Files): Remove lib/strptime.h.
36559         (Depends-on): Add extensions, time.
36560         (Include): Include time.h, not strptime.h.
36561         * modules/time_r (Files): Remove lib/time_r.h.
36562         (Depends-on): Add time.
36563         (Include): Include time.h, not time_r.h.
36564         * modules/timegm: Likewise.
36565         * modules/timespec (Description): Now does timespec-related decls
36566         of our own, instead of struct timespec itself.
36567         (Depends-on): Add time; remove extensions.
36568         (Maintainer): Add self.
36569         * modules/utimecmp (Depends-on): Add time; remove timespec.
36570         * modules/utimens (Depends-on): Likewise.
36571         * modules/xnanosleep (Depends-on): Likewise.
36572
36573 2007-02-11  Bruno Haible  <bruno@clisp.org>
36574
36575         * lib/c-strstr.c: Include allocsa.h.
36576         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36577         * lib/c-strcasestr.c: Include allocsa.h.
36578         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36579         * lib/strcasestr.c: Include allocsa.h.
36580         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36581         * lib/mbsstr.c: Include allocsa.h.
36582         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
36583         allocsa/freesa instead of malloc/free.
36584         * lib/mbscasestr.c: Include allocsa.h.
36585         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
36586         allocsa/freesa instead of malloc/free.
36587         * modules/c-strstr (Depends-on): Add allocsa.
36588         * modules/c-strcasestr (Depends-on): Likewise.
36589         * modules/strcasestr (Depends-on): Likewise.
36590         * modules/mbsstr (Depends-on): Likewise.
36591         * modules/mbscasestr (Depends-on): Likewise.
36592
36593 2007-02-11  Bruno Haible  <bruno@clisp.org>
36594
36595         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
36596
36597         * modules/mbsspn-tests: New file.
36598         * tests/test-mbsspn.sh: New file.
36599         * tests/test-mbsspn.c: New file.
36600
36601 2007-02-11  Bruno Haible  <bruno@clisp.org>
36602
36603         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
36604
36605         * modules/mbspbrk-tests: New file.
36606         * tests/test-mbspbrk.sh: New file.
36607         * tests/test-mbspbrk.c: New file.
36608
36609 2007-02-11  Bruno Haible  <bruno@clisp.org>
36610
36611         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
36612         unneeded cast.
36613
36614         * modules/mbscspn-tests: New file.
36615         * tests/test-mbscspn.sh: New file.
36616         * tests/test-mbscspn.c: New file.
36617
36618 2007-02-11  Bruno Haible  <bruno@clisp.org>
36619
36620         * modules/mbscasecmp-tests: New file.
36621         * tests/test-mbscasecmp.sh: New file.
36622         * tests/test-mbscasecmp.c: New file.
36623
36624 2007-02-11  Bruno Haible  <bruno@clisp.org>
36625
36626         Ensure O(n) worst-case complexity of mbscasestr.
36627         * lib/mbscasestr.c: Include stdbool.h.
36628         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
36629         functions.
36630         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
36631         the bookkeeping indicates that it's worth it.
36632         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
36633
36634         * modules/mbscasestr-tests: New file.
36635         * tests/test-mbscasestr1.c: New file.
36636         * tests/test-mbscasestr2.sh: New file.
36637         * tests/test-mbscasestr2.c: New file.
36638         * tests/test-mbscasestr3.sh: New file.
36639         * tests/test-mbscasestr3.c: New file.
36640         * tests/test-mbscasestr4.sh: New file.
36641         * tests/test-mbscasestr4.c: New file.
36642         * m4/locale-tr.m4: New file.
36643
36644 2007-02-11  Bruno Haible  <bruno@clisp.org>
36645
36646         Ensure O(n) worst-case complexity of mbsstr.
36647         * lib/mbsstr.c: Include stdbool.h.
36648         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
36649         functions.
36650         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
36651         bookkeeping indicates that it's worth it.
36652         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
36653
36654         * modules/mbsstr-tests: New file.
36655         * tests/test-mbsstr1.c: New file.
36656         * tests/test-mbsstr2.sh: New file.
36657         * tests/test-mbsstr2.c: New file.
36658         * tests/test-mbsstr3.sh: New file.
36659         * tests/test-mbsstr3.c: New file.
36660         * m4/locale-fr.m4: New file.
36661
36662 2007-02-11  Bruno Haible  <bruno@clisp.org>
36663
36664         * lib/mbsrchr.c (mbsrchr): Fix bug.
36665
36666         * modules/mbsrchr-tests: New file.
36667         * tests/test-mbsrchr.sh: New file.
36668         * tests/test-mbsrchr.c: New file.
36669
36670 2007-02-11  Bruno Haible  <bruno@clisp.org>
36671
36672         * lib/mbschr.c (mbschr): Fix bug.
36673
36674         * modules/mbschr-tests: New file.
36675         * tests/test-mbschr.sh: New file.
36676         * tests/test-mbschr.c: New file.
36677         * m4/locale-zh.m4: New file.
36678
36679 2007-02-11  Bruno Haible  <bruno@clisp.org>
36680
36681         Support for copying multibyte string iterators.
36682         * lib/mbiter.h: Include <string.h>.
36683         (mbiter_multi_copy): New function.
36684         (mbi_copy): New macro.
36685         * lib/mbuiter.h: Include <string.h>.
36686         (mbuiter_multi_copy): New function.
36687         (mbui_copy): New macro.
36688
36689 2007-02-11  Bruno Haible  <bruno@clisp.org>
36690
36691         New module mbslen.
36692         * modules/mbslen: New file.
36693         * lib/mbslen.c: New file.
36694         * lib/string_.h (mbslen): New declaration.
36695         * m4/mbslen.m4: New file.
36696         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36697         GNULIB_MBSLEN.
36698         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
36699         * MODULES.html.sh (Internationalization functions): Add mbslen.
36700
36701 2007-02-11  Bruno Haible  <bruno@clisp.org>
36702
36703         Ensure O(n) worst-case complexity of strcasestr substitute.
36704         * lib/strcasestr.c: Include stdbool.h.
36705         (knuth_morris_pratt): New function.
36706         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
36707         bookkeeping indicates that it's worth it.
36708         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
36709
36710         * modules/strcasestr-tests: New file.
36711         * tests/test-strcasestr.c: New file.
36712
36713 2007-02-11  Bruno Haible  <bruno@clisp.org>
36714
36715         Ensure O(n) worst-case complexity of c_strcasestr.
36716         * lib/c-strcasestr.c: Include stdbool.h, string.h.
36717         (knuth_morris_pratt): New function.
36718         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
36719         the bookkeeping indicates that it's worth it.
36720         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
36721
36722         * modules/c-strcasestr-tests: New file.
36723         * tests/test-c-strcasestr.c: New file.
36724
36725 2007-02-11  Bruno Haible  <bruno@clisp.org>
36726
36727         Ensure O(n) worst-case complexity of c_strstr.
36728         * lib/c-strstr.c: Include stdbool.h, string.h.
36729         (knuth_morris_pratt): New function.
36730         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
36731         bookkeeping indicates that it's worth it.
36732         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
36733
36734         * lib/c-strstr.c: Complete rewrite for maintainability.
36735
36736         * modules/c-strstr-tests: New file.
36737         * tests/test-c-strstr.c: New file.
36738
36739 2007-02-11  Bruno Haible  <bruno@clisp.org>
36740
36741         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
36742         5.2.1 and earlier, whereby \055 was treated just like the range
36743         delimiter '-'.
36744         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36745
36746 2007-02-08  Bruno Haible  <bruno@clisp.org>
36747
36748         * modules/regex (Depends-on): Add stdbool.
36749         Reported by Dalibor Topic <robilad@kaffe.org>.
36750
36751 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
36752
36753         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
36754         Prefer returning from main to exiting from it.
36755         Remove unnecessary parens after sizeof.
36756
36757 2007-02-05  Bruno Haible  <bruno@clisp.org>
36758
36759         New module mbssep.
36760         * modules/mbssep: New file.
36761         * lib/mbssep.c: New file.
36762         * lib/string_.h (strsep): Add a conditional link warning.
36763         (mbssep): New declaration.
36764         * m4/mbssep.m4: New file.
36765         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36766         GNULIB_MBSSEP.
36767         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
36768         * MODULES.html.sh (Internationalization functions): Add mbssep.
36769
36770 2007-02-05  Bruno Haible  <bruno@clisp.org>
36771
36772         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
36773         Optimize search in case of 1 delimiter.
36774
36775 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
36776
36777         * lib/acl.h: Include sys/types.h before sys/acl.h.
36778
36779 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
36780
36781         Merge upstream fix for glibc bugzilla #3957:
36782
36783         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
36784
36785         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
36786         bit for RE_HAT_LISTS_NOT_NEWLINE.
36787         (build_charclass_op): Remove bogus comment.
36788
36789 2007-02-05  Simon Josefsson  <simon@josefsson.org>
36790
36791         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
36792
36793 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
36794
36795         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
36796         * lib/memmem.c [!defined _LIBC]: Include config.h.
36797
36798 2007-02-04  Bruno Haible  <bruno@clisp.org>
36799
36800         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
36801         warning message.
36802
36803 2007-02-04  Bruno Haible  <bruno@clisp.org>
36804
36805         New module mbstok_r.
36806         * modules/mbstok_r: New file.
36807         * lib/mbstok_r.c: New file.
36808         * lib/string_.h (strtok_r): Change argument names to match the
36809         comments. Add a conditional link warning.
36810         (mbstok_r): New declaration.
36811         * m4/mbstok_r.m4: New file.
36812         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36813         GNULIB_MBSTOK_R.
36814         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
36815         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
36816
36817 2007-02-04  Bruno Haible  <bruno@clisp.org>
36818
36819         New module mbsspn.
36820         * modules/mbsspn: New file.
36821         * lib/mbsspn.c: New file.
36822         * lib/string_.h (strspn): Add a conditional link warning.
36823         (mbsspn): New declaration.
36824         * m4/mbsspn.m4: New file.
36825         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36826         GNULIB_MBSSPN.
36827         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
36828         * MODULES.html.sh (Internationalization functions): Add mbsspn.
36829
36830 2007-02-04  Bruno Haible  <bruno@clisp.org>
36831
36832         New module mbspbrk.
36833         * modules/mbspbrk: New file.
36834         * lib/mbspbrk.c: New file.
36835         * lib/string_.h (strpbrk): Add a conditional link warning.
36836         (mbspbrk): New declaration.
36837         * m4/mbspbrk.m4: New file.
36838         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36839         GNULIB_MBSPBRK.
36840         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
36841         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
36842
36843 2007-02-04  Bruno Haible  <bruno@clisp.org>
36844
36845         New module mbscspn.
36846         * modules/mbscspn: New file.
36847         * lib/mbscspn.c: New file.
36848         * lib/string_.h (strcspn): Add a conditional link warning.
36849         (mbscspn): New declaration.
36850         * m4/mbscspn.m4: New file.
36851         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36852         GNULIB_MBSCSPN.
36853         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
36854         * MODULES.html.sh (Internationalization functions): Add mbscspn.
36855
36856 2007-02-04  Bruno Haible  <bruno@clisp.org>
36857
36858         New module mbscasestr, reduced goal of strcasestr.
36859         * modules/mbscasestr: New file.
36860         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
36861         (mbscasestr): Renamed from strcasestr.
36862         * lib/strcasestr.c: Don't include mbuiter.h.
36863         (strcasestr): Remove support for multibyte locales.
36864         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
36865         Change the conditional link warning.
36866         (mbscasestr): New declaration.
36867         * m4/mbscasestr.m4: New file.
36868         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
36869         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
36870         REPLACE_STRCASESTR.
36871         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
36872         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36873         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
36874         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
36875         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
36876         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
36877         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
36878         (Depends-on): Remove mbuiter.
36879         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
36880
36881 2007-02-04  Bruno Haible  <bruno@clisp.org>
36882
36883         Simplify handling of strncasecmp.
36884         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
36885         the conditional link warning.
36886         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36887         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
36888         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
36889         * modules/strcase (configure.ac): Don't invoke
36890         gl_STRING_MODULE_INDICATOR.
36891         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
36892
36893 2007-02-04  Bruno Haible  <bruno@clisp.org>
36894
36895         New module mbscasecmp, reduced goal of strcasecmp.
36896         * modules/mbscasecmp: New file.
36897         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
36898         (mbscasecmp): Renamed from strcasecmp.
36899         * lib/strcasecmp.c: Don't include mbuiter.h.
36900         (strcasecmp): Remove support for multibyte locales.
36901         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
36902         Change the conditional link warning.
36903         (mbscasecmp): New declaration.
36904         * m4/mbscasecmp.m4: New file.
36905         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
36906         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
36907         REPLACE_STRCASECMP.
36908         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
36909         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36910         GNULIB_MBSCASECMP.
36911         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
36912         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
36913         * modules/strcase (Files): Remove m4/mbrtowc.m4.
36914         (Depends-on): Remove mbuiter.
36915         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
36916
36917 2007-02-04  Bruno Haible  <bruno@clisp.org>
36918
36919         New module mbsstr. Remove module strstr.
36920         * modules/mbsstr: New file.
36921         * modules/strstr: Remove file.
36922         * lib/mbsstr.c: Renamed from lib/strstr.c.
36923         (mbsstr): Renamed from strstr.
36924         * lib/string_.h (strstr): Remove declaration. Change the conditional
36925         link warning.
36926         (mbsstr): New declaration.
36927         * m4/mbsstr.m4: New file.
36928         * m4/strstr.m4: Remove file.
36929         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
36930         REPLACE_STRSTR.
36931         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
36932         Don't initialize GNULIB_STRSTR.
36933         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
36934         substitute GNULIB_STRSTR and REPLACE_STRSTR.
36935         * MODULES.html.sh (Internationalization functions): Add mbsstr.
36936         (Support for systems lacking ANSI C 89): Remove strstr.
36937
36938 2007-02-04  Bruno Haible  <bruno@clisp.org>
36939
36940         New module mbsrchr.
36941         * modules/mbsrchr: New file.
36942         * lib/mbsrchr.c: New file.
36943         * lib/string_.h (strrchr): Add a conditional link warning.
36944         (mbsrchr): New declaration.
36945         * m4/mbsrchr.m4: New file.
36946         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36947         GNULIB_MBSRCHR.
36948         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
36949         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
36950
36951 2007-02-04  Bruno Haible  <bruno@clisp.org>
36952
36953         New module mbschr.
36954         * modules/mbschr: New file.
36955         * lib/mbschr.c: New file.
36956         * lib/string_.h (strchr): Add a conditional link warning.
36957         (mbschr): New declaration.
36958         * m4/mbschr.m4: New file.
36959         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36960         GNULIB_MBSCHR.
36961         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
36962         * MODULES.html.sh (Internationalization functions): Add mbschr.
36963
36964 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
36965
36966         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
36967
36968         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
36969
36970 2007-02-04  Bruno Haible  <bruno@clisp.org>
36971
36972         New module description section 'configure.ac-early'.
36973         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
36974         (func_get_autoconf_early_snippet): New function.
36975         (func_import, func_create_testdir): Use it. Remove special cases for
36976         modules 'extensions' and 'lock'.
36977         * modules/extensions (configure.ac-early): Require
36978         gl_USE_SYSTEM_EXTENSIONS.
36979         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
36980
36981 2007-02-04  Bruno Haible  <bruno@clisp.org>
36982
36983         Make use of gcj-4.3's -fsource and -ftarget option.
36984         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
36985         and if so try the options -fsource and -ftarget.
36986         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
36987         source_version, ftarget_option, target_version arguments.
36988         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
36989         (is_envjavac_oldgcj_14_14_usable): Renamed from
36990         is_envjavac_gcj_14_14_usable.
36991         (is_envjavac_oldgcj_14_13_usable): Renamed from
36992         is_envjavac_gcj_14_13_usable.
36993         (is_gcj_present): Update.
36994         (is_gcj_43, is_gcj43_usable): New functions.
36995         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
36996         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
36997         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
36998         try the options -fsource and -ftarget.
36999
37000 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
37001
37002         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
37003         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
37004         larger value.
37005
37006 2007-02-03  Jim Meyering  <jim@meyering.net>
37007
37008         Give tools a better chance to allocate space for very large buffers.
37009         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
37010
37011         Make pwd and readlink work also when run with an unreadable parent dir
37012         on systems with openat support.
37013         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
37014         provided getcwd function, even when we have openat support.
37015         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
37016
37017 2007-02-02  Bruno Haible  <bruno@clisp.org>
37018
37019         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37020         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
37021         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
37022         portability problems if one of these functions is only used on specific
37023         platforms.
37024         Reported by Paul Eggert.
37025
37026 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
37027
37028         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
37029         is causing more trouble than it's curing.
37030         * lib/regex_internal.h (__mempcpy): Remove.
37031         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
37032         (and make the code a tad smaller to boot).
37033         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
37034
37035 2007-02-02  Jim Meyering  <jim@meyering.net>
37036
37037         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
37038         section, not in the Makefile.am: one.
37039
37040 2007-02-02  Eric Blake  <ebb9@byu.net>
37041
37042         * lib/strchrnul.c: Always include config.h first.
37043
37044         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
37045         gnulib strstr is not necessary here.
37046
37047 2007-02-02  Simon Josefsson  <simon@josefsson.org>
37048
37049         * m4/socklen.m4: Fix typo.
37050
37051 2007-02-02  Eric Blake  <ebb9@byu.net>
37052
37053         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
37054         * modules/netinet_in (Makefile.am): Likewise.
37055
37056 2007-02-01  Bruno Haible  <bruno@clisp.org>
37057
37058         * lib/string_.h (GL_LINK_WARNING): New macro.
37059         (strcasecmp, strstr, strcasestr): If provided by the system,
37060         conditionally define as a macro that leads to a warning instead of to
37061         an error.
37062         (strncasecmp): Conditionally define as a macro that leads to a warning.
37063
37064 2007-02-01  Karl Berry  <karl@gnu.org>
37065
37066         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
37067
37068 2007-02-01  Bruno Haible  <bruno@clisp.org>
37069
37070         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
37071         renamings.
37072
37073 2007-02-01  Eric Blake  <ebb9@byu.net>
37074
37075         * modules/regex (Depends-on): Revert dependence on mempcpy.
37076         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
37077         module's definition of mempcpy.
37078         Reported by Paul Eggert.
37079
37080 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
37081
37082         * lib/string_.h: If the gnulib module XYZ is not present, undefine
37083         the symbol XYZ before redefining it.  This fixes a problem with
37084         programs that don't use XYZ, when compiled on systems that define
37085         XYZ to something else.
37086
37087 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
37088
37089         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
37090         occurs when "mkdir -m foo" creates a setgid directory that is (1)
37091         writeable to group or other and (2) is intended to have a special
37092         mode bit that is set or cleared.  In such a case, the directory
37093         should be neither group- nor other-writeable until the special
37094         mode bits are right.
37095
37096 2007-01-31  Eric Blake  <ebb9@byu.net>
37097
37098         * modules/mountlist (Depends-on): Add strstr.
37099
37100         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
37101         bug.
37102         * modules/string (Makefile.am): Remove redundant replacement.
37103         * modules/regex (Depends-on): Add mempcpy.
37104
37105 2007-01-31  Bruno Haible  <bruno@clisp.org>
37106
37107         New module description field 'Link'.
37108         * gnulib-tool (func_usage): Document --extract-link-directive.
37109         (sed_extract_prog): Recognize 'Link' directive.
37110         (func_get_link_directive): New function.
37111         (func_import): Show summary of link directives.
37112         Handle --extract-link-directive option.
37113         * modules/acl (Link): New section.
37114         * modules/clock-time (Link): New section.
37115         * modules/euidaccess (Link): New section.
37116         * modules/gettext (Link): New section.
37117         * modules/iconv (Link): New section.
37118         * modules/lock (Link): New section.
37119         * modules/nanosleep (Link): New section.
37120         * modules/readline (Link): New section.
37121
37122 2007-01-27  Bruno Haible  <bruno@clisp.org>
37123
37124         Enforce the use of gnulib modules for unportable <string.h> functions.
37125         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
37126         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
37127         (gl_HEADER_STRING_H_BODY): Require it.
37128         * lib/string_.h: If the gnulib module XYZ is not present, redefine
37129         the symbol XYZ to one that gives a link error.
37130         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
37131         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
37132         * modules/mempcpy (configure.ac): Likewise.
37133         * modules/memrchr (configure.ac): Likewise.
37134         * modules/stpcpy (configure.ac): Likewise.
37135         * modules/stpncpy (configure.ac): Likewise.
37136         * modules/strcase (configure.ac): Likewise.
37137         * modules/strcasestr (configure.ac): Likewise.
37138         * modules/strchrnul (configure.ac): Likewise.
37139         * modules/strdup (configure.ac): Likewise.
37140         * modules/strndup (configure.ac): Likewise.
37141         * modules/strnlen (configure.ac): Likewise.
37142         * modules/strpbrk (configure.ac): Likewise.
37143         * modules/strsep (configure.ac): Likewise.
37144         * modules/strstr (configure.ac): Likewise.
37145         * modules/strtok_r (configure.ac): Likewise.
37146
37147 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
37148
37149         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
37150
37151 2007-01-30  Jim Meyering  <jim@meyering.net>
37152
37153         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
37154
37155 2007-01-29  Bruno Haible  <bruno@clisp.org>
37156
37157         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
37158         * lib/execute.c: Likewise.
37159         * lib/pipe.c: Likewise.
37160         * lib/printf-args.h: Likewise.
37161         * lib/printf-args.c: Likewise.
37162         * lib/printf-parse.c: Likewise.
37163         * lib/vasnprintf.c: Likewise.
37164
37165 2007-01-29  Eric Blake  <ebb9@byu.net>
37166
37167         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
37168         declaration.
37169
37170 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
37171
37172         * lib/strptime.h (strptime): Use 'restrict' for args where
37173         POSIX requires this.
37174         * lib/strptime.c (strptime): Likewise.
37175         Change license notice from LGPL to GPL, since gnulib-tool will
37176         change this as needed.
37177         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
37178         defined.
37179         Include "strptime.h" first, to check interface.
37180         Do not #undef _LIBC and _NL_CURRENT.
37181         Do not include <stdlib.h>; no longer needed.
37182         Include "time_r.h" and declare ptime_locale_status
37183         only if _LIBC is not defined.
37184         (__P): Remove unused macro.
37185         (match_string): Bring back glibc version, but use it only if _LIBC
37186         is defined.
37187         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
37188         Remove unnecessary assertion and abort() call.
37189         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
37190         * m4/strptime.m4: Fix serial number comment.
37191         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
37192         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
37193         (Depends-on): Add time_r.
37194
37195 2007-01-29  Bruno Haible  <bruno@clisp.org>
37196
37197         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37198         strptime.
37199         * modules/strptime (Depends-on): Add stdbool.
37200         * lib/strptime.h: Include <time.h> always. Add comments.
37201
37202 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37203
37204         * modules/strptime: New file.
37205         * lib/strptime.h: New file.
37206         * lib/strptime.c: New file.
37207         * m4/strptime.m4: New file.
37208
37209 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
37210
37211         * MODULES.html.sh: New module mpsort.
37212         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
37213
37214         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
37215         a circularity problem with HP-UX ia64 reported by Bob Proulx in
37216         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
37217         All uses changed.
37218         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
37219         All uses changed.
37220         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
37221         to _Restrict_.
37222         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
37223         the parameter matches the prototype.
37224
37225 2007-01-28  Jim Meyering  <jim@meyering.net>
37226
37227         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
37228         sys/time.h here, reverting that part of the previous patch:
37229         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
37230
37231 2007-01-28  Bruno Haible  <bruno@clisp.org>
37232
37233         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
37234         value of $(SYS_TIME_H).
37235         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
37236         remove it conditionally, too. [added by Jim Meyering]
37237         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
37238         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
37239         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
37240         GETTIMEOFDAY_REPLACEMENT to 1.
37241
37242 2007-01-28  Bruno Haible  <bruno@clisp.org>
37243
37244         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
37245         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
37246         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
37247         Set UNISTD_H instead of UNISTD_H2.
37248         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
37249
37250 2007-01-28  Bruno Haible  <bruno@clisp.org>
37251
37252         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
37253         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
37254
37255 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37256
37257         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
37258         (func_create_testdir): Ensure C locale for `grep' and `tr'
37259         character ranges.
37260         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
37261         ACLOCAL_AMFLAGS parsing state machine.
37262
37263 2007-01-27  Bruno Haible  <bruno@clisp.org>
37264
37265         * modules/unistr/base: Update.
37266
37267 2007-01-27  Bruno Haible  <bruno@clisp.org>
37268
37269         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
37270         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
37271         * modules/unistr/u32-mbtouc-unsafe: Renamed from
37272         modules/unistr/u32-mbtouc.
37273         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
37274         * lib/unistr.h: Update.
37275         * lib/linebreak.c: Update.
37276         * modules/unistr/u32-mbtouc: Renamed from
37277         modules/unistr/u32-mbtouc-safe.
37278         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
37279         * lib/unistr.h: Update.
37280         * lib/unistr/u32-to-u8.c: Update.
37281         * lib/unistr/u32-to-u16.c: Update.
37282
37283 2007-01-27  Bruno Haible  <bruno@clisp.org>
37284
37285         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
37286         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
37287         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
37288         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
37289         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
37290         * modules/unistr/u16-mbtouc-unsafe: Renamed from
37291         modules/unistr/u16-mbtouc.
37292         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
37293         * lib/unistr.h: Update.
37294         * lib/linebreak.c: Update.
37295         * modules/linebreak: Update.
37296         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
37297         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
37298         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
37299         * modules/unistr/u16-mbtouc: Renamed from
37300         modules/unistr/u16-mbtouc-safe.
37301         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
37302         * lib/unistr.h: Update.
37303         * lib/unistr/u16-to-u8.c: Update.
37304         * modules/unistr/u16-to-u8: Update.
37305         * lib/unistr/u16-to-u32.c: Update.
37306         * modules/unistr/u16-to-u32: Update.
37307
37308 2007-01-27  Bruno Haible  <bruno@clisp.org>
37309
37310         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
37311         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
37312         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
37313         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
37314         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
37315         * modules/unistr/u8-mbtouc-unsafe: Renamed from
37316         modules/unistr/u8-mbtouc.
37317         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
37318         * lib/unistr.h: Update.
37319         * lib/striconveh.c: Update.
37320         * modules/striconveh: Update.
37321         * lib/linebreak.c: Update.
37322         * modules/linebreak: Update.
37323         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
37324         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
37325         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
37326         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
37327         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
37328         * lib/unistr.h: Update.
37329         * lib/striconveh.c: Update.
37330         * modules/striconveh: Update.
37331         * lib/unistr/u8-to-u16.c: Update.
37332         * modules/unistr/u8-to-u16: Update.
37333         * lib/unistr/u8-to-u32.c: Update.
37334         * modules/unistr/u8-to-u32: Update.
37335
37336 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37337
37338         Sync from Libtool.
37339         * lib/argz.c: Do not include strings.h nor memory.h, include
37340         string.h unconditionally.  Patch by Simon Josefsson.
37341
37342 2007-01-27  Bruno Haible  <bruno@clisp.org>
37343
37344         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
37345         from gl_HEADER_STRING_H_BODY.
37346         (gl_HEADER_STRING_H_BODY): Require it.
37347         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
37348         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
37349         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
37350         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
37351         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37352         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
37353         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37354         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
37355         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
37356         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37357         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
37358         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
37359         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
37360         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37361         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
37362
37363 2007-01-27  Bruno Haible  <bruno@clisp.org>
37364
37365         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
37366         check_PROGRAMS into noinst_PROGRAMS.
37367         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
37368         check_PROGRAMS in this case.
37369         (func_import): Set for_test to false.
37370         (func_create_testdir): Set for_test to true.
37371
37372 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37373             Bruno Haible  <bruno@clisp.org>
37374
37375         * modules/strcasestr (Files): Remove lib/strcasestr.h.
37376         (Depends-on): Add string.
37377         (Includes): Use <string.h> instead of strcasestr.h.
37378         * modules/string (Makefile.am): Also substitute the value of
37379         REPLACE_STRCASESTR.
37380         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
37381         assume strcasestr is declared in <string.h> not <strings.h>. Also
37382         set REPLACE_STRCASESTR.
37383         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
37384         REPLACE_STRCASESTR.
37385         * lib/strcasestr.h: Remove file.
37386         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
37387         * lib/string_.h (strcasestr): New declaration.
37388
37389 2007-01-27  Bruno Haible  <bruno@clisp.org>
37390
37391         * lib/string_.h: Use 'extern'.
37392
37393 2007-01-27  Jim Meyering  <jim@meyering.net>
37394
37395         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
37396         of set-but-not-used local, "q".
37397
37398         * lib/mempcpy.c: Include <config.h> before <string.h>.
37399         This fixes a compilation error on HP-UX, due to the system's
37400         "restrict"-using mempcpy prototype.
37401
37402 2007-01-26  Bruno Haible  <bruno@clisp.org>
37403
37404         Small optimization.
37405         * lib/javacomp.c: Include c-strstr.h.
37406          (is_envjavac_gcj): Use c_strstr instead of strstr.
37407         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
37408
37409 2007-01-26  Bruno Haible  <bruno@clisp.org>
37410
37411         * MODULES.html.sh (Unicode string functions): Add the new modules.
37412
37413         * modules/uniconv/u32-strconv-to-locale: New file.
37414         * lib/uniconv/u32-strconv-to-locale.c: New file.
37415
37416         * modules/uniconv/u16-strconv-to-locale: New file.
37417         * lib/uniconv/u16-strconv-to-locale.c: New file.
37418
37419         * modules/uniconv/u8-strconv-to-locale: New file.
37420         * lib/uniconv/u8-strconv-to-locale.c: New file.
37421
37422         * modules/uniconv/u32-strconv-from-locale: New file.
37423         * lib/uniconv/u32-strconv-from-locale.c: New file.
37424
37425         * modules/uniconv/u16-strconv-from-locale: New file.
37426         * lib/uniconv/u16-strconv-from-locale.c: New file.
37427
37428         * modules/uniconv/u8-strconv-from-locale: New file.
37429         * lib/uniconv/u8-strconv-from-locale.c: New file.
37430
37431         * modules/uniconv/u32-strconv-to-enc: New file.
37432         * lib/uniconv/u32-strconv-to-enc.c: New file.
37433         * modules/uniconv/u32-strconv-to-enc-tests: New file.
37434         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
37435
37436         * modules/uniconv/u16-strconv-to-enc: New file.
37437         * lib/uniconv/u16-strconv-to-enc.c: New file.
37438         * lib/uniconv/u-strconv-to-enc.h: New file.
37439         * modules/uniconv/u16-strconv-to-enc-tests: New file.
37440         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
37441
37442         * modules/uniconv/u8-strconv-to-enc: New file.
37443         * lib/uniconv/u8-strconv-to-enc.c: New file.
37444         * modules/uniconv/u8-strconv-to-enc-tests: New file.
37445         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
37446
37447         * modules/uniconv/u32-strconv-from-enc: New file.
37448         * lib/uniconv/u32-strconv-from-enc.c: New file.
37449         * modules/uniconv/u32-strconv-from-enc-tests: New file.
37450         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
37451
37452         * modules/uniconv/u16-strconv-from-enc: New file.
37453         * lib/uniconv/u16-strconv-from-enc.c: New file.
37454         * modules/uniconv/u16-strconv-from-enc-tests: New file.
37455         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
37456
37457         * modules/uniconv/u8-strconv-from-enc: New file.
37458         * lib/uniconv/u8-strconv-from-enc.c: New file.
37459         * lib/uniconv/u-strconv-from-enc.h: New file.
37460         * modules/uniconv/u8-strconv-from-enc-tests: New file.
37461         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
37462
37463         * modules/uniconv/u32-conv-from-enc: New file.
37464         * lib/uniconv/u32-conv-from-enc.c: New file.
37465         * modules/uniconv/u32-conv-from-enc-tests: New file.
37466         * tests/uniconv/test-u32-conv-from-enc.c: New file.
37467
37468         * modules/uniconv/u16-conv-from-enc: New file.
37469         * lib/uniconv/u16-conv-from-enc.c: New file.
37470         * lib/uniconv/u-conv-from-enc.h: New file.
37471         * modules/uniconv/u16-conv-from-enc-tests: New file.
37472         * tests/uniconv/test-u16-conv-from-enc.c: New file.
37473
37474         * modules/uniconv/u8-conv-from-enc: New file.
37475         * lib/uniconv/u8-conv-from-enc.c: New file.
37476         * modules/uniconv/u8-conv-from-enc-tests: New file.
37477         * tests/uniconv/test-u8-conv-from-enc.c: New file.
37478
37479         * modules/uniconv/base: New file.
37480         * lib/uniconv.h: New file.
37481
37482 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
37483
37484         * doc/gnulib-tool.texi (Initial import): Update to match current
37485         behavior with strdup module.
37486         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
37487         * lib/memmem.h: Remove; all uses removed.  This is now done
37488         by <string.h>.
37489         * lib/mempcpy.h: Likewise.
37490         * lib/memrchr.h: Likewise.
37491         * lib/stpcpy.h: Likewise.
37492         * lib/stpncpy.h: Likewise.
37493         * lib/strcase.h: Likewise.
37494         * lib/strchrnul.h: Likewise.
37495         * lib/strdup.h: Likewise.
37496         * lib/strndup.h: Likewise.
37497         * lib/strnlen.h: Likewise.
37498         * lib/strpbrk.h: Likewise.
37499         * lib/strsep.h: Likewise.
37500         * lib/strstr.h: Likewise.
37501         * lib/strtok_r.h: Likewise.
37502         * lib/string_.h: New file.
37503         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
37504         Rely on <string.h> instead.
37505         * lib/canon-host.c: Likewise.
37506         * lib/chdir-long.c: Likewise.
37507         * lib/concatpath.c: Likewise.
37508         * lib/exclude.c: Likewise.
37509         * lib/fchdir.c: Likewise.
37510         * lib/getaddrinfo.c: Likewise.
37511         * lib/getcwd.c: Likewise.
37512         * lib/getsubopt.c: Likewise.
37513         * lib/glob.c: Likewise.
37514         * lib/hard-locale.c: Likewise.
37515         * lib/iconvme.c: Likewise.
37516         * lib/javacomp.c: Likewise.
37517         * lib/mempcpy.c: Likewise.
37518         * lib/memrchr.c: Likewise.
37519         * lib/regex_internal.h: Likewise.
37520         * lib/stpncpy.c: Likewise.
37521         * lib/strcasecmp.c: Likewise.
37522         * lib/strchrnul.c: Likewise.
37523         * lib/strdup.c: Likewise.
37524         * lib/striconv.c: Likewise.
37525         * lib/striconveh.c: Likewise.
37526         * lib/striconveha.c: Likewise.
37527         * lib/strncasecmp.c: Likewise.
37528         * lib/strndup.c: Likewise.
37529         * lib/strnlen.c: Likewise.
37530         * lib/strsep.c: Likewise.
37531         * lib/strstr.c: Likewise.
37532         * lib/strtok_r.c: Likewise.
37533         * lib/userspec.c: Likewise.
37534         * lib/w32spawn.h: Likewise.
37535         * lib/xstrndup.c: Likewise.
37536         * lib/mountlist.c (strstr): Remove decl.
37537         * m4/string_h.m4: New file.
37538         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
37539         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
37540         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
37541         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
37542         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
37543         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
37544         Set REPLACE_STRCASECMP if necessary.
37545         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
37546         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
37547         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
37548         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
37549         HAVE_DECL_STRDUP if necessary.
37550         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
37551         since gl_FUNC_STRNDUP does that now.
37552         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
37553         Check for decl here...
37554         (gl_PREREQ_STRNLEN): ... not here.
37555         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
37556         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
37557         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
37558         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
37559         necessary.
37560         * modules/string: New file.
37561         * modules/memmem (Files): Remove special-purpose include file.
37562         (Depends-on): Add string.
37563         (Include): Include <string.h>, not the removed file.
37564         * modules/mempcpy: Likewise.
37565         * modules/memrchr: Likewise.
37566         * modules/stpcpy: Likewise.
37567         * modules/stpncpy: Likewise.
37568         * modules/strcase: Likewise.
37569         * modules/strchrnul: Likewise.
37570         * modules/strdup: Likewise.
37571         * modules/strndup: Likewise.
37572         * modules/strnlen: Likewise.
37573         * modules/strpbrk: Likewise.
37574         * modules/strsep: Likewise.
37575         * modules/strstr: Likewise.
37576         * modules/strtok_r: Likewise.
37577         * tests/test-dirname.c: Don't include "strdup.h", since
37578         <string.h> now suffices.
37579         * tests/test-memmem.c: Don't include "memmem.h", since
37580         <string.h> now suffices.
37581
37582 2007-01-25  Bruno Haible  <bruno@clisp.org>
37583
37584         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
37585         *resultp is 0.
37586
37587         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
37588         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
37589         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
37590         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
37591
37592         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
37593         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
37594         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
37595         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
37596         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
37597         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
37598
37599 2007-01-24  Bruno Haible  <bruno@clisp.org>
37600
37601         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
37602         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
37603         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
37604         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
37605         gl_FUNC_FTS_CORE.
37606         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
37607         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
37608         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
37609         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
37610         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
37611         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
37612         gl_FUNC_FCHOWNAT.
37613         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
37614         gl_FUNC_STRFTIME.
37615         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
37616         Reported by Ralf Wildenhues.
37617
37618 2007-01-24  Bruno Haible  <bruno@clisp.org>
37619
37620         Drop AC_REQUIRE calls that are redundant with the module dependencies.
37621         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
37622         gl_GETADDRINFO.
37623         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
37624         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
37625         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
37626
37627 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
37628
37629         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
37630         Don't use 'exit'; just return from 'main'.
37631         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
37632
37633         * lib/fnmatch_.h: Readjust white space and comments to match
37634         glibc, to avoid spurious diffs.
37635
37636 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
37637
37638         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
37639         2004-12-01 change by Jakub Jelinek, since this code won't compile
37640         if !LIBC.  Problem reported by Bob Proulx.
37641
37642 2007-01-23  Bruno Haible  <bruno@clisp.org>
37643
37644         * lib/striconveh.c: Include c-strcaseeq.h.
37645         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
37646         * modules/striconveh (Depends-on): Add c-strcaseeq.
37647
37648 2007-01-23  Bruno Haible  <bruno@clisp.org>
37649
37650         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
37651
37652         * modules/c-strcaseeq: New file.
37653         * lib/c-strcaseeq.h: New file.
37654
37655         * modules/streq: New file.
37656         * lib/streq.h: New file.
37657
37658 2007-01-23  Bruno Haible  <bruno@clisp.org>
37659
37660         * modules/striconveha-tests: New file.
37661         * tests/test-striconveha.c: New file.
37662
37663         * lib/striconveha.h: Include <stdbool.h>.
37664         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
37665         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
37666         (mem_iconveha_notranslit): Renamed from mem_iconveha.
37667         (mem_iconveha): New function.
37668         (str_iconveha_notranslit): Renamed from str_iconveha.
37669         (str_iconveha): New function.
37670         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
37671         c-strcase.
37672
37673 2007-01-23  Bruno Haible  <bruno@clisp.org>
37674
37675         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
37676         encodings without forgiving before trying any encoding with handler.
37677         (str_iconveha): Try all encodings without forgiving before trying any
37678         encoding with handler.
37679
37680 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
37681
37682         Import the following changes from libc.
37683
37684         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
37685
37686         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
37687
37688         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
37689
37690         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
37691         normal_bracket label.
37692
37693         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
37694
37695         [BZ #361]
37696         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
37697         to normal_bracket after fetching the next character.
37698
37699 2007-01-22  Bruno Haible  <bruno@clisp.org>
37700
37701         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
37702         argument.
37703         * lib/striconveh.c (iconv_carefully_1): New function.
37704         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
37705         argument.
37706         (str_cd_iconveh): Update.
37707         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
37708         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
37709         * tests/test-striconveh.c (MAGIC): New macro.
37710         (new_offsets): New function.
37711         (main): Test call with and without offsets.
37712
37713 2007-01-22  Bruno Haible  <bruno@clisp.org>
37714
37715         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
37716         * modules/sys_select (Makefile.am): Likewise.
37717         * modules/sys_socket (Makefile.am): Likewise.
37718         * modules/sys_time (Makefile.am): Likewise.
37719
37720 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
37721
37722         * modules/gettimeofday (License): Change from GPL to LGPL, since
37723         gettimeofday is a library function.
37724
37725 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37726
37727         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
37728
37729 2007-01-21  Bruno Haible  <bruno@clisp.org>
37730
37731         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
37732
37733 2007-01-21  Bruno Haible  <bruno@clisp.org>
37734
37735         * modules/striconveha: New file.
37736         * lib/striconveha.h: New file.
37737         * lib/striconveha.c: New file.
37738         * MODULES.html.sh (Internationalization functions): Add striconveha.
37739         * lib/striconv.c (str_iconv): Optimize the case of an empty input
37740         string.
37741         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
37742
37743 2007-01-21  Bruno Haible  <bruno@clisp.org>
37744
37745         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
37746         * lib/striconveh.c (str_iconveh): Likewise.
37747
37748 2007-01-21  Bruno Haible  <bruno@clisp.org>
37749
37750         * lib/striconveh.h (mem_iconveh): New declaration.
37751         * lib/striconveh.c (mem_iconveh): New function.
37752         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
37753
37754 2007-01-21  Bruno Haible  <bruno@clisp.org>
37755
37756         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
37757
37758         * lib/striconveh.h (mem_cd_iconveh): Change specification.
37759         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
37760         original result buffer.
37761         (str_cd_iconveh): Update.
37762         * tests/test-striconveh.c (main): Update.
37763
37764         * lib/striconv.h (mem_cd_iconv): Change specification.
37765         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
37766         result buffer.
37767         (str_cd_iconv): Update.
37768         * tests/test-striconv.c (main): Update.
37769
37770 2007-01-21  Bruno Haible  <bruno@clisp.org>
37771
37772         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
37773
37774 2007-01-20  Jim Meyering  <jim@meyering.net>
37775
37776         * lib/userspec.c (parse_with_separator): If a user or group string
37777         starts with "+", skip the corresponding name-to-ID look-up, since
37778         such a look-up must fail: user and group names may not include "+".
37779
37780 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
37781
37782         * lib/poll.c: Include sys/time.h and time.h unconditionally,
37783         since we now assume the sys_time module.
37784         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
37785         check for sys/time.h; no longer needed.
37786         * modules/poll (Depends-on): Depend on sys_time.
37787
37788 2007-01-18  Bruno Haible  <bruno@clisp.org>
37789
37790         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
37791         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
37792
37793         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
37794         gettimeofday.
37795
37796         * tests/test-gettimeofday.c: Include <time.h>.
37797         (dummy): Remove variable.
37798
37799         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
37800         gl_HEADER_SYS_TIME_H.
37801         (gl_HEADER_SYS_TIME_H): New macro.
37802
37803         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
37804         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37805         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
37806         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
37807         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37808         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
37809         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
37810         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37811         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
37812         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
37813         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37814
37815         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
37816         last change; it caused a compilation error when cross-compiling to
37817         Cygwin.
37818
37819 2007-01-18  Jim Meyering  <jim@meyering.net>
37820
37821         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
37822         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
37823         than the race-prone "test -d sys || mkdir sys".
37824         (configure.ac): Use AC_PROG_MKDIR_P.
37825         * modules/sys_select: Likewise.
37826         * modules/sys_socket: Likewise.
37827         * modules/sys_time: Likewise.
37828
37829 2007-01-18  Eric Blake  <ebb9@byu.net>
37830
37831         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
37832         replace gettimeofday.
37833         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
37834         name, to avoid infinite recursion.
37835
37836 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
37837
37838         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
37839         module sys_time.
37840         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
37841         assume timespec.h defines struct timeval.
37842         * lib/settime.c: Likewise.
37843         * lib/utimens.c: Likewise.
37844         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
37845         since we now assume the gettimeofday module.
37846         * lib/tempname.c (__gen_tempname): Likewise.
37847         * lib/gettimeofday.h: Remove.
37848         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
37849         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
37850         Include <time.h>, for 'time()'.
37851         (localtime_buffer_addr): Also use this workaround if
37852         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
37853         to simplify the uses.  All uses changed.
37854         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
37855         that #undef is inside {}, and 'const' follows type name consistently.
37856         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
37857         (gettimeofday): Do not use the maximum possible value for
37858         tv->tv_usec, since that might break usages other than ls.c.
37859         Instead, we'll leave ls.c alone.  This undoes today's patch
37860         by Bruno.  Add a compile-time warning for 1s-clock resolution;
37861         we've never observed the problem but might as well keep the
37862         canary.
37863         * lib/nanosleep.c: Include timespec.h first, for interface check.
37864         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
37865         now assume the sys_time module.
37866         * lib/tempname.c: Likewise.
37867         * lib/timespec.h: Likewise.
37868         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
37869         needed.
37870         * lib/strftime.c: Likewise.
37871         * lib/timespec.h: Likewise.
37872         * lib/posixtm.c: Include posixtm.h first, for interface check.
37873         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
37874         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
37875         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
37876         * lib/sys_time_.h: New file.
37877         * lib/timespec.h (struct timespec): Use long int, not long.
37878         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
37879         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
37880         Remove obsolescent call to AC_HEADER_TIME.
37881         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
37882         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
37883         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
37884         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
37885         Likewise.
37886         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
37887         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
37888         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
37889         into the sys_time module.  Check for gettimeofday just once.
37890         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
37891         for gettimeofday signature to just check the signature.  Merely
37892         compile it, since linking doesn't test signature.  Improve test for
37893         whether gettimeofday.o is actually needed.
37894         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
37895         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
37896         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
37897         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37898         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
37899         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
37900         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
37901         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
37902         than worrying about sys/time.h.
37903         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37904         Don't bother worrying about TIME_WITH_SYS_TIME.
37905         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37906         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
37907         * m4/sys_time_h.m4: New file.
37908         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
37909         Don't include sys/time.h.  Return from main rather than exiting.
37910         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
37911         all uses changed.
37912         * modules/gethrxtime (Depends-on): Add sys_time.
37913         * modules/gettime (Depends-on): Likewise.
37914         * modules/gettimeofday (Depends-on): Likewise.
37915         * modules/nanosleep (Depends-on): Likewise.
37916         * modules/settime (Depends-on): Likewise.
37917         * modules/tempname (Depends-on): Likewise.
37918         * modules/utimens (Depends-on): Likewise.
37919         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
37920         (Include:) Change back to <sys/time.h>.
37921         (Maintainer:) Add self.
37922         * modules/sys_time: New file.
37923         * modules/tempname (Depends-on): Add gettimeofday.
37924         * tests/test-gettimeofday.c: Include <sys/time.h>
37925         rather than gettimeofday.h.
37926
37927 2007-01-17  Bruno Haible  <bruno@clisp.org>
37928
37929         * gnulib-tool (func_get_license): Revert last patch. Instead, let
37930         the license default to GPL.
37931         (func_create_testdir): Don't complain if a module is LGPL and its
37932         tests module depends on GPLed modules.
37933
37934 2007-01-17  Bruno Haible  <bruno@clisp.org>
37935
37936         * lib/gettimeofday.c (gettimeofday): Add code for the case
37937         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
37938         maximum possible value for tv->tv_usec, rather than the minimum one.
37939
37940 2005-10-08  Martin Lambers  <marlam@marlam.de>
37941 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
37942 2007-01-16  Bruno Haible  <bruno@clisp.org>
37943
37944         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
37945         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
37946         gl_FUNC_GETTIMEOFDAY.
37947         (Include): Add gettimeofday.h.
37948         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
37949         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
37950         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
37951         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
37952         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
37953         * lib/gettimeofday.h: New file.
37954         * lib/gettimeofday.c: Include <sys/timeb.h>.
37955         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
37956         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37957         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
37958         fall back on time().
37959
37960         * tests/test-gettimeofday.c: New file.
37961         * modules/gettimeofday-tests: New file.
37962
37963 2007-01-16  Eric Blake  <ebb9@byu.net>
37964
37965         * modules/fnmatch (Depends-on): Depend on wchar.
37966         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
37967         * m4/fnmatch.m4: Likewise.
37968         * modules/mbchar (Makefile.am): Assume <wchar.h>.
37969         * m4/mbchar.m4: Likewise.
37970         * modules/mbswidth (Depends-on): Depend on wchar.
37971         * lib/mbswidth.c: Assume <wchar.h>.
37972         * m4/mbswidth.m4: Likewise.
37973         * modules/quotearg (Depends-on): Depend on wchar.
37974         * lib/quotearg.c: Assume <wchar.h>.
37975         * m4/quotearg.m4: Likewise.
37976         * modules/regex (Depends-on): Depend on wchar.
37977         * lib/regex_internal.h: Assume <wchar.h>.
37978         * m4/regex.m4: Likewise.
37979         * modules/stdint (Depends-on): Depend on wchar.
37980         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
37981         * m4/stdint.m4: Likewise.
37982         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
37983         * modules/strftime (Depends-on): Depend on wchar.
37984         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
37985         * modules/strtol (Depends-on): Depend on wchar.
37986         * lib/strtol.c: Assume <wchar.h>.
37987         * modules/wcwidth (Depends-on): Depend on wchar.
37988         * lib/wcwidth.h: Assume <wchar.h>.
37989         * m4/wcwidth.m4: Likewise.
37990
37991 2007-01-16  Bruno Haible  <bruno@clisp.org>
37992
37993         * modules/csharpexec-script: New, created from...
37994         * modules/csharpexec: ... this.
37995
37996 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
37997
37998         * modules/javaexec-script: New, created from...
37999         * modules/javaexec: ... this.
38000
38001 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38002
38003         * modules/poll (Dependencies): Add sys_select.
38004
38005 2007-01-15  Jim Meyering  <jim@meyering.net>
38006
38007         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
38008         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
38009         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
38010         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
38011
38012 2007-01-15  Bruno Haible  <bruno@clisp.org>
38013
38014         * modules/striconveh: New file.
38015         * lib/striconveh.h: New file.
38016         * lib/striconveh.c: New file.
38017         * MODULES.html.sh (Internationalization functions): Add striconveh.
38018
38019         * modules/striconveh-tests: New file.
38020         * tests/test-striconveh.c: New file.
38021
38022 2007-01-15  Bruno Haible  <bruno@clisp.org>
38023
38024         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
38025         not from GNU libiconv or GNU libc.
38026
38027 2007-01-15  Bruno Haible  <bruno@clisp.org>
38028
38029         * doc/gnulib-intro.texi (Copyright): Explain the different license
38030         terms for module descriptions, autoconf macros, tests, documentation.
38031
38032 2007-01-14  Bruno Haible  <bruno@clisp.org>
38033
38034         * modules/striconv-tests: New file.
38035         * tests/test-striconv.c: New file.
38036
38037 2007-01-14  Bruno Haible  <bruno@clisp.org>
38038
38039         * modules/iconv-tests: New file.
38040         * tests/test-iconv.c: New file.
38041
38042 2007-01-14  Bruno Haible  <bruno@clisp.org>
38043
38044         * gnulib-tool (func_get_license): For test modules, use the license of
38045         the main module.
38046
38047 2007-01-14  Bruno Haible  <bruno@clisp.org>
38048
38049         * modules/iconv (Include): Clarify that <iconv.h> can only be included
38050         if iconv is found to exist.
38051
38052 2007-01-14  Bruno Haible  <bruno@clisp.org>
38053
38054         * modules/c-ctype-tests: New file.
38055         * tests/test-c-ctype.c: New file.
38056
38057 2007-01-14  Bruno Haible  <bruno@clisp.org>
38058
38059         * modules/binary-io-tests: New file.
38060         * tests/test-binary-io.sh: New file.
38061         * tests/test-binary-io.c: New file.
38062
38063 2007-01-14  Bruno Haible  <bruno@clisp.org>
38064
38065         * modules/array-oset-tests: New file.
38066         * tests/test-array_oset.c: New file.
38067
38068 2007-01-14  Bruno Haible  <bruno@clisp.org>
38069
38070         * modules/array-list-tests: New file.
38071         * tests/test-array_list.c: New file.
38072
38073 2007-01-14  Bruno Haible  <bruno@clisp.org>
38074
38075         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
38076         and make.
38077         Reported by Simon Josefsson in
38078         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
38079
38080 2007-01-14  Bruno Haible  <bruno@clisp.org>
38081
38082         * modules/allocsa-tests: New file.
38083         * tests/test-allocsa.c: New file.
38084
38085 2007-01-14  Bruno Haible  <bruno@clisp.org>
38086
38087         * modules/fchdir (Depends-on): Add absolute-header.
38088         * modules/unistd (Depends-on): Likewise.
38089
38090 2006-12-30  Bruno Haible  <bruno@clisp.org>
38091
38092         * modules/fchdir: New file.
38093         * modules/unistd (Files): Add lib/unistd_.h.
38094         (Makefile.am): Generate unistd.h from unistd_.h.
38095         * lib/fchdir.c: New file.
38096         * lib/dirent_.h: New file.
38097         * lib/unistd_.h: New file.
38098         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
38099         * m4/fchdir.m4: New file.
38100         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
38101         (gl_HEADER_UNISTD): Invoke it.
38102         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
38103         function.
38104         * lib/backupfile.c (opendir, closedir): Undefine.
38105         * lib/chown.c (open, close): Undefine.
38106         * lib/clean-temp.c (open, close): Undefine.
38107         * lib/copy-file.c (open, close): Undefine.
38108         * lib/execute.c (open, close): Undefine.
38109         * lib/fsusage.c (open, close): Undefine.
38110         * lib/gc-gnulib.c (open, close): Undefine.
38111         * lib/getcwd.c (opendir, closedir): Undefine.
38112         * lib/glob.c (opendir, closedir): Undefine.
38113         * lib/javacomp.c (open, close): Undefine.
38114         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
38115         * lib/openat-proc.c (open, close): Undefine.
38116         * lib/pagealign_alloc.c (open, close): Undefine.
38117         * lib/pipe.c (open, close): Undefine.
38118         * lib/progreloc.c (open, close): Undefine.
38119         * lib/savedir.c (opendir, closedir): Undefine.
38120         * lib/utime.c (open, close): Undefine.
38121         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
38122
38123 2007-01-10  Bruno Haible  <bruno@clisp.org>
38124
38125         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
38126
38127 2007-01-12  Eric Blake  <ebb9@byu.net>
38128
38129         Provide a robust <wchar.h>.  Further simplifications are now
38130         possible in other modules, but not included here.
38131         * modules/wchar: New module.
38132         * m4/wchar.m4: New file.
38133         * lib/wchar_.h: Likewise.
38134         * modules/mbchar (Depends-on): Depend on wchar, as the first use
38135         of the new module.
38136         * MODULES.html.sh (Extended multibyte and wide character utilities):
38137         New section.
38138
38139 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
38140
38141         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
38142         to a reasonable default for memory allocation.
38143         (xreadlink): Don't allocate a huge buffer, to work around a buggy
38144         file system that reports garbage st_size values for symlinks.
38145         Problem reported by Liyang Hu.
38146
38147 2007-01-11  Simon Josefsson  <simon@josefsson.org>
38148
38149         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
38150         Emacs .#* auto-save files).
38151
38152 2007-01-11  Bruno Haible  <bruno@clisp.org>
38153
38154         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
38155         directory.
38156
38157 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
38158
38159         Use @...@ consistently in lib/wctype_.h.
38160         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
38161         on it being set to 1 or 0.
38162         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
38163         go back to AC_SUBSTing it.
38164         * modules/wctype (Makefile.am): Undo previous change.
38165
38166 2007-01-10  Eric Blake  <ebb9@byu.net>
38167
38168         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
38169         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
38170         * modules/wctype (Makefile.am): Likewise.
38171         Reported by Chris McGuire.
38172
38173 2007-01-10  Jim Meyering  <jim@meyering.net>
38174
38175         fts.c: a small readability/maintainability improvement
38176         * lib/fts.c (fts_read): Make this code slightly more readable and
38177         maintainable by hoisting the "sp->fts_cur = p" assignments to
38178         immediately follow the statements that set P.  Derived from
38179         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
38180
38181 2007-01-10  Eric Blake  <ebb9@byu.net>
38182
38183         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
38184         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
38185         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38186         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
38187         Reported by Chris McGuire.
38188
38189 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38190
38191         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
38192         in sed script.
38193
38194 2007-01-09  Bruno Haible  <bruno@clisp.org>
38195
38196         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
38197         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
38198         variables.
38199         (func_module): Use them.
38200
38201 2007-01-09  Bruno Haible  <bruno@clisp.org>
38202
38203         * modules/unistr/base: New file.
38204         * lib/unistr.h: New file.
38205
38206         * modules/unistr/u8-to-u16: New file.
38207         * lib/unistr/u8-to-u16.c: New file.
38208
38209         * modules/unistr/u8-to-u32: New file.
38210         * lib/unistr/u8-to-u32.c: New file.
38211
38212         * modules/unistr/u16-to-u8: New file.
38213         * lib/unistr/u16-to-u8.c: New file.
38214
38215         * modules/unistr/u16-to-u32: New file.
38216         * lib/unistr/u16-to-u32.c: New file.
38217
38218         * modules/unistr/u32-to-u8: New file.
38219         * lib/unistr/u32-to-u8.c: New file.
38220
38221         * modules/unistr/u32-to-u16: New file.
38222         * lib/unistr/u32-to-u16.c: New file.
38223
38224         * modules/unistr/u8-check: New file.
38225         * modules/unistr/u16-check: New file.
38226         * modules/unistr/u32-check: New file.
38227         * lib/unistr/u8-check.c: New file.
38228         * lib/unistr/u16-check.c: New file.
38229         * lib/unistr/u32-check.c: New file.
38230
38231         * modules/unistr/u8-chr: New file.
38232         * modules/unistr/u16-chr: New file.
38233         * modules/unistr/u32-chr: New file.
38234         * lib/unistr/u8-chr.c: New file.
38235         * lib/unistr/u16-chr.c: New file.
38236         * lib/unistr/u32-chr.c: New file.
38237
38238         * modules/unistr/u8-cmp: New file.
38239         * modules/unistr/u16-cmp: New file.
38240         * modules/unistr/u32-cmp: New file.
38241         * lib/unistr/u8-cmp.c: New file.
38242         * lib/unistr/u16-cmp.c: New file.
38243         * lib/unistr/u32-cmp.c: New file.
38244
38245         * modules/unistr/u8-cpy: New file.
38246         * modules/unistr/u16-cpy: New file.
38247         * modules/unistr/u32-cpy: New file.
38248         * lib/unistr/u8-cpy.c: New file.
38249         * lib/unistr/u16-cpy.c: New file.
38250         * lib/unistr/u32-cpy.c: New file.
38251         * lib/unistr/u-cpy.h: New file.
38252
38253         * modules/unistr/u8-cpy-alloc: New file.
38254         * modules/unistr/u16-cpy-alloc: New file.
38255         * modules/unistr/u32-cpy-alloc: New file.
38256         * lib/unistr/u8-cpy-alloc.c: New file.
38257         * lib/unistr/u16-cpy-alloc.c: New file.
38258         * lib/unistr/u32-cpy-alloc.c: New file.
38259         * lib/unistr/u-cpy-alloc.h: New file.
38260
38261         * modules/unistr/u8-endswith: New file.
38262         * modules/unistr/u16-endswith: New file.
38263         * modules/unistr/u32-endswith: New file.
38264         * lib/unistr/u8-endswith.c: New file.
38265         * lib/unistr/u16-endswith.c: New file.
38266         * lib/unistr/u32-endswith.c: New file.
38267         * lib/unistr/u-endswith.h: New file.
38268
38269         * modules/unistr/u8-mblen: New file.
38270         * modules/unistr/u16-mblen: New file.
38271         * modules/unistr/u32-mblen: New file.
38272         * lib/unistr/u8-mblen.c: New file.
38273         * lib/unistr/u16-mblen.c: New file.
38274         * lib/unistr/u32-mblen.c: New file.
38275
38276         * modules/unistr/u8-mbtouc: New file.
38277         * modules/unistr/u16-mbtouc: New file.
38278         * modules/unistr/u32-mbtouc: New file.
38279         * lib/unistr/u8-mbtouc.c: New file.
38280         * lib/unistr/u16-mbtouc.c: New file.
38281         * lib/unistr/u32-mbtouc.c: New file.
38282
38283         * modules/unistr/u8-mbtouc-safe: New file.
38284         * modules/unistr/u16-mbtouc-safe: New file.
38285         * modules/unistr/u32-mbtouc-safe: New file.
38286         * lib/unistr/u8-mbtouc-safe.c: New file.
38287         * lib/unistr/u16-mbtouc-safe.c: New file.
38288         * lib/unistr/u32-mbtouc-safe.c: New file.
38289
38290         * modules/unistr/u8-move: New file.
38291         * modules/unistr/u16-move: New file.
38292         * modules/unistr/u32-move: New file.
38293         * lib/unistr/u8-move.c: New file.
38294         * lib/unistr/u16-move.c: New file.
38295         * lib/unistr/u32-move.c: New file.
38296         * lib/unistr/u-move.h: New file.
38297
38298         * modules/unistr/u8-next: New file.
38299         * modules/unistr/u16-next: New file.
38300         * modules/unistr/u32-next: New file.
38301         * lib/unistr/u8-next.c: New file.
38302         * lib/unistr/u16-next.c: New file.
38303         * lib/unistr/u32-next.c: New file.
38304
38305         * modules/unistr/u8-prev: New file.
38306         * modules/unistr/u16-prev: New file.
38307         * modules/unistr/u32-prev: New file.
38308         * lib/unistr/u8-prev.c: New file.
38309         * lib/unistr/u16-prev.c: New file.
38310         * lib/unistr/u32-prev.c: New file.
38311
38312         * modules/unistr/u8-set: New file.
38313         * modules/unistr/u16-set: New file.
38314         * modules/unistr/u32-set: New file.
38315         * lib/unistr/u8-set.c: New file.
38316         * lib/unistr/u16-set.c: New file.
38317         * lib/unistr/u32-set.c: New file.
38318         * lib/unistr/u-set.h: New file.
38319
38320         * modules/unistr/u8-startswith: New file.
38321         * modules/unistr/u16-startswith: New file.
38322         * modules/unistr/u32-startswith: New file.
38323         * lib/unistr/u8-startswith.c: New file.
38324         * lib/unistr/u16-startswith.c: New file.
38325         * lib/unistr/u32-startswith.c: New file.
38326         * lib/unistr/u-startswith.h: New file.
38327
38328         * modules/unistr/u8-stpcpy: New file.
38329         * modules/unistr/u16-stpcpy: New file.
38330         * modules/unistr/u32-stpcpy: New file.
38331         * lib/unistr/u8-stpcpy.c: New file.
38332         * lib/unistr/u16-stpcpy.c: New file.
38333         * lib/unistr/u32-stpcpy.c: New file.
38334         * lib/unistr/u-stpcpy.h: New file.
38335
38336         * modules/unistr/u8-stpncpy: New file.
38337         * modules/unistr/u16-stpncpy: New file.
38338         * modules/unistr/u32-stpncpy: New file.
38339         * lib/unistr/u8-stpncpy.c: New file.
38340         * lib/unistr/u16-stpncpy.c: New file.
38341         * lib/unistr/u32-stpncpy.c: New file.
38342         * lib/unistr/u-stpncpy.h: New file.
38343
38344         * modules/unistr/u8-strcat: New file.
38345         * modules/unistr/u16-strcat: New file.
38346         * modules/unistr/u32-strcat: New file.
38347         * lib/unistr/u8-strcat.c: New file.
38348         * lib/unistr/u16-strcat.c: New file.
38349         * lib/unistr/u32-strcat.c: New file.
38350         * lib/unistr/u-strcat.h: New file.
38351
38352         * modules/unistr/u8-strchr: New file.
38353         * modules/unistr/u16-strchr: New file.
38354         * modules/unistr/u32-strchr: New file.
38355         * lib/unistr/u8-strchr.c: New file.
38356         * lib/unistr/u16-strchr.c: New file.
38357         * lib/unistr/u32-strchr.c: New file.
38358
38359         * modules/unistr/u8-strcmp: New file.
38360         * modules/unistr/u16-strcmp: New file.
38361         * modules/unistr/u32-strcmp: New file.
38362         * lib/unistr/u8-strcmp.c: New file.
38363         * lib/unistr/u16-strcmp.c: New file.
38364         * lib/unistr/u32-strcmp.c: New file.
38365
38366         * modules/unistr/u8-strcpy: New file.
38367         * modules/unistr/u16-strcpy: New file.
38368         * modules/unistr/u32-strcpy: New file.
38369         * lib/unistr/u8-strcpy.c: New file.
38370         * lib/unistr/u16-strcpy.c: New file.
38371         * lib/unistr/u32-strcpy.c: New file.
38372         * lib/unistr/u-strcpy.h: New file.
38373
38374         * modules/unistr/u8-strcspn: New file.
38375         * modules/unistr/u16-strcspn: New file.
38376         * modules/unistr/u32-strcspn: New file.
38377         * lib/unistr/u8-strcspn.c: New file.
38378         * lib/unistr/u16-strcspn.c: New file.
38379         * lib/unistr/u32-strcspn.c: New file.
38380         * lib/unistr/u-strcspn.h: New file.
38381
38382         * modules/unistr/u8-strdup: New file.
38383         * modules/unistr/u16-strdup: New file.
38384         * modules/unistr/u32-strdup: New file.
38385         * lib/unistr/u8-strdup.c: New file.
38386         * lib/unistr/u16-strdup.c: New file.
38387         * lib/unistr/u32-strdup.c: New file.
38388         * lib/unistr/u-strdup.h: New file.
38389
38390         * modules/unistr/u8-strlen: New file.
38391         * modules/unistr/u16-strlen: New file.
38392         * modules/unistr/u32-strlen: New file.
38393         * lib/unistr/u8-strlen.c: New file.
38394         * lib/unistr/u16-strlen.c: New file.
38395         * lib/unistr/u32-strlen.c: New file.
38396         * lib/unistr/u-strlen.h: New file.
38397
38398         * modules/unistr/u8-strmblen: New file.
38399         * modules/unistr/u16-strmblen: New file.
38400         * modules/unistr/u32-strmblen: New file.
38401         * lib/unistr/u8-strmblen.c: New file.
38402         * lib/unistr/u16-strmblen.c: New file.
38403         * lib/unistr/u32-strmblen.c: New file.
38404
38405         * modules/unistr/u8-strmbtouc: New file.
38406         * modules/unistr/u16-strmbtouc: New file.
38407         * modules/unistr/u32-strmbtouc: New file.
38408         * lib/unistr/u8-strmbtouc.c: New file.
38409         * lib/unistr/u16-strmbtouc.c: New file.
38410         * lib/unistr/u32-strmbtouc.c: New file.
38411
38412         * modules/unistr/u8-strncat: New file.
38413         * modules/unistr/u16-strncat: New file.
38414         * modules/unistr/u32-strncat: New file.
38415         * lib/unistr/u8-strncat.c: New file.
38416         * lib/unistr/u16-strncat.c: New file.
38417         * lib/unistr/u32-strncat.c: New file.
38418         * lib/unistr/u-strncat.h: New file.
38419
38420         * modules/unistr/u8-strncmp: New file.
38421         * modules/unistr/u16-strncmp: New file.
38422         * modules/unistr/u32-strncmp: New file.
38423         * lib/unistr/u8-strncmp.c: New file.
38424         * lib/unistr/u16-strncmp.c: New file.
38425         * lib/unistr/u32-strncmp.c: New file.
38426
38427         * modules/unistr/u8-strncpy: New file.
38428         * modules/unistr/u16-strncpy: New file.
38429         * modules/unistr/u32-strncpy: New file.
38430         * lib/unistr/u8-strncpy.c: New file.
38431         * lib/unistr/u16-strncpy.c: New file.
38432         * lib/unistr/u32-strncpy.c: New file.
38433         * lib/unistr/u-strncpy.h: New file.
38434
38435         * modules/unistr/u8-strnlen: New file.
38436         * modules/unistr/u16-strnlen: New file.
38437         * modules/unistr/u32-strnlen: New file.
38438         * lib/unistr/u8-strnlen.c: New file.
38439         * lib/unistr/u16-strnlen.c: New file.
38440         * lib/unistr/u32-strnlen.c: New file.
38441         * lib/unistr/u-strnlen.h: New file.
38442
38443         * modules/unistr/u8-strpbrk: New file.
38444         * modules/unistr/u16-strpbrk: New file.
38445         * modules/unistr/u32-strpbrk: New file.
38446         * lib/unistr/u8-strpbrk.c: New file.
38447         * lib/unistr/u16-strpbrk.c: New file.
38448         * lib/unistr/u32-strpbrk.c: New file.
38449         * lib/unistr/u-strpbrk.h: New file.
38450
38451         * modules/unistr/u8-strrchr: New file.
38452         * modules/unistr/u16-strrchr: New file.
38453         * modules/unistr/u32-strrchr: New file.
38454         * lib/unistr/u8-strrchr.c: New file.
38455         * lib/unistr/u16-strrchr.c: New file.
38456         * lib/unistr/u32-strrchr.c: New file.
38457
38458         * modules/unistr/u8-strspn: New file.
38459         * modules/unistr/u16-strspn: New file.
38460         * modules/unistr/u32-strspn: New file.
38461         * lib/unistr/u8-strspn.c: New file.
38462         * lib/unistr/u16-strspn.c: New file.
38463         * lib/unistr/u32-strspn.c: New file.
38464         * lib/unistr/u-strspn.h: New file.
38465
38466         * modules/unistr/u8-strstr: New file.
38467         * modules/unistr/u16-strstr: New file.
38468         * modules/unistr/u32-strstr: New file.
38469         * lib/unistr/u8-strstr.c: New file.
38470         * lib/unistr/u16-strstr.c: New file.
38471         * lib/unistr/u32-strstr.c: New file.
38472         * lib/unistr/u-strstr.h: New file.
38473
38474         * modules/unistr/u8-strtok: New file.
38475         * modules/unistr/u16-strtok: New file.
38476         * modules/unistr/u32-strtok: New file.
38477         * lib/unistr/u8-strtok.c: New file.
38478         * lib/unistr/u16-strtok.c: New file.
38479         * lib/unistr/u32-strtok.c: New file.
38480         * lib/unistr/u-strtok.h: New file.
38481
38482         * modules/unistr/u8-uctomb: New file.
38483         * modules/unistr/u16-uctomb: New file.
38484         * modules/unistr/u32-uctomb: New file.
38485         * lib/unistr/u8-uctomb.c: New file.
38486         * lib/unistr/u16-uctomb.c: New file.
38487         * lib/unistr/u32-uctomb.c: New file.
38488
38489         * MODULES.html.sh (Unicode string functions): Add the new modules.
38490
38491 2007-01-08  Bruno Haible  <bruno@clisp.org>
38492
38493         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
38494         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
38495         subdirectories.
38496
38497 2007-01-08  Karl Berry  <karl@gnu.org>
38498
38499         * doc/error.texi: mention that main() fns must set program_name
38500         when progname is used.
38501
38502 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
38503
38504         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
38505         WCTYPE_H is empty, for the benefit of builds from non-distclean
38506         directories.  Problem reported by Eric Blake in
38507         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
38508
38509 2007-01-08  Bruno Haible  <bruno@clisp.org>
38510
38511         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
38512         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
38513         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
38514         PROVIDE_CANONICALIZE_FILENAME_MODE.
38515         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
38516
38517 2007-01-08  Bruno Haible  <bruno@clisp.org>
38518
38519         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
38520         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
38521         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
38522         * lib/fts.c: Likewise.
38523         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
38524
38525 2006-12-25  Bruno Haible  <bruno@clisp.org>
38526
38527         * modules/utf8-ucs4-safe: New file.
38528         * lib/utf8-ucs4-safe.h: New file.
38529         * lib/unistr/utf8-ucs4-safe.c: New file.
38530
38531         * modules/utf16-ucs4-safe: New file.
38532         * lib/utf16-ucs4-safe.h: New file.
38533         * lib/unistr/utf16-ucs4-safe.c: New file.
38534
38535         * MODULES.html.sh (Unicode string functions): Add the new modules.
38536
38537 2007-01-08  Bruno Haible  <bruno@clisp.org>
38538
38539         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
38540         (Depends-on): Add unitypes.
38541         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
38542         (u8_mbtouc_aux): Move out to separate file.
38543         (u8_mbtouc): Use ucs4_t, uint8_t types.
38544         * lib/unistr/utf8-ucs4.c: New file.
38545
38546         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
38547         (Depends-on): Add unitypes.
38548         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
38549         (u16_mbtouc_aux): Move out to separate file.
38550         (u16_mbtouc): Use ucs4_t, uint16_t types.
38551         * lib/unistr/utf16-ucs4.c: New file.
38552
38553         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
38554         (Depends-on): Add unitypes.
38555         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
38556         (u8_uctomb_aux): Move out to separate file.
38557         (u8_uctomb): Use ucs4_t, uint8_t types.
38558         * lib/unistr/ucs4-utf8.c: New file.
38559
38560         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
38561         (Depends-on): Add unitypes.
38562         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
38563         (u16_uctomb_aux): Move out to separate file.
38564         (u16_uctomb): Use ucs4_t, uint16_t types.
38565         * lib/unistr/ucs4-utf16.c: New file.
38566
38567 2006-12-25  Bruno Haible  <bruno@clisp.org>
38568
38569         * modules/unitypes: New file.
38570         * lib/unitypes.h: New file.
38571         * MODULES.html.sh (func_all_modules): New section "Unicode string
38572         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
38573         this section. Add unitypes.
38574
38575 2007-01-08  Bruno Haible  <bruno@clisp.org>
38576
38577         Avoid variable names that conflict with those from libtool.
38578         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
38579         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
38580         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
38581         library_names_spec to acl_library_names_spec, hardcode_* to
38582         acl_hardcode_*.
38583         Reported by Ralf Wildenhues.
38584
38585 2007-01-08  Bruno Haible  <bruno@clisp.org>
38586
38587         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
38588         definition.
38589         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
38590         definition.
38591         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
38592         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
38593         definition.
38594         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
38595         definition.
38596         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
38597         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
38598         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
38599         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
38600         definition.
38601         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
38602         definition.
38603         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
38604         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
38605         GC_USE_<algorithm>.
38606         * lib/gc-libgcrypt.c: Likewise.
38607         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
38608         * modules/gc-arctwo (configure.ac): Likewise.
38609         * modules/gc-des (configure.ac): Likewise.
38610         * modules/gc-hmac-md5 (configure.ac): Likewise.
38611         * modules/gc-hmac-sha1 (configure.ac): Likewise.
38612         * modules/gc-md2 (configure.ac): Likewise.
38613         * modules/gc-md4 (configure.ac): Likewise.
38614         * modules/gc-md5 (configure.ac): Likewise.
38615         * modules/gc-random (configure.ac): Likewise.
38616         * modules/gc-rijndael (configure.ac): Likewise.
38617         * modules/gc-sha1 (configure.ac): Likewise.
38618
38619 2007-01-08  Bruno Haible  <bruno@clisp.org>
38620
38621         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
38622         macro definition.
38623         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
38624         definition.
38625         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
38626         definition.
38627         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
38628         * modules/fcntl-safer (configure.ac): Likewise.
38629         * modules/fopen-safer (configure.ac): Likewise.
38630         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
38631         GNULIB_FWRITEERROR macro definition.
38632
38633 2007-01-08  Bruno Haible  <bruno@clisp.org>
38634
38635         * m4/gnulib-common.m4: New file.
38636         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
38637         (func_get_filelist): Add m4/gnulib-common.m4.
38638
38639 2007-01-08  Bruno Haible  <bruno@clisp.org>
38640
38641         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
38642         command.
38643
38644 2007-01-08  Jim Meyering  <jim@meyering.net>
38645
38646         Use a more robust test for a "can't happen" condition.
38647         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
38648         narrowed the st_size value.  Presuming the "can't happen" condition
38649         is true, that narrowing could conceivably convert an invalid st_size
38650         value into a valid one.  Instead, use a change based on Matthew
38651         Woehlke's original patch.
38652
38653         Slight readability improvement: use an assert-like macro
38654         in place of literal "abort ()" uses.
38655         * lib/fts.c (fts_assert): Define.
38656         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
38657         Use this macro instead of a bare 'abort'.
38658
38659 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
38660
38661         Don't worry about using IRIX 5.3's wctype.h broken definitions;
38662         simply work around them.
38663         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
38664         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
38665         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
38666         declaring.
38667         Don't bother to define as macros, since the standard doesn't require it.
38668         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
38669         longer worry about IRIX 5.3.
38670         (HAVE_WCTYPE_CTMP_BUG): Remove.
38671
38672 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
38673
38674         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
38675         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
38676         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38677         Problems reported by Georg Schwarz for IRIX 5.3.
38678
38679         * gnulib-tool (autoconf_minversion): Take the maximum version number
38680         found, not the minimum.  Problem reported by James Youngman.
38681
38682 2007-01-03  Karl Berry  <karl@gnu.org>
38683
38684         * doc/error.texi: new file, explaining interaction with progname.
38685         * doc/gnulib.texi: include it.  Update copyright.
38686
38687 2007-01-03  Simon Josefsson  <simon@josefsson.org>
38688
38689         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
38690         AC_CANONICAL_HOST, to improve autobuild outputs.
38691
38692 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
38693             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38694
38695         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
38696         sockets, server sockets, and other file descriptors.  Count errors
38697         to compute the return value.  Reorder the code a bit to be easier
38698         to follow.  Don't set event bits that were not requested (except
38699         POLLERR and POLLHUP).
38700
38701 2007-01-01  Bruno Haible  <bruno@clisp.org>
38702
38703         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
38704
38705 2007-01-03  Jim Meyering  <jim@meyering.net>
38706
38707         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
38708
38709 2007-01-02  Bruno Haible  <bruno@clisp.org>
38710
38711         * modules/settime (Include): Require timespec.h.
38712         * modules/nanosleep (Include): Likewise.
38713
38714 2007-01-01  Bruno Haible  <bruno@clisp.org>
38715
38716         * gnulib-tool (func_emit_copyright_notice): Bump year.
38717         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
38718
38719 2007-01-01  Bruno Haible  <bruno@clisp.org>
38720
38721         Improve support for OpenBSD.
38722         * build-aux/config.rpath (libname_spec): Export.
38723         (library_names_spec): New variable. Export.
38724         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
38725         library_names_spec from the config.rpath output. Locate shared library
38726         through the name pattern in library_names_spec.
38727
38728 2007-01-01  Eric Blake  <ebb9@byu.net>
38729
38730         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
38731
38732 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
38733
38734         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
38735         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
38736         assume the C locale, and avoid an "eval" that could cause trouble.
38737         Problem with SORT reported by Bob Proulx.
38738
38739         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
38740         Define.  Trivial patch from Henning Nielsen Lund, originally
38741         sent to bug-grep@gnu.org today.
38742
38743 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
38744
38745         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
38746         struct stat.  Problem reported by Henning Nielsen Lund.
38747         * lib/acl.c: Include acl.h first, to check interface.  Don't
38748         bother to include sys/types.h and sys/stat.h again.
38749
38750 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
38751
38752         Import the following change from libc; problem reported by
38753         Sven Verdoolaege.
38754
38755         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
38756
38757         [BZ #1373]
38758         * lib/argp.h: Remove __NTH for __argp_usage inline function.
38759
38760 2006-12-28  Jim Meyering  <jim@meyering.net>
38761
38762         * build-aux/announce-gen: Do not assume that the package
38763         builds any of tar.gz, tar.bz2, and .xdelta files.
38764         Suggestion from Simon Josefsson.
38765
38766 2006-12-28  Simon Josefsson  <simon@josefsson.org>
38767
38768         * modules/announce-gen: New file.
38769
38770 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
38771
38772         * lib/mbchar.h: Just include <wctype.h>; the wctype module
38773         handles its gotchas now.
38774         * lib/mbswidth.c: Likewise.
38775         * lib/wcwidth.h: Likewise.
38776         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
38777         and iswcntrl; the wctype module does this stuff now.
38778         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
38779         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38780         * modules/mbchar (Depends-on): Add wctype.
38781         * modules/mbswidth (Depends-on): Likewise.
38782         * modules/wcwidth (Depends-on): Likewise.
38783
38784 2006-12-27  Eric Blake  <ebb9@byu.net>
38785
38786         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
38787         module uses more than what <wctype.h> is required to provide.
38788
38789 2006-12-26  Eric Blake  <ebb9@byu.net>
38790
38791         * gnulib-tool (sed_extract_prog): Avoid space-tab.
38792
38793 2006-12-26  Eric Blake  <ebb9@byu.net>
38794
38795         * modules/absolute-header: New module.
38796         * modules/fcntl (Depends-on): Depend on it.
38797         * modules/inttypes (Depends-on): Likewise.
38798         * modules/stdint (Depends-on): Likewise.
38799         * modules/sys_stat (Depends-on): Likewise.
38800         * modules/wctype (Depends-on): Likewise.
38801         * MODULES.html.sh (Support for building libraries and
38802         executables): Document it.
38803
38804 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
38805
38806         * gnulib-tool (SED): Remove, undoing previous change.
38807         The problem was that it broke coreutils on Solaris, because
38808         "sed --posix" leaked into a makefile.
38809         (sed): New alias, if 'alias' and GNU sed.
38810
38811 2006-12-24  Jim Meyering  <jim@meyering.net>
38812
38813         Work around an fchownat bug in glibc-2.4:
38814         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
38815         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
38816         in spite of the -P option.
38817         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
38818         New macros.
38819         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
38820         * modules/openat (Files): Add lib/fchownat.c.
38821         * lib/openat.c (fchownat): Don't define here.  Move to...
38822         * lib/fchownat.c: ...this new file.
38823
38824 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
38825
38826         Fix bug reported by Bruno Haible in
38827         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
38828         where quotearg.c didn't compile on Mac OS X 10.2 because it
38829         lacks <wchar.h> and wint_t.
38830         * lib/wctype_.h (__wctype_wint_t): New type.
38831         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
38832         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
38833         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
38834         Arg is now of type __wctype_wint_t, not wint_t.
38835         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
38836         substitute HAVE_WINT_T.
38837         * modules/wctype (Files): Add m4/wint_t.m4.
38838         (wctype.h): Substitute HAVE_WINT_T.
38839
38840 2006-12-23  Bruno Haible  <bruno@clisp.org>
38841
38842         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
38843
38844 2006-12-23  Bruno Haible  <bruno@clisp.org>
38845
38846         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
38847         S_ISLNK.
38848         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
38849         mingw.
38850
38851 2006-12-22  Bruno Haible  <bruno@clisp.org>
38852
38853         * lib/copy-file.c: Include acl.h.
38854         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
38855         Close the file descriptors only after being done with copy_acl.
38856         * modules/copy-file (Depends-on): Add acl.
38857
38858 2006-12-22  Bruno Haible  <bruno@clisp.org>
38859
38860         * gnulib-tool (SED): New variable.
38861         Use $SED instead of sed everywhere.
38862
38863 2006-12-22  Bruno Haible  <bruno@clisp.org>
38864
38865         * modules/no-c++: New file.
38866         * m4/no-c++.m4: New file.
38867         * MODULES.html.sh (Support for building libraries and executables):
38868         Add no-c++.
38869
38870 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
38871
38872         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
38873         Include <limits.h>, and use its INT_MAX to rewrite the
38874         j loop so that it does not overflow 'int'.  Problem reported by
38875         Ralf Wildenhues in
38876         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
38877         Play it safe by shifting left by 1 rather than multiplying by 2,
38878         as GCC is less likely to optimize this away when the value
38879         is signed (when it assumes overflow leads to undefined behavior).
38880         Also, don't assume time_t uses two's complement.
38881
38882 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
38883
38884         * MODULES.html.sh: New module wctype.
38885         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
38886         * lib/fnmatch.c: Don't bother to include <wchar.h> before
38887         <wctype.h>, since the new wctype module should fix this.
38888         * lib/quotearg.c: Include <wctype.h> unconditionally, since
38889         the wctype module should arrange for it.
38890         * lib/regex_internal.h: Likewise.
38891         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
38892         since the wctype module should handle this now.
38893         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
38894         * modules/fnmatch (Depends-on): Add wctype.
38895         * modules/quotearg (Depends-on): Likewise.
38896         * modules/regex (Depends-on): Likewise.
38897
38898 2006-12-19  Bruno Haible  <bruno@clisp.org>
38899
38900         * lib/strdup.h [C++]: Wrap definitions in extern "C".
38901         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
38902
38903 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38904
38905         * modules/savewd (Depends-on): Fix dependency on fcntl.
38906
38907 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
38908
38909         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
38910         conforms to C99, rather than relying on the user's environment
38911         setting of STDINT_H.
38912
38913 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
38914         and Eric Blake  <ebb9@byu.net>
38915
38916         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
38917         This is more consistent with the other defines here.
38918         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
38919         Port to z/OS.  Problem reported by Paul Gilmartin.
38920         Change local vars to use gl_ prefix rather than ac_.
38921         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
38922         with other defines.
38923         * modules/double-slash-root: New module.
38924         * modules/dirname (Files): Remove m4/double-slash-root.m4.
38925         (Depends-on): Add double-slash-root.
38926         * MODULES.html.sh (File system functions): Mention new module.
38927
38928 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
38929
38930         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
38931         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
38932         This is for the benefit of gzip, which doesn't do i18n.
38933
38934 2006-12-12  Jim Meyering  <jim@meyering.net>
38935
38936         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
38937         Reported by Andreas Schwab <schwab@suse.de>.
38938
38939 2006-12-12  Bruno Haible  <bruno@clisp.org>
38940
38941         Merge these changes.
38942         2006-09-05  Bruno Haible  <bruno@clisp.org>
38943         * lib/iconvme.c (iconv_string): No need to save and restore errno when
38944         iconv_alloc succeeded.
38945         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
38946         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
38947         test for " && dest " at the end - dest is always != NULL there. Call
38948         iconv with 4xNULL arguments initially, to reset the state. Call iconv
38949         with 2xNULL arguments, also to flush the state storage. Handle the
38950         IRIX iconv behaviour. Realloc the final result, to throw away unused
38951         memory.
38952
38953 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
38954
38955         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
38956         and fchmodat unconditionally, since glibc 2.4 has them.
38957         Problem reported by Arkadiusz Miskiewicz.
38958
38959 2006-12-10  Bruno Haible  <bruno@clisp.org>
38960
38961         * gnulib-tool (func_import): Show the include files only for those
38962         modules that are copied and specified.
38963         Reported by Karl Berry.
38964
38965 2006-12-08  Jim Meyering  <jim@meyering.net>
38966
38967         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
38968         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
38969
38970         * build-aux/announce-gen: Add two new options, both optional:
38971         --bootstrap-tools=TOOL_LIST
38972               a comma-separated list of tools, e.g.,
38973               autoconf,automake,bison,gnulib
38974         --gnulib-snapshot-date=DATE
38975               if gnulib is in the bootstrap tool list,
38976               then report this as the snapshot date.
38977               If not specified, use the current date/time.
38978               If you specify a date here, be sure it's UTC.
38979
38980 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38981
38982         * tests/test-argp-2.sh: Fix test to match actual output.
38983         (func_compare): Fix sed script to be portable.
38984
38985 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
38986
38987         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
38988         workaround for this case.  It is not autoconfigured now; offhand
38989         it's hard to see how to autoconfigure it.
38990
38991 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
38992
38993         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
38994         a directory that is about to be chowned.  Such a directory's
38995         initial file permissions should permit the owner only and this
38996         should not be changed until after the chown, since the group and
38997         other bits would be incorrect if they granted permission before
38998         the chown.
38999
39000         Fix porting problem for iswctype reported by Georg Schwarz in:
39001         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
39002         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
39003         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
39004         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
39005         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39006
39007 2006-12-03  Jim Meyering  <jim@meyering.net>
39008
39009         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
39010         p->fts_statp may not yet be defined.
39011         (fts_read): Instead, set it in the caller, once p->fts_statp is
39012         sure to be defined, and corresponds to a top-level directory.
39013         This bug made du -x fail.  Here's the coreutils test case:
39014         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
39015         Reported by Mike Frysinger.
39016
39017 2006-12-01  Jim Meyering  <jim@meyering.net>
39018
39019         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
39020         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
39021         Reported by Simon Josefsson.
39022
39023 2006-11-30  Jim Meyering  <jim@meyering.net>
39024
39025         * m4/warning.m4: Use the all-permissive copyright notice
39026         recommended by RMS (rather than LGPL).
39027         * m4/vararrays.m4: Likewise.
39028         * m4/flexmember.m4: Likewise.
39029
39030 2006-11-29  Bruno Haible  <bruno@clisp.org>
39031
39032         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39033         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
39034         using +=.
39035         Reported by Simon Josefsson <simon@josefsson.org>.
39036
39037 2006-11-28  James Youngman <jay@gnu.org>
39038
39039         * README: Advise users that they might find the bug-gnulib@gnu.org
39040         and autotools-announce@gnu.org mailing lists useful.
39041
39042 2006-11-28  Bruno Haible  <bruno@clisp.org>
39043
39044         * m4/ptrdiff_max.m4: Remove file.
39045
39046 2006-11-21  Bruno Haible  <bruno@clisp.org>
39047
39048         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
39049         _AC_COMPUTE_INT.
39050         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39051         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
39052         _AC_COMPUTE_INT.
39053         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39054         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
39055         _AC_COMPUTE_INT.
39056         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39057
39058 2006-11-28  Jim Meyering  <jim@meyering.net>
39059
39060         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
39061         warning from "gcc -Wshadow" about shadowing the builtin.
39062
39063 2006-11-27  Bruno Haible  <bruno@clisp.org>
39064
39065         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
39066         _AC_COMPUTE_INT.
39067         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39068
39069 2006-11-27  Bruno Haible  <bruno@clisp.org>
39070             Paul Eggert  <eggert@cs.ucla.edu>
39071
39072         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
39073
39074 2006-11-26  Bruno Haible  <bruno@clisp.org>
39075
39076         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39077         noinst_LTLIBRARIES.
39078
39079 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
39080             Bruno Haible  <bruno@clisp.org>
39081
39082         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
39083         if compiling with "gcc -ansi".
39084
39085 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
39086
39087         Fix some incompatibilities with gcc -ansi -pedantic.
39088         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
39089         if compiling pedantically with GCC, unless it's C99 or later.
39090         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
39091         it mishandles gcc -ansi -pedantic as well.
39092         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
39093         if gcc -pedantic.
39094         * lib/regexec.c (check_node_accept_bytes): Don't use auto
39095         initializers for struct if -pedantic, unless it's C99 or later.
39096
39097 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
39098
39099         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
39100         Don't close an fd more than once. Identical atimes indicate
39101         success, not failure.
39102
39103 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
39104
39105         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
39106
39107 2006-11-23  Jim Meyering  <jim@meyering.net>
39108
39109         * build-aux/announce-gen: New file.  From coreutils.
39110
39111 2006-11-22  Jim Meyering  <jim@meyering.net>
39112
39113         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
39114         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
39115         (fts_read): Use a temporary to narrow the overused st_size member
39116         before using it in a switch statement.  Reported by Matthew Woehlke.
39117
39118         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
39119         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39120
39121 2006-11-20  Bruno Haible  <bruno@clisp.org>
39122
39123         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
39124         changequote instead of pairs of brackets.
39125         Reported by Andreas Schwab <schwab@suse.de>.
39126
39127 2006-11-21  Jim Meyering  <jim@meyering.net>
39128
39129         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
39130         so as to remain compatible with older compilers.
39131         Patch from Michael Deutschmann.
39132
39133 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
39134
39135         * MODULES.html.sh (File system functions): Add openat.
39136
39137         * lib/openat.h (rpl_fstatat): New macro, if
39138         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
39139         (fstatat): Define to rpl_fstatat under the same conditions,
39140         unless COMPILING_FSTATAT.
39141         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
39142         seems to have the bug.
39143         * lib/fstatat.c: New file.
39144         * modules/openat (Files): Add it.
39145
39146 2006-11-20  Bruno Haible  <bruno@clisp.org>
39147
39148         * Makefile: New file.
39149
39150 2006-11-20  Jim Meyering  <jim@meyering.net>
39151
39152         The beginnings of syntax-related checks for gnulib.
39153         * lib/Makefile: New file.
39154         * lib/t-idcache: New script.  Ensure that the two halves of
39155         idcache.c stay in sync.
39156
39157         * lib/idcache.c: Adjust comments in user- and group- portions to
39158         be more accurate, and to be consistent with one another.
39159
39160 2006-11-20  Jim Meyering  <jim@meyering.net>
39161
39162         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
39163         continue using the flexible array member (thus, this module performs
39164         half as many malloc calls), with the addition that...
39165         (getgroup, getuser): Consistently record a non-match via an empty
39166         "name" string, and map an empty string match to a NULL return value.
39167         * modules/idcache (Depends-on): Re-add flexmember.
39168
39169         * lib/idcache.c (getuser): Remove all uses of the register keyword.
39170         (getuidbyname, getgroup, getgidbyname): Likewise.
39171
39172         Use cleaner syntax: NULL rather than 0.
39173         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
39174
39175 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
39176
39177         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
39178         It mishandled the case where the group was missing.
39179         Problem reported by Greg Schafer.
39180         * modules/idcache: Likewise.
39181
39182 2006-11-18  Jim Meyering  <jim@meyering.net>
39183
39184         * check-module (%exempt_header): Add exception for some
39185         conditionally-included headers.
39186
39187         * modules/i-ring (Depends-on): Add verify.
39188         (License): Change to LGPL.
39189
39190 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39191
39192         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
39193         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
39194         and inttostr.h.  Use snprintf rather than uinttostr, so that
39195         LGPLed code doesn't depend on GPLed.
39196
39197 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
39198
39199         * modules/inline (License): Change from GPL to LGPL.
39200
39201 2006-11-17  Jim Meyering  <jim@meyering.net>
39202
39203         * modules/d-type (License): Switch to LGPL.
39204
39205 2006-11-15  Bruno Haible  <bruno@clisp.org>
39206
39207         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
39208
39209 2006-11-15  Eric Blake  <ebb9@byu.net>
39210
39211         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
39212         the module dependency.
39213
39214 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39215             Bruno Haible  <bruno@clisp.org>
39216
39217         * gnulib-tool (func_create_testdir): Add license consistency check.
39218
39219 2006-11-15  Eric Blake  <ebb9@byu.net>
39220
39221         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
39222         random "(cached)" in configure output.
39223
39224 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39225
39226         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
39227         test for conforming inttypes.h is both announced and cached.
39228
39229         * MODULES.html.sh (seen_modules, seen_files): New variables.
39230         (func_module): Rewrite to use a few less gnulib-tool and sed
39231         invocations.  Avoid a couple of quadratic algorithms for ...
39232         (missed_modules, missed_files): ... these, with ...
39233         (func_append, func_tmpdir): ... these new functions, from
39234         gnulib-tool.  Analogously, install traps for cleanup.
39235
39236         * tests/test-gc.c (main): Remove unused variables.
39237         * tests/test-read-file.c: Include stdlib.h, for 'free'.
39238
39239 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
39240
39241         * modules/inttostr (License): Change to LGPL.
39242
39243 2006-11-14  Eric Blake  <ebb9@byu.net>
39244
39245         * modules/tempname (License): Change to LGPL.
39246
39247 2006-11-14  Eric Blake  <ebb9@byu.net>
39248
39249         * doc/functions.texi (Function Portability): *printf functions on
39250         Cygwin now understand all POSIX size specifiers.
39251
39252 2006-11-14  Bruno Haible  <bruno@clisp.org>
39253
39254         * modules/c-ctype (License): Change to LGPL.
39255
39256 2006-11-12  Bruno Haible  <bruno@clisp.org>
39257
39258         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
39259         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
39260         for GNOME libraries, for which the include files are installed in
39261         subdirectories of $prefix/include.
39262
39263 2006-11-12  Bruno Haible  <bruno@clisp.org>
39264
39265         * m4/lib-link.m4: Require at least autoconf-2.54.
39266         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
39267         name to underscores for the --with option.
39268
39269 2006-11-13  Bruno Haible  <bruno@clisp.org>
39270
39271         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
39272         the tests directory.
39273         Reported by Ralf Wildenhues.
39274
39275 2006-11-13  Bruno Haible  <bruno@clisp.org>
39276
39277         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
39278         (func_emit_initmacro_end): Undo the override here.
39279         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
39280         Works around the famous automake error in coreutils.
39281
39282 2006-11-13  Eric Blake  <ebb9@byu.net>
39283
39284         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
39285         element, not its node.
39286
39287 2006-11-12  Bruno Haible  <bruno@clisp.org>
39288
39289         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
39290         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
39291
39292 2006-11-12  Bruno Haible  <bruno@clisp.org>
39293
39294         * gnulib-tool: New option --local-symlink.
39295         (func_usage): Document it.
39296         (lsymbolic): New variable.
39297         (func_import, func_create_testdir): If --symlink was not specified,
39298         test whether --local-symlink was specified and the file comes from
39299         the local_gnulib_dir.
39300
39301 2006-11-12  Bruno Haible  <bruno@clisp.org>
39302
39303         * gnulib-tool (func_ln): New function.
39304         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
39305
39306 2006-11-12  Bruno Haible  <bruno@clisp.org>
39307
39308         Finish support for source files in subdirectories.
39309         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
39310         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
39311         AUTOMAKE_OPTIONS.
39312         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
39313
39314 2006-11-12  Bruno Haible  <bruno@clisp.org>
39315
39316         * gnulib-tool (func_get_automake_snippet): Synthesize also an
39317         EXTRA_lib_SOURCES augmentation.
39318         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
39319
39320 2006-11-12  Jim Meyering  <jim@meyering.net>
39321
39322         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
39323         file descriptors.  This also averts a failure on systems with
39324         native openat support when a traversed directory lacks "x" access.
39325         * lib/fts_.h: Include "i-ring.h"
39326         (struct FTS) [fts_fd_ring]: New member.
39327         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
39328         (FCHDIR): Add parentheses.
39329         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
39330         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
39331         When descending, rather than simply closing the previous
39332         fts_cwd_fd value, push that file descriptor onto the ring.
39333         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
39334         (fts_open): Initialize the new fd_ring member.
39335         (fts_close): Clear the ring.
39336         (fts_safe_changedir): When possible, use our new fd_ring to skip
39337         the diropen and fstat and dev/ino comparison that would normally
39338         accompany a virtual `chdir ("..")'.
39339
39340         * modules/fts (Depends-on): Add i-ring.
39341         * modules/i-ring: New module.
39342         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
39343         * m4/i-ring.m4: New file.
39344
39345 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39346
39347         * gnulib-tool (func_create_testdir): Fix replacement of
39348         `build-aux' in configure.ac.  Run autotools in gltests
39349         subdirectory.
39350         (func_create_testdir, func_create_megatestdir, test): There is
39351         no need for '--force' in most autotool invocations in a new
39352         tree.  Actually fail the whole test if any of the tools, or the
39353         configure or make stages fail.
39354
39355         Sync from Automake.
39356         * build-aux/gnupload: Revert last change.  Add pointer to upload
39357         instructions of the GNU Maintenance Instructions.
39358         Suggestion by Karl Berry.
39359
39360 2006-11-10  Jim Meyering  <jim@meyering.net>
39361
39362         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
39363
39364 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39365
39366         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
39367         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
39368         (bind_textdomain_codeset) [! ENABLE_NLS]:
39369         Evaluate all the arguments.  That way, callers get compatible behavior
39370         if the arguments have side effects.  Also, it avoids some GCC
39371         diagnostics in some cases; Joel E. Denny reported problems when Bison
39372         was configured with --enable-gcc-warnigs.
39373
39374 2006-11-10  Jim Meyering  <jim@meyering.net>
39375
39376         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
39377         relevant options in CFLAGS (like -O, -fno-inline) are taken into
39378         account.
39379
39380 2006-11-10  Jim Meyering  <jim@meyering.net>
39381
39382         * modules/inline: New file/module.
39383         * modules/xalloc (Files): Remove m4/inline.m4.
39384         (Depends-on): Add inline, instead.
39385         * modules/oset: Likewise.
39386         * modules/list: Likewise.
39387
39388 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39389
39390         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
39391         Problem reported by Matthew Woehlke.
39392
39393 2006-11-09  Bruno Haible  <bruno@clisp.org>
39394
39395         * lib/tempname.c (gen_tempname): Remove variant that invokes
39396         __gen_tempname.
39397         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
39398         __gen_tempname.
39399
39400 2006-11-08  Bruno Haible  <bruno@clisp.org>
39401
39402         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
39403         to 'yes' instead of 'cross-compiling'.
39404
39405 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
39406
39407         * lib/quotearg.h (quotearg_free): New decl.
39408         * lib/quotearg.c (quotearg_free): New function.
39409         (slot0, nslots, slotvec0, slotvec):
39410         Now file-scope so that quotearg_free can get at them.
39411
39412 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39413
39414         Sync from Automake.
39415         * build-aux/gnupload: Add missing 'gnu' to example URL.
39416         Report by Karl Berry.
39417
39418 2006-11-08  Bruno Haible  <bruno@clisp.org>
39419
39420         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
39421         Suggested by Paul Eggert.
39422
39423 2006-11-08  Jim Meyering  <jim@meyering.net>
39424
39425         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
39426         It's already included if !_LIBC.
39427         (fts_safe_changedir): Add a comment.
39428
39429 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
39430
39431         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
39432         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
39433         Matthew Woehlke.
39434
39435         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
39436         definitions up, to avoid colliding with change below.
39437         (static_inline) [HAVE_INLINE]: New macro.
39438         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
39439         Provide extern decls when !HAVE_INLINE.  Do not define unless
39440         static_inline is defined, either by us or by xmalloc.c.  Use
39441         static_inline rather than static inline.
39442         (XCALLOC): Optimize sizeof(T) = 1 case.
39443         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
39444
39445 2006-11-07  Bruno Haible  <bruno@clisp.org>
39446
39447         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
39448         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
39449         AC_C_INLINE.
39450         * modules/xalloc (Files): Add m4/inline.m4.
39451
39452 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39453
39454         * README: Fix typo.
39455         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
39456         (Miscellanous Notes): ...from this.
39457
39458 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
39459
39460         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
39461         Mention that offsetof should be used instead of sizeof.
39462         From Bruno Haible.
39463
39464 2006-11-07  Bruno Haible  <bruno@clisp.org>
39465
39466         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
39467
39468 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
39469
39470         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
39471         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
39472         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
39473         (gl_tree_add_before, gl_tree_add_after):
39474         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
39475         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
39476         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
39477         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
39478         (gl_linked_add_after, gl_linked_add_at): Likewise.
39479         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
39480         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
39481         (gl_tree_add_before, gl_tree_add_after): Likewise.
39482         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
39483         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
39484         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
39485
39486 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39487
39488         * lib/gl_oset.h: Use C comment style, not C++ comment style.
39489
39490 2006-11-06  Bruno Haible  <bruno@clisp.org>
39491
39492         * m4/inline.m4: New file.
39493         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
39494         * modules/list (Files): Add m4/inline.m4.
39495         * modules/oset (Files): Likewise.
39496
39497 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
39498
39499         * lib/idcache.c: Include <stddef.h>, for offsetof.
39500         (struct userid.name): Change from char * to a flexible array member.
39501         All uses changed.
39502         * modules/idcache (Depends-on): Add flexmember.
39503
39504         * MODULES.html.sh (Core language properties): New module flexmember.
39505         * modules/flexmember, m4/flexmember.m4: New files.
39506
39507         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
39508         inline functions that are identical with the old xnmalloc_inline,
39509         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
39510         that we can avoid some unnecessary integer multiplications and
39511         divisions in the common case where the element size is known at
39512         compile time.
39513         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
39514         needed.
39515         (xnboundedmalloc): Remove.
39516         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
39517         arguments, for consistency with rest of this header.
39518         (xcharalloc): Rewrite using XNMALLOC.
39519         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
39520         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
39521         versions have been moved to lib/xalloc.h and renamed to be the
39522         non-*_inline versions.
39523         (xmalloc, xrealloc): Implement without reference to the xnmalloc
39524         and xnrealloc functions, since those functions are now inline and
39525         now call us.
39526         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
39527         renaming described above.
39528         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
39529         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
39530         captures the dependency in AC_C_INLINE.
39531
39532         New module canonicalize-lgpl, proposed by Charles Wilson in
39533         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
39534         with a few small changes afterwards.
39535         * MODULES.html.sh (File system functions): New module
39536         canonicalize-lgpl.
39537         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
39538         and canonicalize_file_name.
39539         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
39540         * modules/canonicalize-lgpl: New files.
39541
39542 2006-11-05  Bruno Haible  <bruno@clisp.org>
39543
39544         * gnulib-tool (func_import, func_create_testdir): Create directories
39545         also for files in subdirectories of lib/.
39546
39547 2006-11-05  Bruno Haible  <bruno@clisp.org>
39548
39549         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
39550         ANSI C compliant.
39551
39552 2006-11-03  Bruno Haible  <bruno@clisp.org>
39553
39554         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
39555         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
39556         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
39557         (xnboundedmalloc): New inline function.
39558         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
39559         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
39560         xmalloc.
39561         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
39562         xmalloc.
39563         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
39564         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
39565         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
39566         xmalloc.
39567         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
39568         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
39569         xmalloc.
39570         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
39571         gl_tree_add_after): Use XMALLOC instead of xmalloc.
39572         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
39573         xmalloc.
39574         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
39575         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
39576         gl_tree_add_after): Use XMALLOC instead of xmalloc.
39577         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
39578         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
39579         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
39580         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
39581
39582 2006-11-03  Bruno Haible  <bruno@clisp.org>
39583
39584         * lib/c-ctype.h [C++]: Define functions without name mangling.
39585         * lib/fwriteerror.h [C++]: Likewise.
39586         * lib/gcd.h [C++]: Likewise.
39587         * lib/linebreak.h [C++]: Likewise.
39588
39589 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
39590
39591         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
39592         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
39593         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
39594         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
39595         Check for functions and headers just once.
39596         Check for declaration of canonicalize_file_name.
39597         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
39598
39599 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
39600
39601         * gnulib-tool (func_import): Fix typo in actioncmd.
39602
39603 2006-11-02  Bruno Haible  <bruno@clisp.org>
39604
39605         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
39606         newline sequence in the Makefile.am snippet as a space, like "make"
39607         does.
39608         Reported by Roger Persson <perrog@gmail.com>.
39609
39610 2006-11-01  Bruno Haible  <bruno@clisp.org>
39611
39612         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
39613         already declared in <string.h>.
39614         * lib/strcase.h (strncasecmp): Don't declare it if yes.
39615
39616 2006-11-01  Bruno Haible  <bruno@clisp.org>
39617
39618         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
39619         * lib/strcase.h: Include <string.h>.
39620         (strcasecmp): Define to rpl_strcasecmp here.
39621
39622 2006-11-01  Bruno Haible  <bruno@clisp.org>
39623
39624         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
39625
39626 2006-11-01  Eric Blake  <ebb9@byu.net>
39627
39628         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
39629
39630         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
39631
39632 2006-10-29  Bruno Haible  <bruno@clisp.org>
39633
39634         Make it compile in C++ mode.
39635         * lib/full-write.c (full_rw): Add a cast.
39636
39637 2006-11-01  Bruno Haible  <bruno@clisp.org>
39638
39639         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
39640         be POSIX compliant.
39641         Reported by Roger Persson <perrog@gmail.com>.
39642
39643 2006-11-01  Eric Blake  <ebb9@byu.net>
39644
39645         * lib/getopt_.h: Fix comments.
39646
39647 2006-10-31  Eric Blake  <ebb9@byu.net>
39648
39649         * modules/tmpdir (Depends-on): Add sys_stat.
39650         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
39651         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
39652         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
39653         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
39654         tempname.
39655
39656 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
39657
39658         Avoid some C++ diagnostics reported by Bruno Haible.
39659         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
39660         xmalloc.
39661         (quotearg_alloc): Use xcharalloc rather than xmalloc.
39662         (struct slotvec): Move to top level.
39663         (quotearg_n_options): Rewrite to avoid xmalloc.
39664         * lib/xalloc.h (xcharalloc): New function.
39665         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
39666         [defined __cplusplus]: Add function template that provides result
39667         type propagation.  This part of the change is from Bruno Haible.
39668
39669 2006-10-29  Bruno Haible  <bruno@clisp.org>
39670
39671         Make it compile in C++ mode.
39672         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
39673         * lib/strnlen1.c (strnlen1): Cast memchr result.
39674         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
39675         * lib/clean-temp.c (string_equals, string_hash): Add casts.
39676         (create_temp_dir): Rename local variable 'template'.
39677         (compile_csharp_using_sscli): Add cast.
39678         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
39679         * lib/findprog.c (find_in_path): Likewise.
39680         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
39681         * lib/wait-process.c (register_slave_subprocess): Likewise.
39682
39683 2006-10-22  Bruno Haible  <bruno@clisp.org>
39684
39685         * modules/tsearch: New file.
39686         * lib/tsearch.h: New file.
39687         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
39688         * m4/tsearch.m4: New file.
39689         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
39690
39691 2006-10-29  Eric Blake  <ebb9@byu.net>
39692
39693         * lib/arcfour.c: Assume config.h.
39694         * lib/arctwo.c: Likewise.
39695         * lib/base64.c: Likewise.
39696         * lib/check-version.c: Likewise.
39697         * lib/crc.c: Likewise.
39698         * lib/des.c: Likewise.
39699         * lib/gc-gnulib.c: Likewise.
39700         * lib/gc-libgcrypt.c: Likewise.
39701         * lib/gc-pbkdf2-sha1.c: Likewise.
39702         * lib/getaddrinfo.c: Likewise.
39703         * lib/getdelim.c: Likewise.
39704         * lib/getline.c: Likewise.
39705         * lib/hmac-md5.c: Likewise.
39706         * lib/hmac-sha1.c: Likewise.
39707         * lib/iconvme.c: Likewise.
39708         * lib/md2.c: Likewise.
39709         * lib/md4.c: Likewise.
39710         * lib/memxor.c: Likewise.
39711         * lib/read-file.c: Likewise.
39712         * lib/readline.c: Likewise.
39713         * lib/rijndael-alg-fst.c: Likewise.
39714         * lib/rijndael-api-fst.c: Likewise.
39715         * lib/xgetdomainname.c: Likewise.
39716
39717 2006-10-28  Eric Blake  <ebb9@byu.net>
39718
39719         * lib/xstrndup.c: Assume config.h.
39720
39721 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
39722
39723         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
39724         stat-macros.h is now for our own macros, whereas stat_h is for
39725         macros in the <sys/stat.h> name space.
39726         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
39727         (STAT_MACROS_H): Remove.
39728         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
39729         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
39730         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
39731         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
39732         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
39733         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
39734         Move these macros to ...
39735         * lib/stat_.h: here.  Don't include stat-macros.h.
39736         * lib/canonicalize.c: Don't include stat-macros.h.
39737         * lib/chown.c: Likewise.
39738         * lib/euidaccess.c: Likewise.
39739         * lib/file-type.c: Likewise.
39740         * lib/filemode.c: Likewise.
39741         * lib/glob.c: Likewise.
39742         * lib/isapipe.c: Likewise.
39743         * lib/lchown.c: Likewise.
39744         * lib/lstat.c: Likewise.
39745         * lib/mkdir-p.c: Likewise.
39746         * lib/rmdir.c: Likewise.
39747         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
39748         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
39749         unless mkdir isn't declared, to speed up 'configure'.
39750         Always create sys/stat.h, since it's unlikely any real sys/stat.h
39751         would define all the S_* symbols.
39752         * modules/canonicalize (Depends-on):
39753         Depend on sys_stat, not stat-macros.
39754         * modules/chown: Likewise.
39755         * modules/euidaccess: Likewise.
39756         * modules/filemode: Likewise.
39757         * modules/file-type: Likewise.
39758         * modules/glob: Likewise.
39759         * modules/isapipe: Likewise.
39760         * modules/lchown: Likewise.
39761         * modules/lstat: Likewise.
39762         * modules/mkancesdirs: Likewise.
39763         * modules/rmdir: Likewise.
39764         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
39765         * modules/modechange: Likewise.
39766         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
39767         (configure.ac): Remove gl_STAT_MACROS.
39768         * modules/sys_stat (Depends-on): Remove stat-macros.
39769
39770 2006-10-27  Bruno Haible  <bruno@clisp.org>
39771
39772         * m4/signed.m4: Remove file.
39773         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
39774         invocation.
39775         * modules/vasnprintf (Files): Remove m4/signed.m4.
39776
39777 2006-10-27  Bruno Haible  <bruno@clisp.org>
39778
39779         Update to GNU gettext 0.16.
39780         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
39781         m4/inttypes-h.m4, m4/signed.m4.
39782         * m4/gettext.m4: Update to GNU gettext 0.16.
39783         * m4/intl.m4: New file, from GNU gettext.
39784         * m4/intldir.m4: New file, from GNU gettext.
39785         * config/srclist.txt: Update
39786
39787 2006-10-27  Eric Blake  <ebb9@byu.net>
39788
39789         * MODULES.html.sh: Document tempname.
39790         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
39791         dependencies.
39792         (Files): Move lib/tempname.c...
39793         * modules/tempname: ...to this new module.
39794         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
39795         (gl_PREREQ_TEMPNAME): Move...
39796         * m4/tempname.m4: ...to this new file.
39797         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
39798         * modules/sys_stat (Depends-on): Add stat-macros.
39799         * lib/stat_.h (includes): Pick up stat macros.
39800         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
39801         if stat macros are broken.
39802         * lib/tempname.c (includes): No need to include "stat-macros.h".
39803         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
39804         (direxists, __path_search) [!_LIBC]: Don't compile these in
39805         gnulib; the tmpdir module covers that.
39806         * lib/tempname.h: New file.
39807
39808 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
39809
39810         * COPYING: Explain how gnulib-tool converts licence headers.
39811         Almost all wording by Eric Blake.
39812
39813 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
39814
39815         * lib/mbchar.h (is_basic_table): Make read-only.
39816         * lib/mbchar.c (is_basic_table): Likewise.
39817         Reported by John Darrington.
39818
39819 2006-10-25  Bruno Haible  <bruno@clisp.org>
39820
39821         * lib/progname.h (set_program_name): Undefine before defining.
39822
39823 2006-10-25  Bruno Haible  <bruno@clisp.org>
39824
39825         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
39826         false for non-gcc C++ compilers.
39827         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39828
39829 2006-10-24  Bruno Haible  <bruno@clisp.org>
39830
39831         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
39832         iconv implementations like Irix iconv.
39833
39834 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39835
39836         * modules/vararrays: New file.
39837         * m4/vararrays.m4: New file, taken from diffutils.
39838         * MODULES.html.sh: New module vararrays.
39839
39840 2006-10-24  Karl Berry  <karl@gnu.org>
39841
39842         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
39843         Don't call GNU Unix.
39844
39845 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39846
39847         * users.txt: Add Libtool.
39848
39849         Sync from Libtool:
39850
39851         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39852
39853         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
39854         to gnulib's policy of including config.h unconditionally.
39855
39856 2006-10-24  Bruno Haible  <bruno@clisp.org>
39857
39858         * modules/wcwidth (Files): Add m4/wint_t.m4.
39859         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
39860         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
39861
39862 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39863
39864         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
39865         to pacify GCC with some -W flags enabled.  Problem reported by
39866         Bruno Haible.
39867
39868 2006-10-24  Jim Meyering  <jim@meyering.net>
39869
39870         * MODULES.html.sh: Remove uinttostr.  It's not a module.
39871         Reported by Karl Berry.
39872
39873 2006-10-23  Bruno Haible  <bruno@clisp.org>
39874
39875         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
39876
39877 2006-10-24  Bruno Haible  <bruno@clisp.org>
39878
39879         * lib/gl_list.h: Use C comment style, not C++ comment style.
39880
39881 2006-10-23  Eric Blake  <ebb9@byu.net>
39882
39883         * lib/getaddrinfo.c (includes): Add missing include.
39884
39885 2006-10-23  Bruno Haible  <bruno@clisp.org>
39886             Paul Eggert  <eggert@cs.ucla.edu>
39887
39888         Ability to rename obstack_free.
39889         * lib/obstack.h (__obstack_free): New macro. Declare instead of
39890         obstack_free.
39891         (obstack_free): Invoke the __obstack_free macro.
39892         * lib/obstack.c (obstack_free): Use __obstack_free macro.
39893
39894 2006-10-23  Bruno Haible  <bruno@clisp.org>
39895             Paul Eggert  <eggert@cs.ucla.edu>
39896
39897         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
39898         __argc, __argv from the declaration. (They are defined as macros on
39899         mingw.)
39900
39901 2006-10-22  Bruno Haible  <bruno@clisp.org>
39902
39903         * doc/gnulib-intro.texi: New file.
39904         * doc/gnulib.texi: Include it.
39905
39906 2006-10-21  Bruno Haible  <bruno@clisp.org>
39907
39908         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
39909         "Introduction", "Miscellanous Notes", "Particular Modules".
39910
39911 2006-10-21  Bruno Haible  <bruno@clisp.org>
39912
39913         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39914         Change mostlyclean-local rule to avoid sh syntax error from bash
39915         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
39916
39917 2006-10-23  Jim Meyering  <jim@meyering.net>
39918
39919         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
39920         in place of snprintf.
39921
39922         * modules/inttostr (Files): Add lib/uinttostr.c.
39923         * lib/uinttostr.c (inttostr): New file/function.
39924         * lib/inttostr.h (uinttostr): Declare.
39925         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
39926         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
39927         Add uinttostr.
39928         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
39929
39930 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
39931
39932         * lib/canonicalize.c (ELOOP): Define if not already defined.
39933         Problem reported by Bruno Haible in
39934         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
39935
39936 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
39937
39938         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
39939         Problem reported by Perry Smith and Ville Laurikari.
39940
39941         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
39942         uses.
39943
39944 2006-10-19  Bruno Haible  <bruno@clisp.org>
39945
39946         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
39947         for mingw.
39948
39949 2006-10-19  Bruno Haible  <bruno@clisp.org>
39950
39951         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
39952         Needed for mingw.
39953
39954 2006-10-19  Bruno Haible  <bruno@clisp.org>
39955
39956         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
39957
39958 2006-10-19  Bruno Haible  <bruno@clisp.org>
39959
39960         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
39961         it.
39962
39963 2006-10-19  Bruno Haible  <bruno@clisp.org>
39964
39965         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
39966         invocation.
39967
39968 2006-10-19  Bruno Haible  <bruno@clisp.org>
39969
39970         * gnulib-tool (func_create_testdir): Don't include ftruncate and
39971         mountlist by default.
39972
39973 2006-10-16  Bruno Haible  <bruno@clisp.org>
39974
39975         * lib/c-strstr.c: Include c-strstr.h.
39976
39977 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
39978
39979         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
39980         in a slash.
39981
39982 2006-10-18  Bruno Haible  <bruno@clisp.org>
39983
39984         * lib/lock.h [C++]: Wrap definitions in extern "C".
39985
39986 2006-10-18  Bruno Haible  <bruno@clisp.org>
39987
39988         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
39989         gl_LIBOBJS list.
39990
39991 2006-10-18  Bruno Haible  <bruno@clisp.org>
39992
39993         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
39994
39995 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
39996
39997         * lib/xstrtol.h: Include gettext.h.
39998         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
39999         Problem reported by Eric Blake.
40000         * modules/xstrtol (Depends-on): Add gettext-h.
40001
40002 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
40003
40004         * lib/strftime.c (advance): New macro.
40005         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
40006         incomplete type, so you can't add 0 to it.  Problem and patch
40007         reported by Eelco Dolstra for dietlibc.
40008
40009 2006-10-18  Jim Meyering  <jim@meyering.net>
40010
40011         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
40012         type for a local, and rename it: s/up/user_proc/.
40013
40014 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
40015
40016         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
40017         READ_UTMP_USER_PROCESS.
40018         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
40019
40020 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
40021
40022         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
40023         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
40024
40025 2006-10-17  Eric Blake  <ebb9@byu.net>
40026
40027         * lib/sigprocmask.c (sigprocmask): Fix typo.
40028
40029         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
40030
40031         * modules/clean-temp (Makefile.am): Don't add to make output...
40032         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
40033         config.h.
40034
40035 2006-10-17  Bruno Haible  <bruno@clisp.org>
40036
40037         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
40038         differently if DEFAULT_TEXT_DOMAIN is set.
40039
40040 2006-10-16  Bruno Haible  <bruno@clisp.org>
40041
40042         * lib/clean-temp.c: Include fwriteerror.h.
40043
40044 2006-10-16  Bruno Haible  <bruno@clisp.org>
40045
40046         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
40047
40048 2006-10-16  Bruno Haible  <bruno@clisp.org>
40049
40050         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
40051         * lib/sigprocmask.h: Include <sys/types.h>.
40052         (sigset_t): Use the system's definition if present.
40053
40054 2006-10-17  Eric Blake  <ebb9@byu.net>
40055
40056         * lib/xvasprintf.c (includes): Assume config.h.
40057         * lib/xasprintf.c (includes): Likewise.
40058
40059 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40060
40061         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
40062         at least as wide as intmax_t.
40063
40064 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
40065
40066         (Imported from Automake.)
40067         * build-aux/gnupload: Update to version 1.1 of directive file.
40068
40069 2006-10-16  Eric Blake  <ebb9@byu.net>
40070
40071         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
40072         match Automake 1.10a.
40073
40074 2006-10-14  Bruno Haible  <bruno@clisp.org>
40075
40076         * modules/sigprocmask: New file.
40077         * lib/sigprocmask.h: New file.
40078         * lib/sigprocmask.c: New file.
40079         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
40080         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
40081         request sigprocmask.o.
40082         (gl_PREREQ_SIGPROCMASK): New macro.
40083         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
40084         (Depends-on): Add sigprocmask.
40085         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
40086         gt_SIGNALBLOCKING. Test for 'raise' only once.
40087         * lib/fatal-signal.c: Include sigprocmask.h.
40088         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
40089         unblock_fatal_signals): Define always.
40090         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40091         sigprocmask.
40092
40093 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
40094
40095         Sync from Automake.
40096         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
40097         which incorrectly sets the mode of an existing destination
40098         directory.  In some cases the unpatched install-sh could do the
40099         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
40100         system.  We hope this is rare in practice, but it's clearly worth
40101         fixing.  Problem reported by Alex Unleashed in
40102         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
40103         Also, don't bother to check for -m bugs unless we're using -m;
40104         suggested by Stepan Kasal.
40105
40106 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40107
40108         Sync from Automake.
40109         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
40110         `-c' flag, so they appear at the same position as in %FASTDEP%
40111         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
40112         which ignores unknown options only after the first non-option.
40113         Bug report against M4 by Nelson H. F. Beebe.
40114
40115 2006-10-13  Jim Meyering  <jim@meyering.net>
40116
40117         Fix a bug in yesterday's change.
40118         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
40119         p->fts_statp->st_dev would be used uninitialized.
40120         Ensures that we always call fts_stat on the very first entry.
40121         Miklos Szeredi reported that find -xdev stopped working.
40122
40123 2006-10-12  Bruno Haible  <bruno@clisp.org>
40124
40125         * gnulib-tool (func_get_automake_snippet): Append an automatically
40126         computed EXTRA_DIST augmentation.
40127         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
40128         * modules/alloca-opt (Makefile.am): Likewise.
40129         * modules/allocsa (Makefile.am): Likewise.
40130         * modules/arcfour (Makefile.am): Likewise.
40131         * modules/arctwo (Makefile.am): Likewise.
40132         * modules/argmatch (Makefile.am): Likewise.
40133         * modules/argz (Makefile.am): Likewise.
40134         * modules/atexit (Makefile.am): Likewise.
40135         * modules/backupfile (Makefile.am): Likewise.
40136         * modules/byteswap (Makefile.am): Likewise.
40137         * modules/c-strtod (Makefile.am): Likewise.
40138         * modules/c-strtold (Makefile.am): Likewise.
40139         * modules/calloc (Makefile.am): Likewise.
40140         * modules/canon-host (Makefile.am): Likewise.
40141         * modules/canonicalize (Makefile.am): Likewise.
40142         * modules/chdir-long (Makefile.am): Likewise.
40143         * modules/chdir-safer (Makefile.am): Likewise.
40144         * modules/check-version (Makefile.am): Likewise.
40145         * modules/chown (Makefile.am): Likewise.
40146         * modules/cloexec (Makefile.am): Likewise.
40147         * modules/close-stream (Makefile.am): Likewise.
40148         * modules/closeout (Makefile.am): Likewise.
40149         * modules/crc (Makefile.am): Likewise.
40150         * modules/csharpexec (Makefile.am): Likewise.
40151         * modules/cycle-check (Makefile.am): Likewise.
40152         * modules/des (Makefile.am): Likewise.
40153         * modules/dev-ino (Makefile.am): Likewise.
40154         * modules/dirfd (Makefile.am): Likewise.
40155         * modules/dirname (Makefile.am): Likewise.
40156         * modules/dup2 (Makefile.am): Likewise.
40157         * modules/eealloc (Makefile.am): Likewise.
40158         * modules/error (Makefile.am): Likewise.
40159         * modules/euidaccess (Makefile.am): Likewise.
40160         * modules/exclude (Makefile.am): Likewise.
40161         * modules/exitfail (Makefile.am): Likewise.
40162         * modules/fcntl-safer (Makefile.am): Likewise.
40163         * modules/fcntl (Makefile.am): Likewise.
40164         * modules/file-type (Makefile.am): Likewise.
40165         * modules/fileblocks (Makefile.am): Likewise.
40166         * modules/filemode (Makefile.am): Likewise.
40167         * modules/filenamecat (Makefile.am): Likewise.
40168         * modules/fnmatch (Makefile.am): Likewise.
40169         * modules/fopen-safer (Makefile.am): Likewise.
40170         * modules/fpending (Makefile.am): Likewise.
40171         * modules/fprintftime (Makefile.am): Likewise.
40172         * modules/free (Makefile.am): Likewise.
40173         * modules/fsusage (Makefile.am): Likewise.
40174         * modules/ftruncate (Makefile.am): Likewise.
40175         * modules/fts (Makefile.am): Likewise.
40176         * modules/gc-arcfour (Makefile.am): Likewise.
40177         * modules/gc-des (Makefile.am): Likewise.
40178         * modules/gc-hmac-md5 (Makefile.am): Likewise.
40179         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
40180         * modules/gc-md4 (Makefile.am): Likewise.
40181         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
40182         * modules/gc-sha1 (Makefile.am): Likewise.
40183         * modules/gc (Makefile.am): Likewise.
40184         * modules/getaddrinfo (Makefile.am): Likewise.
40185         * modules/getcwd (Makefile.am): Likewise.
40186         * modules/getdelim (Makefile.am): Likewise.
40187         * modules/getdomainname (Makefile.am): Likewise.
40188         * modules/getgroups (Makefile.am): Likewise.
40189         * modules/gethostname (Makefile.am): Likewise.
40190         * modules/gethrxtime (Makefile.am): Likewise.
40191         * modules/getline (Makefile.am): Likewise.
40192         * modules/getloadavg (Makefile.am): Likewise.
40193         * modules/getlogin_r (Makefile.am): Likewise.
40194         * modules/getndelim2 (Makefile.am): Likewise.
40195         * modules/getopt (Makefile.am): Likewise.
40196         * modules/getpagesize (Makefile.am): Likewise.
40197         * modules/getpass-gnu (Makefile.am): Likewise.
40198         * modules/getpass (Makefile.am): Likewise.
40199         * modules/getsubopt (Makefile.am): Likewise.
40200         * modules/gettime (Makefile.am): Likewise.
40201         * modules/gettimeofday (Makefile.am): Likewise.
40202         * modules/getugroups (Makefile.am): Likewise.
40203         * modules/getusershell (Makefile.am): Likewise.
40204         * modules/glob (Makefile.am): Likewise.
40205         * modules/group-member (Makefile.am): Likewise.
40206         * modules/hard-locale (Makefile.am): Likewise.
40207         * modules/hash (Makefile.am): Likewise.
40208         * modules/hmac-md5 (Makefile.am): Likewise.
40209         * modules/hmac-sha1 (Makefile.am): Likewise.
40210         * modules/human (Makefile.am): Likewise.
40211         * modules/idcache (Makefile.am): Likewise.
40212         * modules/imaxabs (Makefile.am): Likewise.
40213         * modules/imaxdiv (Makefile.am): Likewise.
40214         * modules/inet_ntop (Makefile.am): Likewise.
40215         * modules/inet_pton (Makefile.am): Likewise.
40216         * modules/intprops (Makefile.am): Likewise.
40217         * modules/inttostr (Makefile.am): Likewise.
40218         * modules/inttypes (Makefile.am): Likewise.
40219         * modules/isapipe (Makefile.am): Likewise.
40220         * modules/javaversion (Makefile.am): Likewise.
40221         * modules/lchmod (Makefile.am): Likewise.
40222         * modules/lchown (Makefile.am): Likewise.
40223         * modules/localcharset (Makefile.am): Likewise.
40224         * modules/long-options (Makefile.am): Likewise.
40225         * modules/lstat (Makefile.am): Likewise.
40226         * modules/malloc (Makefile.am): Likewise.
40227         * modules/mathl (Makefile.am): Likewise.
40228         * modules/mbchar (Makefile.am): Likewise.
40229         * modules/md2 (Makefile.am): Likewise.
40230         * modules/md4 (Makefile.am): Likewise.
40231         * modules/md5 (Makefile.am): Likewise.
40232         * modules/memcasecmp (Makefile.am): Likewise.
40233         * modules/memchr (Makefile.am): Likewise.
40234         * modules/memcmp (Makefile.am): Likewise.
40235         * modules/memcoll (Makefile.am): Likewise.
40236         * modules/memcpy (Makefile.am): Likewise.
40237         * modules/memmem (Makefile.am): Likewise.
40238         * modules/memmove (Makefile.am): Likewise.
40239         * modules/mempcpy (Makefile.am): Likewise.
40240         * modules/memrchr (Makefile.am): Likewise.
40241         * modules/memset (Makefile.am): Likewise.
40242         * modules/memxor (Makefile.am): Likewise.
40243         * modules/mkancesdirs (Makefile.am): Likewise.
40244         * modules/mkdir-p (Makefile.am): Likewise.
40245         * modules/mkdir (Makefile.am): Likewise.
40246         * modules/mkdtemp (Makefile.am): Likewise.
40247         * modules/mkstemp (Makefile.am): Likewise.
40248         * modules/mktime (Makefile.am): Likewise.
40249         * modules/modechange (Makefile.am): Likewise.
40250         * modules/mountlist (Makefile.am): Likewise.
40251         * modules/nanosleep (Makefile.am): Likewise.
40252         * modules/obstack (Makefile.am): Likewise.
40253         * modules/openat (Makefile.am): Likewise.
40254         * modules/pagealign_alloc (Makefile.am): Likewise.
40255         * modules/pathmax (Makefile.am): Likewise.
40256         * modules/physmem (Makefile.am): Likewise.
40257         * modules/poll (Makefile.am): Likewise.
40258         * modules/posixtm (Makefile.am): Likewise.
40259         * modules/posixver (Makefile.am): Likewise.
40260         * modules/putenv (Makefile.am): Likewise.
40261         * modules/quote (Makefile.am): Likewise.
40262         * modules/quotearg (Makefile.am): Likewise.
40263         * modules/raise (Makefile.am): Likewise.
40264         * modules/read-file (Makefile.am): Likewise.
40265         * modules/readline (Makefile.am): Likewise.
40266         * modules/readlink (Makefile.am): Likewise.
40267         * modules/readtokens (Makefile.am): Likewise.
40268         * modules/readutmp (Makefile.am): Likewise.
40269         * modules/realloc (Makefile.am): Likewise.
40270         * modules/regex (Makefile.am): Likewise.
40271         * modules/rename-dest-slash (Makefile.am): Likewise.
40272         * modules/rename (Makefile.am): Likewise.
40273         * modules/rijndael (Makefile.am): Likewise.
40274         * modules/rmdir (Makefile.am): Likewise.
40275         * modules/rpmatch (Makefile.am): Likewise.
40276         * modules/safe-read (Makefile.am): Likewise.
40277         * modules/safe-write (Makefile.am): Likewise.
40278         * modules/same-inode (Makefile.am): Likewise.
40279         * modules/same (Makefile.am): Likewise.
40280         * modules/save-cwd (Makefile.am): Likewise.
40281         * modules/savedir (Makefile.am): Likewise.
40282         * modules/setenv (Makefile.am): Likewise.
40283         * modules/settime (Makefile.am): Likewise.
40284         * modules/sha1 (Makefile.am): Likewise.
40285         * modules/sig2str (Makefile.am): Likewise.
40286         * modules/snprintf (Makefile.am): Likewise.
40287         * modules/stat-macros (Makefile.am): Likewise.
40288         * modules/stat-time (Makefile.am): Likewise.
40289         * modules/stdbool (Makefile.am): Likewise.
40290         * modules/stdint (Makefile.am): Likewise.
40291         * modules/stdlib-safer (Makefile.am): Likewise.
40292         * modules/stpcpy (Makefile.am): Likewise.
40293         * modules/stpncpy (Makefile.am): Likewise.
40294         * modules/strcase (Makefile.am): Likewise.
40295         * modules/strcasestr (Makefile.am): Likewise.
40296         * modules/strchrnul (Makefile.am): Likewise.
40297         * modules/strcspn (Makefile.am): Likewise.
40298         * modules/strdup (Makefile.am): Likewise.
40299         * modules/strerror (Makefile.am): Likewise.
40300         * modules/strftime (Makefile.am): Likewise.
40301         * modules/strndup (Makefile.am): Likewise.
40302         * modules/strnlen (Makefile.am): Likewise.
40303         * modules/strpbrk (Makefile.am): Likewise.
40304         * modules/strsep (Makefile.am): Likewise.
40305         * modules/strstr (Makefile.am): Likewise.
40306         * modules/strtod (Makefile.am): Likewise.
40307         * modules/strtoimax (Makefile.am): Likewise.
40308         * modules/strtok_r (Makefile.am): Likewise.
40309         * modules/strtol (Makefile.am): Likewise.
40310         * modules/strtoll (Makefile.am): Likewise.
40311         * modules/strtoul (Makefile.am): Likewise.
40312         * modules/strtoull (Makefile.am): Likewise.
40313         * modules/strtoumax (Makefile.am): Likewise.
40314         * modules/strverscmp (Makefile.am): Likewise.
40315         * modules/sys_socket (Makefile.am): Likewise.
40316         * modules/sys_stat (Makefile.am): Likewise.
40317         * modules/sysexits (Makefile.am): Likewise.
40318         * modules/time_r (Makefile.am): Likewise.
40319         * modules/timegm (Makefile.am): Likewise.
40320         * modules/timespec (Makefile.am): Likewise.
40321         * modules/tmpfile-safer (Makefile.am): Likewise.
40322         * modules/trim (Makefile.am): Likewise.
40323         * modules/unistd-safer (Makefile.am): Likewise.
40324         * modules/unlinkdir (Makefile.am): Likewise.
40325         * modules/unlocked-io (Makefile.am): Likewise.
40326         * modules/userspec (Makefile.am): Likewise.
40327         * modules/utime (Makefile.am): Likewise.
40328         * modules/utimecmp (Makefile.am): Likewise.
40329         * modules/utimens (Makefile.am): Likewise.
40330         * modules/vasnprintf (Makefile.am): Likewise.
40331         * modules/vasprintf (Makefile.am): Likewise.
40332         * modules/vsnprintf (Makefile.am): Likewise.
40333         * modules/xalloc (Makefile.am): Likewise.
40334         * modules/xgetcwd (Makefile.am): Likewise.
40335         * modules/xnanosleep (Makefile.am): Likewise.
40336         * modules/xreadlink (Makefile.am): Likewise.
40337         * modules/xstrtod (Makefile.am): Likewise.
40338         * modules/xstrtol (Makefile.am): Likewise.
40339         * modules/xstrtold (Makefile.am): Likewise.
40340         * modules/yesno (Makefile.am): Likewise.
40341         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
40342
40343 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
40344
40345         * modules/error (Makefile.am): Distribute files through
40346         EXTRA_DIST, not lib_SOURCES.
40347
40348 2006-10-12  Eric Blake  <ebb9@byu.net>
40349
40350         * modules/error (Makefile.am): Distribute files in /lib.
40351         * modules/obstack (Makefile.am): Likewise.
40352
40353 2006-10-12  Bruno Haible  <bruno@clisp.org>
40354
40355         * modules/acl (Makefile.am): Distribute all files in lib/ through
40356         EXTRA_DIST.
40357         * modules/arcfour (Makefile.am): Likewise.
40358         * modules/arctwo (Makefile.am): Likewise.
40359         * modules/argmatch (Makefile.am): Likewise.
40360         * modules/argz (Makefile.am): Likewise.
40361         * modules/atexit (Makefile.am): Likewise.
40362         * modules/backupfile (Makefile.am): Likewise.
40363         * modules/c-strtod (Makefile.am): Likewise.
40364         * modules/c-strtold (Makefile.am): Likewise.
40365         * modules/calloc (Makefile.am): Likewise.
40366         * modules/canon-host (Makefile.am): Likewise.
40367         * modules/canonicalize (Makefile.am): Likewise.
40368         * modules/chdir-long (Makefile.am): Likewise.
40369         * modules/chdir-safer (Makefile.am): Likewise.
40370         * modules/check-version (Makefile.am): Likewise.
40371         * modules/chown (Makefile.am): Likewise.
40372         * modules/cloexec (Makefile.am): Likewise.
40373         * modules/close-stream (Makefile.am): Likewise.
40374         * modules/closeout (Makefile.am): Likewise.
40375         * modules/crc (Makefile.am): Likewise.
40376         * modules/cycle-check (Makefile.am): Likewise.
40377         * modules/des (Makefile.am): Likewise.
40378         * modules/dirfd (Makefile.am): Likewise.
40379         * modules/dirname (Makefile.am): Likewise.
40380         * modules/dup2 (Makefile.am): Likewise.
40381         * modules/euidaccess (Makefile.am): Likewise.
40382         * modules/exclude (Makefile.am): Likewise.
40383         * modules/exitfail (Makefile.am): Likewise.
40384         * modules/fcntl-safer (Makefile.am): Likewise.
40385         * modules/file-type (Makefile.am): Likewise.
40386         * modules/fileblocks (Makefile.am): Likewise.
40387         * modules/filemode (Makefile.am): Likewise.
40388         * modules/filenamecat (Makefile.am): Likewise.
40389         * modules/fnmatch (Makefile.am): Likewise.
40390         * modules/fopen-safer (Makefile.am): Likewise.
40391         * modules/fpending (Makefile.am): Likewise.
40392         * modules/fprintftime (Makefile.am): Likewise.
40393         * modules/free (Makefile.am): Likewise.
40394         * modules/fsusage (Makefile.am): Likewise.
40395         * modules/ftruncate (Makefile.am): Likewise.
40396         * modules/fts (Makefile.am): Likewise.
40397         * modules/gc (Makefile.am): Likewise.
40398         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
40399         * modules/getaddrinfo (Makefile.am): Likewise.
40400         * modules/getcwd (Makefile.am): Likewise.
40401         * modules/getdelim (Makefile.am): Likewise.
40402         * modules/getdomainname (Makefile.am): Likewise.
40403         * modules/getgroups (Makefile.am): Likewise.
40404         * modules/gethostname (Makefile.am): Likewise.
40405         * modules/gethrxtime (Makefile.am): Likewise.
40406         * modules/getline (Makefile.am): Likewise.
40407         * modules/getloadavg (Makefile.am): Likewise.
40408         * modules/getlogin_r (Makefile.am): Likewise.
40409         * modules/getopt (Makefile.am): Likewise.
40410         * modules/getpass (Makefile.am): Likewise.
40411         * modules/getpass-gnu (Makefile.am): Likewise.
40412         * modules/getsubopt (Makefile.am): Likewise.
40413         * modules/gettime (Makefile.am): Likewise.
40414         * modules/gettimeofday (Makefile.am): Likewise.
40415         * modules/getugroups (Makefile.am): Likewise.
40416         * modules/getusershell (Makefile.am): Likewise.
40417         * modules/glob (Makefile.am): Likewise.
40418         * modules/group-member (Makefile.am): Likewise.
40419         * modules/hard-locale (Makefile.am): Likewise.
40420         * modules/hash (Makefile.am): Likewise.
40421         * modules/hmac-md5 (Makefile.am): Likewise.
40422         * modules/hmac-sha1 (Makefile.am): Likewise.
40423         * modules/human (Makefile.am): Likewise.
40424         * modules/idcache (Makefile.am): Likewise.
40425         * modules/imaxabs (Makefile.am): Likewise.
40426         * modules/imaxdiv (Makefile.am): Likewise.
40427         * modules/inet_ntop (Makefile.am): Likewise.
40428         * modules/inet_pton (Makefile.am): Likewise.
40429         * modules/inttostr (Makefile.am): Likewise.
40430         * modules/isapipe (Makefile.am): Likewise.
40431         * modules/lchown (Makefile.am): Likewise.
40432         * modules/long-options (Makefile.am): Likewise.
40433         * modules/lstat (Makefile.am): Likewise.
40434         * modules/malloc (Makefile.am): Likewise.
40435         * modules/mathl (Makefile.am): Likewise.
40436         * modules/mbchar (Makefile.am): Likewise.
40437         * modules/md2 (Makefile.am): Likewise.
40438         * modules/md4 (Makefile.am): Likewise.
40439         * modules/md5 (Makefile.am): Likewise.
40440         * modules/memcasecmp (Makefile.am): Likewise.
40441         * modules/memchr (Makefile.am): Likewise.
40442         * modules/memcmp (Makefile.am): Likewise.
40443         * modules/memcoll (Makefile.am): Likewise.
40444         * modules/memcpy (Makefile.am): Likewise.
40445         * modules/memmem (Makefile.am): Likewise.
40446         * modules/memmove (Makefile.am): Likewise.
40447         * modules/mempcpy (Makefile.am): Likewise.
40448         * modules/memrchr (Makefile.am): Likewise.
40449         * modules/memset (Makefile.am): Likewise.
40450         * modules/memxor (Makefile.am): Likewise.
40451         * modules/mkancesdirs (Makefile.am): Likewise.
40452         * modules/mkdir (Makefile.am): Likewise.
40453         * modules/mkdir-p (Makefile.am): Likewise.
40454         * modules/mkdtemp (Makefile.am): Likewise.
40455         * modules/mkstemp (Makefile.am): Likewise.
40456         * modules/mktime (Makefile.am): Likewise.
40457         * modules/modechange (Makefile.am): Likewise.
40458         * modules/mountlist (Makefile.am): Likewise.
40459         * modules/nanosleep (Makefile.am): Likewise.
40460         * modules/openat (Makefile.am): Likewise.
40461         * modules/pagealign_alloc (Makefile.am): Likewise.
40462         * modules/physmem (Makefile.am): Likewise.
40463         * modules/poll (Makefile.am): Likewise.
40464         * modules/posixtm (Makefile.am): Likewise.
40465         * modules/posixver (Makefile.am): Likewise.
40466         * modules/putenv (Makefile.am): Likewise.
40467         * modules/quote (Makefile.am): Likewise.
40468         * modules/quotearg (Makefile.am): Likewise.
40469         * modules/raise (Makefile.am): Likewise.
40470         * modules/read-file (Makefile.am): Likewise.
40471         * modules/readline (Makefile.am): Likewise.
40472         * modules/readlink (Makefile.am): Likewise.
40473         * modules/readtokens (Makefile.am): Likewise.
40474         * modules/readutmp (Makefile.am): Likewise.
40475         * modules/realloc (Makefile.am): Likewise.
40476         * modules/regex (Makefile.am): Likewise.
40477         * modules/rename (Makefile.am): Likewise.
40478         * modules/rename-dest-slash (Makefile.am): Likewise.
40479         * modules/rijndael (Makefile.am): Likewise.
40480         * modules/rmdir (Makefile.am): Likewise.
40481         * modules/rpmatch (Makefile.am): Likewise.
40482         * modules/safe-read (Makefile.am): Likewise.
40483         * modules/safe-write (Makefile.am): Likewise.
40484         * modules/same (Makefile.am): Likewise.
40485         * modules/save-cwd (Makefile.am): Likewise.
40486         * modules/savedir (Makefile.am): Likewise.
40487         * modules/setenv (Makefile.am): Likewise.
40488         * modules/settime (Makefile.am): Likewise.
40489         * modules/sha1 (Makefile.am): Likewise.
40490         * modules/sig2str (Makefile.am): Likewise.
40491         * modules/snprintf (Makefile.am): Likewise.
40492         * modules/stdlib-safer (Makefile.am): Likewise.
40493         * modules/stpcpy (Makefile.am): Likewise.
40494         * modules/stpncpy (Makefile.am): Likewise.
40495         * modules/strcase (Makefile.am): Likewise.
40496         * modules/strcasestr (Makefile.am): Likewise.
40497         * modules/strchrnul (Makefile.am): Likewise.
40498         * modules/strcspn (Makefile.am): Likewise.
40499         * modules/strdup (Makefile.am): Likewise.
40500         * modules/strerror (Makefile.am): Likewise.
40501         * modules/strftime (Makefile.am): Likewise.
40502         * modules/strndup (Makefile.am): Likewise.
40503         * modules/strnlen (Makefile.am): Likewise.
40504         * modules/strpbrk (Makefile.am): Likewise.
40505         * modules/strsep (Makefile.am): Likewise.
40506         * modules/strstr (Makefile.am): Likewise.
40507         * modules/strtod (Makefile.am): Likewise.
40508         * modules/strtoimax (Makefile.am): Likewise.
40509         * modules/strtok_r (Makefile.am): Likewise.
40510         * modules/strtol (Makefile.am): Likewise.
40511         * modules/strtoll (Makefile.am): Likewise.
40512         * modules/strtoul (Makefile.am): Likewise.
40513         * modules/strtoull (Makefile.am): Likewise.
40514         * modules/strtoumax (Makefile.am): Likewise.
40515         * modules/strverscmp (Makefile.am): Likewise.
40516         * modules/time_r (Makefile.am): Likewise.
40517         * modules/timegm (Makefile.am): Likewise.
40518         * modules/tmpfile-safer (Makefile.am): Likewise.
40519         * modules/unistd-safer (Makefile.am): Likewise.
40520         * modules/unlinkdir (Makefile.am): Likewise.
40521         * modules/userspec (Makefile.am): Likewise.
40522         * modules/utime (Makefile.am): Likewise.
40523         * modules/utimecmp (Makefile.am): Likewise.
40524         * modules/utimens (Makefile.am): Likewise.
40525         * modules/vasnprintf (Makefile.am): Likewise.
40526         * modules/vasprintf (Makefile.am): Likewise.
40527         * modules/vsnprintf (Makefile.am): Likewise.
40528         * modules/xalloc (Makefile.am): Likewise.
40529         * modules/xgetcwd (Makefile.am): Likewise.
40530         * modules/xnanosleep (Makefile.am): Likewise.
40531         * modules/xreadlink (Makefile.am): Likewise.
40532         * modules/xstrtod (Makefile.am): Likewise.
40533         * modules/xstrtol (Makefile.am): Likewise.
40534         * modules/xstrtold (Makefile.am): Likewise.
40535         * modules/yesno (Makefile.am): Likewise.
40536
40537 2006-10-12  Jim Meyering  <jim@meyering.net>
40538
40539         * m4/getloadavg.m4: Revert the change below.
40540
40541         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
40542         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
40543         fail with a symlink, which is what coreutils' ./bootstrap now
40544         creates by default.
40545
40546 2006-10-12  Bruno Haible  <bruno@clisp.org>
40547
40548         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
40549         mingw.
40550         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
40551         MSVC and mingw explicitly.
40552
40553 2006-10-11  Simon Josefsson  <jas@extundo.com>
40554             Bruno Haible  <bruno@clisp.org>
40555
40556         Add support for multiple gnulib-tool invocations in the scope of a
40557         single configure.ac file.
40558         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
40559         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
40560         with the same contents as the _LIBADD variable.
40561         (func_emit_initmacro_start, func_emit_initmacro_end,
40562         func_emit_initmacro_done): New functions.
40563         (func_import, func_create_testdir): Invoke them. Allow the identifiers
40564         gl_LIBOBJS and gl_LTLIBOBJS.
40565
40566 2006-10-11  Bruno Haible  <bruno@clisp.org>
40567
40568         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
40569         (func_create_testdir): Don't create po/Makefile.am, don't invoke
40570         autoreconf. Instead, invoke autopoint explicitly but move back the
40571         *.m4 files from gnulib.
40572
40573 2006-10-11  Bruno Haible  <bruno@clisp.org>
40574
40575         * gnulib-tool (func_usage): Make module names after --create-testdir
40576         optional.
40577         (func_create_testdir): If no module was specified, use nearly all
40578         modules.
40579
40580 2006-10-12  Jim Meyering  <jim@meyering.net>
40581
40582         Big performance improvement for fts-based tools that use FTS_NOSTAT.
40583         Avoid spurious inode-mismatch problems on non-POSIX file systems.
40584         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
40585         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
40586         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
40587         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
40588         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
40589         (fts_set_stat_required): New function.
40590         (fts_open): Defer the calls to fts_stat, if possible or requested.
40591         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
40592         into fts_stat itself.
40593         (fts_read): Perform any required (deferred) fts_stat call.
40594         (fts_build): Likewise, for the directory we're about to open and read.
40595         In the readdir loop, carefully decide whether each entry will require
40596         an eventual call to fts_stat, using dirent.d_type info if available.
40597         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
40598         a command line argument into this function.  Update all callers.
40599         Map a return value of FTS_DOT to FTS_D for a command line argument.
40600         * modules/fts (Depends-on): Add d-type.  Alphabetize.
40601         Thanks to Miklos Szeredi for his tenacity and for the initial
40602         bug report about "find" failing on a FUSE-based file system.
40603
40604         * lib/fts.c (fts_open): Use consistent indentation.
40605
40606 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
40607
40608         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
40609         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
40610         reported by Jim Meyering.  All uses of cache variables renamed
40611         to match Autoconf's.
40612         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
40613         the other one.
40614
40615         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
40616         Fix misspelling in diagnostic.
40617
40618 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
40619
40620         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
40621         defined.  Problem reported by Matthew Woehlke.
40622
40623         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
40624         Add support for Tandem NonStop R series.
40625         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
40626         Use new macro.
40627
40628         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
40629         (has_trailing_slash): Omit size arg; all callers changed.
40630         Omit 'inline', since it doesn't help performance and we'd
40631         need to configure it.
40632         Don't count //, ///, etc. as having a trailing slash.
40633         As a side effect, this removes a C99ism reported by Matthew Woehlke.
40634         (rpl_rename_dest_slash): On failure, use rename's errno rather
40635         than (in some cases) an incorrect or junk errno.
40636         Simplify code by removing need to compute length; this does
40637         cause it to make two passes instead of one over the file name,
40638         but it's worth it.
40639
40640         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
40641         change, since Autoconf's version may no longer be appropriate now
40642         that we are using CVS Autoconf's version.  Add support for Tandem.
40643
40644 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
40645             Bruno Haible  <bruno@clisp.org>
40646
40647         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
40648         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
40649         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
40650         gl_AC_TYPE_LONG_LONG.
40651
40652         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
40653         instead of HAVE_LONG_LONG.
40654         * lib/printf-args.c (printf_fetchargs): Likewise.
40655         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
40656         * lib/vasnprintf.c (VASNPRINTF): Likewise.
40657         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
40658         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
40659         gl_AC_TYPE_LONG_LONG.
40660
40661 2006-10-11  Bruno Haible  <bruno@clisp.org>
40662
40663         * m4/longlong.m4: Add comments.
40664         * m4/ulonglong.m4: Likewise.
40665
40666 2006-10-10  Bruno Haible  <bruno@clisp.org>
40667
40668         Make it possible to #define stpcpy, strdup to aliases.
40669         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
40670         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
40671
40672 2006-10-10  Bruno Haible  <bruno@clisp.org>
40673
40674         Make it possible to #define gcd to an alias.
40675         * lib/gcd.c: Include config.h.
40676
40677 2006-10-10  Bruno Haible  <bruno@clisp.org>
40678
40679         Make it possible to #define c_isascii to an alias.
40680         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
40681         defined. Undefine the macros before defining them, to avoid gcc
40682         warnings.
40683         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
40684         define NO_C_CTYPE_MACROS early.
40685
40686 2006-10-10  Bruno Haible  <bruno@clisp.org>
40687
40688         Make it possible to #define set_program_name to an alias.
40689         * lib/progname.c: Don't undefine set_program_name; instead, undefine
40690         ENABLE_RELOCATABLE early.
40691
40692 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
40693
40694         Port to Tandem NSK OSS, which has 64-bit signed int but at most
40695         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
40696         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
40697         More generally, don't assume that 64-bit signed int is available
40698         if unsigned int is, and vice versa.
40699         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
40700         unsigned symbols, not on their signed counterparts.
40701         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
40702         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
40703         (UINT64_C, UINTMAX_C):
40704         Likewise.
40705         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
40706         unsigned counterparts.
40707         (Have_long_long, Unsigned): New macros.
40708         (Int): Renamed from INT.
40709         (strtoimax): Use the new macros.
40710         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
40711         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
40712         * modules/inttypes (inttypes.h): Substitute
40713         HAVE_UNSIGNED_LONG_LONG_INT.
40714         * modules/stdint (stdint.h): Likewise.
40715         (Files): Add m4/ulonglong.m4.
40716
40717 2006-10-10  Bruno Haible  <bruno@clisp.org>
40718
40719         Fix a gcc -Wshadow warning.
40720         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
40721         to 'bucket'.
40722         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
40723         gl_linked_indexof_from_to): Likewise.
40724         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
40725         Likewise.
40726         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
40727         Likewise.
40728         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
40729         Reported by Eric Blake.
40730
40731 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
40732
40733         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
40734         for NetBSD.  Problem reported by Bruno Haible.
40735
40736 2006-10-09  Jim Meyering  <jim@meyering.net>
40737
40738         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
40739         Patch from Bruno Haible.
40740
40741 2006-10-09  Jim Meyering  <jim@meyering.net>
40742
40743         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
40744         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
40745         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
40746
40747 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40748
40749         Don't include <config.h> twice; this doesn't work in some cases,
40750         e.g., when config.h has "#define intmax_t long long int" and
40751         we include <config.h>, <inttypes.h>, <config.h> in that order.
40752         Problem reported by Matthew Woehlke in:
40753         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
40754         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
40755         * lib/fts-cycle.c: Don't include config.h.
40756         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
40757         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
40758         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
40759         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
40760         inttypes.h.
40761         * lib/xstrtoumax.c: Likewise.
40762         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
40763         __strtol and the like, so that this module is more like its siblings.
40764         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
40765         Remove; no longer needed now that we assume gnulib inttypes.h.
40766
40767 2006-10-08  Bruno Haible  <bruno@clisp.org>
40768
40769         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
40770         option.
40771
40772 2006-10-07  Jim Meyering  <jim@meyering.net>
40773
40774         * modules/inttypes (inttypes.h): Revert what seems to have been
40775         an inadvertent part of today's change: use "|", not "/" in the
40776         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
40777
40778 2006-10-07  Bruno Haible  <bruno@clisp.org>
40779
40780         * modules/sublist: New file.
40781
40782 2006-10-07  Bruno Haible  <bruno@clisp.org>
40783
40784         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
40785         * modules/argz (argz.h): Likewise.
40786         * modules/arpa_inet (arpa/inet.h): Likewise.
40787         * modules/byteswap (byteswap.h): Likewise.
40788         * modules/configmake (configmake.h): Likewise.
40789         * modules/fcntl (fcntl.h): Likewise.
40790         * modules/fnmatch (fnmatch.h): Likewise.
40791         * modules/getopt (getopt.h): Likewise.
40792         * modules/glob (glob.h): Likewise.
40793         * modules/inttypes (inttypes.h): Likewise.
40794         * modules/netinet_in (netinet/in.h): Likewise.
40795         * modules/poll (poll.h): Likewise.
40796         * modules/stdbool (stdbool.h): Likewise.
40797         * modules/stdint (stdint.h): Likewise.
40798         * modules/sys_select (sys/select.h): Likewise.
40799         * modules/sys_socket (sys/socket.h): Likewise.
40800         * modules/sys_stat (sys/stat.h): Likewise.
40801         * modules/sysexits (sysexits.h): Likewise.
40802         * modules/unistd (unistd.h): Likewise.
40803         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40804         Add a "DO NOT EDIT" comment to the generated file.
40805         (func_import): Likewise for gnulib-comp.m4.
40806
40807 2006-10-07  Bruno Haible  <bruno@clisp.org>
40808
40809         * lib/gl_sublist.h: New file.
40810         * lib/gl_sublist.c: New file.
40811
40812 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
40813
40814         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
40815         name (relative to the original working directory) and the file
40816         name component (relative to the temporary working directory).  All
40817         callers changed.
40818         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
40819         * lib/mkdir-p.c (make_dir_parents): Likewise.
40820         * lib/mkdir-p.h (make_dir_parents): Likewise.
40821
40822 2006-10-06  Eric Blake  <ebb9@byu.net>
40823
40824         Define several macros for use by the clean-temp module.
40825         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
40826         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
40827         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
40828
40829         * lib/clean-temp.h (close_stream_temp): New declaration.
40830         * lib/clean-temp.c (includes): Pull in headers according to what
40831         other modules are in use.
40832         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
40833
40834 2006-10-06  Bruno Haible  <bruno@clisp.org>
40835
40836         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
40837         instead of fopen, fwriteerror.
40838
40839 2006-10-06  Bruno Haible  <bruno@clisp.org>
40840
40841         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
40842         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
40843         int.
40844         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
40845         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
40846         Return an error indicator.
40847         Suggested by Eric Blake.
40848
40849 2006-10-06  Bruno Haible  <bruno@clisp.org>
40850
40851         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
40852         Reported by Eric Blake.
40853
40854 2006-10-06  Bruno Haible  <bruno@clisp.org>
40855
40856         * modules/closeout (Description): Mention stderr too.
40857
40858 2006-10-06  Bruno Haible  <bruno@clisp.org>
40859         and Paul Eggert  <eggert@cs.ucla.edu>
40860
40861         * lib/closeout.c (close_stdout): Also close stderr.
40862         * lib/closeout.h: Update comment.
40863
40864 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
40865
40866         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
40867         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
40868         * lib/dirchownmod.c: Include lchown.h.
40869         * lib/lchown.c: Don't include files that lchown.h now includes.
40870         Don't declare chown, since lchown.h now does that.
40871         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
40872         (lchown): Define to rpl_chown if lchown is declared but
40873         does not exist.  Declare using a prototype if lchown is not
40874         declared.  Add a copyright notice.
40875         * lib/mkstemp.h: Include <unistd.h>.
40876         * lib/openat.c: Include lchown.h.
40877
40878         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
40879         we now test for that separately.
40880         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
40881         rather than O_NOFOLLOW, when testing whether it's possible to
40882         avoid a race condition reliably.
40883         * lib/savewd.c (savewd_chdir): Likewise.
40884
40885         Remove macros that are no longer needed now that stdint.h is
40886         reliable.
40887         * lib/fsusage.c (UINTMAX_MAX): Remove.
40888         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
40889         * lib/utimecmp.c (SIZE_MAX): Remove.
40890
40891         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
40892
40893         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
40894         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
40895         O_NOATIME works.
40896
40897 2006-10-05  Bruno Haible  <bruno@clisp.org>
40898
40899         * lib/gl_list.h (gl_sortedlist_search_from_to,
40900         gl_sortedlist_indexof_from_to): New declarations.
40901         (gl_list_implementation): New fields sortedlist_search_from_to,
40902         sortedlist_indexof_from_to.
40903         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
40904         inline functions.
40905         * lib/gl_list.c (gl_sortedlist_search_from_to,
40906         gl_sortedlist_indexof_from_to): New functions.
40907         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
40908         function.
40909         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
40910         (gl_array_sortedlist_search_from_to): New function.
40911         (gl_array_list_implementation): Update.
40912         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
40913         function.
40914         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
40915         (gl_carray_sortedlist_search_from_to): New function.
40916         (gl_carray_list_implementation): Update.
40917         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
40918         gl_linked_sortedlist_indexof_from_to): New functions.
40919         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40920         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40921         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
40922         gl_tree_sortedlist_indexof_from_to): New functions.
40923         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40924         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40925         Update.
40926         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40927         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
40928         Update.
40929
40930 2006-10-05  Bruno Haible  <bruno@clisp.org>
40931
40932         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
40933         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
40934         (struct gl_list_implementation): Add fields search_from_to,
40935         indexof_from_to. Remove fields search, indexof.
40936         (gl_list_search): Use the search_from_to method.
40937         (gl_list_search_from, gl_list_search_from_to): New functions.
40938         (gl_list_indexof): Use the indexof_from_to method.
40939         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
40940         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
40941         (gl_list_search_from, gl_list_search_from_to): New functions.
40942         (gl_list_indexof): Use the indexof_from_to method.
40943         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
40944         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
40945         gl_array_indexof. Add start_index, end_index arguments.
40946         (gl_array_search_from_to): Renamed from gl_array_search. Add
40947         start_index, end_index arguments.
40948         (gl_array_remove, gl_array_list_implementation): Update.
40949         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
40950         gl_carray_indexof. Add start_index, end_index arguments.
40951         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
40952         start_index, end_index arguments.
40953         (gl_carray_remove, gl_carray_list_implementation): Update.
40954         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
40955         gl_linked_search. Add start_index, end_index arguments.
40956         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
40957         start_index, end_index arguments.
40958         (gl_linked_remove): Update.
40959         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40960         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40961         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
40962         field to 'size_t'.
40963         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
40964         gl_tree_search. Add start_index, end_index arguments.
40965         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
40966         start_index, end_index arguments.
40967         (gl_tree_remove): Update.
40968         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40969         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40970         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
40971         function.
40972         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
40973         gl_tree_search. Add start_index, end_index arguments.
40974         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
40975         start_index, end_index arguments.
40976         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40977         Update.
40978         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
40979
40980 2006-10-05  Bruno Haible  <bruno@clisp.org>
40981
40982         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
40983
40984         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
40985         fwriteerror_temp): New declarations.
40986         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
40987         (descriptors): New variable.
40988         (cleanup): First, close the descriptors.
40989         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
40990         fclose_temp, fwriteerror_temp): New functions.
40991
40992 2006-10-04  Jim Meyering  <jim@meyering.net>
40993
40994         * lib/fts.c (fts_open): Tiny comment change.
40995
40996 2006-10-04  Bruno Haible  <bruno@clisp.org>
40997
40998         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
40999         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
41000         gl_LOCK_BODY.
41001         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
41002         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
41003         gl_LOCK_EARLY_BODY.
41004         (gl_LOCK): Require gl_LOCK_BODY.
41005
41006 2006-10-04  Bruno Haible  <bruno@clisp.org>
41007
41008         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
41009         (gl_oset_search_atleast): New declaration.
41010         (struct gl_oset_implementation): Add field 'search_atleast'.
41011         (gl_oset_search_atleast): New inline function.
41012         * lib/gl_oset.c (gl_oset_search_atleast): New function.
41013         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
41014         (gl_array_oset_implementation): Update.
41015         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
41016         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
41017         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
41018
41019 2006-10-04  Bruno Haible  <bruno@clisp.org>
41020
41021         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
41022
41023 2006-10-03  Bruno Haible  <bruno@clisp.org>
41024
41025         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
41026         from gl_avltreehash_list_implementation.
41027
41028 2006-10-03  Bruno Haible  <bruno@clisp.org>
41029
41030         * lib/gl_oset.c (gl_oset_add): Fix return type.
41031
41032 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
41033
41034         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
41035
41036 2006-10-02  Eric Blake  <ebb9@byu.net>
41037
41038         * modules/strnlen (Depends-on): Add extensions.
41039
41040 2006-10-02  Eric Blake  <ebb9@byu.net>
41041
41042         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
41043         definition in 2.60+.
41044
41045 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
41046
41047         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
41048         checks.
41049
41050 2006-10-02  Bruno Haible  <bruno@clisp.org>
41051
41052         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
41053         to the AUTOMAKE_OPTIONS.
41054         Reported by Jim Meyering.
41055
41056 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
41057
41058         Work around bug in Solaris 10 /proc file system:
41059         /proc/self/fd/NNN/.. isn't the parent directory of
41060         the directory whose file descriptor is NNN.  This needs to
41061         be worked around at run time, not compile time, since a
41062         program might be built on Solaris 8, where things work, and
41063         run on Solaris 10.
41064         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
41065         to use the following interface instead:
41066         (OPENAT_BUFFER_SIZE): New macro.
41067         (openat_proc_name): New function.
41068         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
41069         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
41070         Likewise.
41071         * lib/openat-proc.c: New file.
41072         * modules/openat (Files): Add lib/openat-proc.c.
41073         (Depends-on): Add same-inode, stdbool.
41074         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
41075
41076 2006-09-29  Bruno Haible  <bruno@clisp.org>
41077
41078         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
41079         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
41080         argument. Set stdout_closed before testing for ferror, not after.
41081         (fwriteerror, fwriteerror_no_ebadf): New functions.
41082
41083 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41084
41085         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
41086
41087 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
41088
41089         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
41090         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
41091
41092 2006-09-28  Jim Meyering  <jim@meyering.net>
41093
41094         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
41095         Include <unistd.h>.
41096
41097 2006-09-28  Bruno Haible  <bruno@clisp.org>
41098
41099         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
41100         * modules/linkedhash-list (Depends-on): Likewise.
41101         * modules/rbtreehash-list (Depends-on): Likewise.
41102
41103 2006-09-28  Bruno Haible  <bruno@clisp.org>
41104
41105         * lib/strndup.h: Simplify the redefinition of strndup.
41106         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
41107         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
41108
41109 2006-09-28  Bruno Haible  <bruno@clisp.org>
41110
41111         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
41112         * lib/gl_linkedhash_list.c: Likewise.
41113         * lib/gl_rbtreehash_list.c: Likewise.
41114
41115 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
41116
41117         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
41118         getaddrinfo.
41119
41120         * lib/__fpending.h: Don't include <stdio_ext.h> unless
41121         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
41122         it causes <stdio_ext.h> to cause a compile-time error.
41123         Problem reported by Nelson H. F. Beebe.
41124         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
41125         of HAVE_DECL___PENDING.
41126
41127         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
41128         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
41129         declaration.
41130
41131 2006-09-27  Jim Meyering  <jim@meyering.net>
41132
41133         This file could end up with a definition for a function
41134         named __strndup, rather than rpl_strndup on a system with
41135         incomplete weak_alias support.
41136         * lib/strndup.c (strndup): Rename from __strndup.
41137         Remove #defines that used to map __strndup to strndup.
41138         Don't use K&R prototypes.
41139         Remove LIBC-related code, since this file is not sync'd with glibc.
41140         * lib/strndup.h: Revamp, accordingly.
41141         * m4/strndup.m4: Modernize.
41142
41143 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
41144
41145         * modules/savewd (Depends-on): Add 'raise'.
41146         * lib/savewd.c: Include <signal.h>, for 'raise'.
41147
41148 2006-09-26  Jim Meyering  <jim@meyering.net>
41149
41150         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
41151         when we detect Darwin 8.7.0's acl_get_file bug.
41152         Rearrange to perform the new (below) run-test while $LIBS
41153         contains any acl-related library.  Set USE_ACL at the end.
41154         (gl_ACL_GET_FILE): New function.
41155
41156 2006-09-26  Eric Blake  <ebb9@byu.net>
41157
41158         * lib/verror.c: Include <config.h> unconditionally.
41159
41160 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
41161
41162         * modules/clock-time (Maintainer): Add self.
41163         * modules/getlogin_r (Depends-on): Add extensions.
41164
41165 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41166
41167         * modules/clock-time: New module.
41168         * modules/nanosleep (Depends-on): Add clock-time.
41169         * modules/gethrxtime (Depends-on): Likewise.
41170         * modules/gettime (Depends-on): Likewise.
41171         * modules/settime (Depends-on): Likewise.
41172
41173         * modules/fts-lgpl: Depend on openat.
41174         * modules/mkancesdirs: Depend on savewd.
41175         * modules/mkdir-p: Likewise.
41176
41177 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41178
41179         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
41180
41181         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
41182         `gl_have_arbitrary_file_name_length_limit' to
41183         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
41184         actually works between configure runs.
41185
41186 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41187             Bruno Haible  <bruno@clisp.org>
41188
41189         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
41190
41191 2006-09-25  Jim Meyering  <jim@meyering.net>
41192
41193         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
41194         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
41195
41196 2006-09-25  Eric Blake  <ebb9@byu.net>
41197
41198         * gnulib-tool (func_import, func_create_testdir): Fix typos in
41199         exec's in 2006-09-18 patch when shuffling fds.
41200
41201 2006-09-25  Bruno Haible  <bruno@clisp.org>
41202
41203         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
41204         Reported by Jim Meyering.
41205
41206 2006-09-24  Jim Meyering  <jim@meyering.net>
41207
41208         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
41209         compare a pointer against a literal "0".  That caused failures with
41210         at least HP-UX's hpcc.
41211
41212 2006-09-22  Simon Josefsson  <jas@extundo.com>
41213
41214         * modules/gc-sha1:
41215         * modules/gc-md4:
41216         * modules/gc-hmac-sha1:
41217         * modules/gc-hmac-md5:
41218         * modules/gc-des:
41219         * modules/gc-arcfour: Distribute more files.
41220
41221 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41222
41223         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
41224         (gl_linked_iterator_from_to): Initialize struct completely.
41225         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
41226         (gl_tree_iterator_from_to): Likewise
41227         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
41228         * lib/gl_array_list.c [lint] (gl_array_iterator)
41229         (gl_array_iterator_from_to): Likewise.
41230         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
41231         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
41232         (gl_carray_iterator_from_to): Likewise.
41233
41234         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
41235         * lib/md4.c (md4_process_block): Remove unused variable.
41236         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
41237         parentheses for clarity.
41238
41239 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41240
41241         * modules/bison-i18n (Depends-on): Add gettext.
41242
41243 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41244
41245         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
41246         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41247         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
41248         also add missing comma that caused broken test.
41249         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
41250         stdlib.h, for `abort'.
41251         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
41252         variables.
41253         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
41254         include unistd.h if present, for `rmdir'.
41255         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
41256         variables.
41257         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
41258         in the process include standard headers for prototypes.
41259         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
41260         gets declared on GNU/Linux.
41261         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
41262         unistd.h, for `rmdir'.
41263         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
41264
41265         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
41266         always true.
41267         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
41268
41269         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
41270
41271 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41272
41273         * gnulib-tool (func_version): Create output all at once.  This
41274         may help avoid triggering unnecessary SIGPIPEs, and at any
41275         rate it doesn't hurt.
41276
41277 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41278             Bruno Haible  <bruno@clisp.org>
41279
41280         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
41281         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41282         * m4/signed.m4 (bh_C_SIGNED): Likewise.
41283
41284         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
41285         (gl_FUNC_VASPRINTF): Invoke it.
41286
41287 2006-09-22  Bruno Haible  <bruno@clisp.org>
41288
41289         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
41290         getloadavg.c as first argument.
41291
41292 2006-09-22  Bruno Haible  <bruno@clisp.org>
41293
41294         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
41295         at the beginning of the gl_INIT macro.
41296         * modules/getloadavg (configure.ac): Pass $gl_source_base to
41297         gl_GETLOADAVG.
41298
41299 2006-09-22  Bruno Haible  <bruno@clisp.org>
41300
41301         * gnulib-tool (func_create_megatestdir): Don't include the config-h
41302         module.
41303         Suggested by Ralf Wildenhues.
41304
41305 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
41306
41307         Import this patch from libc:
41308
41309         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
41310
41311         * lib/regex_internal.c (re_string_reconstruct): Handle
41312         offset < pstr->valid_raw_len && pstr->offsets_needed case.
41313         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
41314         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
41315         re_string_context_at.
41316
41317         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
41318         now requires it.
41319         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
41320         gl_REGEX now does it for us.
41321         (gl_REGEX): Add test taken from
41322         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
41323
41324         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
41325         Check that large offsets work.  Modernize Autoconf usages.
41326         Prefer "yes" to mean a good thing rather than a bad.
41327         Don't put "#define mkstemp" in config.h, as this might interfere
41328         with standard system headers that "#define mkstemp mkstemp64".
41329
41330         * modules/mkstemp (Depends-on): Add extensions, so that
41331         mkstemp is visible on some platforms.
41332         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
41333         (Include): Change to "mkstemp.h" from <stdlib.h>.
41334         (Files): Add mkstemp.h.
41335
41336         * lib/mkstemp.h: New file, since some standard headers
41337         #define mkstemp.
41338         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
41339         Include "mkstemp.h".
41340         Make the _LIBC code resemble glibc original more,
41341         e.g., use K&R style.
41342         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
41343         (mkstemp): Remove, since mkstemp.h does this for us.
41344         * lib/stdlib--.h: Include mkstemp.h.
41345
41346         Import this patch from libc:
41347
41348         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
41349
41350         * lib/tempname.c (__gen_tempname): Change attempts_min
41351         into a macro.  Use preprocessor to decide how to initialize
41352         attempts [Coverity CID 67].
41353
41354 2006-09-20  Bruno Haible  <bruno@clisp.org>
41355
41356         * lib/mkdtemp.c: Import from libc.
41357         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
41358                 * sysdeps/posix/tempname.c (__gen_tempname): Change
41359                 attempts_min into a macro.  Use preprocessor to decide how to
41360                 initialize attempts [Coverity CID 67].
41361         2001-11-27  Paul Eggert  <eggert@twinsun.com>
41362                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
41363                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
41364
41365 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41366
41367         * gnulib-tool (func_exit): New function, to allow to pass the
41368         exit status portably through the trap.  Use everywhere.
41369         (--help, --version): Signal a write error.
41370         (trap): catch SIGPIPE, for write errors.
41371         Exit at the end of the trap, with the correct exit status.
41372
41373 2006-09-19  Karl Berry  <karl@gnu.org>
41374
41375         * doc/gnulib.texi: note about the license texinfo files.
41376
41377 2006-09-19  Eric Blake  <ebb9@byu.net>
41378
41379         * gnulib-tool: Avoid space-tab.
41380
41381 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
41382
41383         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
41384         that prevented coreutils 6.1 from building.  Problem reported
41385         by Petter Reinholdtsen.
41386
41387 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
41388
41389         * gnulib-tool (avoidlist): Fix typo that broke options like
41390         --avoid=lock that are used by coreutils bootstrap.
41391
41392 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
41393
41394         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
41395         more systematically.
41396
41397 2006-09-18  Jim Meyering  <jim@meyering.net>
41398
41399         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
41400
41401 2006-09-18  Bruno Haible  <bruno@clisp.org>
41402
41403         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
41404
41405 2006-09-18  Bruno Haible  <bruno@clisp.org>
41406
41407         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
41408         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
41409         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
41410         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
41411         * m4/gettext.m4: Require autoconf >= 2.52.
41412         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
41413         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
41414         of gl_cv_header_inttypes_h.
41415
41416 2006-09-18  Bruno Haible  <bruno@clisp.org>
41417
41418         * lib/javaversion.c: Include configmake.h.
41419
41420 2006-09-18  Bruno Haible  <bruno@clisp.org>
41421
41422         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
41423         avoid that the while loops be executed in a subshell.
41424
41425 2006-09-18  Bruno Haible  <bruno@clisp.org>
41426
41427         * MODULES.html.sh (func_module): Break long lines.
41428         Suggested by Bruce Korb <bkorb@gnu.org>.
41429
41430 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41431
41432         Speed up by a factor of 1.12.
41433         * gnulib-tool (nl): New variable.
41434         (func_import): Rewrite include directive extraction to only read each
41435         directive once.
41436
41437 2006-09-17  Bruno Haible  <bruno@clisp.org>
41438
41439         * modules/javaversion (Makefile.am): Remove DEFS setting.
41440         (Depends-on): Add configmake, for PKGDATADIR definition.
41441
41442 2006-09-17  Bruno Haible  <bruno@clisp.org>
41443
41444         * gnulib-tool (func_create_testdir): Rewrite all files at once.
41445
41446 2006-09-17  Bruno Haible  <bruno@clisp.org>
41447
41448         * gnulib-tool (func_append): New function, stolen from libtool.m4.
41449         (func_modules_transitive_closure, func_modules_add_dummy,
41450         func_modules_to_filelist, func_import, func_create_testdir,
41451         func_create_megatestdir, ...): Use it wherever possible.
41452         Suggested by Ralf Wildenhues.
41453
41454 2006-09-16  Karl Berry  <karl@gnu.org>
41455
41456         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
41457         to avoid sectioning errors.
41458         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
41459         [ifinfo]: blank line after @center-ed titles.
41460         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
41461         Spell FSF address consistently with others.
41462         (These changes approved by rms.)
41463
41464 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41465
41466         Speed up by a factor of 1.61.
41467         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
41468         already checked module names again.
41469
41470 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41471
41472         Speed up by a factor of 1.13.
41473         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
41474         for new_files, and the input to func_add_or_update.
41475
41476 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41477
41478         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
41479         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
41480
41481 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41482
41483         * modules/mkancesdirs (Depends-on): Add fcntl.
41484         * modules/savewd: New file.
41485         * MODULES.html.sh (File system functions): Add savewd.
41486
41487         * modules/configmake (Makefile.am): Add support for the
41488         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
41489
41490 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41491
41492         * m4/savewd.m4: New file.
41493
41494 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41495
41496         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
41497         (dirchownmod): New arg FD.  All callers changed.
41498         Use FD rather than opening the directory ourself, as opening is
41499         now the caller's responsibility.
41500         * lib/dirchownmod.h: Likewise.
41501         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
41502         hosts that require <sys/types.h> before <sys/stat.h>.  Include
41503         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
41504         (test_dir): Remove.
41505         (mkancesdirs): Return length of prefix of FILE that has already
41506         been made, or -2 if there is a child doing the work.  Redo
41507         algorithm so that it is O(N) rather than O(N**2).  Optimize away
41508         ".", and treat ".." specially since it might stray back into
41509         already-created areas.  Use a subprocess if necessary.  New arg
41510         WD; all users changed.  MAKE_DIR function should now return 1
41511         if it creates a directory that is not readable.  Return -2 if
41512         a child process is spun off.
41513         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
41514         Adjust signature to match code.
41515         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
41516         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
41517         all users changed.
41518         * lib/savewd.c, lib/savewd.h: New files.
41519
41520 2006-09-15  Jim Meyering  <jim@meyering.net>
41521
41522         * modules/rename-dest-slash: New module.
41523         * MODULES.html.sh (posix_compat): Add it here.
41524
41525         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
41526
41527 2006-09-15  Jim Meyering  <jim@meyering.net>
41528
41529         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
41530         file.
41531
41532         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
41533
41534 2006-09-15  Jim Meyering  <jim@meyering.net>
41535
41536         * lib/rename-dest-slash.c (has_trailing_slash): Use
41537         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
41538         (rpl_rename_dest_slash): Perform the cheaper trailing slash
41539         test before testing whether SRC is a directory.
41540         Suggestions from Bruno Haible.
41541
41542         Avoid a warning about an unused variable.
41543         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
41544         into the #ifdef block where it's used.
41545
41546         * lib/rename-dest-slash.c: New file.
41547
41548 2006-09-14  Bruno Haible  <bruno@clisp.org>
41549
41550         * lib/allocsa.c: Include <config.h> unconditionally.
41551         * lib/asnprintf.c: Likewise.
41552         * lib/asprintf.c: Likewise.
41553         * lib/c-strcasecmp.c: Likewise.
41554         * lib/c-strcasestr.c: Likewise.
41555         * lib/c-strncasecmp.c: Likewise.
41556         * lib/c-strstr.c: Likewise.
41557         * lib/classpath.c: Likewise.
41558         * lib/clean-temp.c: Likewise.
41559         * lib/concatpath.c: Likewise.
41560         * lib/copy-file.c: Likewise.
41561         * lib/csharpcomp.c: Likewise.
41562         * lib/csharpexec.c: Likewise.
41563         * lib/execute.c: Likewise.
41564         * lib/fatal-signal.c: Likewise.
41565         * lib/findprog.c: Likewise.
41566         * lib/fwriteerror.c: Likewise.
41567         * lib/gl_array_list.c: Likewise.
41568         * lib/gl_array_oset.c: Likewise.
41569         * lib/gl_avltree_list.c: Likewise.
41570         * lib/gl_avltree_oset.c: Likewise.
41571         * lib/gl_avltreehash_list.c: Likewise.
41572         * lib/gl_carray_list.c: Likewise.
41573         * lib/gl_linked_list.c: Likewise.
41574         * lib/gl_linkedhash_list.c: Likewise.
41575         * lib/gl_list.c: Likewise.
41576         * lib/gl_oset.c: Likewise.
41577         * lib/gl_rbtree_list.c: Likewise.
41578         * lib/gl_rbtree_oset.c: Likewise.
41579         * lib/gl_rbtreehash_list.c: Likewise.
41580         * lib/imaxabs.c: Likewise.
41581         * lib/imaxdiv.c: Likewise.
41582         * lib/javacomp.c: Likewise.
41583         * lib/javaexec.c: Likewise.
41584         * lib/javaversion.c: Likewise.
41585         * lib/linebreak.c: Likewise.
41586         * lib/localcharset.c: Likewise.
41587         * lib/lock.c: Likewise.
41588         * lib/mbchar.c: Likewise.
41589         * lib/mbswidth.c: Likewise.
41590         * lib/mkdtemp.c: Likewise.
41591         * lib/pipe.c: Likewise.
41592         * lib/printf-args.c: Likewise.
41593         * lib/printf-parse.c: Likewise.
41594         * lib/progname.c: Likewise.
41595         * lib/progreloc.c: Likewise.
41596         * lib/readlink.c: Likewise.
41597         * lib/sh-quote.c: Likewise.
41598         * lib/stpcpy.c: Likewise.
41599         * lib/stpncpy.c: Likewise.
41600         * lib/strcasecmp.c: Likewise.
41601         * lib/strcasestr.c: Likewise.
41602         * lib/strcspn.c: Likewise.
41603         * lib/striconv.c: Likewise.
41604         * lib/strncasecmp.c: Likewise.
41605         * lib/strnlen1.c: Likewise.
41606         * lib/strstr.c: Likewise.
41607         * lib/strtok_r.c: Likewise.
41608         * lib/tls.c: Likewise.
41609         * lib/tmpdir.c: Likewise.
41610         * lib/unicodeio.c: Likewise.
41611         * lib/unsetenv.c: Likewise.
41612         * lib/vasnprintf.c: Likewise.
41613         * lib/vasprintf.c: Likewise.
41614         * lib/wait-process.c: Likewise.
41615         * lib/xallocsa.c: Likewise.
41616         * lib/xsetenv.c: Likewise.
41617         * lib/xstriconv.c: Likewise.
41618
41619 2006-09-13  Simon Josefsson  <jas@extundo.com>
41620
41621         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
41622         that internally, suggested by Ralf Wildenhues
41623         <Ralf.Wildenhues@gmx.de>.
41624
41625 2006-09-13  Simon Josefsson  <jas@extundo.com>
41626
41627         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
41628         @LIBOBJS@.
41629         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41630
41631 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
41632
41633         * lib/_fpending.c: Include <config.h> unconditionally, since we no
41634         longer worry about uses that don't define HAVE_CONFIG_H.
41635         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
41636         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
41637         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
41638         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
41639         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
41640         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
41641         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
41642         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
41643         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
41644         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
41645         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
41646         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
41647         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
41648         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
41649         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
41650         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
41651         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
41652         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
41653         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
41654         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
41655         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
41656         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
41657         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
41658         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
41659         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
41660         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
41661         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
41662         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
41663         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
41664         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
41665         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
41666         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
41667         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
41668         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
41669         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
41670         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
41671         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
41672         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
41673         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
41674         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
41675         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
41676         Likewise.
41677
41678 2006-09-13  Eric Blake  <ebb9@byu.net>
41679
41680         * lib/getopt.c: Fix typo in last commit.
41681
41682 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41683
41684         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
41685         dgettext.
41686
41687 2006-09-12  Jim Meyering  <jim@meyering.net>
41688
41689         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
41690         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
41691         Reported by Nelson H. F. Beebe.
41692
41693 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
41694
41695         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
41696         program_invocation_name and program_invocation_short_name are
41697         initialized.
41698         * lib/argp-namefrob.h: Move declarations of program_invocation_name
41699         and program_invocation_short_name to argp.h, so they are visible
41700         to user programs.
41701         * lib/argp.h: Likewise
41702
41703 2006-09-10  Bruno Haible  <bruno@clisp.org>
41704
41705         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
41706         m4/inttypes_h.m4, m4/uintmax_t.m4.
41707
41708 2006-09-10  Bruno Haible  <bruno@clisp.org>
41709
41710         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
41711         gl_AC_TYPE_UINTMAX_T.
41712
41713 2006-09-10  Bruno Haible  <bruno@clisp.org>
41714
41715         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
41716
41717 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
41718
41719         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
41720         convention.  Text proposed by Bruno Haible.
41721         (struct argp_option): Document the use of N_() wrappers.
41722
41723         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
41724         '\v', and translate the two parts separately, instead of feeding
41725         the whole string to gettext.  This allows to exclude
41726         '\v' from the strings visible to the translator by writing doc
41727         strings as N_("..") "\v" N_("..").
41728
41729 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
41730
41731         * config/srclist.txt: Undo latest change; the bug was fixed.
41732
41733 2006-09-09  Bruno Haible  <bruno@clisp.org>
41734
41735         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
41736         assignments if building a library without libtool.
41737         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
41738         in func_emit_lib_Makefile_am.
41739         (func_import): When building a static library libfoo.a, arrange to
41740         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
41741         (func_create_testdir): Likewise.
41742         * modules/gc (configure.ac, Makefile.am): If building statically,
41743         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
41744         * modules/iconvme (configure.ac, Makefile.am): Likewise.
41745         * modules/striconv (configure.ac, Makefile.am): Likewise.
41746         Based on a suggestion by Ralf Wildenhues.
41747
41748 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41749
41750         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
41751         Check for unistd.h too, since Autoconf doesn't assume POSIX.
41752         Also:
41753
41754         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41755         Add year_2050_test to catch glibc bug 2821
41756         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
41757
41758         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41759         Prefer #ifdef to #if.
41760
41761         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
41762         Return from 'main' instead of calling 'exit'.
41763
41764 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41765
41766         * lib/mktime.c (guess_time_tm): Fix bug where mktime
41767         returned the maximum time_t value rather than (time_t) -1.
41768         Problem originally reported by William Bardwell
41769         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
41770
41771         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
41772         Moved to here ...
41773         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
41774         ... from here.
41775
41776 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41777
41778         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
41779         2821 is fixed.
41780
41781 2006-09-08  Jim Meyering  <jim@meyering.net>
41782
41783         Don't make generated files read-only.  That would bother too many
41784         people.  However, do retain the ability to work when targets are
41785         read-only: remove the destination and temporary files before writing
41786         them (when generated via sed or echo), or by using the -f option for
41787         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
41788         * modules/alloca-opt, modules/argz, modules/arpa_inet:
41789         * modules/byteswap, modules/configmake, modules/fcntl:
41790         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
41791         * modules/localcharset, modules/netinet_in, modules/poll:
41792         * modules/stdbool, modules/stdint, modules/sys_select:
41793         * modules/sys_socket, modules/sys_stat, modules/sysexits:
41794
41795 2006-09-08  Jim Meyering  <jim@meyering.net>
41796
41797         Avoid new build failure on FreeBSD 6.0.
41798         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
41799         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
41800         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
41801
41802 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41803
41804         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
41805
41806 2006-09-07  Jim Meyering  <jim@meyering.net>
41807
41808         Fix global typo in last change: use chmod u-w, not chmod u-x.
41809         Spotted by Paul Eggert and Bruce Korb.
41810         * modules/alloca-opt, modules/argz, modules/arpa_inet:
41811         * modules/byteswap, modules/configmake, modules/fcntl:
41812         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
41813         * modules/localcharset, modules/netinet_in, modules/poll:
41814         * modules/stdbool, modules/stdint, modules/sys_select:
41815         * modules/sys_socket, modules/sys_stat, modules/sysexits:
41816
41817 2006-09-06  Jim Meyering  <jim@meyering.net>
41818
41819         Make generated files be read-only.
41820         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
41821         Ensure that each generated file is now read-only.
41822         * modules/argz: Likewise.
41823         * modules/arpa_inet: Likewise.
41824         * modules/byteswap: Likewise.
41825         * modules/configmake: Likewise.
41826         * modules/fcntl: Likewise.
41827         * modules/fnmatch: Likewise.
41828         * modules/getopt: Likewise.
41829         * modules/glob: Likewise.
41830         * modules/inttypes: Likewise.
41831         * modules/netinet_in: Likewise.
41832         * modules/poll: Likewise.
41833         * modules/stdbool: Likewise.
41834         * modules/stdint: Likewise.
41835         * modules/sys_select: Likewise.
41836         * modules/sys_socket: Likewise.
41837         * modules/sys_stat: Likewise.
41838         * modules/sysexits: Likewise.
41839         * modules/localcharset: Same as above, but continue using temporary
41840         file named "t-$@" (why different?) rather than the "$@-t" used
41841         everywhere else.
41842
41843         * modules/sysexits (Makefile.am): Replace literal occurrences
41844         of "sysexit.h" more readable, and more consistent, "$@".
41845
41846 2006-09-06  Bruno Haible  <bruno@clisp.org>
41847
41848         * modules/striconv: New file.
41849         * modules/xstriconv: New file.
41850         * MODULES.html.sh (Internationalization functions): Add striconv,
41851         xstriconv.
41852
41853 2006-09-06  Bruno Haible  <bruno@clisp.org>
41854
41855         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
41856         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
41857         not using libtool correctly.
41858
41859 2006-09-06  Bruno Haible  <bruno@clisp.org>
41860
41861         * lib/striconv.h: New file.
41862         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
41863         iconvstring.c.
41864         * lib/xstriconv.h: New file.
41865         * lib/xstriconv.c: New file.
41866
41867 2006-09-06  Bruno Haible  <bruno@clisp.org>
41868
41869         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41870         lib_..._LDFLAGS.
41871
41872 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41873
41874         * lib/argz_.h: Sync from Libtool.
41875
41876         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
41877                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41878
41879         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
41880
41881 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
41882
41883         * modules/trim: New file.
41884
41885 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
41886
41887         * lib/trim.h: New file.
41888         * lib/trim.c: New file.
41889
41890 2006-09-05  Bruno Haible  <bruno@clisp.org>
41891
41892         * MODULES.html.sh (String handling): Add trim.
41893
41894 2006-09-04  Karl Berry  <karl@gnu.org>
41895
41896         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
41897         until next release.
41898
41899 2006-09-03  Bruno Haible  <bruno@clisp.org>
41900
41901         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
41902         correctly.
41903
41904 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41905
41906         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
41907         not gl_GETLOADAVG.  Omit unneeded semicolons.
41908         Problems reported by Ralf Wildenhues in
41909         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
41910         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
41911         at the end, which is the usual gnulib style.
41912
41913         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
41914         of doing all the work ourselves.
41915         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
41916         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
41917
41918 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41919
41920         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
41921         Problem reported by Ralf Wildenhues in
41922         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
41923
41924         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
41925         HAVE_STRUCT_STATFS_F_FSTYPENAME.
41926
41927 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41928
41929         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
41930         yesterday's patch by changing test -n to test -z.
41931
41932 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41933
41934         * modules/getloadavg (Files): Add m4/getloadavg.m4.
41935         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
41936         the former is now obsolescent.
41937
41938         * modules/chdir-long (Depends-on): Add fcntl.
41939
41940 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41941
41942         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
41943         obsolescent, and programs should use gnulib instead.
41944         * m4/getloadavg.m4: New file, with contents taken from Autoconf
41945         but with prefixes changed.
41946
41947 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41948
41949         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
41950         or stdbool.h, because they might not exist while configuring.
41951
41952         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
41953         Don't include unistd.h or limits.h; not needed, since chdir-long.h
41954         does that for us.
41955         (O_DIRECTORY): Remove.
41956
41957 2006-08-31  Eric Blake  <ebb9@byu.net>
41958
41959         * gnulib-tool: Don't let emacs change spaces to TAB.
41960
41961 2006-08-31  Bruno Haible  <bruno@clisp.org>
41962
41963         * gnulib-tool: When calling func_import more than once, do it in a
41964         subshell.
41965         Reported by Eric Blake <ebb9@byu.net>.
41966
41967 2006-08-31  Bruno Haible  <bruno@clisp.org>
41968
41969         * gnulib-tool (nl): Remove variable.
41970         (sed_transform_lib_file): Use more robust test for config-h module.
41971         (func_import): Fix typo in 2006-08-25 patch.
41972
41973 2006-08-31  Bruno Haible  <bruno@clisp.org>
41974
41975         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
41976         specified, augment Makefile.am variables instead of assigning them.
41977
41978 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41979
41980         Work around a bug in both the Linux and SunOS 64-bit kernels:
41981         nanosleep mishandles sleeps for longer than 2**31 seconds.
41982         Problem reported by Frank v Waveren in
41983         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
41984         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
41985         Check for nanosleep bug.
41986         (LIB_NANOSLEEP): Append clock_gettime library if needed.
41987
41988 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41989
41990         Work around a bug in both the Linux and SunOS 64-bit kernels:
41991         nanosleep mishandles sleeps for longer than 2**31 seconds.
41992         Problem reported by Frank v Waveren in
41993         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
41994         * lib/nanosleep.c (BILLION): New constant.
41995         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
41996         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
41997         implementation.
41998
41999 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42000
42001         * modules/nanosleep (Depends-on): Add gettime.
42002
42003 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42004         and Simon Josefsson  <jas@extundo.com>
42005         and Oskar Liljeblad  <oskar@osk.mine.nu>
42006
42007         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
42008         * gnulib-tool (func_import): New license type 'unmodifiable license
42009         text'.
42010         * modules/fdl: Use it.  Longer description.
42011         * module/gpl, module/lgpl: New files.
42012
42013 2006-08-30  Jim Meyering  <jim@meyering.net>
42014
42015         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
42016         shadowing the parameter.
42017
42018 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42019
42020         Sync from Libtool:
42021
42022         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42023
42024         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
42025         sharing with gnulib.  Report by Eric Blake.
42026
42027 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42028
42029         * modules/isapipe: New file.
42030         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
42031
42032 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42033
42034         * modules/configmake (Makefile.am): Add a comment, and omit
42035         the CONFIGMAKE_ prefix from generated macro names.  Suggested
42036         by Bruno Haible.
42037
42038 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42039
42040         * m4/isapipe.m4: New file.
42041
42042 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42043
42044         * lib/isapipe.c, lib/isapipe.h: New files.
42045
42046 2006-08-29  Jim Meyering  <jim@meyering.net>
42047
42048         * modules/configmake (Makefile.am): Make configmake.h depend on
42049         Makefile.  Otherwise, a stale configmake.h could hang around.
42050
42051 2006-08-29  Eric Blake  <ebb9@byu.net>
42052
42053         * lib/error.c (error_at_line, print_errno_message): Match libc, after
42054         resolution of upstream bug 3044.
42055
42056 2006-08-29  Bruno Haible  <bruno@clisp.org>
42057
42058         * modules/localcharset (Depends-on): Add configmake.
42059         (Makefile.am): Remove setting of LIBDIR through DEFS.
42060
42061 2006-08-29  Bruno Haible  <bruno@clisp.org>
42062
42063         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
42064         defined.
42065
42066 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42067
42068         * modules/fcntl: New file.
42069         * modules/chdir-safer (Depends-on): Add fcntl.
42070         * modules/fts: Likewise.
42071         * modules/mkdir-p: Likewise.
42072
42073         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
42074         This undoes the most recent change, since we're now addressing the
42075         problem in a different way.
42076
42077         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
42078         into output, since the output might be called Makefile.am even
42079         if $makefile_name is something different.
42080         (func_import): Use $makefile_am rather than
42081         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
42082         empty.
42083
42084         * modules/inttypes (Files): Add m4/inttypes-h.m4.
42085
42086 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42087
42088         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
42089         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
42090         recent change to stdint.m4, since we're now addressing the problem in a
42091         different way.
42092
42093 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42094
42095         * m4/fcntl_h.m4: New file.
42096
42097 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42098
42099         * lib/fcntl_.h: New file.
42100         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
42101         the fcntl module.
42102         * lib/dirchownmod.c: Likewise.
42103         * lib/fts.c: Likewise.
42104
42105         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
42106         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
42107         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
42108         just before including <inttypes.h>, to avoid circular inclusion.
42109
42110 2006-08-28  Jim Meyering  <jim@meyering.net>
42111
42112         * doc/visibility.texi: Actually read and correct the grammar of the
42113         sentence affected by yesterday's change.
42114
42115 2006-08-28  Eric Blake  <ebb9@byu.net>
42116
42117         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
42118         needs wrapper.
42119
42120 2006-08-28  Eric Blake  <ebb9@byu.net>
42121
42122         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
42123
42124 2006-08-28  Eric Blake  <ebb9@byu.net>
42125
42126         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
42127
42128 2006-08-28  Bruno Haible  <bruno@clisp.org>
42129
42130         * modules/c-strstr: New file, from GNU gettext.
42131         * MODULES.html.sh (String handling): Add c-strstr.
42132
42133 2006-08-28  Bruno Haible  <bruno@clisp.org>
42134
42135         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
42136         macros.
42137         Reported by Eric Blake.
42138
42139 2006-08-28  Bruno Haible  <bruno@clisp.org>
42140
42141         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
42142         (VASNPRINTF): Return a string of length > INT_MAX without failing.
42143         * lib/vasprintf.c: Include errno.h, limits.h.
42144         (EOVERFLOW): New fallback definition.
42145         (vasprintf): Test here whether the string length is > INT_MAX.
42146         * lib/vsnprintf.c: Include errno.h, limits.h.
42147         (EOVERFLOW): New fallback definition.
42148         (vsnprintf): Fix bug when generated string was too long for the buffer.
42149         Test here whether the string length is > INT_MAX.
42150
42151 2006-08-28  Bruno Haible  <bruno@clisp.org>
42152
42153         * lib/inttypes_.h (SCNX*): Remove definitions.
42154         Reported by Eric Blake.
42155
42156 2006-08-28  Bruno Haible  <bruno@clisp.org>
42157
42158         * lib/c-strstr.h: New file, from GNU gettext.
42159         * lib/c-strstr.c: New file, from GNU gettext.
42160
42161 2006-08-28  Bruno Haible  <bruno@clisp.org>
42162
42163         * gnulib-tool: Reorder some statements.
42164
42165 2006-08-28  Bruno Haible  <bruno@clisp.org>
42166
42167         * gnulib-tool: New option --makefile-name.
42168         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
42169         $makefile_name.
42170         (func_import): Write $makefile_name to the cache file, and read it from
42171         there unless explicitly specified. Use $makefile_name as file name
42172         instead of Makefile.am. Adjust the recommendations accordingly.
42173
42174 2006-08-28  Bruno Haible  <bruno@clisp.org>
42175
42176         * gnulib-tool (func_verify_module): Check against misapplying patch.
42177
42178 2006-08-28  Bruno Haible  <bruno@clisp.org>
42179
42180         * gnulib-tool (func_relativize, func_relconcat): New functions.
42181         Give an error if --local-dir is given with --update.
42182         Remove trailing slashes from $local_gnulib_dir.
42183         (func_import): Store the relativized $local_gnulib_dir in
42184         gnulib-cache.m4, and read it from there if not specified explicitly.
42185
42186 2006-08-28  Bruno Haible  <bruno@clisp.org>
42187
42188         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
42189         is the current directory. Respect also $local_gnulib_dir.
42190
42191 2006-08-28  Bruno Haible  <bruno@clisp.org>
42192             Simon Josefsson  <jas@extundo.com>
42193
42194         BeOS portability.
42195         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
42196
42197 2006-08-27  Jim Meyering  <jim@meyering.net>
42198
42199         * doc/visibility.texi: Remove duplicate word: "pointer".
42200
42201 2006-08-26  Bruno Haible  <bruno@clisp.org>
42202
42203         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
42204         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
42205         (Makefile.am): Create inttypes.h from inttypes_.h.
42206         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
42207
42208         * modules/imaxabs: New file.
42209
42210         * modules/imaxdiv: New file.
42211
42212 2006-08-26  Bruno Haible  <bruno@clisp.org>
42213
42214         * m4/inttypes.m4: New file.
42215         * m4/_inttypes_h.m4: Remove file.
42216         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
42217         PRI_MACROS_BROKEN.
42218         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
42219
42220         * m4/imaxabs.m4: New file.
42221
42222         * m4/imaxdiv.m4: New file.
42223
42224 2006-08-26  Bruno Haible  <bruno@clisp.org>
42225
42226         * lib/inttypes_.h: New file.
42227         * lib/inttypes.h: Remove file.
42228         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
42229
42230         * lib/imaxabs.c: New file.
42231
42232         * lib/imaxdiv.c: New file.
42233
42234 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
42235
42236         New config-h module, so that "make" output needn't be cluttered
42237         by -DHAVE_CONFIG_H.
42238         * MODULES.html.sh (Support for building libraries and executables):
42239         Add config-h.
42240         * modules/config-h: New file.
42241         * gnulib-tool (nl, sed_transform_lib_file): New vars.
42242         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
42243         the config-h module is used.
42244
42245         New configmake module, so that "make" output needn't be cluttered
42246         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
42247         * MODULES.html.sh (Support for building libraries and executables):
42248         Add configmake.
42249         * modules/configmake: New file.
42250
42251 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
42252
42253         * m4/config-h.m4: New file.
42254
42255 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
42256
42257         * config/srclist.txt: Add elisp-comp.
42258
42259 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
42260
42261         * MODULES.html.sh (Support for building libraries and executables):
42262         Add elisp-comp.
42263         * build-aux/elisp-comp: New file.
42264         * modules/elisp-comp: New file.
42265
42266 2006-08-24  Bruno Haible  <bruno@clisp.org>
42267
42268         * gnulib-tool (func_create_testdir): Use non-default values of
42269         sourcebase and m4base.
42270
42271 2006-08-24  Bruno Haible  <bruno@clisp.org>
42272
42273         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
42274         HTML structure.
42275
42276 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
42277
42278         * modules/openat (Depends-on): Add lchown.
42279
42280 2006-08-23  Bruno Haible  <bruno@clisp.org>
42281
42282         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
42283         of gl_LOCK_EARLY instead of gl_LOCK.
42284
42285 2006-08-23  Bruno Haible  <bruno@clisp.org>
42286
42287         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
42288         on OSF/1 to no.
42289         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
42290
42291 2006-08-23  Bruno Haible  <bruno@clisp.org>
42292
42293         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
42294         as unusable.
42295
42296         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
42297         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
42298         (gl_LOCK): New macro.
42299
42300 2006-08-22  Simon Josefsson  <jas@extundo.com>
42301
42302         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
42303         to md5 module.
42304
42305 2006-08-22  Simon Josefsson  <jas@extundo.com>
42306
42307         * MODULES.html.sh: Add "Support for maintaining and release
42308         projects".
42309
42310         * build-aux/gnupload: New file, from coreutils.
42311
42312 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
42313
42314         Avoid the need for AC_LIBSOURCES in m4 macros.
42315         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
42316         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
42317         * modules/check-version (EXTRA_DIST): Add check-version.h.
42318         * modules/crc (EXTRA_DIST): Add crc.h.
42319         * modules/des (EXTRA_DIST): Add des.h.
42320         * modules/gc (EXTRA_DIST): Add gc.h.
42321         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
42322         * modules/getline (EXTRA_DIST): Add getline.h.
42323         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
42324         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
42325         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
42326         * modules/md2 (EXTRA_DIST): Add md2.h.
42327         * modules/md4 (EXTRA_DIST): Add md4.h.
42328         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
42329         * modules/read-file (EXTRA_DIST): Add read-file.h.
42330         * modules/readline (EXTRA_DIST): Add readline.h.
42331         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
42332         rijndael-api-fst.h.
42333
42334 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
42335
42336         * m4/rijndael.m4 (gl_ARCFOUR):
42337         * m4/arctwo.m4 (gl_ARCTWO):
42338         * m4/check-version.m4 (gl_CHECK_VERSION):
42339         * m4/crc.m4 (gl_CRC):
42340         * m4/des.m4 (gl_DES):
42341         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
42342         * m4/gc.m4 (gl_GC):
42343         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
42344         * m4/getline.m4 (gl_FUNC_GETLINE):
42345         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
42346         * m4/hmac-md5.m4 (gl_HMAC_MD5):
42347         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
42348         * m4/md2.m4 (gl_MD2):
42349         * m4/md4.m4 (gl_MD4):
42350         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
42351         * m4/read-file.m4 (gl_FUNC_READ_FILE):
42352         * m4/readline.m4 (gl_FUNC_READLINE):
42353         * m4/rijndael.m4 (gl_RIJNDAEL):
42354         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
42355         to get the necessary .h files and whatnot.
42356
42357 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
42358
42359         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
42360         gnulib rather than the other way around.
42361         * config/srclistvars.sh (COREUTILS): Remove.
42362
42363 2006-08-22  Jim Meyering  <jim@meyering.net>
42364
42365         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
42366
42367         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
42368
42369 2006-08-22  Eric Blake  <ebb9@byu.net>
42370
42371         * modules/regexprops-generic: New file.
42372         * MODULES.html.sh (Support for building documentation): List it.
42373
42374 2006-08-22  Eric Blake  <ebb9@byu.net>
42375
42376         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
42377         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42378         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
42379         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
42380
42381 2006-08-22  Bruno Haible  <bruno@clisp.org>
42382
42383         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
42384         and lib_LTLIBRARIES like the other lib_* variables.
42385
42386 2006-08-22  Bruno Haible  <bruno@clisp.org>
42387
42388         * build-aux/x-to-1.in: New file, from GNU gettext.
42389
42390 2006-08-22  Bruno Haible  <bruno@clisp.org>
42391
42392         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
42393         <utmpx.h> exists.
42394
42395 2006-08-22  Bruno Haible  <bruno@clisp.org>
42396
42397         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
42398         <utmpx.h> exists.
42399
42400 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
42401
42402         BeOS portability.
42403         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
42404         exist.
42405         Problem reported by Bruno Haible.
42406
42407 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
42408
42409         Avoid the need for AC_LIBSOURCES in m4 macros.
42410         * modules/acl (EXTRA_DIST): Add acl.h.
42411         * modules/argmatch (Files): Add m4/argmatch.m4.
42412         (configure.ac): Add gl_ARGMATCH.
42413         (EXTRA_DIST): Renamed from lib_SOURCES, for
42414         consistency with the other modules.  Remove argmatch.c.
42415         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
42416         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
42417         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
42418         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
42419         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
42420         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
42421         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
42422         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
42423         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
42424         * modules/closeout (EXTRA_DIST): Add closeout.h.
42425         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
42426         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
42427         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
42428         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
42429         dirname.h; remove basename.c and stripslash.c.
42430         * modules/exclude (EXTRA_DIST): Add exclude.h.
42431         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
42432         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
42433         * modules/file-type (EXTRA_DIST): Add file-type.h.
42434         * modules/filemode (EXTRA_DIST): Add filemode.h.
42435         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
42436         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
42437         * modules/fpending (EXTRA_DIST): Add __fpending.h.
42438         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
42439         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
42440         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
42441         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
42442         * modules/getdate (EXTRA_DIST): Add getdate.c.
42443         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
42444         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
42445         * modules/getpass (EXTRA_DIST): Add getpass.h.
42446         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
42447         * modules/group-member (EXTRA_DIST): Add group-member.h.
42448         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
42449         * modules/hash (EXTRA_DIST): Add hash.h.
42450         * modules/human (EXTRA_DIST): Add human.h.
42451         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
42452         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
42453         * modules/lchown (EXTRA_DIST): Add lchown.h.
42454         * modules/long-options (EXTRA_DIST): Add long-options.h.
42455         * modules/lstat (EXTRA_DIST): Add lstat.h.
42456         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
42457         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
42458         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
42459         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
42460         * modules/memxor (EXTRA_DIST): Add memxor.h.
42461         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
42462         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
42463         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
42464         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
42465         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
42466         * modules/physmem (EXTRA_DIST): Add physmem.h.
42467         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
42468         * modules/posixver (EXTRA_DIST): Add posixver.h.
42469         * modules/quote (EXTRA_DIST): Add quote.h.
42470         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
42471         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
42472         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
42473         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
42474         regex_internal.h regexec.c.
42475         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
42476         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
42477         * modules/same (EXTRA_DIST): Add same.h.
42478         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
42479         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
42480         * modules/savedir (EXTRA_DIST): Add savedir.h.
42481         * modules/sha1 (EXTRA_DIST): Add sha1.h.
42482         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
42483         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
42484         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
42485         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
42486         * modules/strdup (EXTRA_DIST): Add strdup.h.
42487         * modules/strftime (EXTRA_DIST): Add strftime.h.
42488         * modules/strndup (EXTRA_DIST): Add strndup.h.
42489         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
42490         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
42491         * modules/time_r (EXTRA_DIST): Add time_r.h.
42492         * modules/timespec (EXTRA_DIST): Add timespec.h.
42493         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
42494         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
42495         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
42496         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
42497         * modules/userspec (EXTRA_DIST): Add userspec.h.
42498         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
42499         * modules/utimens (EXTRA_DIST): Add utimens.h.
42500         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
42501         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
42502         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
42503         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
42504         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
42505         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
42506         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
42507         * modules/yesno (EXTRA_DIST): Add yesno.h.
42508
42509 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
42510
42511         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
42512
42513         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
42514         * m4/dev-ino.m4, same-inode.m4: Remove.
42515
42516         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
42517         * m4/acl.m4 (AC_FUNC_ACL):
42518         * m4/backupfile.m4 (gl_BACKUPFILE):
42519         * m4/c-strtod.m4 (gl_C99_STRTOLD):
42520         * m4/canon-host.m4 (gl_CANON_HOST):
42521         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
42522         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
42523         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
42524         * m4/cloexec.m4 (gl_CLOEXEC):
42525         * m4/close-stream.m4 (gl_CLOSE_STREAM):
42526         * m4/closeout.m4 (gl_CLOSEOUT):
42527         * m4/dirfd.m4 (gl_FUNC_DIRFD):
42528         * m4/dirname.m4 (gl_DIRNAME):
42529         * m4/exclude.m4 (gl_EXCLUDE):
42530         * m4/exitfail.m4 (gl_EXITFAIL):
42531         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
42532         * m4/file-type.m4 (gl_FILE_TYPE):
42533         * m4/filemode.m4 (gl_FILEMODE):
42534         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
42535         * m4/fpending.m4 (gl_FUNC_FPENDING):
42536         * m4/fprintftime.m4 (gl_FPRINTFTIME):
42537         * m4/fts.m4 (gl_FUNC_FTS):
42538         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
42539         * m4/getdate.m4 (gl_GETDATE):
42540         * m4/gethrxtime.m4 (gl_GETHRXTIME):
42541         * m4/getpagesize.m4 (gl_GETPAGESIZE):
42542         * m4/getpass.m4 (gl_FUNC_GETPASS):
42543         * m4/gettime.m4 (gl_GETTIME):
42544         * m4/getugroups.m4 (gl_GETUGROUPS):
42545         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
42546         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
42547         * m4/hard-locale.m4 (gl_HARD_LOCALE):
42548         * m4/hash.m4 (gl_HASH):
42549         * m4/idcache.m4 (gl_IDCACHE):
42550         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
42551         * m4/lchown.m4 (gl_FUNC_LCHOWN):
42552         * m4/long-options.m4 (gl_LONG_OPTIONS):
42553         * m4/lstat.m4 (gl_FUNC_LSTAT):
42554         * m4/md5.m4 (gl_MD5):
42555         * m4/memcasecmp.m4 (gl_MEMCASECMP):
42556         * m4/memcoll.m4 (gl_MEMCOLL):
42557         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
42558         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
42559         * m4/memxor.m4 (gl_MEMXOR):
42560         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
42561         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
42562         * m4/modechange.m4 (gl_MODECHANGE):
42563         * m4/mountlist.m4 (gl_MOUNTLIST):
42564         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42565         * m4/openat.m4 (gl_FUNC_OPENAT):
42566         * m4/pathmax.m4 (gl_PATHMAX):
42567         * m4/physmem.m4 (gl_PHYSMEM):
42568         * m4/posixtm.m4 (gl_POSIXTM):
42569         * m4/posixver.m4 (gl_POSIXVER):
42570         * m4/quote.m4 (gl_QUOTE):
42571         * m4/quotearg.m4 (gl_QUOTEARG):
42572         * m4/readtokens.m4 (gl_READTOKENS):
42573         * m4/readutmp.m4 (gl_READUTMP):
42574         * m4/regex.m4 (gl_REGEX):
42575         * m4/safe-read.m4 (gl_SAFE_READ):
42576         * m4/safe-write.m4 (gl_SAFE_WRITE):
42577         * m4/same.m4 (gl_SAME):
42578         * m4/save-cwd.m4 (gl_SAVE_CWD):
42579         * m4/savedir.m4 (gl_SAVEDIR):
42580         * m4/settime.m4 (gl_SETTIME):
42581         * m4/sha1.m4 (gl_SHA1):
42582         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
42583         * m4/stat-macros.m4 (gl_STAT_MACROS):
42584         * m4/stat-time.m4 (gl_STAT_TIME):
42585         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
42586         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
42587         * m4/strdup.m4 (gl_FUNC_STRDUP):
42588         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
42589         * m4/strndup.m4 (gl_FUNC_STRNDUP):
42590         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
42591         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
42592         * m4/time_r.m4 (gl_TIME_R):
42593         * m4/timespec.m4 (gl_TIMESPEC):
42594         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
42595         * m4/unlinkdir.m4 (gl_UNLINKDIR):
42596         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
42597         * m4/userspec.m4 (gl_USERSPEC):
42598         * m4/utimecmp.m4 (gl_UTIMECMP):
42599         * m4/utimens.m4 (gl_UTIMENS):
42600         * m4/xalloc.m4 (gl_XALLOC):
42601         * m4/xgetcwd.m4 (gl_XGETCWD):
42602         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
42603         * m4/xreadlink.m4 (gl_XREADLINK):
42604         * m4/xstrtod.m4 (gl_XSTRTOD):
42605         * m4/yesno.m4 (gl_YESNO):
42606         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
42607         to get the necessary .h files and whatnot.
42608
42609 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
42610             Bruno Haible  <bruno@clisp.org>
42611
42612         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
42613         /bin/sh understanding of '!' conditional negation.
42614
42615 2006-08-21  Jim Meyering  <jim@meyering.net>
42616
42617         * modules/openat (Depends-on): Really alphabetize.
42618
42619         * modules/acl (Depends-on): Add error and quote.
42620
42621         * check-module (find_included_lib_files): Add at-func.c to the
42622         ok-to-include-more-than-once white list.
42623
42624         * modules/openat (Depends-on): Add lstat.  Alphabetize.
42625
42626 2006-08-21  Bruno Haible  <bruno@clisp.org>
42627
42628         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42629         Emit a pkgdata_DATA variable only if some snippets add contents to it.
42630         Reported by Martin Lambers <marlam@marlam.de>.
42631
42632 2006-08-21  Bruno Haible  <bruno@clisp.org>
42633
42634         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
42635         specify an installation location, don't emit a noinst_LIBRARIES or
42636         noinst_LTLIBRARIES assignment.
42637
42638 2006-08-21  Bruno Haible  <bruno@clisp.org>
42639
42640         BeOS portability.
42641         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
42642         BeOS has mbrtowc() but no <wctype.h>.
42643
42644 2006-08-21  Bruno Haible  <bruno@clisp.org>
42645
42646         BeOS portability.
42647         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
42648         exist.
42649
42650 2006-08-21  Bruno Haible  <bruno@clisp.org>
42651
42652         BeOS portability.
42653         * lib/mbchar.h: Include <wctype.h> only if it exists.
42654
42655 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
42656
42657         Remove files that are no longer needed by their respective modules.
42658         * m4/obstack.m4: Remove.
42659         * m4/strerror_r.m4: Remove.
42660         * m4/uint32_t.m4: Remove.
42661         * m4/uintptr_t.m4: Remove.
42662         * m4/ullong_max.m4: Remove.
42663         * m4/xstrtoimax.m4: Remove.
42664         * m4/xstrtoumax.m4: Remove.
42665
42666         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
42667         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
42668         dependencies now capture this.
42669
42670         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
42671         Do not use AC_LIBSOURCES, since gnulib modules now do this.
42672         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
42673         * m4/human.m4 (gl_HUMAN): Likewise.
42674         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
42675         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
42676
42677         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
42678
42679         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
42680         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
42681         stdint.
42682         * m4/human.m4 (gl_HUMAN): Likewise.
42683         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
42684         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
42685         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
42686         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
42687         * m4/xstrtol (gl_XSTRTOL): Likewise.
42688
42689         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
42690         AC_TYPE_LONG_LONG_INT.
42691         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
42692         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
42693         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
42694         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
42695
42696         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
42697         on stdbool.
42698
42699         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
42700         (gl_PREREQ_XSTRTOUL): Remove.
42701
42702         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
42703
42704         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
42705         mode.
42706
42707 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
42708
42709         Add and change modules to make it easier for coreutils to use
42710         gnulib-tool.
42711         * modules/backupfile (Files): Remove m4/d-ino.m4.
42712         (Depends-on): Add d-ino.
42713         * modules/cycle-check (Depends-on): Add stdint.
42714         (lib_SOURCES): Add cycle-check.h.
42715         * modules/d-ino: New module.
42716         * modules/d-type: New module.
42717         * modules/error (Files): Remove m4/strerror_r.m4.
42718         * modules/filemode (Files): Add m4/st_dm_mode.m4.
42719         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
42720         m4/inttypes_h.m4, m4/uintmax_t.m4.
42721         (Depends-on): Add stdint.
42722         (lib_SOURCES): Add fsusage.h.
42723         * modules/getcwd (Files): Remove d-ino.m4.
42724         (Depends-on): Add d-ino.
42725         * modules/getndelim2 (Depends-on): Add stdint.
42726         * modules/glob (Files): Remove m4/d-type.m4.
42727         (Depends-on): Add d-type.
42728         * modules/host-os: New module.
42729         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
42730         m4/inttypes_h.m4, m4/uintmax_t.m4.
42731         * Depends-on: Add stdint.
42732         (lib_SOURCES): Add human.h.
42733         * modules/inttostr (Files): Remove m4/intmax_t.m4,
42734         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
42735         m4/uintmax_t.m4, m4/ulonglong.m4.
42736         (Depends-on): Add stdint.
42737         (EXTRA_DIST): Add inttostr.h.
42738         * modules/lchmod: New module.
42739         * modules/link-follow: New module.
42740         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
42741         (Depends-on): Add lchmod.
42742         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
42743         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
42744         (Depends-on): Add stdint.
42745         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
42746         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
42747         (Depends-on): Add stdint.
42748         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
42749         * modules/perl: New module.
42750         * modules/regex (Depends-on): Add stdint.
42751         * modules/rmdir-errno: New module.
42752         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
42753         m4/intmax_t.m4.
42754         (Depends-on): Add stdint.
42755         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
42756         m4/uintmax_t.m4.
42757         (Depends-on): Add stdint.
42758         * modules/unlink-busy: New module.
42759         * modules/utimecmp (Depends-on): Add stdint.
42760         * modules/uptime: New module.
42761         * modules/winsz-ioctl: New module.
42762         * modules/winsz-termios: New module.
42763         * modules/xnanosleep (Depends-on): Add nanosleep.
42764         * modules/ullong_max: Remove.
42765         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
42766         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
42767         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
42768         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
42769         (Depends-on): Add inttypes.
42770         (lib_SOURCES): Add xstrtol.h.
42771         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
42772         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
42773         * MODULES.html.sh: Move 'assert' into the assert section.
42774         Move 'dummy' into the linking section.
42775         Remove ullong_max.
42776         Add section for compatibility checks for POSIX:2001 functions,
42777         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
42778         winsz-ioctl, and winsz-termios into it.
42779         Add lchmod.
42780         Add top-level Misc section and put host-os, perl, and uptime
42781         into it.
42782
42783 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
42784
42785         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
42786         now assume the stdint module.  Do not include inttypes.h.
42787         * lib/fsusage.h: Likewise.
42788         * lib/getndelim2.c: Likewise.
42789         * lib/human.h: Likewise.
42790         * lib/inttostr.h: Likewise.
42791         * lib/obstack.c: Likewise.
42792         * lib/regex_internal.h: Likewise.
42793         * lib/tempname.c: Likewise.
42794         * lib/utimecmp.c: Likewise.
42795         * lib/xstrtol.h: Likewise.
42796
42797         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
42798
42799         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
42800         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
42801         * lib/xtime.h: Likewise.
42802
42803 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42804
42805         * modules/openat (Files): Add lib/fchmodat.c.
42806         Fixes problem reported by Jay Youngman.
42807
42808 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42809
42810         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
42811         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
42812
42813 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
42814             Bruno Haible  <bruno@clisp.org>
42815
42816         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
42817         and is a script that invokes bison. Tighten the code. Add comments.
42818
42819 2006-08-18  Jim Meyering  <jim@meyering.net>
42820
42821         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
42822         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
42823         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
42824         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
42825
42826 2006-08-18  Bruno Haible  <bruno@clisp.org>
42827
42828         * modules/bison-i18n: New file.
42829         * MODULES.html.sh (Internationalization functions): Add it.
42830
42831 2006-08-18  Bruno Haible  <bruno@clisp.org>
42832
42833         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
42834         sys/statvfs.h. When getmntinfo was found, check its declaration and
42835         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
42836
42837 2006-08-18  Bruno Haible  <bruno@clisp.org>
42838
42839         * m4/bison-i18n.m4: New file, from bison.
42840
42841 2006-08-18  Bruno Haible  <bruno@clisp.org>
42842
42843         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
42844         (ME_DUMMY): Treat "kernfs" as a dummy.
42845         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
42846
42847 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
42848
42849         Update from coreutils.
42850
42851         2006-08-15  Jim Meyering  <jim@meyering.net>
42852
42853         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
42854
42855         2006-01-17  Jim Meyering  <jim@meyering.net>
42856
42857         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
42858
42859         2006-01-11  Jim Meyering  <jim@meyering.net>
42860
42861         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
42862         Check for the lchmod function.
42863
42864 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
42865
42866         Update from coreutils.
42867
42868         * lib/__fpending.h: Add copyright notice.
42869         * lib/fprintftime.h: Likewise.
42870         * lib/savedir.c: Use (C) in copyright notice.
42871         * lib/savedir.h: Likewise.
42872
42873         2006-08-15  Jim Meyering  <jim@meyering.net>
42874
42875         * lib/at-func.c: New file, with the logic of all emulated at-functions.
42876         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
42877         in support of the EXPECTED_ERRNO macro.
42878         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
42879         definitions.  Instead, define the appropriate symbols and include
42880         "at-func.c".
42881         * lib/mkdirat.c (mkdirat): Likewise.
42882         * lib/fchmodat.c (fchmodat): Likewise.
42883         (ENOSYS): Remove definition.
42884         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
42885         it.  Don't include "unistd--.h" -- it wasn't ever used.
42886
42887         2006-01-17  Jim Meyering  <jim@meyering.net>
42888
42889         Rewrite fts.c not to change the current working directory,
42890         by using openat, fstatat, fdopendir, etc..
42891
42892         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
42893         (HAVE_OPENAT_SUPPORT): Define.
42894         [_LIBC] (fchdir): Don't undef or define; no longer used.
42895         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
42896         Now, this `function' always succeeds, and consumes its file descriptor
42897         parameter -- so callers must not close such FDs.  Update callers.
42898         (diropen_fd, opendirat, cwd_advance_fd): New functions.
42899         (diropen): Add parameter, SP.  Adjust all callers.
42900         Implement using diropen_fd, rather than open.
42901         (fts_open): Initialize new member, fts_cwd_fd.
42902         Remove fts_rft-setting code.
42903         (fts_close): Close fts_cwd_fd, if necessary.
42904         (__opendir2): Define in terms of opendir or opendirat,
42905         depending on whether the FST_NOCHDIR flag is set.
42906         (fts_build): Since fts_safe_changedir consumes its FD, and since
42907         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
42908         and close the dup'd file descriptor upon failure.
42909         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
42910         (fts_safe_changedir): Tweak semantics to reflect that this function
42911         now calls cwd_advance_fd and hence consumes its FD argument.
42912         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
42913         [struct FTS] (fts_rft): Remove now-unused member.
42914         [struct FTS] (fts_cycle.state): Improve comment.
42915
42916         * lib/openat.c (openat_needs_fchdir): New function.
42917         * lib/openat.h (openat_needs_fchdir): Declare it.
42918
42919 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
42920
42921         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
42922         Problem and fix reported by Pádraig Brady in
42923         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
42924
42925 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42926
42927         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
42928
42929 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42930
42931         * lib/memcoll.c (memcoll): Optimize for the common case where the
42932         arguments are bytewise equal.
42933
42934 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42935
42936         * doc/regexprops-generic.texi: Add a copyright notice.
42937
42938 2006-08-15  Bruno Haible  <bruno@clisp.org>
42939
42940         * modules/tmpdir (License): Change to LGPL.
42941
42942 2006-08-15  Bruno Haible  <bruno@clisp.org>
42943
42944         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
42945         module.
42946
42947 2006-08-14  Simon Josefsson  <jas@extundo.com>
42948
42949         * config/srclist.txt: Add gnupload.
42950
42951 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42952
42953         Change copyright notice from LGPL 2 to GPL 2, since that's the
42954         standard form used in the gnulib repository.
42955         * tests/test-lock.c: Likewise.
42956         * tests/test-stdint.c: Likewise.
42957         * tests/test-tls.c: Likewise.
42958
42959         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
42960         prelude-manager.  User shorter URLs for GNU projects, without '?'.
42961         Add copyright notice.
42962
42963         * check-module: Add copyright notice.  Output a copyright
42964         notice if "--version" is specified.
42965         * modules/COPYING: New file.
42966         * tests/test-getaddrinfo.c: Add copyright notice.
42967         * tests/test-verify.c: Likewise.
42968
42969 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42970
42971         Change copyright notice from LGPL 2 to GPL 2, since that's the
42972         standard form used in the gnulib repository.
42973         * lib/lock.c: LGPL -> GPL.
42974         * lib/lock.h: Likewise.
42975         * lib/strnlen1.c: Likewise.
42976         * lib/strnlen1.h: Likewise.
42977         * lib/tls.c: Likewise.
42978         * lib/tls.h: Likewise.
42979         * lib/tmpdir.c: Likewise.
42980
42981         * lib/TODO: Remove; this belongs only in coreutils.
42982
42983 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42984
42985         Add copyright notices to long-enough files that lack them, since
42986         otherwise the files aren't clearly free.  Use the same notice that
42987         getdate.texi already uses.
42988         * doc/alloca-opt.texi: Add copyright notice.
42989         * doc/alloca.texi: Likewise.
42990         * doc/ctime.texi: Likewise.
42991         * doc/functions.texi: Likewise.
42992         * doc/gcd.texi: Likewise.
42993         * doc/gnulib-tool.texi: Likewise.
42994         * doc/inet_ntoa.texi: Likewise.
42995         * doc/visibility.texi: Likewise.
42996
42997         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
42998         * doc/quote.texi: Add copyright notice.
42999
43000         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
43001         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
43002         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
43003         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
43004         is now obsolete, and give a pointer to the Sun list.
43005         Add copyright notice.
43006
43007 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43008
43009         * config/srclistvars.sh: Add copyright notice.
43010
43011 2006-08-14  Eric Blake  <ebb9@byu.net>
43012
43013         Import the following change from libc:
43014
43015         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
43016
43017         Upstream bug 2997.
43018         * lib/misc/error.c: Add space between program name and message if file
43019         name is missing.
43020
43021 2006-08-12  Karl Berry  <karl@gnu.org>
43022
43023         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
43024         remove, these originate in gnulib now.
43025
43026 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43027
43028         * doc/Makefile (standards.info standards.html standards.dvi):
43029         Also depend on make-stds.texi.
43030
43031 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
43032
43033         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
43034         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
43035
43036         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
43037         in wchar_t.  Problem reported by Eric Blake.
43038
43039         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
43040         LEN is smaller than SIZE.  Suggested by Bruno Haible.
43041         Also, help the compiler to keep LEN in a register.
43042
43043 2006-08-11  Eric Blake  <ebb9@byu.net>
43044
43045         * users.txt: Sort.  Add tar.
43046
43047 2006-08-11  Bruno Haible  <bruno@clisp.org>
43048
43049         * users.txt: New file.
43050
43051 2006-08-11  Bruno Haible  <bruno@clisp.org>
43052
43053         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
43054         before <wchar.h>. Needed for OSF/1 and BSD/OS.
43055
43056 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
43057
43058         * modules/snprintf (Depends-on): Remove minmax.
43059         (Maintainer): Add self and Bruno.
43060
43061 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
43062
43063         * lib/.cppi-disable: Add snprintf.h, socket_.h.
43064         * lib/snprintf.c: Include <errno.h> and <limits.h>.
43065         (EOVERFLOW): Define if the system does not.
43066         Do not include "minmax.h"; it wasn't used.
43067         (snprintf): Don't assume size_t promotes to an unsigned type.
43068         Fix bug when generated string was too long for the buffer: the
43069         buffer's contents are supposed to be the initial prefix of the
43070         output.  Don't assume vasnprintf returns EOVERFLOW if the size
43071         exceeds INT_MAX; do the check ourselves.
43072
43073         Import the following changes from libc:
43074
43075         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
43076
43077         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
43078         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
43079         set wc to the byte which couldn't be converted.
43080         (re_string_reconstruct): Don't clear valid_raw_len before calling
43081         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
43082         tip_context using re_string_context_at.
43083
43084         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
43085
43086         * lib/posix/regex.h: g++ still cannot handled [restrict].
43087
43088         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
43089
43090         * lib/posix/regex.h: Remove special handling for VMS.
43091
43092 2006-08-10  Jim Meyering  <jim@meyering.net>
43093
43094         * modules/same-inode: New module.
43095         * modules/dev-ino: New module.
43096         * modules/cycle-check: Depend on these modules, rather than simply
43097         including their .h files.
43098         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
43099         required via m4/cycle-check.m4.
43100         * modules/same: Depend on new same-inode module, rather than
43101         including same-inode.h.
43102         * modules/chdir-safer: New file.
43103
43104         * modules/chown (Depends-on): Add stat-macros.
43105
43106 2006-08-10  Jim Meyering  <jim@meyering.net>
43107
43108         * m4/cycle-check.m4: New file.
43109         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
43110         * m4/dev-ino.m4, m4/same-inode.m4: New files.
43111
43112 2006-08-10  Eric Blake  <ebb9@byu.net>
43113
43114         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
43115         in from original proposal.
43116
43117 2006-08-10  Eric Blake  <ebb9@byu.net>
43118         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43119
43120         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
43121         namespace.
43122
43123 2006-08-10  Bruno Haible  <bruno@clisp.org>
43124
43125         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
43126         as well.
43127
43128 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43129
43130         Sync from coreutils.
43131
43132         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
43133
43134         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
43135         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
43136
43137 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43138
43139         * modules/restrict: Remove; no longer needed now that we assume
43140         Autoconf 2.59 or later.
43141         * MODULES.html.sh: Remove 'restrict'.
43142         * modules/argp (Depends-on): Remove 'restrict'.
43143         * modules/base64 (Depends-on): Likewise.
43144         * modules/gc (Depends-on): Likewise.
43145         * modules/getaddrinfo (Depends-on): Likewise.
43146         * modules/glob (Depends-on): Likewise.
43147         * modules/inet_ntop (Depends-on): Likewise.
43148         * modules/inet_pton (Depends-on): Likewise.
43149         * modules/memxor (Depends-on): Likewise.
43150         * modules/regex (Depends-on): Likewise.
43151         * modules/strtok_r (Depends-on): Likewise.
43152         * modules/time_r (Depends-on): Likewise.
43153
43154 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43155
43156         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
43157         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
43158         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
43159         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
43160         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
43161         * m4/memxor.m4 (gl_MEMXOR): Likewise.
43162         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
43163         gl_C_RESTRICT replaced by AC_C_RESTRICT.
43164
43165         Merge from coreutils.
43166         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
43167         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
43168         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
43169         * m4/time_r.m4 (gl_TIME_R): Likewise.
43170
43171 2006-08-09  Karl Berry  <karl@gnu.org>
43172
43173         * config/srclist.txt: no more gettext-tools, per Bruno.
43174
43175 2006-08-08  Eric Blake  <ebb9@byu.net>
43176
43177         * modules/verror: New module.
43178         * MODULES.html.sh: Document it.
43179
43180 2006-08-08  Eric Blake  <ebb9@byu.net>
43181
43182         * lib/verror.h, lib/verror.c: New files.
43183
43184 2006-08-08  Eric Blake  <ebb9@byu.net>
43185
43186         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
43187         verror_at_line output complies with GNU Coding Standards even when
43188         file is NULL.
43189
43190 2006-08-07  Bruno Haible  <bruno@clisp.org>
43191
43192         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
43193         versions of AIX.
43194         Reported by Ralf Wildenhues.
43195
43196 2006-08-07  Bruno Haible  <bruno@clisp.org>
43197
43198         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
43199         in an AC_DEFUN. Needed so that the autoconf snippets can use
43200         AC_REQUIRE.
43201
43202 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43203
43204         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43205         Initialize pkgdata_DATA.
43206         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
43207         overriding it.
43208
43209 2006-08-06  Eric Blake  <ebb9@byu.net>
43210
43211         * lib/error.h: Fold in some upstream changes from glibc.
43212         * lib/error.c: Likewise.
43213
43214 2006-08-04  Bruno Haible  <bruno@clisp.org>
43215
43216         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43217         Make the mostlyclean-local rule depend on mostlyclean-generic.
43218         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
43219
43220 2006-07-31  Bruno Haible  <bruno@clisp.org>
43221
43222         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
43223         <stdlib.h>, <string.h>.
43224
43225 2006-07-30  Bruno Haible  <bruno@clisp.org>
43226
43227         * modules/readlink (License): Change to LGPL.
43228
43229 2006-07-30  Bruno Haible  <bruno@clisp.org>
43230
43231         * modules/javaversion (Makefile.am): Distribute javaversion.java and
43232         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
43233         set PKGDATADIR to point to it.
43234
43235 2006-07-30  Bruno Haible  <bruno@clisp.org>
43236
43237         * modules/csharpexec (configure.ac): Comment out macro invocation.
43238         * modules/javaexec (configure.ac): Likewise.
43239         * modules/javacomp-script (configure.ac): Likewise.
43240
43241         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
43242
43243 2006-07-30  Bruno Haible  <bruno@clisp.org>
43244
43245         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
43246         linked-list.
43247
43248 2006-07-30  Bruno Haible  <bruno@clisp.org>
43249
43250         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
43251
43252 2006-07-30  Bruno Haible  <bruno@clisp.org>
43253
43254         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43255         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
43256         get removed.
43257
43258 2006-07-29  Bruno Haible  <bruno@clisp.org>
43259
43260         Make it possible for gnulib-tool to work with locally modified or
43261         augmented gnulib repositories.
43262         * gnulib-tool (func_usage): Document --local-dir option.
43263         (local_gnulib_dir): New variable.
43264         Handle --local-dir option.
43265         (func_lookup_file): New function.
43266         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
43267         (func_get_description, func_get_filelist, func_get_description,
43268         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
43269         func_get_automake_snippet, func_get_include_directive,
43270         func_get_license, func_get_maintainer): Use func_lookup_file.
43271         (func_import, func_create_testdir): Use func_lookup_file.
43272
43273 2006-07-29  Bruno Haible  <bruno@clisp.org>
43274
43275         * modules/setenv (Depends-on): Add unistd.
43276
43277 2006-07-29  Bruno Haible  <bruno@clisp.org>
43278
43279         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
43280
43281 2006-07-29  Bruno Haible  <bruno@clisp.org>
43282
43283         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
43284
43285 2006-07-29  Bruno Haible  <bruno@clisp.org>
43286
43287         * gnulib-tool (import, update): If there is no Makefile.am, look at
43288         aclocal.m4, instead of bailing out.
43289
43290 2006-07-29  Bruno Haible  <bruno@clisp.org>
43291
43292         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
43293         Categorize the options by when they are useful.
43294
43295 2006-07-29  Bruno Haible  <bruno@clisp.org>
43296
43297         * gnulib-tool (func_usage): Document option --no-libtool.
43298         Handle option --no-libtool.
43299         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
43300         for changed semantics of $libtool variable.
43301         (func_import): Likewise. If libtool is not used, show this through
43302         an option --no-libtool.
43303         (func_create_testdir): Update.
43304
43305 2006-07-29  Bruno Haible  <bruno@clisp.org>
43306
43307         * gnulib-tool (func_import): Extend error message about missing
43308         --doc-base.
43309
43310 2006-07-29  Bruno Haible  <bruno@clisp.org>
43311
43312         * gnulib-tool (func_import): Don't create the $docbase directory if
43313         there is no file to store there.
43314
43315 2006-07-29  Bruno Haible  <bruno@clisp.org>
43316
43317         * gnulib-tool (autoconf_minversion): If a --dir option is given and
43318         relevant, look for configure.ac there, not in the current directory.
43319         Also use a simple search for AC_PREREQ, not "autoconf --trace".
43320
43321 2006-07-29  Bruno Haible  <bruno@clisp.org>
43322
43323         * gnulib-tool (SORT): New variable.
43324         (func_usage): Undocument --assume-autoconf option.
43325         Remove --assume-autoconf option handling.
43326         (autoconf_minversion): Determine from the contents of configure.ac.
43327         (func_import): Remove autoconf_minversion handling.
43328         Suggested by Eric Blake.
43329
43330 2006-07-29  Bruno Haible  <bruno@clisp.org>
43331
43332         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
43333
43334 2006-07-29  Bruno Haible  <bruno@clisp.org>
43335
43336         * config/srclist.txt (*setenv.[ch]): Remove rules.
43337
43338 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43339
43340         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
43341
43342 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43343
43344         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
43345         arpa/inet.h.
43346
43347 2006-07-28  Simon Josefsson  <jas@extundo.com>
43348
43349         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
43350         * modules/inet_pton (Depends-on): Likewise.
43351
43352 2006-07-28  Simon Josefsson  <jas@extundo.com>
43353
43354         * m4/netinet_in_h.m4: New file.
43355
43356 2006-07-28  Simon Josefsson  <jas@extundo.com>
43357
43358         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
43359         #include's.
43360
43361 2006-07-28  Simon Josefsson  <jas@extundo.com>
43362
43363         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
43364         #include's.
43365
43366 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
43367
43368         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
43369         setgid on directories only if they set these bits.
43370         * lib/modechange.h: Remove obsolete comment about masks.
43371
43372 2006-07-28  Eric Blake  <ebb9@byu.net>
43373
43374         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
43375         macro expansion.
43376
43377 2006-07-28  Bruno Haible  <bruno@clisp.org>
43378
43379         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
43380
43381 2006-07-28  Bruno Haible  <bruno@clisp.org>
43382
43383         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
43384
43385 2006-07-28  Bruno Haible  <bruno@clisp.org>
43386
43387         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43388         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
43389         Define fallbacks.
43390         Avoids link error on FreeBSD 4.x.
43391         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43392
43393         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
43394         encoding.
43395         * lib/mbswidth.c (iswcntrl): Likewise.
43396
43397 2006-07-27  Bruno Haible  <bruno@clisp.org>
43398
43399         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
43400         test.
43401
43402 2006-07-27  Bruno Haible  <bruno@clisp.org>
43403
43404         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
43405         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
43406         defined.
43407
43408 2006-07-26  Eric Blake  <ebb9@byu.net>
43409
43410         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
43411
43412 2006-07-26  Eric Blake  <ebb9@byu.net>
43413
43414         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
43415         like mingw that lack mkstemp.
43416         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
43417         avoid compilation warning on mingw.
43418
43419 2006-07-26  Bruno Haible  <bruno@clisp.org>
43420
43421         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
43422         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
43423         INT_FAST*_MIN, INTPTR_MIN.
43424
43425 2006-07-25  Bruno Haible  <bruno@clisp.org>
43426
43427         * modules/version-etc (Depends-on): Add stdarg.
43428
43429 2006-07-25  Bruno Haible  <bruno@clisp.org>
43430
43431         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
43432         complex commands.
43433
43434 2006-07-25  Bruno Haible  <bruno@clisp.org>
43435
43436         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
43437         defined in <stdarg.h> or config.h.
43438
43439 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
43440
43441         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
43442         (gl_STDIO_SAFER): Remove.
43443
43444 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
43445
43446         * MODULES.html.sh (File stream based Input/Output):
43447         Add fopen-safer, tmpfile-safer; remove stdio-safer.
43448         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
43449         * modules/fopen-safer, modules/tmpfile-safer: New files.
43450         * modules/stdio-safer: Remove.
43451
43452 2006-07-24  Bruno Haible  <bruno@clisp.org>
43453
43454         * modules/tmpdir: New file.
43455         * MODULES.html.sh (File system functions): Add it.
43456
43457 2006-07-24  Bruno Haible  <bruno@clisp.org>
43458
43459         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
43460         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
43461
43462 2006-07-24  Bruno Haible  <bruno@clisp.org>
43463
43464         * modules/clean-temp: New file.
43465
43466 2006-07-24  Bruno Haible  <bruno@clisp.org>
43467
43468         * m4/tmpdir.m4: New file, from GNU gettext.
43469
43470 2006-07-24  Bruno Haible  <bruno@clisp.org>
43471
43472         * lib/tmpdir.h: New file, from GNU gettext.
43473         * lib/tmpdir.c: New file, from GNU gettext.
43474
43475 2006-07-24  Bruno Haible  <bruno@clisp.org>
43476
43477         * lib/clean-temp.h: New file, from GNU gettext.
43478         * lib/clean-temp.c: New file, from GNU gettext.
43479
43480 2006-07-23  Eric Blake  <ebb9@byu.net>
43481
43482         * modules/stdio-safer (Files): Add tmpfile-safer.c.
43483         (Depends-on): Add binary-io.
43484
43485 2006-07-23  Eric Blake  <ebb9@byu.net>
43486
43487         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
43488
43489 2006-07-23  Eric Blake  <ebb9@byu.net>
43490
43491         * lib/tmpfile-safer.c: New file.
43492         * lib/stdio-safer.h (fopen_safer): Add prototype.
43493         * lib/stdio--.h (tmpfile): Make safer.
43494
43495 2006-07-23  Bruno Haible  <bruno@clisp.org>
43496
43497         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
43498         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
43499         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
43500         gl_linked_remove_at): Use it.
43501
43502 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43503         and Simon Josefsson <jas@extundo.com>
43504
43505         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
43506
43507         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
43508
43509 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43510
43511         * modules/close-stream: New file.
43512         * modules/closeout (Description): Make it clear that it exits
43513         with a diagnostic on error.
43514         (Depends-on): Add close-stream.  Remove fpending, stdbool.
43515         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
43516
43517 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43518
43519         * m4/close-stream.m4: New file.
43520
43521 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43522
43523         * lib/close-stream.c, lib/close-stream.h: New files.
43524
43525 2006-07-22  Bruno Haible  <bruno@clisp.org>
43526
43527         Merge from GNU gettext 0.15.
43528
43529         2006-05-01  Bruno Haible  <bruno@clisp.org>
43530
43531                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
43532
43533         2006-07-22  Bruno Haible  <bruno@clisp.org>
43534
43535                 * modules/javaversion: New file.
43536                 * MODULES.html.sh (Java): Add javaversion.
43537
43538         2006-03-12  Bruno Haible  <bruno@clisp.org>
43539
43540                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
43541
43542         2005-12-04  Bruno Haible  <bruno@clisp.org>
43543
43544                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
43545                 (untested).
43546
43547         2006-06-21  Bruno Haible  <bruno@clisp.org>
43548
43549                 Avoid warnings from recent versions of mcs.
43550                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
43551                 -o, -L, -r any more. Use options documented since mcs-1.0
43552                 instead. Similarly for -g.
43553
43554         2005-12-04  Bruno Haible  <bruno@clisp.org>
43555
43556                 * build-aux/csharpcomp.sh.in: Suffix for resources is
43557                 .resources, not .resource.
43558
43559         2005-07-09  Bruno Haible  <bruno@clisp.org>
43560
43561                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
43562                 add a .dll suffix.
43563                 Reported by Mark Junker <mjscod@gmx.de>.
43564
43565         2006-07-22  Bruno Haible  <bruno@clisp.org>
43566
43567                 * modules/gettext: Upgrade to gettext-0.15.
43568                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
43569                 m4/visibility.m4.
43570                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
43571
43572 2006-07-22  Bruno Haible  <bruno@clisp.org>
43573
43574         Merge from GNU gettext 0.15.
43575
43576         2006-03-25  Bruno Haible  <bruno@clisp.org>
43577
43578                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
43579
43580         2006-07-21  Bruno Haible  <bruno@clisp.org>
43581
43582                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
43583                 "1.1".
43584
43585         2006-05-09  Bruno Haible  <bruno@clisp.org>
43586
43587                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
43588                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
43589                 for the conftestver execution.
43590
43591         2006-05-01  Bruno Haible  <bruno@clisp.org>
43592
43593                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
43594                 optional target-version argument. Verify that the compiler
43595                 groks source of the specified source-version, or add -source
43596                 option as necessary. Verify that the compiler produces
43597                 bytecode in the specified target-version, or add -target and
43598                 -source options as necessary. Make the result of the test
43599                 available as variable CONF_JAVAC. Also log error output in
43600                 config.log.
43601
43602         2006-03-11  Bruno Haible  <bruno@clisp.org>
43603
43604                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
43605
43606         2006-05-09  Bruno Haible  <bruno@clisp.org>
43607
43608                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
43609                 CLASSPATH_SEPARATOR to a semicolon.
43610
43611         2006-03-12  Bruno Haible  <bruno@clisp.org>
43612
43613                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
43614                 available as variable CONF_JAVA, for subsequent autoconf
43615                 tests. Also log error output in config.log.
43616
43617         2006-07-19  Bruno Haible  <bruno@clisp.org>
43618
43619                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
43620                 that getline works on glibc2 systems. Needed to avoid trouble
43621                 in relocatable.c.
43622                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
43623
43624         2005-12-04  Bruno Haible  <bruno@clisp.org>
43625
43626                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
43627                 launcher (untested).
43628
43629         2005-12-04  Bruno Haible  <bruno@clisp.org>
43630
43631                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
43632
43633         2006-07-22  Bruno Haible  <bruno@clisp.org>
43634
43635                 * gettext.m4: Update from GNU gettext-0.15.
43636                 * nls.m4: Likewise.
43637                 * po.m4: Likewise.
43638                 * inttypes-pri.m4: Likewise.
43639                 * inttypes-h.m4: Renamed from inttypes.m4.
43640                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
43641
43642 2006-07-22  Bruno Haible  <bruno@clisp.org>
43643
43644         Merge from GNU gettext 0.15.
43645
43646         2005-07-05  Bruno Haible  <bruno@clisp.org>
43647
43648                 * printf-args.c (printf_fetchargs): Work around broken
43649                 definition of wint_t on mingw.
43650
43651         2005-02-12  Bruno Haible  <bruno@clisp.org>
43652
43653                 * xallocsa.h: Add extern "C" for C++.
43654
43655         2006-05-17  Bruno Haible  <bruno@clisp.org>
43656
43657                 Cygwin portability.
43658                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
43659
43660         2006-04-30  Bruno Haible  <bruno@clisp.org>
43661
43662                 * progreloc.c: Include <mach-o/dyld.h> if available.
43663                 (find_executable): Use _NSGetExecutablePath when possible.
43664
43665         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
43666
43667                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
43668                 function.
43669
43670         2005-12-29  Bruno Haible  <bruno@clisp.org>
43671
43672                 * progreloc.c (set_program_name_and_installdir): Fix
43673                 compilation error.
43674
43675         2005-12-04  Bruno Haible  <bruno@clisp.org>
43676
43677                 Cygwin portability.
43678                 * progreloc.c: Include <windows.h> also on Cygwin.
43679                 (find_executable): Add support for Cygwin.
43680                 (set_program_name_and_installdir): Handle also platforms with
43681                 nonempty EXEEXT.
43682
43683         2006-07-11  Bruno Haible  <bruno@clisp.org>
43684
43685                 * javacomp.c: Fix a comment.
43686                 Reported by Jim Meyering.
43687
43688         2006-04-30  Bruno Haible  <bruno@clisp.org>
43689
43690                 * javacomp.h (compile_java_class): Add source_version,
43691                 target_version arguments.
43692                 * javacomp.c: Rewritten to choose only a compiler that
43693                 respects the specified source_version and target_version.
43694
43695         2006-06-27  Bruno Haible  <bruno@clisp.org>
43696
43697                 Assume correct S_ISDIR macro.
43698                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
43699
43700         2006-07-22  Bruno Haible  <bruno@clisp.org>
43701
43702                 * javaversion.h: New file, from GNU gettext.
43703                 * javaversion.c: New file, from GNU gettext.
43704                 * javaversion.java: New file, from GNU gettext.
43705                 * javaversion.class: New file, from GNU gettext.
43706
43707         2006-05-17  Bruno Haible  <bruno@clisp.org>
43708
43709                 Cygwin portability.
43710                 * javaexec.c (execute_java_class): Test for jview program
43711                 also on Cygwin.
43712
43713         2006-04-09  Bruno Haible  <bruno@clisp.org>
43714
43715                 * fatal-signal.c: Don't include string.h.
43716                 (at_fatal_signal): Use a copying loop instead of memcpy.
43717
43718         2005-12-04  Bruno Haible  <bruno@clisp.org>
43719
43720                 * csharpexec.c: Add support for 'clix' launcher (untested).
43721                 (execute_csharp_using_sscli): New function.
43722                 (execute_csharp_program): Call it.
43723
43724         2006-06-21  Bruno Haible  <bruno@clisp.org>
43725
43726                 Avoid warnings from recent versions of mcs.
43727                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
43728                 -o, -L, -r any more. Use options documented since mcs-1.0
43729                 instead. Similarly for -g.
43730
43731         2005-07-09  Bruno Haible  <bruno@clisp.org>
43732
43733                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
43734                 add a .dll suffix.
43735                 Reported by Mark Junker <mjscod@gmx.de>.
43736
43737         2006-06-17  Bruno Haible  <bruno@clisp.org>
43738
43739                 * config.charset: Update for NetBSD 3.0.
43740
43741         2006-05-17  Bruno Haible  <bruno@clisp.org>
43742
43743                 Cygwin portability.
43744                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
43745
43746         2006-05-16  Bruno Haible  <bruno@clisp.org>
43747
43748                 * localcharset.c [CYGWIN]: Include <windows.h>.
43749                 (get_charset_aliases): For Cygwin, return the same CPxxx
43750                 aliases list as under WIN32.
43751                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
43752                 the environment variables. Fall back to GetACP().
43753
43754         2006-04-05  Bruno Haible  <bruno@clisp.org>
43755
43756                 * config.charset: Update Juan Manuel Guerrero's address.
43757
43758         2005-02-12  Bruno Haible  <bruno@clisp.org>
43759
43760                 * allocsa.h: Add extern "C" for C++.
43761
43762         2005-02-10  Bruno Haible  <bruno@clisp.org>
43763
43764                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
43765                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
43766
43767         2006-07-22  Bruno Haible  <bruno@clisp.org>
43768
43769                 * gettext.h: Update to GNU gettext-0.15.
43770
43771 2006-07-22  Bruno Haible  <bruno@clisp.org>
43772
43773         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
43774         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
43775         lib-prefix.m4, longdouble.m4, ssize_t.m4.
43776
43777 2006-07-21  Eric Blake  <ebb9@byu.net>
43778
43779         * modules/stdlib-safer: New file.
43780         * MODULES.html.sh (File stream based Input/Output): Add
43781         stdlib-safer.
43782
43783 2006-07-21  Eric Blake  <ebb9@byu.net>
43784
43785         * lib/stdlib-safer.h: New file from coreutils, required by
43786         stdlib--.h.
43787
43788 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
43789
43790         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
43791
43792 2006-07-20  Bruno Haible  <bruno@clisp.org>
43793
43794         * gnulib-tool: Recognize new option --assume-autoconf.
43795         (autoconf_minversion): New variable.
43796         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
43797
43798 2006-07-20  Bruno Haible  <bruno@clisp.org>
43799
43800         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
43801
43802 2006-07-19  Derek R. Price  <derek@ximbiot.com>
43803
43804         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
43805         Reindent and repaginate.
43806
43807 2006-07-19  Derek Price  <derek@ximbiot.com>
43808
43809         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
43810         Correct grammar.
43811
43812 2006-07-17  Bruno Haible  <bruno@clisp.org>
43813
43814         * modules/list: New file.
43815         * modules/array-list: New file.
43816         * modules/carray-list, modules/carray-list-tests: New files.
43817         * modules/linked-list, modules/linked-list-tests: New files.
43818         * modules/avltree-list, modules/avltree-list-tests: New files.
43819         * modules/rbtree-list, modules/rbtree-list-tests: New files.
43820         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
43821         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
43822         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
43823         * modules/oset: New file.
43824         * modules/array-oset: New file.
43825         * modules/avltree-oset, modules/avltree-oset-tests: New files.
43826         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
43827         * tests/test-carray_list.c: New file.
43828         * tests/test-linked_list.c: New file.
43829         * tests/test-avltree_list.c: New file.
43830         * tests/test-rbtree_list.c: New file.
43831         * tests/test-linkedhash_list.c: New file.
43832         * tests/test-avltreehash_list.c: New file.
43833         * tests/test-rbtreehash_list.c: New file.
43834         * tests/test-avltree_oset.c: New file.
43835         * tests/test-rbtree_oset.c: New file.
43836         * MODULES.html.sh (Container data structures): New section.
43837
43838 2006-07-17  Bruno Haible  <bruno@clisp.org>
43839
43840         * m4/gl_list.m4: New file.
43841
43842 2006-07-17  Bruno Haible  <bruno@clisp.org>
43843
43844         * lib/gl_list.h: New file.
43845         * lib/gl_list.c: New file.
43846         * lib/gl_array_list.h: New file.
43847         * lib/gl_array_list.c: New file.
43848         * lib/gl_carray_list.h: New file.
43849         * lib/gl_carray_list.c: New file.
43850         * lib/gl_linked_list.h: New file.
43851         * lib/gl_linked_list.c: New file.
43852         * lib/gl_anylinked_list1.h: New file.
43853         * lib/gl_anylinked_list2.h: New file.
43854         * lib/gl_avltree_list.h: New file.
43855         * lib/gl_avltree_list.c: New file.
43856         * lib/gl_anyavltree_list1.h: New file.
43857         * lib/gl_anyavltree_list2.h: New file.
43858         * lib/gl_rbtree_list.h: New file.
43859         * lib/gl_rbtree_list.c: New file.
43860         * lib/gl_anyrbtree_list1.h: New file.
43861         * lib/gl_anyrbtree_list2.h: New file.
43862         * lib/gl_anytree_list1.h: New file.
43863         * lib/gl_anytree_list2.h: New file.
43864         * lib/gl_linkedhash_list.h: New file.
43865         * lib/gl_linkedhash_list.c: New file.
43866         * lib/gl_anyhash_list1.h: New file.
43867         * lib/gl_anyhash_list2.h: New file.
43868         * lib/gl_avltreehash_list.h: New file.
43869         * lib/gl_avltreehash_list.c: New file.
43870         * lib/gl_rbtreehash_list.h: New file.
43871         * lib/gl_rbtreehash_list.c: New file.
43872         * lib/gl_anytreehash_list1.h: New file.
43873         * lib/gl_anytreehash_list2.h: New file.
43874
43875         * lib/gl_oset.h: New file.
43876         * lib/gl_oset.c: New file.
43877         * lib/gl_array_oset.h: New file.
43878         * lib/gl_array_oset.c: New file.
43879         * lib/gl_avltree_oset.h: New file.
43880         * lib/gl_avltree_oset.c: New file.
43881         * lib/gl_rbtree_oset.h: New file.
43882         * lib/gl_rbtree_oset.c: New file.
43883         * lib/gl_anytree_oset.h: New file.
43884
43885 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
43886
43887         * m4/mkancesdirs.m4: New file.
43888         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
43889         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
43890         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
43891         it.
43892
43893 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
43894
43895         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
43896         * lib/mkancesdirs.h: New files.
43897         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
43898         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
43899         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
43900         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
43901         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
43902         callers changed.  Revamp internals significantly, by not
43903         attempting to create directories that are temporarily more
43904         permissive than the final results.  Do not attempt to use
43905         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
43906         This removes some race conditions, fixes some bugs, and simplifies
43907         things.  Use new dirchownmod function to do owner and mode changes.
43908         * lib/mkdir-p.h: Likewise.
43909         * lib/modechange.c (octal_to_mode): New function.
43910         (struct mode_change): New member mentioned.
43911         (make_node_op_equals): New arg mentioned.  All callers changed.
43912         (mode_compile): Keep track of which mode bits the user has explicitly
43913         mentioned.
43914         (mode_adjust): New arg DIR, so that we implement the X op correctly.
43915         New arg PMODE_BITS, to keep track of which mode bits the user
43916         mentioned; it treats S_ISUID and S_ISGID speciall.
43917         All callers changed.
43918         * lib/modechange.h: Likewise.
43919
43920 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
43921
43922         * MODULES.html.sh: Add mkancestors.
43923         * modules/mkancesdirs: New module.
43924         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
43925         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
43926         The chdir-safer and afs files are now orphans; I'll remove them
43927         unless someone speaks up.
43928         Add lib/dirchownmod.c, lib/dirchownmod.h.
43929         (Depends-on): Remove alloca, chown, save-cwd, dirname.
43930         Add lchown, mkancesdirs.
43931         (Maintainer): Add self.
43932
43933 2006-07-15  Karl Berry  <karl@gnu.org>
43934
43935         * gnulib-tool: help message wording/arrangement.
43936
43937 2006-07-14  Simon Josefsson  <jas@extundo.com>
43938
43939         * doc/gnulib.texi (Libtool and Windows): New section.
43940
43941 2006-07-12  Simon Josefsson  <jas@extundo.com>
43942
43943         * modules/gendocs (License): Fix license, approved by Karl.
43944
43945 2006-07-12  Eric Blake  <ebb9@byu.net>
43946
43947         * MODULES.html.sh: Add gendocs.
43948
43949 2006-07-11  Eric Blake  <ebb9@byu.net>
43950
43951         * modules/fdl: New module, to install doc/fdl.texi.
43952         * MODULES.html.sh: Add new section for documentation modules.
43953         * gnulib-tool: Avoid space-tab.
43954         (--doc-base): New option, to manage files from doc.
43955
43956 2006-07-11  Eric Blake  <ebb9@byu.net>
43957
43958         * m4/absolute-header.m4: Fix comments to match recent change.
43959
43960 2006-07-11  Eric Blake  <ebb9@byu.net>
43961
43962         * gnulib-tool: List --doc-base before --tests-base.
43963
43964 2006-07-11  Derek R. Price  <derek@ximbiot.com>
43965
43966         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
43967
43968 2006-07-11  Bruno Haible  <bruno@clisp.org>
43969
43970         * README: Mention where to put documentation.
43971
43972 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43973
43974         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
43975
43976 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
43977
43978         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
43979         to stdint.m4.
43980
43981 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
43982
43983         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
43984         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
43985         "no/such/file/stdint.h" when there is no such file, so that
43986         the resulting C code can be parsed by dodgy compilers.
43987         Problems reported by Bob Proulx.
43988
43989 2006-07-10  Derek R. Price  <derek@ximbiot.com>
43990
43991         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
43992         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
43993         macros into the GNU _D_EXACT_NAMLEN.
43994         * lib/savedir.c:  Likewise.
43995         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
43996
43997 2006-07-10  Derek R. Price  <derek@ximbiot.com>
43998         and Paul Eggert  <eggert@cs.ucla.edu>
43999
44000         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
44001         * m4/savedir.m4:
44002         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
44003         macros into the GNU _D_EXACT_NAMLEN.
44004
44005 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44006
44007         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
44008         around the absolute name, to work around a problem with the HP-UX
44009         11.23 native C compiler, reported by Bob Proulx.
44010
44011 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44012
44013         * doc/maintain.texi, make-stds.texi: Sync from
44014         <http://savannah.gnu.org/projects/gnustandards>.
44015
44016 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44017
44018         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
44019
44020 2006-07-09  Jim Meyering  <jim@meyering.net>
44021
44022         * m4/glob.m4: Remove a doubled word in a comment.
44023
44024 2006-07-09  Jim Meyering  <jim@meyering.net>
44025
44026         * lib/argp-pv.c: Remove a doubled word in a comment.
44027         * lib/check-version.c (check_version): Likewise.
44028         * lib/javacomp.c (compile_java_class): Likewise.
44029
44030 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
44031
44032         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
44033         for the benefit of people using Autoconf 2.60.  If you want to
44034         support older Autoconf versions you can copy m4/onceonly_2_57.m4
44035         (or m4/onceonly.m4, if pre-2.57) manually.
44036
44037 2006-07-08  Jim Meyering  <jim@meyering.net>
44038
44039         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
44040         comment.
44041         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
44042         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
44043         comment.
44044
44045 2006-07-08  Jim Meyering  <jim@meyering.net>
44046
44047         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
44048
44049 2006-07-07  Simon Josefsson  <jas@extundo.com>
44050
44051         * tests/test-crc.c: Change expected crc value, the test vector
44052         were probably computed using the old broken crc.c?
44053
44054 2006-07-06  Simon Josefsson  <jas@extundo.com>
44055
44056         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
44057         now the canonical place for the M4 file).
44058
44059         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
44060         from the sys_socket dependency now.
44061
44062         * modules/inet_pton (Files): Ditto.
44063
44064         * modules/inet_ntop (Files): Ditto.
44065
44066 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
44067
44068         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
44069         not gl_PREREQ_GETUSERSHELL.
44070
44071 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44072
44073         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
44074         with only one argument, for Autoconf 2.60.
44075         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
44076         expand to nothing, so add a shell command to avoid syntax error.
44077         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
44078
44079 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44080
44081         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
44082
44083 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
44084
44085         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
44086         no longer needed.  Check for isblank decl.
44087         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
44088         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
44089         of existence.
44090
44091 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
44092
44093         * lib/getloadavg.c: Use __VMS, not VMS.
44094         * lib/getopt.c: Likewise.
44095         * lib/getpagesize.h: Likewise.
44096         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
44097         and probably does not work.
44098
44099 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
44100
44101         * lib/.cppi-disable: Add wcwidth.
44102         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
44103         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
44104         (ISGRAPH): Remove.  All uses changed to isgraph.
44105         (FOLD) [!defined _LIBC]: Remove special case.
44106         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
44107         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
44108         HAVE_ISBLANK.
44109         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
44110         case.
44111
44112 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
44113
44114         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
44115         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
44116         brackets.  Other minor changes to suppress some compiler
44117         warnings.
44118
44119 2006-07-06  Derek R. Price  <derek@ximbiot.com>
44120         and Paul Eggert  <eggert@cs.ucla.edu>
44121
44122         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
44123         of invoking obsolescent AC_HEADER_DIRENT macro.
44124         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
44125         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
44126         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44127         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
44128         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
44129         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44130         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
44131         * m4/readdir.m4: Remove; no longer needed.
44132
44133 2006-07-06  Derek R. Price  <derek@ximbiot.com>
44134         and Paul Eggert  <eggert@cs.ucla.edu>
44135
44136         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
44137         Don't worry about this obsolete case any more.
44138         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
44139         directories.
44140         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
44141         worry about this obsolete case any more.
44142         * lib/fts.c: Likewise.
44143         * lib/getcwd.c: Likewise.
44144         * lib/glob.h: Likewise.
44145         * lib/savedir.c: Likewise.
44146
44147 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
44148
44149         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
44150         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
44151         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
44152         needed.
44153         All uses removed.
44154         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44155         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44156         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
44157         needed.
44158         * m4/getdate.m4 (gl_GETDATE): Likewise.
44159         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
44160         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
44161         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44162         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44163         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44164         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44165         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
44166         needed.
44167
44168 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
44169
44170         * lib/memcasecmp.c: Include <limits.h>.
44171         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
44172         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
44173         Don't assume isdigit succeeds only on '0' through '9'.
44174
44175 2006-07-05  Eric Blake  <ebb9@byu.net>
44176
44177         * modules/getaddrinfo (Depends-on): Add snprintf.
44178
44179 2006-07-05  Eric Blake  <ebb9@byu.net>
44180
44181         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
44182         to avoid 'header present but could not be compiled' on cygwin.
44183
44184 2006-07-05  Eric Blake  <ebb9@byu.net>
44185
44186         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
44187         missing from netdb.h.
44188         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
44189
44190 2006-07-05  Derek R. Price  <derek@ximbiot.com>
44191
44192         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
44193         no longer needed.
44194         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
44195         * m4/getdate.m4 (gl_GETDATE): Likewise.
44196         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
44197         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
44198         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44199         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44200         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44201
44202 2006-07-05  Derek R. Price  <derek@ximbiot.com>
44203
44204         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
44205         All uses of is_space replaced by isspace.
44206         * lib/exit.h: Don't talk about STDC_HEADERS.
44207         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
44208         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
44209         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
44210         replaced by isprint etc.
44211         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
44212         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44213         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
44214         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
44215         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
44216         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44217
44218 2006-07-05  Bruno Haible  <bruno@clisp.org>
44219
44220         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
44221         the function exists, before testing against AIX.
44222         Reported by Martin Lambers <marlam@marlam.de>.
44223
44224 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
44225
44226         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
44227         From Mark D. Baushke.
44228
44229 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
44230
44231         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
44232         to the absolute name, not just one, to bypass Sun C 5.8's
44233         "warning: #include of /usr/include/... may be non-portable".
44234
44235 2006-07-04  Eric Blake  <ebb9@byu.net>
44236
44237         * modules/dirname-tests: New test module.
44238         * tests/test-dirname.c: New file, replacing dirname.c
44239         TEST_DIRNAME section that was recently deleted.
44240
44241 2006-07-04  Bruno Haible  <bruno@clisp.org>
44242
44243         Assume ANSI C header files and <ctype.h> functions.
44244         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
44245         (mbsnwidth): Use isprint, iscntrl instead.
44246
44247 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44248
44249         Merge from coreutils.
44250         * MODULES.html.sh: Add xstrtold.
44251         * modules/xstrtold: New file.
44252         * modules/cycle-check (Files): Add lib/same-inode.h.
44253         * modules/dirname (Files): Add m4/double-slash-root.m4.
44254         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
44255         * modules/mkdir-p (Files): Add lib/same-inode.h.
44256         * modules/same (Files): Add lib/same-inode.h.
44257
44258 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44259
44260         * m4/absolute-header.m4: Renamed from full-header-path.m4.
44261         This is to keep the terminology clean; POSIX talks about
44262         "absolute pathnames", not "full pathnames", but the GNU
44263         Coding Standards say to use "path" for something else;
44264         so use "absolute" to keep both sides happy.
44265         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
44266         Set gl_absolute_header, not gl_full_header_path.
44267         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
44268         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
44269         All uses changed.
44270
44271         Merge from coreutils.
44272
44273         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
44274
44275         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
44276         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
44277         want to require the building of c-strtod.o.
44278         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
44279         needs -lm directly.
44280         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
44281
44282         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
44283
44284         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
44285         --as-needed option if available.  Problem reported by Albert Chin in
44286         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
44287         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
44288         cc merely issues a bunch of annoying warnings for --as-needed
44289         (this problem was reported by Bob Proulx).  Also, try linking with
44290         -lm to detect a bug in binutils 2.16 (this problem was reported
44291         by Ralf Wildenhues).
44292
44293         2006-06-18  Jim Meyering  <jim@meyering.net>
44294
44295         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
44296         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
44297         macro.
44298         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
44299         also check for glibc-2.4's abort-inducing bug.
44300
44301         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
44302         Low-probability clean-up should be to use rmdir to get rid of
44303         the just-created directory, not unlink.
44304
44305         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
44306         configure fail, and request a bug report to inform us about it.
44307         Add a comment that, barring reports to the contrary, in 2007 we'll
44308         assume ftruncate is universally available.
44309
44310         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
44311
44312         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
44313
44314         2006-03-12  Jim Meyering  <jim@meyering.net>
44315
44316         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
44317         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
44318         * m4/same.m4 (gl_SAME): Likewise.
44319         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
44320
44321         2006-03-11  Eric Blake  <ebb9@byu.net>
44322
44323         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
44324         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
44325         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
44326         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
44327
44328 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44329
44330         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
44331         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
44332         reported by Mark D. Baushke, one in
44333         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
44334
44335         Merge from coreutils.
44336
44337         * lib/.cppi-disable: Add stdint_.h.
44338         * lib/.cvsignore: Add stdint.h.
44339
44340         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
44341
44342         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
44343         both double and long double versions.
44344         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
44345         * lib/xstrtold.c: New file.
44346         * lib/xstrtod.h (xstrtold): New decl.
44347
44348         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
44349
44350         * lib/filemode.c (setst): Remove.
44351         (strmode): Rewrite to avoid setst.  This makes the code shorter,
44352         (arguably) clearer, and the generated code is a bit smaller on my
44353         Debian GNU/Linux stable x86 host.
44354
44355         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
44356
44357         * lib/filemode.c: Include "filemode.h" first, to test the interface.
44358         Assume that filemode.h includes sys/types.h and sys/stat.h.
44359         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
44360         (ftypelet): Reorder to put common cases first, for efficiency.
44361         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
44362         to do 'M'.
44363         (strmode): Renamed from mode_string, and now stores 12 bytes instead
44364         of 10, for compatibility with FreeBSD.  All callers changed.
44365         (filemodestring): Now stores 12 bytes instead of 10, and sets file
44366         types that can't be deduced solely from st_mode.  First arg is now a
44367         const pointer.
44368         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
44369         (strmode): Renamed from mode_string.
44370         (filemodestring): New decl.
44371         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
44372         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
44373         needed.
44374         (S_ISPORT, S_ISWHT): New macros, if not already defined.
44375
44376         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
44377
44378         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
44379         fsusage.h now does that.  Include fsusage.h first, to test interface.
44380         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
44381         at most one method (the old code could have generated decls that
44382         didn't conform to C89, not that this was ever exercised).
44383         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
44384
44385         2006-03-19  Jim Meyering  <jim@meyering.net>
44386
44387         Work even in a chroot where d_ino values for entries in "/"
44388         don't match the stat.st_ino values for the same names.
44389         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
44390         number, iterate through all entries again, using lstat instead.
44391         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
44392         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
44393
44394         * lib/getcwd.c (__getcwd): Clarify a comment.
44395         Use memcpy in place of a call to strcpy.
44396
44397         2006-03-12  Jim Meyering  <jim@meyering.net>
44398
44399         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
44400         matches that of the current directory (which we're about to chdir ".."
44401         out of), then save the dev-ino of the parent, instead.
44402
44403         * lib/same-inode.h (SAME_INODE): New file/macro.
44404         * lib/chdir-safer.c (SAME_INODE): Remove definition.
44405         Include "same-inode.h", instead.
44406         * lib/same.c: Likewise.
44407         * lib/cycle-check.h: Include "same-inode.h".
44408         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
44409         * lib/cycle-check.c (SAME_INODE): Remove definition.
44410         * lib/root-dev-ino.h: Include "same-inode.h".
44411
44412         2006-03-11  Eric Blake  <ebb9@byu.net>
44413
44414         * lib/same.c (same_name): s/base_name/last_component/
44415         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
44416         * lib/filenamecat.c (file_name_concat): Likewise.
44417
44418         2006-03-11  Eric Blake  <ebb9@byu.net>,
44419                     Paul Eggert  <eggert@cs.ucla.edu>
44420
44421         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
44422         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
44423         drive prefix.
44424         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
44425         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
44426         (last_component): New method.
44427         * lib/dirname.c (dir_len): Determine when drive letters need a
44428         subsequent slash.  Preserve // when it is special.
44429         (dir_name): Don't append dot when drive letter is absolute.
44430         [TEST_DIRNAME]: Move into a full-blown gnulib test.
44431         * lib/basename.c (base_name): New semantics - malloc the result.
44432         Preserve // when it is special.  Preserve relative files that look
44433         like drive letters.
44434         (base_len): Preserve // when it is special.
44435         (last_component): New method, similar to old base_name semantics.
44436         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
44437         base_name.  Strip redundant slashes from ///.
44438
44439 2006-07-03  Jim Meyering  <jim@meyering.net>
44440
44441         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
44442         macro is used before the first cycle_check call.
44443
44444 2006-07-03  Eric Blake  <ebb9@byu.net>
44445
44446         * modules/dirname (Depends-on): Add xstrndup.
44447
44448 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
44449
44450         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
44451         test cases, so that config.log is a bit easier to follow.
44452
44453 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
44454
44455         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
44456         both are 64 bits, since this seems to be the tradition, and this
44457         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
44458         we ever run into a host that prefers long long to long in this
44459         case, we'll need another configure-time test.  Problem reported by
44460         Jim Meyering.
44461
44462 2006-07-02  Eric Blake  <ebb9@byu.net>
44463
44464         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
44465
44466 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44467
44468         * modules/inttypes (Depends-on): No longer depends on stdint.
44469         * modules/stdint (Description): Say more about assumptions.
44470         Say that the fast types might differ.  Say macros are used.
44471         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
44472         (Makefile.am): Revise list of substituted symbols to match
44473         new stdint.m4.
44474         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
44475         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
44476         * tests/test-stdint.c (verify_same_types)
44477         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
44478         the code conforms to C99/C89.
44479         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
44480         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
44481
44482 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44483
44484         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
44485         but fix a bug, by requiring at least 64 bits.
44486         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
44487         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
44488         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
44489         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
44490
44491         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
44492         changes.  Make 2.59 a prerequisite.  Check and substitute for
44493         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
44494         inttypes.h.  Do not use special include files; just use the
44495         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
44496         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
44497         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
44498         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
44499         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
44500         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
44501         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
44502         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
44503         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
44504         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
44505         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
44506         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
44507         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
44508         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
44509         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
44510         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
44511         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
44512         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
44513         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
44514         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
44515         WINT_MAX.  Check for C99 conformance more strictly, by detecting
44516         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
44517         not check for things that C99 does not require, e.g., int8_t.  If
44518         a test isn't needed unless <stdint.h> isn't working, and is
44519         unlikely to be needed for any other reason, then don't do it
44520         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
44521         size_t, since we assume C89 freestanding at least.  Do not check
44522         for sig_atomic_t, wchar_t, or wint_t, since the code now does
44523         the right thing even if the types are not defined.  Instead use:
44524         (gl_STDINT_TYPE_PROPERTIES): New macro.
44525         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
44526         testing whether <sys/types.h> clashes, as Autoconf does this for
44527         us now.  All uses removed.
44528         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
44529         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
44530         (gl_CHECK_TYPE_SAME):
44531         Remove; no longer needed.
44532         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
44533         exists, since we'll return 0 anyway in that case.
44534         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
44535
44536 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44537
44538         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
44539         possible collision with system files.
44540         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
44541         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
44542         WCHAR_MIN and WCHAR_MAX in this case.
44543         (<stddef.h>): Do not include; no longer needed.
44544         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
44545         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
44546         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
44547         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
44548         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
44549         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
44550         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
44551         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
44552         !defined(__c99))]: Include in this case too, since it's harmless
44553         now.
44554         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
44555         dangerous to do so.
44556         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
44557         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
44558         (_STDINT_MIN, _STDINT_MAX): New macros.
44559         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
44560         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
44561         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
44562         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
44563         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
44564         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
44565         macros, not typedefs; this simplifies things quite a bit.
44566         Use long int for all types narrower than int64_t.
44567         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
44568         Define in terms of long long int or int64_t or long int,
44569         not int64_t or int32_t.  This saves some compile-time testing.
44570         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
44571         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
44572         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
44573         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
44574         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
44575         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
44576         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
44577         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
44578         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
44579         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
44580         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
44581         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
44582         undef any previous version and define our own version, for
44583         simplicity and consistency with the new macros for types.
44584         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
44585         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
44586         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
44587         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
44588         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
44589         @WINT_T_SUFFIX@ to keep things simple here.
44590         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
44591         Simplify by assuming typical 8/16/32/64 host, since we're
44592         already doing that elsewhere anyway.
44593         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
44594         and assume long long int is 64 bits if available.  This
44595         speeds up 'configure'.
44596
44597 2006-07-01  Eric Blake  <ebb9@byu.net>
44598
44599         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
44600         Reported by Andreas Buening.
44601
44602 2006-07-01  Eric Blake  <ebb9@byu.net>
44603
44604         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
44605
44606 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
44607
44608         * lib/getaddrinfo.c: fixed typo
44609
44610 2006-06-29  Jim Meyering  <jim@meyering.net>
44611
44612         * modules/strftime (Maintainer): Add my name, since with the
44613         FPRINTFTIME changes strftime.c has forked from glibc.
44614
44615 2006-06-29  Eric Blake  <ebb9@byu.net>
44616
44617         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
44618
44619 2006-06-29  Eric Blake  <ebb9@byu.net>
44620
44621         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
44622
44623 2006-06-29  Eric Blake  <ebb9@byu.net>
44624
44625         * lib/stat_.h: New file.
44626
44627 2006-06-29  Eric Blake  <ebb9@byu.net>
44628
44629         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
44630         unused static function.
44631
44632 2006-06-29  Eric Blake  <ebb9@byu.net>
44633
44634         * doc/functions.texi (Function Portability): Document missing lstat
44635         on mingw.
44636
44637 2006-06-29  Eric Blake  <ebb9@byu.net>
44638
44639         * MODULES.html.sh: Add sys_stat.
44640         * modules/sys_stat: New module.
44641         * modules/mkstemp (Depends-on): Add sys_stat.
44642
44643 2006-06-29  Derek R. Price  <derek@ximbiot.com>
44644
44645         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
44646
44647 2006-06-29  Derek R. Price  <derek@ximbiot.com>
44648
44649         * m4/c-bs-a.m4: Removed.
44650
44651 2006-06-29  Derek R. Price  <derek@ximbiot.com>
44652
44653         * lib/strftime.c: Assume strftime() exists.
44654
44655 2006-06-29  Derek Price  <derek@ximbiot.com>
44656
44657         * modules/c-bs-a: Removed - \a is C89.
44658         * MODULES.html.sh: Remove c-bs-a.
44659
44660 2006-06-29  Bruno Haible  <bruno@clisp.org>
44661
44662         * modules/wcwidth (License): Change to LGPL.
44663
44664 2006-06-28  Simon Josefsson  <jas@extundo.com>
44665
44666         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
44667         on _WIN32.
44668
44669         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
44670         getnameinfo.
44671
44672 2006-06-28  Simon Josefsson  <jas@extundo.com>
44673
44674         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
44675
44676 2006-06-28  Simon Josefsson  <jas@extundo.com>
44677
44678         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
44679         functions there.  It will succeed on Windows XP, but on Windows
44680         2000 and (presumably) earlier, it will fail, and use the internal
44681         re-implementation.
44682         (use_win32_p): New function.
44683         (getaddrinfo): Use strtoul on servname, to support numeric ports.
44684         Support AI_NUMERICSERV to disable getservbyname.
44685         (getnameinfo): New function, only supports
44686         NI_NUMERICHOST|NI_NUMERICSERV for now.
44687
44688         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
44689         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
44690         getnameinfo.
44691
44692 2006-06-28  Eric Blake  <ebb9@byu.net>
44693
44694         * modules/wcwidth: New file.
44695         * modules/mbchar (Depends-on): Add wcwidth.
44696         * modules/mbswidth (Depends-on): Add wcwidth.
44697         * MODULES.html.sh: Add wcwidth.
44698
44699 2006-06-28  Eric Blake  <ebb9@byu.net>
44700
44701         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
44702         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
44703
44704 2006-06-28  Eric Blake  <ebb9@byu.net>
44705
44706         * lib/xvasprintf.h: Fix comments.
44707
44708 2006-06-28  Eric Blake  <ebb9@byu.net>
44709
44710         * lib/mbchar.h (wcwidth): Include wcwidth.h.
44711         * lib/mbswidth.c (wcwidth): Move from here...
44712         * lib/wcwidth.h: ...to this new file.
44713
44714 2006-06-28  Derek R. Price  <derek@ximbiot.com>
44715
44716         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
44717
44718         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
44719         it's obsolete.
44720         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
44721
44722 2006-06-28  Derek R. Price  <derek@ximbiot.com>
44723
44724         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
44725         Autoconf 2.60 says this stuff was obsolete.
44726
44727 2006-06-28  Bruno Haible  <bruno@clisp.org>
44728
44729         * modules/wcwidth (Files): Add m4/wchar_t.m4.
44730
44731 2006-06-28  Bruno Haible  <bruno@clisp.org>
44732
44733         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
44734         gt_TYPE_WCHAR_T.
44735
44736 2006-06-28  Bruno Haible  <bruno@clisp.org>
44737
44738         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
44739         declaration for wcwidth.
44740         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
44741
44742 2006-06-28  Bruno Haible  <bruno@clisp.org>
44743
44744         * lib/mkdtemp.c [MINGW]: Include <io.h>.
44745         (mkdir): Define using _mkdir.
44746
44747 2006-06-28  Bruno Haible  <bruno@clisp.org>
44748
44749         * lib/getaddrinfo.h: Fix POSIX URL.
44750         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
44751         _WIN32.
44752         (use_win32_p): Make static.
44753         (getaddrinfo): Reject service name if it is empty or does not consist
44754         solely of decimal digits, or if its value is > 65535.
44755         (getnameinfo): Remove useless casts.
44756
44757 2006-06-27  Simon Josefsson  <jas@extundo.com>
44758
44759         * modules/sys_select: New file, suggested by Bruno Haible, Paul
44760         Eggert and Martin Lambers.
44761
44762 2006-06-27  Simon Josefsson  <jas@extundo.com>
44763
44764         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
44765         Eggert and Martin Lambers.
44766
44767 2006-06-27  Bruno Haible  <bruno@clisp.org>
44768
44769         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
44770         result to 0, not to empty.
44771         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
44772
44773 2006-06-27  Bruno Haible  <bruno@clisp.org>
44774
44775         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
44776
44777 2006-06-26  Simon Josefsson  <jas@extundo.com>
44778
44779         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
44780         present.
44781
44782 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
44783
44784         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
44785         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
44786         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
44787
44788 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
44789
44790         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
44791
44792 2006-06-26  Bruno Haible  <bruno@clisp.org>
44793
44794         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
44795
44796 2006-06-26  Bruno Haible  <bruno@clisp.org>
44797
44798         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
44799
44800 2006-06-26  Bruno Haible  <bruno@clisp.org>
44801
44802         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
44803         SGI C compiler in pre-C99 mode.
44804         Suggested by Mark D. Baushke and Larry Jones.
44805
44806 2006-06-26  Bruno Haible  <bruno@clisp.org>
44807
44808         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
44809         WCHAR_MAX.
44810         Reported by Mark D. Baushke and Larry Jones.
44811
44812 2006-06-26  Bruno Haible  <bruno@clisp.org>
44813
44814         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
44815         in pre-C99 mode.
44816         Suggested by Mark D. Baushke and Larry Jones.
44817
44818 2006-06-23  Simon Josefsson  <jas@extundo.com>
44819             Bruno Haible  <bruno@clisp.org>
44820
44821         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
44822         Emit mostlyclean-local rule.
44823         (func_emit_tests_Makefile_am): Likewise.
44824         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
44825
44826 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
44827
44828         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
44829
44830 2006-06-23  Bruno Haible  <bruno@clisp.org>
44831
44832         * tests/test-stdint.c: Update to match ISO C 99 Technical
44833         Corrigendum 1.
44834
44835 2006-06-23  Bruno Haible  <bruno@clisp.org>
44836
44837         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
44838
44839 2006-06-23  Bruno Haible  <bruno@clisp.org>
44840
44841         * lib/stdint_.h: Treat IRIX like OpenBSD.
44842
44843 2006-06-23  Bruno Haible  <bruno@clisp.org>
44844
44845         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
44846         ISO C 99 Technical Corrigendum 1.
44847
44848 2006-06-22  Simon Josefsson  <jas@extundo.com>
44849
44850         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
44851         MinGW.
44852
44853 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
44854
44855         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
44856         needed.  Some compiler complained about some of them.  Problem reported
44857         by Larry Jones in
44858         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
44859
44860 2006-06-21  Simon Josefsson  <jas@extundo.com>
44861
44862         * tests/test-getaddrinfo.c: New file.
44863
44864         * modules/getaddrinfo-tests: New file.
44865
44866         * MODULES.html.sh: Add inet_pton.
44867
44868         * modules/inet_pton: New file.
44869
44870 2006-06-21  Simon Josefsson  <jas@extundo.com>
44871
44872         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
44873         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
44874         of using the (limited) gnulib implementation on Windows XP.
44875
44876         * m4/inet_pton.m4: New file.
44877
44878 2006-06-21  Simon Josefsson  <jas@extundo.com>
44879
44880         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
44881         variable.
44882
44883         * lib/socket_.h: Don't define WINVER.
44884
44885         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
44886         slightly modified to work in gnulib.
44887
44888 2006-06-21  Simon Josefsson  <jas@extundo.com>
44889
44890         * doc/gnulib.texi (Windows sockets): Add.
44891
44892 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
44893
44894         * lib/read-file.c (fread_file): Start with buffer allocation of
44895         0 bytes rather than 1 byte; this simplifies the code.
44896         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
44897         code to free buffer and save/restore errno.
44898         (internal_read_file): Remove unused local.
44899
44900 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
44901
44902         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
44903         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
44904         Problem reported by Denis Excoffier in
44905         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
44906
44907 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44908
44909         * modules/sys_socket, modules/socklen: Include sys/types since
44910         FreeBSD 4.x's sys/socket.h needs it.
44911
44912 2006-06-19  Simon Josefsson  <jas@extundo.com>
44913
44914         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
44915
44916 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
44917
44918         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
44919
44920 2006-06-19  Bruno Haible  <bruno@clisp.org>
44921
44922         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
44923         and FULL_PATH_INTTYPES_H in angle brackets.
44924         Reported by Mark D. Baushke <mdb@gnu.org>.
44925
44926 2006-06-17  Eric Blake  <ebb9@byu.net>
44927
44928         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
44929         errno.
44930
44931 2006-06-17  Bruno Haible  <bruno@clisp.org>
44932
44933         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
44934         <sys/inttypes.h>.
44935
44936 2006-06-17  Bruno Haible  <bruno@clisp.org>
44937
44938         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
44939         whether errno is declared. Assume <errno.h> declares errno.
44940
44941 2006-06-17  Bruno Haible  <bruno@clisp.org>
44942
44943         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
44944
44945 2006-06-17  Bruno Haible  <bruno@clisp.org>
44946
44947         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
44948         problem on Solaris 2.5.1.
44949
44950 2006-06-16  Eric Blake  <ebb9@byu.net>
44951
44952         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
44953         * lib/unicodeio.c [!defined errno]: Likewise.
44954         * lib/strtol.c [!defined errno]: Likewise.
44955         * lib/strtod.c [!defined errno]: Likewise.
44956
44957 2006-06-15  Eric Blake  <ebb9@byu.net>
44958
44959         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
44960
44961 2006-06-15  Eric Blake  <ebb9@byu.net>
44962
44963         * config/srclist.txt (ssize_t.m4): Lose sync.
44964
44965 2006-06-15  Bruno Haible  <bruno@clisp.org>
44966
44967         * modules/stdint (Files): Include m4/full-header-path.m4,
44968         m4/size_max.m4, m4/wchar_t.m4.
44969         (Makefile.am): Many more substitutions.
44970         * modules/stdint-tests: New file.
44971         * tests/test-stdint.c: New file.
44972
44973 2006-06-15  Bruno Haible  <bruno@clisp.org>
44974
44975         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
44976         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
44977         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
44978         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
44979         gl_CHECK_TYPE_SAME): New macros.
44980
44981 2006-06-15  Bruno Haible  <bruno@clisp.org>
44982
44983         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
44984
44985 2006-06-15  Bruno Haible  <bruno@clisp.org>
44986
44987         * lib/stdint_.h: Rewritten to be fully auto-configured.
44988         Fixes bug on HP-UX/IA64.
44989
44990 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
44991
44992         * lib/getdate.y (__attribute__): Don't define if already defined.
44993         Problem reported by Larry Jones.
44994         * lib/utimens.c (__attribute__): Likewise.
44995
44996 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
44997
44998         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
44999         reported by Andreas Schwab.
45000
45001 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45002             Bruno Haible  <bruno@clisp.org>
45003
45004         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
45005         check for the declaration of strnlen and a run test that exposes the
45006         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
45007         rpl_strndup.
45008
45009 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45010             Bruno Haible  <bruno@clisp.org>
45011
45012         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
45013
45014 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45015
45016         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
45017         compile test, for Tru64 4.0D.
45018
45019 2006-05-28  Karl Berry  <karl@gnu.org>
45020
45021         * config/srclist.txt (printf-args.c): lose sync.
45022
45023 2006-05-26  Martin Lambers  <marlam@marlam.de>
45024
45025         * lib/getpass.c: Updates the test for the native W32 API, and adds
45026         missing includes, thus fixing compilation warnings.
45027
45028 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45029
45030         * lib/exclude.c (exclude_fnmatch): New function.
45031         (excluded_file_name): Call exclude_fnmatch.
45032         * lib/exclude.h (excluded_file_name): New prototype
45033
45034 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
45035
45036         * lib/tempname.c (small_open, large_open): New macros.
45037         (__open, __open64) [!_LIBC]: Remove.
45038         (__gen_tempname): Use small_open and large_open instead of __open
45039         and __open64.  This fixes a portability bug on HP-UX 11.11i
45040         reported by Simon Wing-Tang in
45041         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
45042
45043 2006-05-24  Bruno Haible  <bruno@clisp.org>
45044
45045         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
45046         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
45047         Reported by Thorsten Maerz <torte@netztorte.de> via
45048         Aaron Stone <aaron@serendipity.cx>.
45049
45050 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
45051
45052         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
45053         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
45054         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
45055         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
45056         not really conditional on the cache.
45057         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
45058
45059 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
45060
45061         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
45062         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
45063         (my_usleep): Don't mishandle maximum value.
45064
45065 2006-05-19  Jim Meyering  <jim@meyering.net>
45066
45067         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
45068
45069 2006-05-17  Bruno Haible  <bruno@clisp.org>
45070
45071         Cygwin portability.
45072         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
45073
45074 2006-05-17  Bruno Haible  <bruno@clisp.org>
45075
45076         * lib/stdint_.h: Fix recognition of Cygwin.
45077
45078 2006-05-15  Bruno Haible  <bruno@clisp.org>
45079
45080         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
45081         on libtool patch by Ralf Wildenhues.
45082
45083 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
45084
45085         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
45086         test for C99 conformance; (bool) 0.5 is an integer constant
45087         expression, but (bool) -0.5 is not.  Problem reported by Fedor
45088         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
45089
45090 2006-05-11  Simon Josefsson  <jas@extundo.com>
45091
45092         * m4/xvasprintf.m4: Fix obvious typo.
45093
45094 2006-05-11  Jim Meyering  <jim@meyering.net>
45095
45096         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
45097         James Lemley.
45098
45099 2006-05-10  Simon Josefsson  <jas@extundo.com>
45100
45101         * lib/md4.c: Typo fix, update copyright years.
45102         (K1, K2): Don't use L because it turn computations into 64-bit on
45103         64-bit platforms.
45104
45105 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
45106
45107         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
45108         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
45109         unwanted sign propagation, e.g., on hosts with 64-bit int.
45110         There still are some problems with reeelly weird theoretical hosts
45111         (e.g., 33-bit int) but it's not worth worrying about now.
45112         * lib/sha1.c (rol): Likewise.
45113         (K1, K2, K3, K4): Remove unnecessary L suffix.
45114
45115 2006-05-10  Bruno Haible  <bruno@clisp.org>
45116
45117         * lib/des.c: Cast to avoid warnings.
45118
45119 2006-05-09  Bruno Haible  <bruno@clisp.org>
45120
45121         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
45122         (Depends-on): Depend also on xsize, stdarg.
45123         (configure.ac): Add gl_XVASPRINTF.
45124
45125 2006-05-09  Bruno Haible  <bruno@clisp.org>
45126
45127         * m4/xvasprintf.m4: New file.
45128
45129 2006-05-09  Bruno Haible  <bruno@clisp.org>
45130
45131         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
45132         (EOVERFLOW): Define fallback value.
45133         (xstrcat): New function.
45134         (xvasprintf): Recognize the special case of a string concatenation.
45135
45136 2006-05-08  Eric Blake  <ebb9@byu.net>
45137
45138         * gnulib-tool (func_version): Base copyright year on CVS date.
45139         (func_emit_copyright_notice): New function.
45140         (func_emit_lib_Makefile_am): Use it.
45141         (func_emit_tests_Makefile_am): Likewise.
45142         (func_import): Likewise.
45143
45144 2006-05-08  Bruno Haible  <bruno@clisp.org>
45145
45146         * modules/stdarg: New file.
45147         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
45148
45149 2006-05-08  Bruno Haible  <bruno@clisp.org>
45150
45151         * m4/stdarg.m4: New file, from GNU gettext.
45152
45153 2006-05-08  Bruno Haible  <bruno@clisp.org>
45154
45155         * config/srclist.txt (build-aux/config.rpath): different from latest
45156         release.
45157
45158 2006-05-08  Bruno Haible  <bruno@clisp.org>
45159
45160         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
45161
45162 2006-05-05  Jim Meyering  <jim@meyering.net>
45163
45164         * m4/warning.m4: New file, derived from bison's file by the same name.
45165
45166 2006-05-03  Bruno Haible  <bruno@clisp.org>
45167
45168         * lib/stdint_.h: Shorter URL.
45169         * lib/inttypes.h: Likewise.
45170
45171 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
45172
45173         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
45174
45175 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
45176
45177         * lib/verify.h: Document the internals better.  Most of this change
45178         was written by Bruno Haible.
45179
45180 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
45181
45182         * doc/verify.texi: New file, partly based on a proposal by
45183         Bruno Haible.
45184
45185 2006-05-02  Bruno Haible  <bruno@clisp.org>
45186
45187         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
45188         test from here...
45189         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
45190
45191 2006-04-29  Bruno Haible  <bruno@clisp.org>
45192
45193         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
45194         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
45195
45196 2006-04-29  Bruno Haible  <bruno@clisp.org>
45197
45198         * gnulib-tool: Make --update option actually work.
45199
45200 2006-04-29  Bruno Haible  <bruno@clisp.org>
45201
45202         * doc/gcd.texi: New file.
45203         * doc/gnulib.texi: Include it.
45204
45205 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
45206
45207         * lib/getdate.y (get_date): When adding relative date, start with the
45208         initial time, not with the result of the first mktime call.
45209
45210 2006-04-25  Bruno Haible  <bruno@clisp.org>
45211
45212         * gnulib-tool (func_import): Output the include directives in three
45213         blocks, sorted separately.
45214         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45215
45216 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
45217
45218         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
45219         to define main with arguments, for C++.  Reported by Eric Blake.
45220         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
45221         Prefer 'int main ()' to 'int main (void)', for C++.
45222         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
45223         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
45224         for 'main', for C99 and C++.
45225
45226 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
45227
45228         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
45229         Don't assume that exit status -1 is valid.
45230         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45231         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
45232         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45233         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
45234         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
45235         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
45236         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
45237         functions can be used without declaring them, or that you can
45238         exit with status -1.
45239         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45240
45241 2006-04-24  Karl Berry  <karl@gnu.org>
45242
45243         * config/srclist.txt (longdouble.m4): sync lost.
45244
45245 2006-04-24  Eric Blake  <ebb9@byu.net>
45246
45247         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
45248
45249 2006-04-24  Bruno Haible  <bruno@clisp.org>
45250
45251         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
45252         poll() implementation in AIX.
45253         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45254
45255 2006-04-24  Bruno Haible  <bruno@clisp.org>
45256
45257         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
45258         assigned exactly once.
45259
45260 2006-04-23  Claudio Fontana  <claudio@gnu.org>
45261             Bruno Haible  <bruno@clisp.org>
45262
45263         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
45264         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
45265         for AM_CPPFLAGS.
45266
45267 2006-04-23  Bruno Haible  <bruno@clisp.org>
45268
45269         * modules/copy-file: Depend on unistd.
45270         * modules/execute: Likewise.
45271         * modules/fatal-signal: Likewise.
45272         * modules/findprog: Likewise.
45273         * modules/mkdtemp : Likewise.
45274         * modules/pipe: Likewise.
45275         * modules/wait-process: Likewise.
45276
45277 2006-04-23  Bruno Haible  <bruno@clisp.org>
45278
45279         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
45280         condition was already detected.
45281         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45282
45283 2006-04-23  Bruno Haible  <bruno@clisp.org>
45284
45285         * lib/copy-file.c: Include <unistd.h> unconditionally.
45286         * lib/execute.c: Likewise.
45287         * lib/fatal-signal.c: Likewise.
45288         * lib/findprog.c: Likewise.
45289         * lib/mkdtemp.c: Likewise.
45290         * lib/pipe.h: Likewise.
45291         * lib/pipe.c: Likewise.
45292         * lib/wait-process.h: Likewise.
45293
45294 2006-04-23  Bruno Haible  <bruno@clisp.org>
45295
45296         * gnulib-tool (func_usage): Fix --import description. Document
45297         --update.
45298         (func_import): Create temporary file in a temporary directory, if
45299         --dry-run is specified. Silence errors from 'grep' when there are no
45300         m4 files in $m4dir.
45301         (func_create_testdir): Silence errors from 'grep' when there are no
45302         m4 files in $m4dir.
45303         Reported by Karl Berry <karl@freefriends.org>.
45304
45305 2006-04-20  Bruno Haible  <bruno@clisp.org>
45306
45307         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
45308         one argument, so that the code will be portable to Autoconf 2.60.
45309         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
45310         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45311         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
45312
45313 2006-04-19  Derek Price  <derek@ximbiot.com>
45314             Eric Blake  <ebb9@byu.net>
45315
45316         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
45317         rather than "/full/path.h".  Update comment to match.  Shorten &
45318         generalize m4_translit call via AS_TR_CPP.
45319
45320 2006-04-19  Derek Price  <derek@ximbiot.com>
45321             Eric Blake  <ebb9@byu.net>
45322
45323         * lib/inttypes.h: Correct grammar in comment.
45324
45325 2006-04-18  Derek Price  <derek@ximbiot.com>
45326             Paul Eggert  <eggert@cs.ucla.edu>
45327
45328         * modules/inttypes: New file.
45329         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
45330
45331 2006-04-18  Derek Price  <derek@ximbiot.com>
45332             Paul Eggert  <eggert@cs.ucla.edu>
45333
45334         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
45335         New files.
45336
45337 2006-04-18  Derek Price  <derek@ximbiot.com>
45338             Paul Eggert  <eggert@cs.ucla.edu>
45339
45340         * lib/inttypes.h: New file.
45341         * lib/strtoimax.c: Assume <inttypes.h>.
45342
45343 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
45344
45345         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
45346         isn't mounted.  Problem reported by Kir Kolyshkin.
45347
45348 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
45349
45350         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
45351         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
45352         Derek R. Price.
45353         * lib/regex.h (RE_DUP_MAX): Update comment to match current
45354         implementation.
45355
45356 2006-04-12  Eric Blake  <ebb9@byu.net>
45357
45358         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
45359         is now done automatically by the corresponding Autoconf macro.
45360
45361 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
45362
45363         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
45364         time_r.h.
45365
45366 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45367
45368         Merge regex changes from libc, removing some of our
45369         POSIX-conformance changes that were rejected and redoing them in a
45370         less-intrusive way.
45371
45372         * lib/regcomp.c (re_compile_internal, init_dfa):
45373         Length arg is now size_t, not Idx.  All uses changed.
45374         (peek_token): Forward decl now says internal_function.
45375         (__re_error_msgid, __re_error_msgid_idx):
45376         Now static rather than extern with attribute_hidden.
45377         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
45378         For some reason libc prefers K&R style defns for external functions.
45379         (regerror) [!defined _LIBC]: Likewise.
45380         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
45381         (seek_collating_symbol_entry, lookup_collation_sequence_value):
45382         (build_range_exp, build_collating_symbol):
45383         Use K&R-style defn.
45384         (re_compile_fastmap): Use '\0' to memset, not 0.
45385         (utf8_sb_map): Make the calculations more obvious.
45386         (init_dfa, parse_bracket_exp, build_charclass_op):
45387         Call calloc and cast result, as glibc does.
45388         (init_word_char, fetch_token, peek_token, peek_token_bracket):
45389         (build_range_exp, build_collating_symbol):
45390         Now internal functions.
45391
45392         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
45393
45394         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
45395         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
45396         Don't depend on VMS; depend on __VMS instead, for POSIX
45397         namespace cleanness.
45398         (regoff_t): Define to ssize_t, not long int.
45399
45400         Remove the REG_ macros named below.  Instead, make the old names
45401         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
45402         __USE_GNU_REGEX.
45403         (REG_BACKSLASH_ESCAPE_IN_LISTS):
45404         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
45405         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
45406         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
45407         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
45408         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
45409         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
45410         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
45411         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
45412         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
45413         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
45414         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
45415         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
45416         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
45417         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
45418         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
45419         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
45420         (REG_NREGS):
45421         Remove.  All uses replaced by the old RE_* names.
45422         (RE_BACKSLASH_ESCAPE_IN_LISTS):
45423         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
45424         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
45425         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
45426         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
45427         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
45428         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
45429         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
45430         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
45431         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
45432         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
45433         Don't bother having these macros be independent of each others'
45434         values, since they no longer exist in the POSIX name space.
45435
45436         Rename the following member names back to their old names,
45437         unless !__USE_GNU_REGEX.  All uses changed back.
45438         (buffer): Renamed from re_buffer.
45439         (allocated): Renamed from re_allocated.
45440         (used): Renamed from re_used.
45441         (syntax): Renamed from re_syntax.
45442         (fastmap): Renamed from re_fastmap.
45443         (translate): Renamed from re_translate.
45444         (can_be_null): Renamed from re_can_be_null.
45445         (regs_allocated): Renamed from re_regs_allocated.
45446         (fastmap_accurate): Renamed from re_fastmap_accurate.
45447         (no_sub): Renamed from re_no_sub.
45448         (not_bol): Renamed from re_not_bol.
45449         (not_eol): Renamed from re_not_eol.
45450         (newline_anchor): Renamed from re_newline_anchor.
45451         (num_regs): Renamed from rm_num_regs.
45452         (start): Renamed from rm_start.
45453         (end): Renamed from rm_end.
45454
45455         (free_state): Move up a bit.
45456
45457         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
45458         #define to be empty.
45459         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
45460         when that is what is intended.
45461         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
45462         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
45463         (MAX): New macro.
45464         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
45465         All uses changed back to re_malloc, etc.  It's now the caller's
45466         responsibility to check for overflow; all callers changed.
45467         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
45468         (re_x2nrealloc): Remove.
45469         (free_state): Remove decl.
45470
45471         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
45472         (re_set_registers, re_exec):
45473         Use K&R-style defn.
45474
45475         2006-01-31  Roland McGrath  <roland@redhat.com>
45476
45477         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
45478         Reported by Mike Frysinger <vapier@gentoo.org>.
45479
45480         2006-01-15  Andreas Jaeger  <aj@suse.de>
45481
45482         [BZ #1950]
45483         * lib/regex_internal.c (re_string_reconstruct): Adjust for
45484         build_wcs_upper_buffer change.
45485         (build_wcs_upper_buffer): Change return type.
45486
45487         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
45488
45489         * lib/regex_internal.h: Include <stdint.h> if available.
45490
45491         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
45492
45493         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
45494
45495         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
45496
45497         * lib/regcomp.c: Adjust for changed secondary hash function.
45498
45499         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
45500
45501         * lib/regex.h: Pretty printing.
45502         Clean up namespace a bit.
45503
45504         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
45505
45506         * lib/regexec.c (update_cur_sifted_state, check_arrival,
45507         check_arrival_add_next_nodes): Avoid using uninitialized variable.
45508
45509         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
45510                     Ulrich Drepper  <drepper@redhat.com>
45511
45512         [BZ #1302]
45513         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
45514         changed.
45515         (bitset_word_t): Renamed from bitset_word.  All uses changed.
45516
45517         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
45518
45519         [BZ #281]
45520         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
45521         * lib/regcomp.c: Remove unnecessary uses of
45522         unsigned RE_TRANSLATE_TYPE.
45523         * lib/regex_internal.h: Likewise.
45524         * lib/regex_internal.c: Likewise.
45525         * lib/regexec.c: Likewise.
45526         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
45527
45528         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
45529
45530         * lib/regexec.c (find_recover_state): Remove unnecessary
45531         initialization.
45532         (transit_state_bkref): Make DFA a const pointer.
45533         (get_subexp): Likewise.
45534         (check_arrival): Likewise.
45535         (update_cur_sifted_state): Likewise.
45536         (re_search_internal): Likewise.
45537         (prune_impossible_nodes): Likewise.
45538         (acquire_init_state_context): Likewise.
45539         (proceed_next_node): Likewise.
45540         (set_regs): Likewise.
45541         (free_fail_stack_return): Likewise.
45542         (check_arrival_expand_ecl): Mark DFA parameter as const.
45543         (check_arrival_expand_ecl_sub): Likewise.
45544         (check_subexp_limits): Likewise.
45545         (sub_epsilon_src_nodes):  Likewise.
45546         (add_epsilon_src_nodes):  Likewise.
45547         (merge_state_array): Likewise.
45548         (update_regs): Likewise.
45549         (build_trtable): Likewise.
45550         (sift_states_backward): Mark MCTX parameter as const.
45551         (build_sifted_states): Likewise.
45552         (update_cur_sifted_state): Likewise.
45553         (sift_states_mkref): Likewise.
45554         (check_arrival_expand_ecl): Mark eclosure as const.
45555         (check_dst_limits_calc_pos_1): Likewise.
45556         * lib/regex_internal.h (re_match_context_t): Make dfa a const
45557         pointer.
45558
45559         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
45560
45561         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
45562         (transit_state_sb): Likewise.
45563         (transit_state_mb): Likewise.
45564         (sift_states_iter_mb): Likewise.
45565         (check_arrival_add_next_nodes): Likewise.
45566         (check_node_accept_bytes): Change first parameter to pointer-to-const.
45567         [_LIBC] (re_search_2_stub): Use mempcpy.
45568
45569         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
45570         mbrtowc for very simple UTF-8 case.
45571
45572         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
45573         a pointer-to-const.
45574         (re_acquire_state_context): Likewise.
45575         * lib/regex_internal.h: Adjust prototypes.
45576
45577         * lib/regex.c: Prevent using C++ compilers.
45578
45579         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
45580         (re_acquire_state_context): Likewise.
45581
45582 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45583
45584         * modules/regex (Depends-on): Add ssize_t.
45585
45586 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45587
45588         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
45589         translation table.
45590
45591 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45592
45593         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
45594
45595 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
45596             Bruno Haible  <bruno@clisp.org>
45597
45598         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
45599         <sys/types.h> and <inttypes.h>.
45600
45601 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45602
45603         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
45604         `__error_t_defined', so argp.h will not typedef the former.
45605
45606 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45607
45608         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
45609         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
45610         glibc names.  Even if glibc is changed to conform to POSIX, the
45611         traditional names will be available anyway, since regex depends on
45612         the extensions module.  Also, fix a longstanding typo in the
45613         implementation of Spencer ERE test #75 from grep 2.3.  Problems
45614         reported by Emanuele Giaquinta.  Also, change sense of cached
45615         variable, so that the message makes sense.
45616
45617 2006-03-24  Simon Josefsson  <jas@extundo.com>
45618
45619         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
45620         including some doc fixes.
45621         (base64_encode_alloc): Fix +1 bug on allocation failures.
45622
45623 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45624
45625         * lib/base64.c (base64_encode): Do not read past end of array with
45626         unsanitized input on systems with CHAR_BIT > 8.
45627
45628 2006-03-24  Eric Blake  <ebb9@byu.net>
45629
45630         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
45631
45632 2006-03-22  Karl Berry  <karl@gnu.org>
45633
45634         * config/srclist.txt (*setenv.[ch]): get from coreutils.
45635         * config/srclistvars.sh (COREUTILS): new var.
45636
45637 2006-03-17  Jim Meyering  <jim@meyering.net>
45638
45639         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
45640         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
45641
45642 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
45643
45644         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
45645         no longer needs it.  Instead, check that regoff_t is as least
45646         as wide as ptrdiff_t.
45647
45648         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
45649         so that our regex.h stays compatible with the installed regex.
45650         This is helpful for installers who configure --without-included-regex.
45651         Problem reported by Emanuele Giaquinta.
45652
45653 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
45654
45655         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
45656         Typedef to long int, not to off_, as POSIX will likely change
45657         in that direction.
45658
45659 2006-03-15  Eric Blake  <ebb9@byu.net>
45660
45661         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
45662
45663 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
45664
45665         * lib/argp-help.c (validate_uparams): Fix typo
45666         * lib/argp-parse.c (argp_default_options): Consistently begin help
45667         messages with a lowercase letter.
45668
45669 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
45670
45671         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
45672         overrun buffers and shouldn't be used (much as gets shouldn't be
45673         used).
45674         * lib/time_r.c (asctime_r, ctime_r): Likewise.
45675
45676 2006-03-08  Simon Josefsson  <jas@extundo.com>
45677
45678         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
45679         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45680
45681 2006-03-08  Simon Josefsson  <jas@extundo.com>
45682
45683         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
45684         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45685
45686 2006-03-08  Simon Josefsson  <jas@extundo.com>
45687
45688         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
45689         signal that configure disabled the device.
45690
45691 2006-03-08  Simon Josefsson  <jas@extundo.com>
45692
45693         * build-aux/maint.mk: Fix refresh-po, to handle no translated
45694         languages.
45695
45696 2006-03-07  Simon Josefsson  <jas@extundo.com>
45697
45698         * modules/getopt (Depends-on): Add unistd.
45699
45700         * modules/unistd: New file.
45701
45702 2006-03-07  Simon Josefsson  <jas@extundo.com>
45703
45704         * modules/gc-random: New file.
45705
45706 2006-03-07  Simon Josefsson  <jas@extundo.com>
45707
45708         * m4/unistd_h.m4: New file.
45709
45710 2006-03-07  Simon Josefsson  <jas@extundo.com>
45711
45712         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
45713         test to be side-effect free by storing the result in the cache
45714         variable gl_cv_lib_readline, and moving the assignment of
45715         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
45716         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45717
45718 2006-03-07  Simon Josefsson  <jas@extundo.com>
45719
45720         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
45721         error on missing devices (the functions will return an error).
45722
45723         * m4/gc.m4: Move random stuff to gc-random.m4
45724
45725 2006-03-07  Simon Josefsson  <jas@extundo.com>
45726
45727         * lib/unistd_.h: New file.
45728
45729 2006-03-07  Simon Josefsson  <jas@extundo.com>
45730
45731         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
45732
45733 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
45734
45735         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
45736         Problem reported by Juan Manuel Guerrero.
45737
45738 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
45739
45740         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
45741         the unistd module.
45742         * lib/getlogin_r.c: Likewise.
45743         * lib/getlogin_r.h: Likewise.
45744         * lib/glob.c: Likewise.
45745         * lib/pagealign_alloc.c: Likewise.
45746         * lib/unistd_.h: Remove; no longer needed.
45747
45748 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
45749
45750         * MODULES.html.sh (Support for systems lacking POSIX:2001):
45751         Add unistd.
45752         * modules/c-stack (Depends-on): Add unistd.
45753         * modules/getlogin_r: Likewise.
45754         * modules/glob: Likewise.
45755         * modules/pagealign_alloc: Likewise.
45756         * modules/unistd (Files): Remove lib/unistd_.h.
45757         (EXTRA_DIST): Remove.
45758         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
45759         need unistd_.h.
45760         (MOSTLYCLEANFILES): Remove unistd.h-t.
45761
45762 2006-03-03  Simon Josefsson  <jas@extundo.com>
45763
45764         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
45765
45766 2006-03-03  Simon Josefsson  <jas@extundo.com>
45767
45768         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
45769         libidn and bison.
45770
45771 2006-03-03  Simon Josefsson  <jas@extundo.com>
45772
45773         * build-aux/maint.mk: Add indent target.
45774
45775 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
45776
45777         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
45778         our replacement poll.h in any case, to avoid a differing
45779         declaration from a system header.  Seen on AIX.
45780
45781 2006-03-01  Simon Josefsson  <jas@extundo.com>
45782
45783         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
45784         <kasal@ucw.cz>.
45785
45786 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
45787
45788         * modules/gettime (Depends-on): Add extensions module.
45789         * modules/nanosleep (Depends-on): Likewise.
45790         * modules/settime (Depends-on): Likewise.
45791
45792 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
45793
45794         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
45795         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
45796         pedantically.
45797         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45798         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
45799
45800         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
45801         not "==".  Reported by Ralf Wildenhues.
45802
45803 2006-03-01  Karl Berry  <karl@gnu.org>
45804
45805         * doc/Copyright/request-*: new files, synced from gnuorg.
45806
45807 2006-03-01  Karl Berry  <karl@gnu.org>
45808
45809         * config/srclist.txt (Copyright/*): new entries.
45810
45811 2006-02-28  Simon Josefsson  <jas@extundo.com>
45812
45813         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
45814
45815 2006-02-27  Simon Josefsson  <jas@extundo.com>
45816
45817         * lib/base64.h: Indent #define's.  From Jim Meyering
45818         <jim@meyering.net>.
45819
45820 2006-02-27  Jim Meyering  <jim@meyering.net>
45821
45822         Revert the change of 2006-02-24, so these files can continue
45823         to be sync'd from gettext.
45824         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
45825         of `config.h'.
45826
45827 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
45828
45829         * modules/intprops: New file.
45830         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
45831         Add intprops.
45832         * modules/getloadavg (Files): Remove lib/intprops.h.
45833         (Depends-on): Add intprops.
45834         * modules/human: Likewise.
45835         * modules/inttostr: Likewise.
45836         * modules/openat: Likewise.
45837         * modules/sig2str: Likewise.
45838         * modules/userspec: Likewise.
45839         * modules/utimecmp: Likewise.
45840         * modules/xnanosleep: Likewise.
45841         * modules/xstrtol: Likewise.
45842
45843 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
45844
45845         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
45846         * modules/lock-tests (TESTS): Use $(EXEEXT).
45847         * modules/tls-tests: Likewise.
45848         * modules/argp-tests: Likewise.
45849         (check_PROGRAMS): New var, replacing...
45850         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
45851
45852 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45853
45854         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
45855         `config.h'.
45856
45857 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
45858
45859         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
45860
45861 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45862
45863         Sync from coreutils.
45864         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
45865         gl_CHDIR_SAFER.
45866
45867 2006-02-22  Jim Meyering  <jim@meyering.net>
45868
45869         Sync from coreutils.
45870         * m4/chdir-safer.m4: New file.
45871
45872 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
45873
45874         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
45875         AT_FDCWD exceeds INT_MAX.
45876         * lib/openat.h (AT_FDCWD): Likewise.
45877
45878 2006-02-17  Eric Blake  <address@hidden>
45879
45880         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
45881
45882 2006-02-16  Simon Josefsson  <jas@extundo.com>
45883
45884         * modules/getaddrinfo (Depends-on): Add sys_socket.
45885
45886 2006-02-15  Simon Josefsson  <jas@extundo.com>
45887
45888         * build-aux/maint.mk: Add dsyntax-check rule.
45889
45890 2006-02-15  Eric Blake  <ebb9@byu.net>
45891
45892         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
45893         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
45894         'present but cannot compile' warnings on cygwin.
45895         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
45896         use ws2tcpip.h if sys/socket.h works.
45897         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
45898         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
45899
45900 2006-02-14  Simon Josefsson  <jas@extundo.com>
45901
45902         * modules/maintainer-makefile (Files): Rename.
45903
45904         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
45905         and (the local) Makefile.cfg to maint-cfg.mk.
45906
45907         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
45908         to the latter.
45909
45910         * modules/maintainer-makefile: New module.
45911
45912         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
45913         severaly stripped to make it possible to build it up from scratch
45914         with reliable tests.
45915
45916         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
45917         fixes to permit overriding the default actions when configure and
45918         makefile are not available.
45919
45920 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
45921
45922         Sync from coreutils.
45923         * modules/lstat (Depends-on): Don't depend on xalloc.
45924         (License): Change from GPL to LGPL, since this is now simply a
45925         replacement for a libc function.
45926
45927 2006-02-14  Jim Meyering  <jim@meyering.net>
45928
45929         Sync from coreutils.
45930
45931         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
45932         failure on deficient systems, and simplify gnulib lgpl dependencies.
45933         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
45934         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
45935
45936         * lib/xalloc-die.c: Remove unused definition of N_.
45937
45938 2006-02-14  Jim Meyering  <jim@meyering.net>
45939
45940         Sync from coreutils.
45941         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
45942         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
45943         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
45944         double-quote uses of that variable, to accommodate the rare case in
45945         which getmntent is available in none of the libraries checked.  This
45946         happens at least on FreeBSD 5.0.
45947
45948 2006-02-13  Simon Josefsson  <jas@extundo.com>
45949
45950         * gnulib-tool (Usage): Fix --import, from
45951         karl@freefriends.org (Karl Berry).
45952
45953 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
45954
45955         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
45956
45957 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
45958
45959         * lib/argp-namefrob.h: Restore changes accidentally lost during the
45960         "autoupdate" on 2005-12-12.
45961
45962 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
45963
45964         * modules/closeout (Depends-on): Remove atexit.
45965
45966 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
45967
45968         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
45969         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
45970
45971 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
45972
45973         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
45974         __EXTENSIONS__ if this causes compilation to fail.  Problem
45975         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
45976         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
45977
45978 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
45979
45980         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
45981         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
45982         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
45983         All uses changed.
45984
45985 2006-01-26  Simon Josefsson  <jas@extundo.com>
45986
45987         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
45988         prototype is visible on mingw32.
45989
45990         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
45991         for mingw32.
45992
45993         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
45994         mingw32).
45995
45996 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
45997
45998         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
45999         attempt to open for write; this always fails, at least on POSIX
46000         hosts.  This reinstates the 2006-01-09 change, which was
46001         inadvertently removed.
46002
46003 2006-01-26  Bruno Haible  <bruno@clisp.org>
46004
46005         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
46006         Reported by Paul Eggert.
46007
46008 2006-01-26  Bruno Haible  <bruno@clisp.org>
46009             Paul Eggert  <eggert@cs.ucla.edu>
46010
46011         * lib/stdbool_.h (_Bool)
46012         [(! (defined __cplusplus || defined __BEOS__)
46013           && !defined __GNUC__
46014           && !(defined __HP_cc || defined __xlc__
46015                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
46016                || defined __sgi))]:
46017         #define to signed char in these cases too; this simplifies
46018         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
46019         etc., separately) and makes it more conservative.
46020
46021 2006-01-25  Simon Josefsson  <jas@extundo.com>
46022
46023         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
46024         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
46025         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
46026
46027 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46028
46029         * lib/argp-namefrob.h: Bugfix. Remove stray #
46030
46031 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
46032
46033         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
46034         so that we test the test.
46035         Check for yet another HP-UX cc bug involving *bool |= bool.
46036
46037 2006-01-25  Karl Berry  <karl@gnu.org>
46038
46039         * config/srclist.txt (vasnprintf.c): sync lost.
46040
46041 2006-01-25  Jim Meyering  <jim@meyering.net>
46042
46043         Sync from the stable (b5) branch of coreutils:
46044
46045         * lib/fts.c (fts_children): Don't let close() clobber errno from
46046         failed fchdir().
46047
46048         * lib/fts.c (fts_stat): When following a symlink-to-directory,
46049         don't necessarily interpret stat-fails+lstat-succeeds as indicating
46050         a dangling symlink.  That can also happen at least for ELOOP.
46051         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
46052         FYI, this bug predates the inclusion of fts.c in coreutils.
46053
46054         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
46055         in their own block, so pre-c99 compilers don't object.
46056
46057         Avoid the double-free (first in fts_read, second in fts_close) that
46058         would occur when an `active' directory is made inaccessible (e.g.,
46059         via chmod a-x) during a traversal.
46060         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46061         before returning.  Reproduce this failure by
46062         mkdir -p a/b; cd a; chmod a-x . b
46063         Reported by Stavros Passas.
46064
46065 2006-01-25  Jim Meyering  <jim@meyering.net>
46066
46067         * lib/fileblocks.c: Remove more useless parentheses.
46068         * lib/readutmp.h: Likewise.
46069
46070 2006-01-25  Bruno Haible  <bruno@clisp.org>
46071
46072         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
46073         warnings.
46074         Reported by Paul Eggert.
46075
46076 2006-01-25  Bruno Haible  <bruno@clisp.org>
46077
46078         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
46079         rid of a trap command. For Solaris sh.
46080         Reported by Mark D. Baushke <mdb@gnu.org>.
46081
46082 2006-01-24  Simon Josefsson  <jas@extundo.com>
46083
46084         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
46085         Bruno.
46086
46087 2006-01-24  Karl Berry  <karl@gnu.org>
46088
46089         * config/srclist.txt (argp-namefrob.h): sync lost.
46090
46091 2006-01-24  Jim Meyering  <jim@meyering.net>
46092
46093         * modules/openat (Files): Add lib/intprops.h.
46094         From Mark D. Baushke.
46095
46096 2006-01-24  Jim Meyering  <jim@meyering.net>
46097
46098         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
46099         Reported by Mark D. Baushke.
46100
46101 2006-01-24  Jim Meyering  <jim@meyering.net>
46102
46103         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
46104
46105 2006-01-24  Bruno Haible  <bruno@clisp.org>
46106
46107         * modules/strnlen (Maintainer): Change from glibc to all.
46108
46109 2006-01-24  Bruno Haible  <bruno@clisp.org>
46110
46111         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
46112         Patch by Paul Eggert.
46113
46114 2006-01-24  Bruno Haible  <bruno@clisp.org>
46115
46116         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
46117         already has it.
46118         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
46119         2005-11-26.
46120
46121         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
46122         'signed char' to avoid problems with the built-in _Bool type.
46123         Reported by Paul Eggert on 2005-11-26.
46124
46125 2006-01-24  Bruno Haible  <bruno@clisp.org>
46126
46127         * gnulib-tool (func_import): Avoid constructing complicated sed
46128         expressions inside backquote.
46129         Report and solution by Mark D. Baushke <mdb@gnu.org>.
46130
46131 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
46132
46133         These changes imported from libc.
46134         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
46135         test and two separate function calls.
46136         * lib/strndup.c (__strndup): Add libc_hidden_def.
46137
46138 2006-01-23  Simon Josefsson  <jas@extundo.com>
46139
46140         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
46141         Remove the test_*_SOURCES variable: automake infers it by default.
46142         * modules/tls-tests: Likewise.
46143
46144 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46145
46146         Work around porting bugs reported by Dieter in
46147         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
46148         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
46149         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
46150         Include "getopt.h" first, to check interface.
46151         (getenv): Declare only if defined HAVE_DECL_GETENV &&
46152         !HAVE_DECL_GETENV.
46153         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
46154         (__strndup): Revert to K&R-style function dfns, the glibc style.
46155         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
46156         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
46157         Include strnlen.h first, to get prototype properly.
46158         (strnlen): Renamed from __strnlen.
46159         Remove weak alias.
46160
46161 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46162
46163         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
46164
46165 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46166
46167         * config/srclist.txt: Adjust to reflect glibc reorganization.
46168         This affects only comments.
46169
46170 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
46171
46172          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
46173          Reported by Bruce Korb <bkorb@gnu.org>.
46174
46175 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
46176
46177         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
46178         to pacify gcc -Wswitch-default.
46179
46180 2006-01-22  Bruno Haible  <bruno@clisp.org>
46181
46182         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
46183         temporary buffer for sprintf, take into account the precision also
46184         for 'd', 'i', 'u', 'o', 'x', 'X'.
46185
46186 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
46187
46188         * modules/argp-tests: New module
46189         * tests/test-argp.c: New file
46190         * tests/test-argp-2.sh: New file
46191
46192 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
46193
46194         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
46195         (__argp_base_name): Removed
46196         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
46197         typo.
46198         (__argp_base_name): Provide macro definition or extern declaration
46199         depending on the configuration
46200
46201 2006-01-20  Simon Josefsson  <jas@extundo.com>
46202
46203         * modules/inet_ntop (Depends-on): Depend on sys_socket.
46204
46205 2006-01-20  Simon Josefsson  <jas@extundo.com>
46206
46207         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
46208
46209 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
46210
46211         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
46212         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
46213         Suggested by Bruno Haible.
46214
46215 2006-01-20  Karl Berry  <karl@gnu.org>
46216
46217         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
46218         until changes propagate, I guess.
46219
46220 2006-01-19  Simon Josefsson  <jas@extundo.com>
46221
46222         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
46223
46224 2006-01-19  Simon Josefsson  <jas@extundo.com>
46225
46226         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
46227
46228 2006-01-19  Simon Josefsson  <jas@extundo.com>
46229
46230         * gnulib-tool: Set check_PROGRAMS.
46231
46232         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
46233         modules/des-tests, modules/gc-arcfour-tests,
46234         modules/gc-arctwo-tests, modules/gc-des-tests,
46235         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
46236         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
46237         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
46238         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
46239         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
46240         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
46241         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
46242         test_*_SOURCES.
46243
46244 2006-01-18  Simon Josefsson  <jas@extundo.com>
46245
46246         * modules/socklen (Depends-on): Depend on sys_socket.
46247
46248 2006-01-18  Simon Josefsson  <jas@extundo.com>
46249
46250         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
46251         modules/des-tests, modules/gc-arcfour-tests,
46252         modules/gc-arctwo-tests, modules/gc-des-tests,
46253         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
46254         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
46255         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
46256         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
46257         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
46258         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
46259         $(EXEEXT) to automake TESTS variable, for mingw32.
46260
46261 2006-01-17  Simon Josefsson  <jas@extundo.com>
46262
46263         * modules/socklen (Include): Need sys/socket.h.
46264
46265 2006-01-17  Bruno Haible  <bruno@clisp.org>
46266
46267         * modules/ssize_t (Include): Add <sys/types.h>.
46268
46269 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
46270
46271         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
46272         it's not portable and it doesn't work with cross-compiles.
46273         Problem reported by Bruno Haible.  Fix missing-$ typo in
46274         'test "gl_cv_ignore_unused_libraries" ...' that prevented
46275         -zignore from being used with Sun's C compiler.
46276
46277 2006-01-12  Simon Josefsson  <jas@extundo.com>
46278
46279         * lib/base64.c: Fix warning, reported by Bruno Haible
46280         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
46281
46282 2006-01-12  Bruno Haible  <bruno@clisp.org>
46283
46284         * modules/ldd: New file.
46285         * build-aux/ldd.sh.in: New file.
46286         * MODULES.html.sh (Support for building libraries and executables): Add
46287         ldd.
46288
46289 2006-01-12  Bruno Haible  <bruno@clisp.org>
46290
46291         * m4/ldd.m4: New file.
46292
46293 2006-01-12  Bruno Haible  <bruno@clisp.org>
46294
46295         * gnulib-tool (func_import, func_create_testdir): Don't go into an
46296         endless loop while replacing $auxdir with build-aux.
46297
46298 2006-01-11  Simon Josefsson  <jas@extundo.com>
46299
46300         * lib/stdint_.h (SIZE_MAX): Add missing (.
46301
46302 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
46303
46304         Sync from coreutils.
46305         * lib/md5.c: Fix commentary typos.
46306         (alignof, UNALIGNED_P): No need for a GCC-specific version.
46307         * lib/md5.h (__attribute__): Remove; unused.
46308         * lib/sha1.c: Fix commentary to match md5 better.
46309         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
46310         so that we don't need to worry about alignment.  All uses changed.
46311         This merges the 2005-10-28 md5 change into sha1.
46312
46313 2006-01-11  Jim Meyering  <jim@meyering.net>
46314
46315         Sync from coreutils.
46316         * lib/md5.c (OP): Fix spacing.
46317
46318 2006-01-11  Bruno Haible  <bruno@clisp.org>
46319
46320         Ensure automatic ordering between gl_LOCK and gl_ARGP.
46321         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
46322         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
46323
46324 2006-01-11  Bruno Haible  <bruno@clisp.org>
46325
46326         Ensure automatic ordering between gl_LOCK and gl_ARGP.
46327         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
46328         the "early" section as well.
46329
46330 2006-01-11  Bruno Haible  <bruno@clisp.org>
46331
46332         Avoid "ar: no archive members specified" error on MacOS X.
46333         * gnulib-tool (func_modules_add_dummy): New function.
46334         (func_import, func_create_testdir): Invoke it.
46335
46336 2006-01-11  Bruno Haible  <bruno@clisp.org>
46337
46338         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
46339         with $auxdir in AC_CONFIG_FILES statements.
46340
46341 2006-01-11  Bruno Haible  <bruno@clisp.org>
46342
46343         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46344         Initialize also noinst_HEADERS to empty.
46345
46346 2006-01-11  Bruno Haible  <bruno@clisp.org>
46347
46348         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
46349         variables.
46350         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
46351         autoreconf.
46352
46353 2006-01-11  Bruno Haible  <bruno@clisp.org>
46354
46355         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
46356         overridable by the user.
46357         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46358
46359 2006-01-10  Simon Josefsson  <jas@extundo.com>
46360
46361         * modules/sys_socket: New file.
46362
46363 2006-01-10  Simon Josefsson  <jas@extundo.com>
46364
46365         * m4/sys_socket_h.m4: New file.
46366
46367 2006-01-10  Simon Josefsson  <jas@extundo.com>
46368
46369         * lib/socket_.h: New file.
46370
46371 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46372
46373         * modules/readutmp (Maintainer): Add myself.
46374
46375 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46376
46377         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
46378         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
46379         People who are still concerned with buggy memcmp implementations
46380         can invoke gl_FUNC_MEMCMP themselves.
46381
46382 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46383
46384         * lib/regex_internal.h (BITSET_WORD_BITS):
46385         Work around a bug in 64-bit PGC (before version 6.1-2), where the
46386         preprocessor mishandles large unsigned values as if they were signed.
46387         Problem reported by Claudio Fontana in
46388         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
46389
46390 2006-01-10  Jim Meyering  <jim@meyering.net>
46391
46392         Avoid the double-free (first in fts_read, second in fts_close) that
46393         would occur when an `active' directory is made inaccessible (e.g.,
46394         via chmod a-x) during a traversal.
46395         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46396         before returning.  Reproduce this failure by
46397         mkdir -p a/b; cd a; chmod a-x . b
46398         Reported by Stavros Passas.
46399
46400         Sync from coreutils.
46401         * lib/sha1.c: Tweak grammar in a comment.
46402
46403 2006-01-10  Jim Meyering  <jim@meyering.net>
46404
46405         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
46406         Patch by Joerg Sonnenberger.
46407
46408 2006-01-10  Bruno Haible  <bruno@clisp.org>
46409
46410         * modules/readutmp: Depend on module free.
46411         * modules/strtok_r: Depend on module restrict.
46412
46413 2006-01-10  Bruno Haible  <bruno@clisp.org>
46414
46415         * modules/gettext (configure.ac): Add an invocation of
46416         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
46417
46418 2006-01-10  Bruno Haible  <bruno@clisp.org>
46419
46420         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
46421         Reported by Werner Lemberg <wl@gnu.org>.
46422
46423 2006-01-10  Bruno Haible  <bruno@clisp.org>
46424
46425         * lib/localcharset.c: Update from GNU gettext.
46426
46427 2006-01-10  Bruno Haible  <bruno@clisp.org>
46428
46429         * lib/argp.h (__const): Remove macro. Use const instead.
46430         * lib/argp-fmtstream.h (__const): Likewise.
46431         * lib/glob_.h (__const): Remove macro.
46432         * lib/glob-libc.h: Use const instead of __const.
46433
46434 2006-01-10  Bruno Haible  <bruno@clisp.org>
46435
46436         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
46437         variable.
46438         Needed to avoid an automake error regarding the 'gettext' module.
46439
46440 2006-01-09  Simon Josefsson  <jas@extundo.com>
46441
46442         * modules/inet_ntop (Depends-on): Add restrict.
46443
46444 2006-01-09  Simon Josefsson  <jas@extundo.com>
46445
46446         * modules/gc-rijndael-tests (License): Put under LGPL.
46447
46448         * modules/gc-des-tests (License): Likewise.
46449
46450         * modules/gc-arcfour-tests (License): Likewise.
46451
46452         * modules/gc-arctwo-tests (License): Likewise.
46453
46454         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
46455
46456         * modules/gc-hmac-sha1-tests (Files): Likewise.
46457
46458         * modules/gc-hmac-md5-tests (License): Likewise.
46459
46460         * modules/gc-sha1-tests (License): Likewise.
46461
46462         * modules/gc-md5-tests (License): Likewise.
46463
46464         * modules/gc-md4-tests (License): Likewise.
46465
46466         * modules/gc-md2-tests (License): Likewise.
46467
46468         * modules/gc-tests (License): Likewise.
46469
46470         * modules/des-tests (License): Likewise.
46471
46472         * modules/md4-tests (License): Likewise.
46473
46474         * modules/md2-tests (License): Likewise.
46475
46476 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46477
46478         Sync from coreutils:
46479
46480         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
46481         * modules/lib-ignore: New file.
46482         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
46483         chdir-safer.m4, lchmod.m4.
46484         * modules/openat: Add mkdirat.c, openat-priv.h.
46485
46486 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46487
46488         Sync from coreutils.
46489         * m4/lib-ignore.m4: New file.
46490         * m4/lchmod.m4: New file.
46491
46492 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46493
46494         Sync from coreutils.
46495         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
46496         for write access: POSIX says that must fail.
46497         * lib/fts.c (diropen): Likewise.
46498         * lib/save-cwd.c (save_cwd): Likewise.
46499         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
46500         well, for minor improvements on hosts that lack O_DIRECTORY.
46501         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
46502         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
46503         Fall back on chown if open failed with EACCES.
46504
46505         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
46506         Report an error at compile-time if only a 1-second nominal clock
46507         resolution is found.
46508
46509         * lib/lchmod.h: New file.
46510         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
46511         (make_dir_parents): Use lchown rather than chown, and
46512         lchmod rather than chmod.
46513
46514         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
46515         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
46516         "proc" reported by n0dalus.
46517
46518         * lib/mountlist.c: Include <limits.h>.
46519         (dev_from_mount_options)
46520         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
46521         New function.  It no longer assumes "dev=" has the System V meaning
46522         on Linux (since it doesn't).  It also parses "dev=" more carefully.
46523         (read_file_system_list)
46524         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
46525         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
46526         dev= in that case.
46527
46528         * lib/posixtm.h (PDS_PRE_2000): New macro.
46529         * lib/posixtm.c (year): Arg is now syntax_bits rather than
46530         allow_century.  All usages changed.  Reject dates outside the range
46531         1969-1999 if PDS_PRE_2000 is used.
46532
46533 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46534
46535         Sync from coreutils.
46536         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
46537         (Time of day items): Mention the possibility of leap seconds.
46538         Problem reported by Dr. David Alan Gilbert.
46539
46540 2006-01-09  Jim Meyering  <jim@meyering.net>
46541
46542         Sync from coreutils.
46543
46544         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
46545
46546         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
46547
46548         * lib/modechange.c (mode_compile): Reject an invalid mode string
46549         that starts with an octal digit.  From Andreas Gruenbacher.
46550
46551         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
46552         and dup to open_safer and dup_safer, respectively.
46553         (openat_permissive): Fix typo in comment.
46554
46555         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
46556         "gettext.h"; either no longer needed or are guaranteed by openat.h.
46557         (_): Remove; no longer needed.
46558         (openat): Renamed from rpl_openat; no need for rpl_openat
46559         since openat.h renames openat for us.
46560         Replace most of the body with a call to openat_permissive,
46561         to avoid duplicate code.
46562         Port to (probably hypothetical) environments were mode_t is
46563         wider than int.
46564         (openat_permissive): Require mode arg, so that we can check
46565         types better.  Put it just after flags.  Change cwd failure
46566         indicator from pointer-to-bool to pointer-to-errno-value.
46567         All callers changed.
46568         Invoke openat_save_fail and/or openat_restore_fail if
46569         cwd_errno is null, so that openat can call us.
46570         (openat_permissive, fdopendir, fstatat, unlinkat):
46571         Simplify errno handling to avoid some duplicate code,
46572         as it's OK to set errno on success.
46573         * lib/openat.h: Revamp code so that function macros depend on
46574         __OPENAT_PREFIX only, not also on AT_FDCWD.
46575         (openat_ro): Remove.  Caller changed to use openat_permissive.
46576         (openat_permissive): Now a macro, if not a function.
46577         (openat_restore_fail, openat_save_fail): Now always functions,
46578         since mkdirat needs them even if __OPENAT_PREFIX is defined.
46579
46580         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
46581         and openat.c.
46582         * lib/mkdirat.c: Include openat-priv.h.
46583         Remove definitions of macros defined therein.
46584         * lib/openat.c: Likewise.
46585
46586         * lib/mkdirat.c (mkdirat): New file and function.
46587         * lib/openat.h (mkdirat): Declare.
46588
46589         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
46590
46591         * lib/openat.h (openat_permissive): Declare.
46592         (openat_ro): Define.
46593
46594         * lib/openat.c (EXPECTED_ERRNO): New macro.
46595         (openat_permissive): New function -- used in remove.c rewrite.
46596         (all functions): Set errno just before returning, only if there
46597         was an actual failure.
46598         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
46599
46600         Emulate openat-family functions using Linux's procfs, if possible.
46601         Idea and some code based on Ulrich Drepper's glibc changes.
46602
46603         * lib/openat.c: (BUILD_PROC_NAME): New macro.
46604         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
46605         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
46606         before falling back on save_cwd and restore_cwd.
46607         (fdopendir, fstatat, unlinkat): Likewise.
46608
46609         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
46610         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
46611
46612         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
46613         as second argument to va_arg.  Otherwise, some versions of gcc
46614         warn that `if this code is reached, the program will abort'.
46615
46616 2006-01-09  Jim Meyering  <jim@meyering.net>
46617
46618         Sync from coreutils.
46619         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
46620         Require openat-priv.h.
46621
46622 2006-01-09  Bruno Haible  <bruno@clisp.org>
46623
46624         * modules/strnlen (Include): Use strnlen.h.
46625
46626 2006-01-09  Bruno Haible  <bruno@clisp.org>
46627
46628         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
46629
46630 2006-01-09  Bruno Haible  <bruno@clisp.org>
46631
46632         * lib/sysexit_.h (EX_OK): New macro.
46633         Suggested by Martin Lambers <marlam@marlam.de>.
46634
46635 2006-01-09  Bruno Haible  <bruno@clisp.org>
46636
46637         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
46638         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
46639
46640 2006-01-09  Bruno Haible  <bruno@clisp.org>
46641
46642         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
46643         numbers.
46644
46645 2006-01-09  Bruno Haible  <bruno@clisp.org>
46646
46647         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
46648         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
46649         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
46650         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
46651
46652 2006-01-09  Bruno Haible  <bruno@clisp.org>
46653
46654         * build-aux/javacomp.sh.in: New file, moved from lib/.
46655         * modules/javacomp-script (Files): Update.
46656         (configure.ac): Add AC_CONFIG_FILES invocation.
46657         (EXTRA_DIST): Remove variable.
46658
46659         * build-aux/javaexec.sh.in: New file, moved from lib/.
46660         * modules/javaexec (Files): Update.
46661         (configure.ac): Add AC_CONFIG_FILES invocation.
46662         (EXTRA_DIST): Remove javaexec.sh.in.
46663
46664         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
46665         * modules/csharpcomp-script (Files): Update.
46666         (configure.ac): Add AC_CONFIG_FILES invocation.
46667         (EXTRA_DIST): Remove variable.
46668
46669         * build-aux/csharpexec.sh.in: New file, moved from lib/.
46670         * modules/csharpexec (Files): Update.
46671         (configure.ac): Add AC_CONFIG_FILES invocation.
46672         (EXTRA_DIST): Remove csharpexec.sh.in.
46673
46674 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
46675
46676         Sync from coreutils.
46677
46678         Add POSIX ACL support
46679         * lib/acl.h (copy_acl, set_acl): Add declarations.
46680         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
46681         systems other than Linux.
46682         (chmod_or_fchmod): New function: use fchmod when possible,
46683         and chmod otherwise.
46684         (file_has_acl): Add a POSIX ACL implementation, with a
46685         Linux-specific subcase.
46686         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
46687         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
46688         acls are unsupported.
46689         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
46690         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
46691         are unsupported.
46692
46693 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
46694
46695         Sync from coreutils.
46696         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
46697
46698 2006-01-07  Bruno Haible  <bruno@clisp.org>
46699
46700         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
46701         gl_EARLY.
46702
46703 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
46704
46705         * lib/strftime.c (tzname): Don't declare if it is already #defined.
46706         Problem reported for Mingw by Mark Junker.
46707
46708 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
46709
46710         * README: Gnulib normally doesn't generate a tarball.
46711
46712 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
46713
46714         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
46715         long int, not int, for nanosecond counts, so that people who are
46716         used to POSIX struct timespec won't be surprised.  Reported by Jim
46717         Meyering.
46718
46719 2005-12-28  Bruno Haible  <bruno@clisp.org>
46720
46721         * build-aux/config.rpath: Update from GNU gettext.
46722
46723 2005-12-16  Jim Meyering  <jim@meyering.net>
46724
46725         * modules/fprintftime: New module.
46726         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
46727
46728 2005-12-16  Jim Meyering  <jim@meyering.net>
46729
46730         * m4/fprintftime.m4: New file.
46731
46732 2005-12-16  Jim Meyering  <jim@meyering.net>
46733
46734         * lib/fprintftime.c, lib/fprintftime.h: New files.
46735
46736 2005-12-15  Simon Josefsson  <jas@extundo.com>
46737
46738         * modules/socklen (configure.ac): Fix M4 macro name, to align with
46739         new m4/socklen.m4.
46740
46741 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46742
46743         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
46744         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
46745
46746 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46747
46748         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
46749         * lib/argp-help.c (fill_in_uparams): Check if the constructed
46750         struct uparams is valid. Fall back to the default values if it is
46751         not.
46752
46753 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
46754
46755         * modules/argp (Files): Add argp-pin.c
46756         (Depends-on): dirname
46757         (lib_SOURCES): Add argp-pin.c
46758
46759 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
46760
46761         * m4/argp.m4:  Check if program_invocation_name and
46762         program_invocation_short_name are declared and define appropriate
46763         macros if they are not.
46764
46765 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
46766
46767         * lib/argp-help.c (__argp_base_name): New function
46768         (__argp_short_program_name): Rewrite using __argp_base_name
46769         * lib/argp-namefrob.h: Define program_invocation_name and
46770         program_invocation_short_name if requested
46771         (__argp_base_name): Add prototype
46772         * lib/argp-parse.c (argp_def): Use gettext wrappers
46773         (argp_default_parser): Use __argp_base_name
46774         * lib/argp-pin.c: New file. Defines program_invocation_name and
46775         program_invocation_short_name on systems that lack them.
46776
46777 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
46778
46779         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
46780         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
46781         porting problem reported by Georg Schwarz in
46782         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
46783
46784 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
46785
46786         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
46787         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
46788         porting problem reported by Georg Schwarz in
46789         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
46790
46791 2005-12-05  Bruno Haible  <bruno@clisp.org>
46792
46793         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
46794         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
46795         Reported by Mark Junker <mjscod@gmx.de>.
46796
46797 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
46798
46799         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
46800         Use implementation from Albert Chin, with some
46801         comments/corrections by Stepan Kasal and myself.
46802
46803 2005-12-02  Bruno Haible  <bruno@clisp.org>
46804
46805         * gnulib-tool (func_import): Accept GPLed build tool modules when
46806         --lgpl is given.
46807         * modules/csharpcomp-script: New file.
46808         * modules/csharpcomp: Depend on it.
46809         * modules/javacomp-script: New file.
46810         * modules/javacomp: Depend on it.
46811         Suggested by Simon Josefsson.
46812
46813 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
46814
46815         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
46816         statement, to work around an HP-UX 10.20 compiler bug reported by
46817         Peter O'Gorman.
46818
46819 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
46820
46821         * modules/savedir (Depends-on): Add openat.
46822
46823 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
46824
46825         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
46826         (uintmax_t) [defined uintmax_t]: Do not declare.
46827         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
46828         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
46829         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
46830         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
46831         sake of portability to weird hosts that C allows (though we don't
46832         know of any practical examples).
46833
46834         * lib/savedir.h (fdsavedir): New decl.
46835         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
46836         contains most of the former guts of savedir.
46837         (savedir): Use savedirstream.
46838         Include "openat.h".
46839
46840 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
46841
46842         * modules/obstack (Files): Add m4/ulonglong.m4.
46843         Problem reported by Davide Angelocola.
46844
46845 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
46846
46847         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
46848         coreutils no longer futzes with rounding modes.
46849
46850 2005-11-14  Jim Meyering  <jim@meyering.net>
46851
46852         * lib/mkstemp-safer.c: Include <config.h>, required for possible
46853         replacement of mkstemp.
46854
46855 2005-11-10  Simon Josefsson  <jas@extundo.com>
46856
46857         * lib/readline.c: Remove EOL.
46858
46859 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
46860
46861         * modules/gethrxtime (Depends-on): Add gettime.
46862
46863 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
46864
46865         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
46866         or gettimeofday; no longer needed.
46867
46868 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
46869
46870         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
46871         time business.
46872         (gethrxtime) [! (HAVE_NANOUPTIME
46873         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
46874         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
46875         our own approximation.
46876
46877 2005-11-08  Eric Blake  <ebb9@byu.net>
46878
46879         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
46880
46881 2005-11-08  Eric Blake  <ebb9@byu.net>
46882
46883         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
46884
46885 2005-11-04  Bruno Haible  <bruno@clisp.org>
46886
46887         * gnulib-tool: Implement --update mode.
46888
46889 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
46890
46891         Fix porting problem reported by Theodoros V. Kalamatianos.
46892         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
46893         Don't assume that futimes failing means we must fail.
46894
46895 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
46896
46897         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
46898         variables to suggest the intended function of the PATH_MAX check.
46899
46900 2005-10-30  Kean Johnston  <jkj@sco.com>
46901
46902         Trivial changes to support SCO systems.
46903         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
46904         as PATH_MAX.
46905         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
46906         where __ptr is null when no I/O is pending.
46907
46908 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
46909
46910         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
46911         leave errno alone.  Problem reported by Dmitry V. Levin.
46912
46913 2005-10-28  Simon Josefsson  <jas@extundo.com>
46914
46915         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
46916         Test more.
46917
46918         * tests/test-gc-md2.c, tests/test-md2.c: New files.
46919
46920         * modules/md2, modules/md2-tests: New files.
46921
46922 2005-10-28  Simon Josefsson  <jas@extundo.com>
46923
46924         * m4/inet_ntop.m4: More tests.
46925
46926         * m4/gc-md2.m4, md2.m4: New file.
46927
46928 2005-10-28  Simon Josefsson  <jas@extundo.com>
46929
46930         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
46931         "restrict" keywords, as per POSIX.  Protect the function
46932         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
46933         Don't use K&R prototypes.  Check the sprintf return values.
46934         Re-define EAFNOSUPPORT if not present.  Indent.
46935
46936         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
46937         suggested by Bruno Haible <bruno@clisp.org>.
46938
46939         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
46940
46941         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
46942
46943         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
46944         libgcrypt).
46945
46946         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
46947
46948         * lib/md2.h, lib/md2.c: New files.
46949
46950 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
46951
46952         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
46953         errno alone.  Problem reported by Frederic Jolliton.
46954
46955 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46956
46957         * modules/verify (License): Change from GPL to LGPL.  This is a
46958         tiny module and there are apparently near-equivalents that are
46959         under the BSD license.
46960
46961 2005-10-24  Simon Josefsson  <jas@extundo.com>
46962
46963         * modules/sha1: Relicense to LGPL.
46964
46965 2005-10-24  Simon Josefsson  <jas@extundo.com>
46966
46967         * lib/md4.h: Shrink buffer size, now that we changed the type.
46968
46969 2005-10-23  Simon Josefsson  <jas@extundo.com>
46970
46971         * gnulib-tool (func_import): Fix --tests-base.
46972
46973 2005-10-22  Simon Josefsson  <jas@extundo.com>
46974
46975         * modules/arcfour (Depends-on): Need stdint.
46976
46977 2005-10-22  Simon Josefsson  <jas@extundo.com>
46978
46979         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
46980         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
46981
46982 2005-10-22  Simon Josefsson  <jas@extundo.com>
46983
46984         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
46985         suggested by Bruno Haible <bruno@clisp.org>.
46986
46987 2005-10-22  Simon Josefsson  <jas@extundo.com>
46988
46989         * lib/crc.h: Include stddef.h, for size_t.
46990
46991 2005-10-22  Simon Josefsson  <jas@extundo.com>
46992
46993         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
46994         arcfour_context struct (simplify test vector testing in GNU
46995         Shishi).
46996
46997 2005-10-21  Simon Josefsson  <jas@extundo.com>
46998
46999         * modules/des, modules/des-tests: New files.
47000
47001         * modules/gc-des, modules/gc-des-tests: New files.
47002
47003         * tests/test-des.c, tests/test-gc-des.c: New file.
47004
47005 2005-10-21  Simon Josefsson  <jas@extundo.com>
47006
47007         * modules/arctwo, modules/arctwo-tests: New files.
47008
47009         * tests/test-arctwo.c: New file.
47010
47011         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
47012
47013         * tests/test-gc-arctwo.c: New file.
47014
47015 2005-10-21  Simon Josefsson  <jas@extundo.com>
47016
47017         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
47018         Bruno Haible <bruno@clisp.org>.
47019
47020         * m4/gc-des.m4: New file.
47021
47022 2005-10-21  Simon Josefsson  <jas@extundo.com>
47023
47024         * m4/arctwo.m4: New file.
47025
47026         * m4/gc-arctwo.m4: New file.
47027
47028 2005-10-21  Simon Josefsson  <jas@extundo.com>
47029
47030         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
47031         block.
47032
47033 2005-10-21  Simon Josefsson  <jas@extundo.com>
47034
47035         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
47036         <bruno@clisp.org>.
47037
47038         * lib/hmac-sha1.c (hmac_sha1): Likewise.
47039
47040         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
47041         Bruno Haible <bruno@clisp.org>.
47042
47043         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
47044         <bruno@clisp.org>.
47045
47046 2005-10-21  Simon Josefsson  <jas@extundo.com>
47047
47048         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
47049
47050 2005-10-21  Simon Josefsson  <jas@extundo.com>
47051
47052         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
47053
47054 2005-10-21  Simon Josefsson  <jas@extundo.com>
47055
47056         * lib/des.h, lib/des.c: New files.
47057
47058         * lib/gc-gnulib.c: Support DES.c
47059
47060 2005-10-21  Simon Josefsson  <jas@extundo.com>
47061
47062         * lib/arctwo.h, lib/arctwo.c: New files.
47063
47064         * lib/gc-gnulib.c: Support ARCTWO.
47065
47066 2005-10-21  Simon Josefsson  <jas@extundo.com>
47067
47068         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
47069         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47070
47071 2005-10-21  Simon Josefsson  <jas@extundo.com>
47072
47073         * gnulib-tool (func_import, func_create_testdir): Define automake
47074         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
47075         Makefile.am snippet),
47076         suggested by Bruno Haible <bruno@clisp.org>.
47077
47078         * modules/gc (Makefile.am): Use it.
47079
47080 2005-10-21  Bruno Haible  <bruno@clisp.org>
47081
47082         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
47083         patch.
47084
47085 2005-10-19  Simon Josefsson  <jas@extundo.com>
47086
47087         * tests/test-gc-rijndael.c: New file.
47088
47089         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
47090
47091 2005-10-19  Simon Josefsson  <jas@extundo.com>
47092
47093         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
47094         interface too.
47095
47096 2005-10-19  Simon Josefsson  <jas@extundo.com>
47097
47098         * tests/test-gc-arcfour.c: New file.
47099
47100         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
47101
47102 2005-10-19  Simon Josefsson  <jas@extundo.com>
47103
47104         * modules/gc-md4, modules/gc-md4-tests: New file.
47105
47106         * tests/test-gc-md4.c: New file.
47107
47108 2005-10-19  Simon Josefsson  <jas@extundo.com>
47109
47110         * m4/gc-md4.m4: New file.
47111
47112 2005-10-19  Simon Josefsson  <jas@extundo.com>
47113
47114         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
47115         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
47116         <kasal@ucw.cz>.
47117
47118 2005-10-19  Simon Josefsson  <jas@extundo.com>
47119
47120         * m4/gc-arcfour.m4: New file.
47121
47122         * m4/gc-rijndael.m4: New file.
47123
47124 2005-10-19  Simon Josefsson  <jas@extundo.com>
47125
47126         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
47127
47128 2005-10-19  Simon Josefsson  <jas@extundo.com>
47129
47130         * lib/gc-gnulib.c: Support ARCFOUR.
47131
47132 2005-10-19  Simon Josefsson  <jas@extundo.com>
47133
47134         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
47135         support.
47136
47137         * lib/gc.h: Add ECB enum type.
47138
47139         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
47140
47141 2005-10-18  Simon Josefsson  <jas@extundo.com>
47142
47143         * tests/test-md5.c: New file.
47144
47145         * modules/md5-tests: New file.
47146
47147 2005-10-18  Simon Josefsson  <jas@extundo.com>
47148
47149         * tests/test-md4.c: New file.
47150
47151         * modules/md4, modules/md4-tests: New files.
47152
47153 2005-10-18  Simon Josefsson  <jas@extundo.com>
47154
47155         * m4/md4.m4: New file.
47156
47157 2005-10-18  Simon Josefsson  <jas@extundo.com>
47158
47159         * lib/md4.h, lib/md4.c: New files, based on md5.?.
47160
47161 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
47162
47163         * gnulib-tool (func_create_testdir): Omit the second check whether
47164         BUILT_SOURCES in nonempty.
47165
47166 2005-10-17  Simon Josefsson  <jas@extundo.com>
47167
47168         * tests/test-rijndael.c: New file.
47169
47170 2005-10-17  Simon Josefsson  <jas@extundo.com>
47171
47172         * modules/sha1: Depend on stdint instead of md5.
47173
47174         * modules/md5: Depend on stdint, remove uint32_t.
47175
47176 2005-10-17  Simon Josefsson  <jas@extundo.com>
47177
47178         * modules/gc-sha1-tests: New file.
47179
47180         * tests/test-gc-sha1.c: New file.
47181
47182 2005-10-17  Simon Josefsson  <jas@extundo.com>
47183
47184         * m4/md5.m4: Remove call to uint32_t.m4.
47185
47186 2005-10-17  Simon Josefsson  <jas@extundo.com>
47187
47188         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
47189
47190         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
47191         md5.h.
47192
47193         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
47194
47195         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
47196
47197 2005-10-17  Simon Josefsson  <jas@extundo.com>
47198
47199         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
47200
47201 2005-10-17  Simon Josefsson  <jas@extundo.com>
47202
47203         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
47204
47205 2005-10-17  Simon Josefsson  <jas@extundo.com>
47206
47207         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
47208
47209         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
47210
47211 2005-10-17  Bruno Haible  <bruno@clisp.org>
47212
47213         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
47214         that it can also be used in a test.
47215
47216 2005-10-16  Bruno Haible  <bruno@clisp.org>
47217
47218         * gnulib-tool (func_emit_tests_Makefile_am): Also define
47219         TESTS_ENVIRONMENT, so that individual tests can augment it.
47220
47221         * gnulib-tool (func_create_testdir): Use an intermediate target for
47222         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
47223         macros, like $(ALLOCA_H), which cannot be passed through the command
47224         line.
47225
47226 2005-10-15  Simon Josefsson  <jas@extundo.com>
47227
47228         * modules/rijndael-tests: New file.
47229
47230         * modules/rijndael: New file.
47231
47232 2005-10-15  Simon Josefsson  <jas@extundo.com>
47233
47234         * m4/rijndael.m4: New file.
47235
47236 2005-10-15  Simon Josefsson  <jas@extundo.com>
47237
47238         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
47239
47240         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
47241
47242 2005-10-14  Simon Josefsson  <jas@extundo.com>
47243
47244         * tests/test-arcfour.c: New file.
47245
47246         * modules/arcfour, modules/arcfour-tests: New files.
47247
47248 2005-10-14  Simon Josefsson  <jas@extundo.com>
47249
47250         * m4/arcfour.m4: New file.
47251
47252 2005-10-14  Simon Josefsson  <jas@extundo.com>
47253
47254         * lib/arcfour.h, lib/arcfour.c: New files.
47255
47256 2005-10-14  Roland McGrath  <roland@redhat.com>
47257
47258         Import from libc.  [BZ #1331]
47259         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
47260         macro argument.
47261         Reported by Matej Vela <vela@debian.org>.
47262
47263 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
47264
47265         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
47266         include <wchar.h>; no longer needed.
47267
47268 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
47269
47270         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
47271
47272 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
47273         and  Ulrich Drepper  <drepper@redhat.com>
47274
47275         Import from libc.
47276         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
47277         instead of inline stream orientation test and two separate
47278         function calls.  Pay no attention to USE_IN_LIBIO.
47279
47280 2005-10-13  Simon Josefsson  <jas@extundo.com>
47281
47282         * modules/gc-hmac-md5-tests: New file.
47283
47284         * tests/test-gc-hmac-sha1.c: New file.
47285
47286         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
47287
47288         * modules/gc-hmac-md5-tests: New file.
47289
47290         * tests/test-gc-md5.c: New file.
47291
47292         * modules/gc-md5-tests: New file.
47293
47294 2005-10-13  Simon Josefsson  <jas@extundo.com>
47295
47296         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
47297         Move memory allocation outside of loop.
47298
47299 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
47300
47301         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
47302         intermediate directory is in a read-only file system.  Problem
47303         reported by Eric Blake.
47304
47305 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
47306
47307         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
47308
47309 2005-10-12  Simon Josefsson  <jas@extundo.com>
47310
47311         * tests/test-hmac-sha1.c: New file.
47312
47313         * modules/hmac-sha1-tests: New file.
47314
47315         * modules/hmac-sha1: New file.
47316
47317 2005-10-12  Simon Josefsson  <jas@extundo.com>
47318
47319         * modules/gc-sha1: New file.
47320
47321 2005-10-12  Simon Josefsson  <jas@extundo.com>
47322
47323         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
47324
47325         * tests/test-gc-pbkdf2-sha1.c: New file.
47326
47327 2005-10-12  Simon Josefsson  <jas@extundo.com>
47328
47329         * modules/gc-md5, modules/gc-hmac-md5: New files.
47330
47331         * modules/gc (Files): Remove md5, memxor and hmac files.
47332
47333 2005-10-12  Simon Josefsson  <jas@extundo.com>
47334
47335         * m4/gc-pbkdf2-sha1.m4: New file.
47336
47337         * m4/gc-hmac-sha1.m4: New file.
47338
47339         * m4/gc-sha1: New file.
47340
47341         * m4/hmac-sha1.m4: New file.
47342
47343 2005-10-12  Simon Josefsson  <jas@extundo.com>
47344
47345         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
47346
47347         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
47348
47349 2005-10-12  Simon Josefsson  <jas@extundo.com>
47350
47351         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
47352         suggested by Bruno Haible <bruno@clisp.org>.
47353
47354 2005-10-12  Simon Josefsson  <jas@extundo.com>
47355
47356         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
47357
47358 2005-10-12  Simon Josefsson  <jas@extundo.com>
47359
47360         * lib/gc-pbkdf2-sha1.c: New file.
47361
47362         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
47363
47364 2005-10-12  Simon Josefsson  <jas@extundo.com>
47365
47366         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
47367
47368         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
47369
47370 2005-10-12  Simon Josefsson  <jas@extundo.com>
47371
47372         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
47373         GC_USE_HMAC_MD5, respectively.
47374
47375         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
47376         (gc_md5): Fix typo.
47377
47378         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
47379
47380         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
47381
47382         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
47383
47384 2005-10-12  Bruno Haible  <bruno@clisp.org>
47385
47386         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
47387         Reported by Stepan Kasal <kasal@ucw.cz>.
47388
47389 2005-10-11  Simon Josefsson  <jas@extundo.com>
47390
47391         * tests/test-crc.c: New file.
47392
47393         * modules/crc, modules/crc-tests: New files.
47394
47395 2005-10-11  Simon Josefsson  <jas@extundo.com>
47396
47397         * m4/crc.m4: New file.
47398
47399 2005-10-11  Simon Josefsson  <jas@extundo.com>
47400
47401         * lib/gc.h: Add gc_hash and gc_hash_buffer.
47402
47403         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
47404
47405         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
47406
47407 2005-10-11  Simon Josefsson  <jas@extundo.com>
47408
47409         * lib/crc.h, lib/crc.c: New files.
47410
47411         * lib/gc.h (gc_hash_buffer): Add doc.
47412
47413 2005-10-11  Bruno Haible  <bruno@clisp.org>
47414
47415         * modules/c-strcasestr: New file.
47416         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
47417
47418 2005-10-11  Bruno Haible  <bruno@clisp.org>
47419
47420         * modules/c-strcase: New file.
47421         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
47422
47423 2005-10-11  Bruno Haible  <bruno@clisp.org>
47424
47425         * lib/strcasecmp.c: Include limits.h.
47426         (strcasecmp): Avoid integer overflow on exotic platforms.
47427         * lib/strncasecmp.c: Include limits.h.
47428         (strncasecmp): Avoid integer overflow on exotic platforms.
47429         Reported by Paul Eggert.
47430
47431 2005-10-11  Bruno Haible  <bruno@clisp.org>
47432
47433         * lib/c-strcasestr.h: New file, from GNU gettext.
47434         * lib/c-strcasestr.c: New file, from GNU gettext.
47435
47436 2005-10-11  Bruno Haible  <bruno@clisp.org>
47437
47438         * lib/c-strcase.h: New file, from GNU gettext.
47439         * lib/c-strcasecmp.c: New file, from GNU gettext.
47440         * lib/c-strncasecmp.c: New file, from GNU gettext.
47441
47442 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47443
47444         * modules/mempcpy (License): GPL -> LGPL.
47445         * modules/strchrnul (License): Likewise.
47446         * modules/sysexits (License): Likewise.
47447
47448 2005-10-08  Simon Josefsson  <jas@extundo.com>
47449
47450         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
47451
47452 2005-10-07  Simon Josefsson  <jas@extundo.com>
47453
47454         * m4/memxor.m4: Remove gl_C_RESTRICT call.
47455
47456 2005-10-06  Simon Josefsson  <jas@extundo.com>
47457
47458         * tests/test-hmac-md5.c: New file.
47459
47460         * modules/hmac-md5-tests: New file.
47461
47462         * modules/hmac-md5: New file.
47463
47464 2005-10-06  Simon Josefsson  <jas@extundo.com>
47465
47466         * m4/hmac-md5.m4: New file.
47467
47468         * m4/memxor.m4: Require gl_C_RESTRICT.
47469
47470 2005-10-06  Simon Josefsson  <jas@extundo.com>
47471
47472         * lib/memxor.c (memxor): Avoid casts and warnings.
47473
47474 2005-10-06  Simon Josefsson  <jas@extundo.com>
47475
47476         * lib/hmac-md5.c: New file.
47477
47478         * lib/hmac.h: New file.
47479
47480 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
47481
47482         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
47483         promotes to int, not unsigned int, to catch the AIX 5.3
47484         compiler bug.
47485
47486 2005-10-05  Simon Josefsson  <jas@extundo.com>
47487
47488         * modules/memxor: New file.
47489
47490         * modules/iconv (Files): Move config.rpath to havelib, it is used
47491         there.
47492
47493         * modules/havelib (Files): Add config.rpath.
47494
47495 2005-10-05  Simon Josefsson  <jas@extundo.com>
47496
47497         * m4/memxor.m4: New file.
47498
47499 2005-10-05  Simon Josefsson  <jas@extundo.com>
47500
47501         * lib/memxor.c (memxor): Fix compiler error.
47502
47503         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
47504         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
47505
47506         * lib/memxor.h, lib/memxor.c: New files.
47507
47508         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
47509         we assume all systems have it, suggested by Jim Meyering
47510         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
47511         any systems lack sys/socket.h; mingw32 is known to lack it, but we
47512         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
47513         same reasons.
47514
47515 2005-10-05  Simon Josefsson  <jas@extundo.com>
47516
47517         * config/srclist.txt: Add glibc bug 1423 for md5.h.
47518
47519 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
47520
47521         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
47522         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
47523         needed, since the source code now assumes these .h files.
47524
47525 2005-10-05  Derek Price  <derek@ximbiot.com>
47526
47527         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
47528
47529 2005-10-05  Bruno Haible  <bruno@clisp.org>
47530
47531         * modules/stdint (License): Change to LGPL.
47532
47533 2005-10-04  Simon Josefsson  <jas@extundo.com>
47534
47535         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
47536         D. Baushke" <mdb@gnu.org>.
47537
47538 2005-10-04  Bruno Haible  <bruno@clisp.org>
47539
47540         * lib/verify.h (verify_true): Provide alternative definition for C++.
47541
47542 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
47543
47544         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
47545         (SSIZE_MAX): New macro, if not already defined.
47546         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
47547         than 2 GiB.
47548
47549 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
47550
47551         Sync from coreutils.
47552         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
47553         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
47554         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
47555         ULLONG_MAX doesn't work with 2.7.2.1.
47556
47557 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
47558
47559         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
47560         From Ben Pfaff.
47561
47562         * modules/exclude (Depends-on): Depend on verify.
47563         * modules/strtoimax (Depends-on): Likewise.
47564         * modules/utimecmp (Depends-on): Likewise.
47565
47566 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
47567
47568         * lib/exclude.c: Include verify.h.
47569         (verify): Remove.  All callers changed to use verify.h's version.
47570         * lib/strtoimax.c: Likewise.
47571         * lib/utimecmp.c: Likewis.e
47572
47573         Sync from coreutils.
47574         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
47575         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
47576         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
47577         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
47578         bother returning ENOSYS if settimeofday or stime fails; just let
47579         them return whatever errno they want to return.
47580         * lib/utimens.c: Include unistd.h, for dup2.
47581         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
47582         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
47583
47584 2005-10-02  Jim Meyering  <jim@meyering.net>
47585
47586         Sync from coreutils.
47587         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
47588         from glibc-2.2.5 that fails for read-only files.
47589
47590 2005-10-02  Jim Meyering  <jim@meyering.net>
47591
47592         Sync from coreutils.
47593         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
47594         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
47595         `#if HAVE_CONFIG_H'.
47596         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
47597         Remove AT_FDCWD test.
47598         Do not consume the fd unless successful.
47599         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
47600         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
47601         block, so that we don't even try to compile it if settimeofday is
47602         available.  This works around a compilation failure on OSF1 V5.1,
47603         due to stime requiring a `long int*' while tv_sec is `int'.
47604
47605 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
47606
47607         Sync from coreutils.
47608         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
47609         against `yes', rather than just testing for nonempty.
47610
47611 2005-10-01  Simon Josefsson  <jas@extundo.com>
47612
47613         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
47614         and Darwin.
47615
47616         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
47617         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
47618         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
47619         freeaddrinfo and gai_strerror are declared by the POSIX headers.
47620         Check if struct addrinfo is declared.
47621
47622 2005-10-01  Simon Josefsson  <jas@extundo.com>
47623
47624         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
47625         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
47626         AI_* and EAI_* definitions.  Protect function declarations.
47627
47628 2005-10-01  Jim Meyering  <jim@meyering.net>
47629
47630         Sync from coreutils.
47631
47632         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
47633         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
47634         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
47635         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
47636         in the inet and nsl libraries.  Required on Solaris 5.7.
47637
47638 2005-10-01  Jim Meyering  <jim@meyering.net>
47639
47640         Sync from coreutils.
47641         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
47642         in the inet and nsl libraries.  Required on Solaris 5.7.
47643
47644 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
47645
47646         * lib/getdelim.c (getdelim): Remove unused variables.
47647
47648 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
47649
47650         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
47651         so that the code works even with ancient cpp.  Portability problem
47652         with GCC 2.7.2.1 reported by Thomas M.Ott.
47653
47654 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
47655
47656         * modules/regex (Depends-on): Add strcase.
47657
47658         * modules/gethostname (Licence): Change from GPL to LGPL, since
47659         gethostname.c is a trivial implementation of a standard library
47660         function.
47661         * modules/poll (License): Change from GPL to LGPL, since it's
47662         derived from LGPL code.
47663
47664 2005-09-27  Jim Meyering  <jim@meyering.net>
47665
47666         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
47667         HAVE_CONFIG_H.
47668
47669         * lib/intprops.h (signed_type_or_expr__): Define.
47670         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
47671         for unsigned types.
47672
47673 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
47674
47675         * lib/verify.h (verify_expr): Remove, replacing with:
47676         (verify_true): New macro that returns true instead of void.
47677         (verify_type__): Remove.
47678         (verify): Use verify_true rather than verify_type__.
47679
47680 2005-09-26  Bruno Haible  <bruno@clisp.org>
47681
47682         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
47683         is necessary.
47684         (lib_SOURCES): Remove mbchar.c.
47685         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
47686         (Files): Add m4/mbrtowc.m4.
47687         * modules/mbiter: Likewise.
47688         * modules/mbuiter: Likewise.
47689
47690 2005-09-26  Bruno Haible  <bruno@clisp.org>
47691
47692         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
47693         compile mbchar.c if they are not both present.
47694         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
47695         * m4/mbiter.m4 (gl_MBITER): Likewise.
47696         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
47697         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
47698         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
47699
47700 2005-09-25  Jim Meyering  <jim@meyering.net>
47701
47702         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
47703         also uses socklen_t.
47704
47705 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
47706
47707         * lib/utimens.c (ENOSYS): Define if not already defined.
47708         (futimens): Support having a null PATH if the file descriptor
47709         is nonnegative.
47710
47711         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
47712         Remove.
47713         (__attribute): Define to empty unless GCC 3.1 or later.
47714         This works around a core dump on OpenBSD 3.4, which has GCC
47715         2.95.3, which dumps core when given __attribute__(()).  It also
47716         simplifies other tests, since we really don't want to bother with
47717         worrying about which ancient version of GCC supported what.
47718         Original problem reported by Yoann Vandoorselaere, with part of
47719         the fix suggested by Derek Price.
47720
47721 2005-09-24  Jim Meyering  <jim@meyering.net>
47722
47723         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
47724         so we can once again use a positive bitfield width of 1 -- now we
47725         don't have to explain why we were using a bitfield width of 2.
47726
47727 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
47728
47729         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
47730         and similarly for the other external symbols.  Problem reported
47731         by James Gallager.
47732
47733         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
47734         bug reported by Jim Meyering.
47735
47736         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
47737         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
47738         not needed, since socklen is a prerequisite module.
47739
47740 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
47741
47742         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
47743         Problem reported by Eric Blake.
47744         (getaddrinfo): Initialize se so that it's not garbage.
47745         Redo internal storage allocation so that it doesn't make unportable
47746         assumptions about alignment.
47747         Fix a memory leak.
47748
47749         * lib/utimens.c (futimens): Use futimesat if available.
47750         Prefer it to futimes since it doesn't have the futimes bug.
47751
47752         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
47753         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
47754         Instead, declare a function that returns a pointer to an array,
47755         and use verify_type__ to declare the size of the array.
47756         Problem and germ of a solution reported by Bruno Haible.
47757         (verify_type__): Use 2, not 1, for bitfield size, to avoid
47758         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
47759
47760 2005-09-23  Jim Meyering  <jim@meyering.net>
47761
47762         Sync from coreutils.
47763         Correct build failure (socklen_t not defined) on at least
47764         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
47765         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
47766
47767 2005-09-23  Jim Meyering  <jim@meyering.net>
47768
47769         * modules/getaddrinfo (Depends-on): Add socklen.
47770
47771 2005-09-23  Bruno Haible  <bruno@clisp.org>
47772
47773         * tests/test-verify.c: New file.
47774
47775 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47776
47777         Sync from coreutils.
47778
47779         * modules/argmatch (Depends-on): Add verify.
47780         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
47781         unistd-safer.
47782         * modules/save-cwd (Depends-on): Likewise.
47783
47784         * modules/openat (Files): Add lib/openat-die.c.
47785         (Depends-on): Remove error, exitfail.
47786         Add dirname.
47787
47788         * modules/verify: New file.
47789         * MODULES.html.sh (Diagnostics <assert.h>): New section,
47790         with "verify" module.
47791
47792 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47793
47794         Sync from coreutils.
47795
47796         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
47797         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
47798         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
47799         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
47800         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
47801         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
47802         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
47803         Don't bother checking for string.h, stdlib.h, unistd.h.
47804         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
47805         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
47806         module's job.
47807         * m4/jm-macros.m4 (gl_MACROS): Likewise.
47808         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
47809
47810         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
47811         (gl_GETDATE): Use it.
47812
47813         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
47814
47815 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47816
47817         Sync from coreutils.
47818
47819         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
47820         stat-time.h.
47821         * lib/argmatch.h: Include verify.h
47822         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
47823         (ARGMATCH_ASSERT): Remove; unused.
47824         * lib/canonicalize.c: Assume STDC_HEADERS.
47825         * lib/exclude.c: Include "strcase.h".
47826         * lib/regex_internal.h [!defined _LIBC]: Likewise.
47827         * lib/getusershell.c: Include stdio--.h rather than stdio.h
47828         and stdio-safer.h.
47829         (getusershell): Call fopen, not fopen_safer.
47830         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
47831         Do not include unistd-safer.h.
47832         (save_cwd): Don't call fd_safer; no longer needed
47833         now that we include fcntl--.h.
47834
47835         * lib/getdate.y (relative_time): New type.
47836         (RELATIVE_TIME_0): New constant.
47837         (parser_control): Use relative_time instead of doing it ourselves.
47838         (%union): Add new relative_time rel member.
47839         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
47840         Now typeless.
47841         (relunit, relunit_snumber): Now of type rel.
47842         (zone, rel, relunit, get_date): Adjust to above changes.
47843
47844         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
47845         Do not include unistd-safer.h.
47846         (getloadavg): Don't call fd_safer; no longer needed
47847         now that we include fcntl--.h.
47848
47849         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
47850         (make_dir_parents): Treat ENOSYS like EEXIST.
47851
47852         Improve quality of diagnostics on restore_cwd failure.
47853         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
47854         (make_dir_parents): Last arg is now int * (for errno), not bool *.
47855         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
47856         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
47857         each time through the loop.  Do not diagnose restore_cwd failure;
47858         that is the caller's job (and perhaps the caller does not care).
47859
47860         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
47861         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
47862         If the file already exists but is not a directory, don't bother
47863         to try to make its parents.
47864         Close potential file descriptor leak if we can't chdir("/") (!).
47865         Don't always return true if chdir($PWD) fails; return true only
47866         if the requested action was done successfully (except for the
47867         chdir($PWD)).
47868         Don't log final directory unless we actually made it.
47869         Refactor to avoid duplicate code to fix up permissions.
47870         Don't attempt to fix up parent permissions if chdir($PWD) fails.
47871
47872         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
47873         to make it a bit faster and (I hope) clearer.
47874         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
47875         Fix bug in formats like %2N.
47876
47877         * lib/verify.h: New file.
47878
47879 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47880
47881         Sync from coreutils.
47882         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
47883
47884 2005-09-22  Jim Meyering  <jim@meyering.net>
47885
47886         Sync from coreutils.
47887
47888         * m4/lstat.m4 (gl_FUNC_LSTAT):
47889         Use AC_LIBSOURCES to require lstat.c and lstat.h.
47890         Remove obsolete comment.
47891         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
47892         * m4/xstrtod.m4: Likewise.
47893
47894         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
47895
47896 2005-09-22  Jim Meyering  <jim@meyering.net>
47897
47898         Sync from coreutils.
47899
47900         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
47901
47902         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
47903         the .tm_year member, since otherwise gcc-4.0 would now warn about
47904         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
47905
47906         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
47907         order to avoid an unsuppressible warning from gcc on 64-bit systems.
47908
47909         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
47910         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
47911         when run in a time zone for which daylight savings time is in effect
47912         for the starting date.
47913
47914         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
47915         stop us from restricting permissions of just-created absolute-named
47916         directories.
47917         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
47918         to restore initial working directory.
47919         * lib/mkdir-p.c (make_dir_parents): New parameter:
47920         different_working_dir, to tell caller if/when we change the working
47921         directory and are unable to return to the initial one.
47922         * lib/mkdir-p.h (make_dir_parents): Update prototype.
47923         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
47924         `return false'.  This fixes a bug introduced on 2004-07-30.
47925
47926         * lib/openat.c (fdopendir): Be sure to close the supplied
47927         file descriptor before returning.  This makes our replacement
47928         implementation a little closer to Solaris's, where fdopendir
47929         ties the file descriptor to the returned DIR* pointer.
47930         * lib/openat.c (unlinkat): New function.
47931         * lib/openat.h (unlinkat): Add prototype.
47932         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
47933         (openat_restore_fail): Rename from openat_restore_die.
47934         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
47935
47936         Provide an alternative to exiting immediately upon save_cwd or
47937         restore_cwd failure.  Now, an application can arrange e.g.,
47938         to perform a longjump in that case.
47939         * lib/openat.c: Include dirname.h.
47940         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
47941         (rpl_openat, fdopendir, fstatat): Call openat_save_die
47942         and openat_restore_die rather than calling error directly.
47943         Don't include "error.h" or "exitfail.h"; they're no longer needed.
47944
47945         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
47946         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
47947         define.
47948
47949         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
47950         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
47951                             int utc, int nanoseconds);
47952         Background:
47953         date should not have to allocate a megabyte of virtual memory to
47954         handle a format argument like +%1048575T.  When implemented with
47955         strftime, it must allocate such a buffer, use strftime to fill it
47956         in, print it, then free it.
47957         With fprintftime, it simply prints everything and exits.
47958         With no need for memory allocation, that's one fewer way to fail.
47959         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
47960         optional field width, not before, so we accept %9:z, not %:9z.
47961         (my_strftime): Be sure to use L_('x') for literals.
47962
47963         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
47964         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
47965         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
47966         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
47967         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
47968         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
47969         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
47970         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
47971         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
47972         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
47973         * lib/xgethostname.c, lib/xreadlink.c:
47974         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
47975
47976         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
47977         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
47978         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
47979         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
47980         and don't include <sys/file.h>).
47981
47982 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
47983
47984         Sync from coreutils.
47985
47986         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
47987         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
47988         [!LDAV_DONE]: Avoid unused variable warning.
47989
47990 2005-09-21  Bruno Haible  <bruno@clisp.org>
47991
47992         * lib/unicodeio.h (unicode_to_mb): New declaration.
47993
47994 2005-09-20  Derek Price  <derek@ximbiot.com>
47995
47996         * lib/getaddrinfo.c: Don't include <netdb.h> included from
47997         getaddrinfo.h.
47998
47999 2005-09-20  Bruno Haible  <bruno@clisp.org>
48000
48001         * gnulib-tool: Remove trailing slashes from the values specified for
48002         --source-base, --m4-base, --tests-base, --aux-dir.
48003         Suggested by Simon Josefsson <jas@extundo.com>.
48004
48005 2005-09-20  Bruno Haible  <bruno@clisp.org>
48006
48007         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
48008         func_modules_to_filelist, func_import, func_create_testdir): Make all
48009         sorting results locale-independent, so that gnulib-cache.m4 doesn't
48010         change when gnulib-tool is invoked in a different locale.
48011
48012 2005-09-19  Simon Josefsson  <jas@extundo.com>
48013
48014         * m4/socklen.m4: Fix typo.
48015
48016 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48017
48018         Use a consistent style for including <config.h>.
48019         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
48020         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
48021         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
48022         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
48023         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
48024         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
48025         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
48026         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
48027         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
48028         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
48029         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
48030         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
48031         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
48032         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
48033         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
48034         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
48035         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
48036         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
48037         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
48038         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
48039         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
48040         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
48041         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
48042         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
48043         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
48044         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
48045         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
48046         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
48047         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
48048         lib/xstrtoumax.c, lib/yesno.c:
48049         Standardize inclusion of config.h.
48050         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
48051         lib/inttostr.h:  Removed inclusion of config.h from header files.
48052         * lib/inttostr.c:  Adjusted in-tree users.
48053         * lib/timespec.h: Remove superfluous warning to include config.h.
48054         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
48055         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
48056         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
48057         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
48058         config.h with HAVE_CONFIG_H.
48059
48060 2005-09-19  Jim Meyering  <jim@meyering.net>
48061
48062         * modules/pathmax (License): Change to LGPL.
48063
48064 2005-09-19  Derek Price  <derek@ximbiot.com>
48065
48066         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
48067
48068 2005-09-19  Bruno Haible  <bruno@clisp.org>
48069
48070         * gnulib-tool (import): Provide default for --tests-base.
48071
48072 2005-09-19  Bruno Haible  <bruno@clisp.org>
48073
48074         * doc/quote.texi: New file, extracted from gnulib.texi.
48075         * doc/ctime.texi: New file, extracted from gnulib.texi.
48076         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
48077         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
48078         * doc/gnulib.texi: Include them.
48079
48080 2005-09-18  Bruno Haible  <bruno@clisp.org>
48081
48082         Portability fix.
48083         * gnulib-tool (func_readlink): New function.
48084         (func_ln_if_changed): Use it.
48085
48086 2005-09-18  Bruno Haible  <bruno@clisp.org>
48087
48088         * gnulib-tool: Support --with-tests also with --import.
48089         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
48090         (func_import): Use variables $testsbase and $inctests. Emit a
48091         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
48092         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
48093         SUBDIRS += $testsdir.
48094         (func_create_testdir): Update.
48095
48096 2005-09-18  Bruno Haible  <bruno@clisp.org>
48097
48098         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
48099         instead of $dry_run.
48100         (func_cp_if_changed, func_mv_if_changed): Remove functions.
48101         (func_ln_if_changed): Don't handle dry-run here.
48102         (func_import): In dry-run mode, detect more precisely which actions
48103         would be performed, and don't use "...ing" verbs.
48104
48105 2005-09-18  Bruno Haible  <bruno@clisp.org>
48106
48107         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
48108         (func_import): Use join on two temporary files instead of three nested
48109         loops, in order to determine which files are new or old.
48110
48111 2005-09-18  Bruno Haible  <bruno@clisp.org>
48112
48113         * gnulib-tool (func_import): Comment out code that spits out the
48114         new files with --dry-run.
48115
48116 2005-09-18  Bruno Haible  <bruno@clisp.org>
48117
48118         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
48119
48120 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
48121
48122         * lib/stat-time.h: New file.
48123         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
48124         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
48125         in a different way.
48126         (timespec_cmp): New function.
48127         * lib/utimecmp.c: Include stat-time.h.
48128         (SYSCALL_RESOLUTION): Depend on whether various struct stat
48129         members exist, not on the obsolescent ST_MTIM_NSEC.
48130         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
48131
48132 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
48133
48134         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
48135
48136 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
48137
48138         * MODULES.html.sh (File system functions): Add stat-time.
48139         * modules/stat-time: New file.
48140         * modules/timespec (Files): Remove m4/st_mtim.m4; this
48141         is now done in a different way, by the stat-time module.
48142         * modules/utimecmp (Depends-on): Add stat-time.
48143
48144 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48145
48146         * m4/st_mtim.m4: Remove.  Superseded by...
48147         * m4/stat-time.m4: New file.
48148         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
48149         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
48150
48151 2005-09-15  Derek Price  <derek@ximbiot.com>
48152
48153         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
48154
48155 2005-09-15  Derek Price  <derek@ximbiot.com>
48156
48157         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
48158         * lib/regex_internal.c: Ditto, using this...
48159         (__GNUC_PREREQ): ...new macro.
48160         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
48161         using...
48162         (__GNUC_PREREQ): ...this new macro.
48163
48164         * lib/strstr.h: Include string.h. Define strstr as a macro here.
48165
48166 2005-09-15  Derek Price  <derek@ximbiot.com>
48167             Paul Eggert  <eggert@cs.ucla.edu>
48168
48169         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
48170         changes, consolidating in...
48171         * lib/regex_internal.h: ...this file.
48172
48173 2005-09-13  Jim Meyering  <jim@meyering.net>
48174
48175         * lib/canon-host.c: Filter through gnu indent and reword comments
48176         slightly.
48177         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
48178
48179 2005-09-13  Derek Price  <derek@ximbiot.com>
48180
48181         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
48182         failure.
48183         Reported by Jim Meyering  <jim@meyering.net>.
48184
48185 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
48186
48187         * lib/base64.c: Typo.
48188         (base64_encode): Put b64str in initialized data section.
48189
48190 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
48191
48192         Merge glibc and coreutils changes into gnulib, plus a few
48193         extra fixes.
48194         * lib/md5.c: Use #error rather than a string.
48195         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
48196         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
48197         (__attribute__): Define to empty for non recent-GCC.
48198         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
48199         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
48200         Renamed from their non-__ counterparts, with new macros replacing
48201         them if not _LIBC.  Add __THROW attribute.
48202         (rol): Remove.
48203         (struct md5_ctx): Align buffer if using GCC.
48204         * lib/sha1.h (struct sha1_ctx): Likewise.
48205         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
48206         The old name was backwards.
48207         (NOTSWAP): Remove; not used.
48208         (rol): New macro, moved here from md5.h.
48209         (sha1_process_block): Remove a FIXME that doesn't make sense.
48210
48211 2005-09-12  Derek Price  <derek@ximbiot.com>
48212
48213         Return usable errors from canon-host.
48214         * lib/canon-host.h: New file.
48215         * lib/canon-host.c (canon_host): Wrap...
48216         (canon_host_r): ...this new function, which now relies exclusively on
48217         getaddrinfo.
48218         (ch_strerror): New function.
48219         (last_cherror): New global.
48220         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
48221         interface.
48222         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
48223         void *.
48224         (freeaddrinfo): Free ai->ai_canonname when set.
48225
48226 2005-09-12  Derek Price  <derek@ximbiot.com>
48227
48228         Make canon-host require getaddrinfo.
48229         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
48230         AC_LIBSOURCE canon-host.h.  Call...
48231         (gl_PREREQ_CANON_HOST): ...this new function, which requires
48232         gl_GETADDRINFO.
48233         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
48234
48235 2005-09-12  Derek Price  <derek@ximbiot.com>
48236
48237         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
48238         LGPL.
48239         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
48240
48241 2005-09-12  Derek Price  <derek@ximbiot.com>
48242
48243         * lib/gai_strerror.c: Include config.h when available.  Include
48244         getaddrinfo.h before other headers to test interface.
48245         Reported by Larry Jones <lawrence.jones@ugs.com>.
48246
48247 2005-09-12  Derek Price  <derek@ximbiot.com>
48248             Paul Eggert  <eggert@cs.ucla.edu>
48249
48250         * modules/glob (Files): Add glob-libc.h.
48251
48252 2005-09-12  Derek Price  <derek@ximbiot.com>
48253             Paul Eggert  <eggert@cs.ucla.edu>
48254
48255         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
48256         glob_.h, glob-libc.h.
48257         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
48258
48259 2005-09-12  Derek Price  <derek@ximbiot.com>
48260             Paul Eggert  <eggert@cs.ucla.edu>
48261
48262         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
48263         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
48264         protecting things that should be done only in gnulib contexts.
48265         * lib/glob_.h: New file, containing only the glob things needed for
48266         gnulib.
48267         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
48268         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
48269         (glob, globfree, glob_pattern_p): Now defined simply in terms of
48270         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
48271         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
48272         and to respect the namespace rules better.
48273
48274 2005-09-08  Simon Josefsson  <jas@extundo.com>
48275
48276         * modules/socklen: New file.
48277
48278 2005-09-08  Simon Josefsson  <jas@extundo.com>
48279
48280         * m4/socklen.m4: New file.
48281
48282 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48283
48284         * modules/utimens (Files): Add m4/utimbuf.m4, since
48285         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
48286         Reported by Sergey Poznyakoff.
48287
48288 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48289
48290         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
48291         definitions, since that's the preferred style in glibc.
48292         Fix a minor spacing issue, and update copyright notice to match
48293         glibc's.
48294
48295 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48296
48297         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
48298
48299 2005-09-06  Simon Josefsson  <jas@extundo.com>
48300
48301         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
48302         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
48303
48304 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48305
48306         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
48307         warning.
48308
48309 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48310
48311         * config/srclist.txt: Add glibc bug 1302.
48312
48313 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
48314
48315         Change bitset word type from unsigned int to unsigned long int,
48316         as this has better performance on typical 64-bit hosts.
48317         Port bitset code to hosts with unusual word sizes.
48318         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
48319         (build_collating_symbol):
48320         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
48321         argument is a bitset.  This is merely a style issue, but it makes
48322         it clearer that an entire array is expected.
48323         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
48324         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
48325         Port to the case where bitset_word is not the same as unsigned int.
48326         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
48327         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
48328         Likewise.
48329         * lib/regexec.c (check_dst_limits_calc_pos_1,
48330         check_subexp_matching_top):
48331         (build_trtable, group_nodes_into_DFAstates):
48332         Likewise.
48333         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
48334         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
48335         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
48336         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
48337         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
48338         * lib/regcomp.c (optimize_subexps, lower_subexp):
48339         Work even if bitset_word has holes in its bitwise representation.
48340         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
48341         * lib/regexec.c (check_dst_limits_calc_pos_1,
48342         check_subexp_matching_top):
48343         Likewise.
48344         * lib/regex_internal.c (re_string_reconstruct):
48345         Don't assume UCHAR_MAX == 255.
48346         * lib/regex_internal.h (bitset_set_all): Likewise.
48347         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
48348         All uses changed.
48349         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
48350         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
48351         All uses changed.
48352         (BITSET_WORD_MAX): New macro.
48353         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
48354         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
48355         (bitset_empty, bitset_copy):
48356         Prefer sizeof (bitset) to multiplying it out ourselves.
48357         (bitset_not_merge): Remove; unused.
48358         (bitset_contain): Return bool, not unsigned int with one bit on.
48359         All callers changed.
48360         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
48361         alignment than re_node_set; do this by defining a new internal
48362         type struct dests_alloc and using it to allocate memory.
48363
48364 2005-09-05  Bruno Haible  <bruno@clisp.org>
48365
48366         * gnulib-tool (func_import): Fix comparison in handling of symbolic
48367         links.
48368
48369 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
48370
48371         * modules/size_max (Makefile.am): Add size_max.h
48372
48373 2005-09-04  Derek Price  <derek@ximbiot.com>
48374
48375         * gnulib-tool (func_import): Fix reversed $symbolic logic.
48376
48377 2005-09-03  Simon Josefsson  <jas@extundo.com>
48378
48379         * gnulib-tool: Fix typo.
48380
48381 2005-09-03  Simon Josefsson  <jas@extundo.com>
48382
48383         * config/srclist.txt: Add glibc bug 1293.
48384
48385 2005-09-03  Derek Price  <derek@ximbiot.com>
48386
48387         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
48388         From Larry Jones <lawrence.jones@ugs.com>.
48389
48390 2005-09-02  Simon Josefsson  <jas@extundo.com>
48391
48392         * modules/socklen: New file.
48393
48394 2005-09-02  Simon Josefsson  <jas@extundo.com>
48395
48396         * modules/havelib: New module.
48397
48398         * modules/gettext, modules/iconv, modules/lock, modules/readline:
48399         Use havelib.
48400
48401 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
48402
48403         Check for arithmetic overflow when calculating sizes, to prevent
48404         some buffer-overflow issues.  These patches are conservative, in the
48405         sense that when I couldn't determine whether an overflow was possible,
48406         I inserted a run-time check.
48407         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
48408         macros.
48409         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
48410         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
48411         (re_xnrealloc, re_x2nrealloc): New inline functions.
48412         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
48413         parse_bracket_exp):
48414         (build_equiv_class, build_charclass): Check for arithmetic overflow
48415         in size expression calculations.
48416         * lib/regex_internal.c (re_string_realloc_buffers):
48417         (build_wcs_upper_buffer, re_node_set_add_intersect):
48418         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
48419         (re_dfa_add_node, register_state): Likewise.
48420         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
48421         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
48422         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
48423         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
48424
48425 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
48426
48427         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
48428         m4/ulonglong.m4.  Problem reported by Martin Lambers.
48429
48430 2005-09-02  Bruno Haible  <bruno@clisp.org>
48431
48432         Support for lib vs. lib64 distinction on biarch platforms.
48433         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
48434         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
48435         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
48436
48437 2005-09-02  Bruno Haible  <bruno@clisp.org>
48438
48439         * gnulib-tool (import): In the other first-use case, provide defaults
48440         as well.
48441
48442 2005-09-02  Bruno Haible  <bruno@clisp.org>
48443
48444         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
48445         patches not yet found in the latest gettext release.
48446
48447 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48448
48449         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
48450         to avoid a collision with bits/local_lim.h in glibc.
48451         All uses changed.  Problem reported by Dmitry V. Levin in
48452         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
48453
48454         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
48455         bugs in int versus size_t comparisons.
48456         (re_string_context_at): Fix bug where the code assumed that
48457         Idx is signed.
48458
48459         Use bool where appropriate.
48460         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
48461         All callers changed.
48462         (calc_eclosure_iter): Likewise, for ROOT arg.
48463         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
48464         (build_charclass_op): Likewise, for NON_MATCH arg.
48465         * lib/regex_internal.c (re_string_allocate, re_string_construct):
48466         (re_string_construct_common): Likewise, for ICASE arg.
48467         * lib/regexec.c (re_search_2_stub, re_search_stub):
48468         Likewise, for RET_LEN arg.
48469         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
48470         (set_regs): Likewise, for FL_BACKTRACK arg.
48471         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
48472         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
48473         (calc_eclosure_iter, parse_bracket_exp):
48474         Use bool for internal variables that are booleans.
48475         * lib/regexec.c (re_search_internal, check_matching,
48476         proceed_next_node):
48477         (set_regs, build_sifted_states, sift_states_bkref):
48478         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
48479         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
48480         (find_collation_sequence_value):
48481         Likewise.
48482         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
48483         (re_node_set_compare):
48484         Return bool, not int. All callers changed.
48485         * lib/regexec.c (check_halt_node_context, check_dst_limits):
48486         (build_trtable, check_node_accept): Likewise.
48487         * lib/regex_internal.h: Include stdbool.h.
48488
48489         Fix bugs uncovered when converting to bool.
48490         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
48491         failure instead of charging ahead blindly.
48492         * lib/regex_internal.c (register_state): Likewise.
48493         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
48494         for freeing internal storage.
48495         (group_nodes_into_DFA_states): Use unsigned int, not int, for
48496         bitset pieces used as boolean, to avoid undefined behavior
48497         on hosts that do int overflow checking.
48498
48499 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48500
48501         * config/srclist.txt: Add glibc bugs 1285-1287.
48502
48503 2005-09-01  Jim Meyering  <jim@meyering.net>
48504
48505         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
48506         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
48507         Require gl_STAT_MACROS, too.
48508
48509 2005-09-01  Bruno Haible  <bruno@clisp.org>
48510
48511         * gnulib-tool (import): In the first-use case, provide defaults.
48512
48513 2005-09-01  Bruno Haible  <bruno@clisp.org>
48514
48515         * gnulib-tool (func_import): Remove the .tmp files.
48516
48517 2005-09-01  Bruno Haible  <bruno@clisp.org>
48518
48519         * gnulib-tool (func_import): Fix handling of symbolic links.
48520
48521 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48522
48523         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
48524         old glibc regex code mishandles strings longer than 2**31 bytes.
48525         This patch fixes this when the regex code is used in gnulib
48526         (i.e., outside glibc).
48527
48528         This patch should not affect the use of the regex code inside
48529         glibc.  No doubt this problem also needs to be handled for glibc
48530         as well, but the result will be an incompatible change to the
48531         glibc ABI, and the old ABI will have to be supported too.  That
48532         can be the the subject for another patch.
48533
48534         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
48535         governing whether the rest of this patch is active.  By default,
48536         the macro is disabled and the patch has no effect.
48537         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
48538         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
48539         (struct re_pattern_buffer, re_search, re_search_2, re_match):
48540         (re_match_2, re_set_registers): Use the new types.
48541         * lib/regex_internal.h (Idx, re_hashval_t): New types.
48542         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
48543         New macros.
48544         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
48545         (re_string_context_at, bin_tree_t, re_dfastate_t):
48546         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
48547         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
48548         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
48549         (re_string_char_size_at, re_string_wchar_at):
48550         (re_string_elem_size_at):
48551         Use the new types and macros to port to 64-bit hosts.
48552         Use unsigned types for internal values, so that the code
48553         mostly works even for arrays larger than SSIZE_MAX.
48554         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
48555         (search_duplicated_node, calc_eclosure_iter, fetch_number):
48556         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
48557         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
48558         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
48559         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
48560         (calc_inveclosure, parse_dup_op, build_range_exp):
48561         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
48562         (fetch_number, create_token_tree, mark_opt_subexp):
48563         Likewise.
48564         * lib/regex_internal.c (re_string_construct_common,
48565         create_ci_newstate):
48566         (create_cd_newstate, re_string_allocate, re_string_construct):
48567         (re_string_realloc_buffers, build_wcs_upper_buffer):
48568         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
48569         (re_string_reconstruct, re_string_peek_byte_case):
48570         (re_string_fetch_byte_case, re_string_context_at):
48571         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
48572         (re_node_set_init_copy, re_node_set_add_intersect):
48573         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
48574         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
48575         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
48576         (re_acquire_state, re_acquire_state_context, register_state):
48577         Likewise.
48578         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
48579         search_cur_bkref_entry):
48580         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
48581         (re_search_internal, re_search_2_stub, re_search_stub)
48582         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
48583         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
48584         (update_cur_sifted_state, check_dst_limits):
48585         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
48586         (check_subexp_limits, sift_states_bkref, merge_state_array):
48587         (check_subexp_matching_top, get_subexp, get_subexp_sub):
48588         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
48589         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
48590         (expand_bkref_cache, check_node_accept_bytes):
48591         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
48592         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
48593         (acquire_init_state_context, check_halt_node_context):
48594         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
48595         (sift_states_backward, clean_state_log_if_needed):
48596         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
48597         (find_recover_state, transit_state_sb, transit_state_mb):
48598         (transit_state_bkref, build_trtable, match_ctx_clean):
48599         Likewise.
48600         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
48601         to work around an assumption that REG_MISSING is negative.
48602
48603         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
48604         (seek_collating_symbol_entry) [defined _LIBC]:
48605         (lookup_collation_sequence_value) [defined _LIBC]:
48606         (build_range_exp, build_collating_symbol) [defined _LIBC]:
48607         Use prototypes rather than old-style function definitions.
48608         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
48609         (transit_state_sb) [0]:
48610         (find_collation_sequence_value) [defined _LIBC]: Likewise.
48611
48612         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
48613         rm_eo.
48614
48615         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
48616         (optimize_subexps, lower_subexp):
48617         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
48618         since the signed shift might overflow.  Use 1u<<31 instead.
48619         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
48620         Likewise.
48621         * lib/regexec.c (check_dst_limits_calc_pos_1,
48622         check_subexp_matching_top): Likewise.
48623
48624         * lib/regcomp.c (optimize_subexps, lower_subexp):
48625         Use CHAR_BIT rather than 8, for clarity.
48626         * lib/regexec.c (check_dst_limits_calc_pos_1):
48627         (check_subexp_matching_top): Likewise.
48628         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
48629         have to worry about portability issues when shifting it left.
48630         Remove no-longer-needed test for table_size > 0.
48631         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
48632         in a word, as the resulting behavior is undefined.
48633         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
48634         in one case, a <= should have been an <, and in another case the
48635         whole test was missing.
48636         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
48637         the standard name CHAR_BIT.
48638         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
48639         this is not true on one's complement and signed-magnitude hosts.
48640
48641         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
48642         next_last_offset.
48643         (struct re_dfa_t): Remove unused member states_alloc.
48644         * lib/regcomp.c (init_dfa): Don't initialize unused members.
48645
48646 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48647
48648         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
48649         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
48650         and large-file glibc and in 32-bit large-file Solaris.
48651
48652 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48653
48654         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
48655         lengths fit in regoff_t; this isn't true if regoff_t is the same
48656         width as size_t.
48657         * lib/regex.c (re_search_internal): 5th arg is LAST_START
48658         (= START + RANGE) instead of RANGE.  This avoids overflow
48659         problems when regoff_t is the same width as size_t.
48660         All callers changed.
48661         (re_search_2_stub): Check for overflow when adding the
48662         sizes of the two strings.
48663         (re_search_stub): Check for overflow when adding START
48664         to RANGE; if it occurs, substitute the extreme value.
48665
48666 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48667
48668         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
48669
48670 2005-08-31  Jim Meyering  <jim@meyering.net>
48671
48672         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
48673         a pointer-to-const.
48674         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
48675         (register_state): Likewise.
48676         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
48677         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
48678         (group_nodes_into_DFAstates): Likewise.
48679
48680 2005-08-31  Jim Meyering  <jim@meyering.net>
48681
48682         * check-module: Add a FIXME comment.
48683
48684 2005-08-31  Eric Blake  <ebb9@byu.net>
48685
48686         * modules/unistd-safer (Files): Add unistd--.h.
48687         * modules/stdio-safer (Files): Add stdio--.h.
48688
48689 2005-08-31  Derek Price  <derek@ximbiot.com>
48690
48691         * lib/getdelim.c (getdelim): Return EOF on EOF.
48692         Reported by Larry Jones <lawrence.jones@ugs.com>.
48693
48694 2005-08-31  Bruno Haible  <bruno@clisp.org>
48695
48696         Avoid unnecessary diffs in the generated lib/Makefile.am.
48697         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
48698         the generated files.
48699         (func_import): Don't set cmd.
48700
48701 2005-08-31  Bruno Haible  <bruno@clisp.org>
48702
48703         * lib/strstr.c: Include <stddef.h>, for NULL.
48704         * lib/strcasestr.c: Likewise.
48705         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48706
48707 2005-08-31  Bruno Haible  <bruno@clisp.org>
48708
48709         * gnulib-tool: New option --macro-prefix.
48710         (func_import): Use macro_prefix.
48711         (import): Handle option --macro-prefix.
48712
48713 2005-08-31  Bruno Haible  <bruno@clisp.org>
48714
48715         * gnulib-tool (import): Rename most ac_* variables to cached_*.
48716         Also use new variables cached_lgpl, cached_libtool.
48717
48718 2005-08-31  Bruno Haible  <bruno@clisp.org>
48719
48720         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
48721         always instantiating them.
48722
48723 2005-08-31  Bruno Haible  <bruno@clisp.org>
48724
48725         * gnulib-tool (func_import): Read the previous cached settings
48726         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
48727         earlier added by gnulib but are now dropped. Warn when a gnulib file
48728         overwrites a non-gnulib file.
48729
48730 2005-08-31  Bruno Haible  <bruno@clisp.org>
48731
48732         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
48733         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
48734         projects that don't keep autogenerated files in CVS. Put into
48735         actioncmd only the specified modules, not the transitive closure.
48736
48737 2005-08-31  Bruno Haible  <bruno@clisp.org>
48738
48739         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
48740         Create directories that shall be filled.
48741         (import): Don't look for gl_* macros in configure.ac. Recurse across
48742         all directories containing a gnulib-cache.m4 files, if meaningful.
48743
48744 2005-08-31  Bruno Haible  <bruno@clisp.org>
48745
48746         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
48747         (import): Set seen_libtool when we see gl_LIBTOOL.
48748
48749 2005-08-31  Bruno Haible  <bruno@clisp.org>
48750
48751         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
48752         declaration macro definitions from generated gnulib.m4.
48753
48754 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
48755
48756         * lib/iconvme.h: Add prototype for iconv_alloc.
48757
48758 2005-08-29  Simon Josefsson  <jas@extundo.com>
48759
48760         * lib/iconvme.c: Fix errno.
48761
48762 2005-08-29  Bruno Haible  <bruno@clisp.org>
48763
48764         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
48765         that it works when the directory contains spaces.
48766
48767 2005-08-29  Bruno Haible  <bruno@clisp.org>
48768
48769         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
48770
48771 2005-08-29  Bruno Haible  <bruno@clisp.org>
48772
48773         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
48774         Emit more advice.
48775
48776 2005-08-29  Bruno Haible  <bruno@clisp.org>
48777         and Stepan Kasal  <kasal@ucw.cz>
48778
48779         * check-module: If more parameters are given, check each of them
48780         separately; add more exceptions, as noted by Jim Meyering.
48781         (check_module): New procedure.
48782         (%exempt_header): Now contains all exceptions.
48783
48784 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
48785
48786         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
48787
48788 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
48789
48790         * lib/iconvme.c: Split iconv_string into iconv_alloc.
48791
48792 2005-08-28  Bruno Haible  <bruno@clisp.org>
48793
48794         * m4/gnulib-tool.m4: New file.
48795
48796 2005-08-27  Jim Meyering  <jim@meyering.net>
48797
48798         * modules/unistd-safer (Files): Add pipe-safer.c.
48799         * modules/fcntl-safer (Files): Add creat-safer.c.
48800
48801 2005-08-27  Jim Meyering  <jim@meyering.net>
48802
48803         * m4/stdlib-safer.m4: New file.  From coreutils.
48804         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
48805         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
48806         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
48807         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
48808         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
48809
48810 2005-08-27  Jim Meyering  <jim@meyering.net>
48811
48812         * lib/fopen-safer.c: Merge minor changes from coreutils.
48813         * lib/dup-safer.c: Likewise.
48814         * lib/fd-safer.c: Likewise.
48815
48816         Merge from coreutils.
48817         * lib/stdio--.h: New file.
48818         * lib/stdlib--.h: New file.
48819         * lib/mkstemp-safer.c: New file.
48820
48821         GNU tar needs these.
48822         * lib/pipe-safer.c: New file.
48823         * lib/creat-safer.c: New file.
48824         * lib/fcntl--.h (creat): Define to creat_safer.
48825         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
48826         * lib/unistd--.h (pipe): Define to pipe_safer.
48827         * lib/unistd-safer.h: Declare pipe_safer.
48828
48829 2005-08-26  Simon Josefsson  <jas@extundo.com>
48830
48831         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
48832         Haible <bruno@clisp.org>.
48833
48834 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
48835
48836         * lib/regex_internal.h: Remove all references to
48837         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
48838         or better.
48839         (bitset_not, bitset_merge, bitset_not_merge):
48840         (bitset_mask, re_string_allocate, re_string_construct):
48841         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
48842         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
48843         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
48844         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
48845         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
48846         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
48847         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
48848         (re_acquire_state_context):
48849         Remove unnecessary forward decls.
48850         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
48851         Put __attribute at function definition,
48852         now that the function decl has been removed.
48853         * lib/regex_internal.c (re_string_peek_byte_case):
48854         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
48855         Likewise.
48856
48857 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
48858
48859         * m4/regex.m4: Add AC_PREREQ(2.50).
48860         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
48861
48862 2005-08-25  Simon Josefsson  <jas@extundo.com>
48863
48864         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
48865         __fsetlocking.
48866
48867 2005-08-25  Simon Josefsson  <jas@extundo.com>
48868
48869         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
48870         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
48871         GLIBC specific code.
48872
48873 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48874
48875         Make regex safe for g++.  This fixes one real bug (an "err"
48876         that should have been "*err").  g++ problem reported by
48877         Sam Steingold.
48878         * lib/regex_internal.h (re_calloc): New macro, consistent with
48879         re_malloc etc.  All callers of calloc changed to use re_calloc.
48880         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
48881         not int.  All callers changed.
48882         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
48883         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
48884         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
48885         (find_recover_state): Change "err" to "*err"; this fixes what
48886         appears to be a real bug.
48887         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
48888         versus int.
48889
48890 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48891
48892         * modules/regex (Depends-on): Add malloc, since the code
48893         assumes that !malloc(0) means failure.
48894
48895 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48896
48897         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
48898
48899         alloca modernization/simplification for regex.
48900         * lib/regex.c: Remove portability cruft for alloca.  This no longer
48901         needs to be at the start of the file, and can be moved into
48902         regex_internal.h and simplified.
48903         * lib/regex_internal.h: Include <alloca.h>.
48904         (__libc_use_alloca) [!defined _LIBC]: New macro.
48905         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
48906         now works outside glibc.
48907
48908 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48909
48910         * config/srclist.txt: Add glibc bugs 1241, 1245.
48911
48912 2005-08-25  Jim Meyering  <jim@meyering.net>
48913
48914         * lib/open-safer.c: Include <config.h>.
48915         Otherwise, we'd lose LARGEFILE support in any file using
48916         e.g. "fcntl--.h"
48917
48918 2005-08-25  Bruno Haible  <bruno@clisp.org>
48919
48920         * m4/minmax.m4: Require autoconf 2.52.
48921         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
48922         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
48923         alternatives of translit over the alphabet.
48924         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
48925
48926 2005-08-24  Simon Josefsson  <jas@extundo.com>
48927
48928         * tests/test-getpass.c: New file.
48929
48930 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48931
48932         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
48933         for GNU regex features.
48934
48935 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48936
48937         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
48938         * lib/regex.h (regerror): Likewise.
48939
48940         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
48941         requires this.  (The code never needed it.)
48942
48943         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
48944         All uses of recently-renamed identifiers changed to use the new,
48945         POSIX-compliant names.  The code will build and run just fine
48946         without these changes, but it's better to eat our own dog food
48947         and use the standard-conforming names.
48948
48949         * lib/regex.h: Fix a multitude of POSIX name space violations.
48950         These changes have an effect only for programs that define
48951         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
48952         do not change anything for programs compiled in the normal way.
48953         Also, there is no effect on the ABI.
48954
48955         (_REGEX_SOURCE): New macro.
48956         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
48957         defined and _GNU_SOURCE is not; this fixes a name space violation.
48958
48959         Rename the following macros to obey POSIX requirements.
48960         The old names are still visible as macros if _REGEX_SOURCE is defined.
48961         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
48962         RE_BACKSLASH_ESCAPE_IN_LISTS.
48963         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
48964         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
48965         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
48966         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
48967         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
48968         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
48969         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
48970         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
48971         (REG_INTERVALS): renamed from RE_INTERVALS.
48972         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
48973         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
48974         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
48975         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
48976         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
48977         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
48978         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
48979         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
48980         RE_UNMATCHED_RIGHT_PAREN_ORD.
48981         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
48982         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
48983         (REG_DEBUG): renamed from RE_DEBUG.
48984         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
48985         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
48986         unusual, since we can't clash with the POSIX REG_ICASE.
48987         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
48988         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
48989         (REG_NO_SUB): renamed from RE_NO_SUB.
48990         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
48991         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
48992         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
48993         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
48994         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
48995         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
48996         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
48997         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
48998         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
48999         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
49000         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
49001         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
49002         RE_SYNTAX_POSIX_MINIMAL_BASIC.
49003         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
49004         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
49005         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
49006         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
49007         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
49008         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
49009         (REG_FIXED): Renamed from REGS_FIXED.
49010         (REG_NREGS): Renamed from RE_NREGS.
49011
49012         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
49013         of other REG_* macros, since POSIX says the user is allowed to
49014         #undef these macros selectively.
49015
49016         (reg_errcode_t): Update comment stating what other tables need
49017         to be consistent.
49018
49019         Rename the following enum values to obey POSIX requirements.
49020         The old names are still visible as macros.
49021         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
49022         is not defined, since GNU is supposed to be a superset of POSIX as
49023         much as possible, and since we want reg_errcode_t to be a signed
49024         type for implementation consistency.
49025         (_REG_NOERROR): Renamed from REG_NOERROR.
49026         (_REG_NOMATCH): Renamed from REG_NOMATCH.
49027         (_REG_BADPAT): Renamed from REG_BADPAT.
49028         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
49029         (_REG_ECTYPE): Renamed from REG_ECTYPE.
49030         (_REG_EESCAPE): Renamed from REG_EESCAPE.
49031         (_REG_ESUBREG): Renamed from REG_ESUBREG.
49032         (_REG_EBRACK): Renamed from REG_EBRACK.
49033         (_REG_EPAREN): Renamed from REG_EPAREN.
49034         (_REG_EBRACE): Renamed from REG_EBRACE.
49035         (_REG_BADBR): Renamed from REG_BADBR.
49036         (_REG_ERANGE): Renamed from REG_ERANGE.
49037         (_REG_ESPACE): Renamed from REG_ESPACE.
49038         (_REG_BADRPT): Renamed from REG_BADRPT.
49039         (_REG_EEND): Renamed from REG_EEND.
49040         (_REG_ESIZE): Renamed from REG_ESIZE.
49041         (_REG_ERPAREN): Renamed from REG_ERPAREN.
49042         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
49043         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
49044         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
49045         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
49046
49047         (_REG_RE_NAME, _REG_RM_NAME): New macros.
49048         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
49049         changed.  But support the old name if the new one is not defined
49050         and if _REGEX_SOURCE.
49051
49052         Change the following member names in struct re_pattern_buffer.
49053         The old names are still supported if !_REGEX_SOURCE.
49054         The new names are always supported, regardless of _REGEX_SOURCE.
49055         (re_buffer): Renamed from buffer.
49056         (re_allocated): Renamed from allocated.
49057         (re_used): Renamed from used.
49058         (re_syntax): Renamed from syntax.
49059         (re_fastmap): Renamed from fastmap.
49060         (re_translate): Renamed from translate.
49061         (re_can_be_null): Renamed from can_be_null.
49062         (re_regs_allocated): Renamed from regs_allocated.
49063         (re_fastmap_accurate): Renamed from fastmap_accurate.
49064         (re_no_sub): Renamed from no_sub.
49065         (re_not_bol): Renamed from not_bol.
49066         (re_not_eol): Renamed from not_eol.
49067         (re_newline_anchor): Renamed from newline_anchor.
49068
49069         Change the following member names in struct re_registers.
49070         The old names are still supported if !_REGEX_SOURCE.
49071         The new names are always supported, regardless of _REGEX_SOURCE.
49072         (rm_num_regs): Renamed from num_regs.
49073         (rm_start): Renamed from start.
49074         (rm_end): Renamed from end.
49075
49076         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
49077         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
49078         Prepend __ to parameter names.
49079
49080         Undo yesterday's changes.
49081
49082 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49083
49084         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
49085         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
49086         lib/regex.c.
49087
49088 2005-08-24  Jim Meyering  <jim@meyering.net>
49089
49090         Sync from coreutils.
49091         * m4/fcntl-safer.m4: New file.
49092
49093         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
49094         and object files for this module.
49095
49096 2005-08-24  Jim Meyering  <jim@meyering.net>
49097
49098         Sync from coreutils.
49099         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
49100
49101 2005-08-24  Jim Meyering  <jim@meyering.net>
49102
49103         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
49104         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
49105
49106 2005-08-24  Jim Meyering  <jim@meyering.net>
49107
49108         * modules/fcntl-safer: New module.
49109         * modules/fts (Depends-on): Add fcntl-safer.
49110         * MODULES.html.sh (File descriptor based Input/Output):
49111         Add fcntl-safer.
49112
49113 2005-08-24  Bruno Haible  <bruno@clisp.org>
49114
49115         Support for unit test modules.
49116         * modules/README: Mention tests modules.
49117         * modules/TEMPLATE-TESTS: New file.
49118         * gnulib-tool: New options --extract-tests-module, --with-tests and
49119         --tests-base (unused for the moment).
49120         (testsbase, inctests): New variables.
49121         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
49122         (func_verify_module): Exclude TEMPLATE-TESTS.
49123         (func_verify_nontests_module, func_verify_tests_module): New functions.
49124         (func_get_dependencies): Add implicit dependency for tests modules.
49125         (func_get_tests_module): New function.
49126         (func_modules_transitive_closure): When --with-tests was specified,
49127         include the unit tests as well, unless explicitly avoided.
49128         (func_emit_lib_Makefile_am): Ignore the tests modules here.
49129         (func_emit_tests_Makefile_am): New function.
49130         (func_create_testdir): When --with-tests was specified, emit a
49131         tests/ directory.
49132         * MODULES.html.sh (Future developments): Update.
49133
49134 2005-08-24  Bruno Haible  <bruno@clisp.org>
49135
49136         * modules/tls-tests: New file.
49137         * tests/test-tls.c: New file, from GNU gettext.
49138
49139 2005-08-24  Bruno Haible  <bruno@clisp.org>
49140
49141         * modules/lock-tests: New file.
49142         * tests/test-lock.c: New file, from GNU gettext.
49143
49144 2005-08-24  Bruno Haible  <bruno@clisp.org>
49145
49146         * lib/lock.h: Add multiple inclusion guard.
49147         * lib/tls.h: Add multiple inclusion guard.
49148
49149 2005-08-24  Bruno Haible  <bruno@clisp.org>
49150
49151         * gnulib-tool: Add support for the --aux-dir option to
49152         --create-testdir, --create-megatestdir, --test, --megatest.
49153         (func_create_testdir, func_create_megatestdir): Optionally emit a
49154         AC_CONFIG_AUX_DIR directive.
49155         (create-testdir, create-megatestdir, test, megatest): Provide a
49156         default value for $auxdir.
49157
49158 2005-08-24  Bruno Haible  <bruno@clisp.org>
49159
49160         * gnulib-tool (import): Use compound statement instead of subshell
49161         where possible.
49162
49163 2005-08-24  Bruno Haible  <bruno@clisp.org>
49164
49165         * gnulib-tool (import): Change --aux-dir default to "build-aux".
49166
49167 2005-08-24  Bruno Haible  <bruno@clisp.org>
49168
49169         * gnulib-tool (func_version): Update.
49170
49171 2005-08-24  Bruno Haible  <bruno@clisp.org>
49172
49173         * gnulib-tool (func_import, func_create_testdir,
49174         func_create_megatestdir): Quote all autoconf macro arguments.
49175
49176 2005-08-24  Bruno Haible  <bruno@clisp.org>
49177
49178         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
49179         option --force, because --force causes the aclocal.m4 of each
49180         subdirectory to be newer than the corresponding config.h.in.
49181
49182 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49183
49184         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
49185         All contents moved to gl_REGEX.
49186         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
49187         assume that it does.
49188
49189 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49190
49191         * lib/regex.h (REG_NOSYS)
49192         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
49193         Define, since POSIX requires it as of 2001.
49194         (_REG_ENOSYS)
49195         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
49196         New private symbol, used to keep the enum signed in all cases.
49197         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
49198         Youngman in
49199         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
49200
49201         * lib/regex_internal.c (re_string_skip_chars, register_state):
49202         (calc_state_hash):
49203         Remove forward decls; no longer needed now that we use prototypes.
49204         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
49205         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
49206         (clean_state_log_if_needed): Likewise.
49207
49208 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49209
49210         * config/srclist.txt: Add glibc bugs 1231-1233.
49211
49212 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49213
49214         Fix problems reported by Sam Steingold in
49215         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
49216         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
49217         assumed that reg_errcode_t is a signed type, which is not
49218         necessarily true if _XOPEN_SOURCE is not defined.
49219         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
49220         since some compilers warn about it otherwise.
49221
49222 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49223
49224         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
49225         (init_word_char, create_initial_state, duplicate_node_closure):
49226         (fetch_token, peek_token_bracket, build_range_exp):
49227         (build_collating_symbol): Remove forward decls; no longer needed
49228         now that we use prototypes.
49229
49230         * lib/regcomp.c:
49231         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
49232         (re_compile_fastmap_iter, regcomp, regerror, regfree):
49233         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
49234         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
49235         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
49236         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
49237         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
49238         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
49239         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
49240         (build_range_exp, build_collating_symbol, parse_bracket_exp):
49241         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
49242         (build_charclass, build_charclass_op, fetch_number, create_tree):
49243         (create_token_tree, mark_opt_subexp, duplicate_tree):
49244         Use prototypes rather than old-style definitions.
49245
49246         * lib/regex_internal.c:
49247         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
49248         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
49249         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49250         (re_string_reconstruct, re_string_peek_byte_case):
49251         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
49252         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49253         (re_node_set_init_copy, re_node_set_add_intersect):
49254         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49255         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49256         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49257         (re_acquire_state, re_acquire_state_context, register_state):
49258         (create_ci_newstate, create_cd_newstate, free_state):
49259         Likewise.
49260         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
49261         re_search_2):
49262         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
49263         (re_search_internal, prune_impossible_nodes):
49264         (acquire_init_state_context, check_matching, static):
49265         (check_halt_node_context, check_halt_state_context, proceed_next_node):
49266         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
49267         (update_regs, sift_states_backward, build_sifted_states):
49268         (clean_state_log_if_needed, merge_state_array):
49269         (update_cur_sifted_state, add_epsilon_src_nodes):
49270         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
49271         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
49272         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
49273         (find_recover_state, check_subexp_matching_top, transit_state_mb):
49274         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
49275         (check_arrival, check_arrival_add_next_nodes):
49276         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49277         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49278         (check_node_accept_bytes, check_node_accept, extend_buffers):
49279         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
49280         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
49281         (sift_ctx_init):
49282         Likewise.
49283
49284         * lib/regex_internal.h:
49285         (re_string_allocate, re_string_construct, re_string_reconstruct):
49286         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
49287         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
49288         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
49289         (re_string_context_at, re_string_peek_byte_case):
49290         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
49291         is defined, since we now use prototypes always.
49292
49293         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
49294         C89 or better.  All uses removed.
49295
49296 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49297
49298         * config/srclist.txt: Add glibc bugs 1220-1227.
49299
49300 2005-08-20  Jim Meyering  <jim@meyering.net>
49301
49302         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
49303         of unused local, dfa.
49304
49305 2005-08-20  Bruno Haible  <bruno@clisp.org>
49306
49307         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
49308
49309 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49310
49311         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
49312         (re_node_set_insert_last, re_dfa_add_node):
49313         Rename local variables to avoid GCC shadowing warnings.
49314
49315 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49316
49317         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
49318         [defined lint]: Suppress bogus uninitialized-variable warnings.
49319
49320         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
49321         and let the caller return REG_ESPACE if out of space.  This
49322         removes an uninitialied-variable warning with GCC 4.0.1, and also
49323         avoids taking the address of a local variable.  All callers
49324         changed.
49325
49326 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49327
49328         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
49329         $LIBCSRC/posix/regexec.c.
49330         Add glibc bug 1217 for regcomp.c.
49331
49332 2005-08-19  Jim Meyering  <jim@meyering.net>
49333
49334         * lib/regexec.c (proceed_next_node): Redo local variables to
49335         avoid GCC shadowing warnings.
49336
49337 2005-08-18  Bruno Haible  <bruno@clisp.org>
49338
49339         * lib/strstr.c (strstr): Fix return value in multibyte case.
49340         * lib/strcasestr.c (strcasestr): Likewise.
49341
49342 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49343
49344         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
49345
49346 2005-08-17  Jim Meyering  <jim@meyering.net>
49347
49348         Make the %s format (seconds since the epoch) work for a negative
49349         number and when used with a zero-padded field width, e.g. %015s.
49350
49351         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
49352         label so that it precedes the code to set `digits'.  Otherwise,
49353         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
49354         print `00-22'.  Now, it prints `-0022', as it should.
49355
49356 2005-08-17  Bruno Haible  <bruno@clisp.org>
49357
49358         * modules/strstr (Files): Add m4/mbrtowc.m4.
49359         (Depends-on): Add mbuiter.
49360
49361 2005-08-17  Bruno Haible  <bruno@clisp.org>
49362
49363         * modules/strcasestr: New file.
49364         * MODULES.html.sh (String handling, based on ANSI C 89): Add
49365         strcasestr.
49366
49367 2005-08-17  Bruno Haible  <bruno@clisp.org>
49368
49369         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
49370
49371 2005-08-17  Bruno Haible  <bruno@clisp.org>
49372
49373         * modules/mbuiter: New file.
49374         * MODULES.html.sh (Extended multibyte and wide character utilities):
49375         Add mbuiter.
49376
49377 2005-08-17  Bruno Haible  <bruno@clisp.org>
49378
49379         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
49380         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
49381
49382 2005-08-17  Bruno Haible  <bruno@clisp.org>
49383
49384         * m4/strcasestr.m4: New file.
49385
49386 2005-08-17  Bruno Haible  <bruno@clisp.org>
49387
49388         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
49389         * lib/strstr.c: Completely rewritten, with multibyte locale support.
49390
49391 2005-08-17  Bruno Haible  <bruno@clisp.org>
49392
49393         * lib/strcasestr.h: New file.
49394         * lib/strcasestr.c: New file.
49395
49396 2005-08-17  Bruno Haible  <bruno@clisp.org>
49397
49398         * lib/strcasecmp.c: Use mbuiter.h.
49399
49400 2005-08-17  Bruno Haible  <bruno@clisp.org>
49401
49402         * lib/mbuiter.h: New file.
49403
49404 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
49405
49406         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
49407         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
49408         and gl_GETOPT are both invoked via different paths (as happens
49409         with GNU tar CVS because it uses both argp and getopt), the former
49410         wins.
49411
49412 2005-08-16  Bruno Haible  <bruno@clisp.org>
49413
49414         * modules/tls: New file.
49415         * MODULES.html.sh (Multithreading): Add tls.
49416
49417 2005-08-16  Bruno Haible  <bruno@clisp.org>
49418
49419         * modules/strnlen1: New file.
49420         * MODULES.html.sh (String handling): Add strnlen1.
49421
49422 2005-08-16  Bruno Haible  <bruno@clisp.org>
49423
49424         * modules/strcase (Files): Add m4/mbrtowc.m4.
49425         (Depends-on): Add strnlen1, mbchar.
49426
49427 2005-08-16  Bruno Haible  <bruno@clisp.org>
49428
49429         * modules/mbiter: New file.
49430         * MODULES.html.sh (Extended multibyte and wide character utilities):
49431         Add mbiter.
49432
49433 2005-08-16  Bruno Haible  <bruno@clisp.org>
49434
49435         * modules/mbfile: New file.
49436         * MODULES.html.sh (Extended multibyte and wide character utilities):
49437         Add mbfile.
49438
49439 2005-08-16  Bruno Haible  <bruno@clisp.org>
49440
49441         * modules/mbchar: New file.
49442         * MODULES.html.sh (Extended multibyte and wide character utilities):
49443         New section.
49444
49445 2005-08-16  Bruno Haible  <bruno@clisp.org>
49446
49447         * m4/tls.m4: New file, from GNU gettext.
49448
49449 2005-08-16  Bruno Haible  <bruno@clisp.org>
49450
49451         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
49452         always.
49453         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
49454
49455 2005-08-16  Bruno Haible  <bruno@clisp.org>
49456
49457         * m4/mbiter.m4: New file.
49458
49459 2005-08-16  Bruno Haible  <bruno@clisp.org>
49460
49461         * m4/mbfile.m4: New file.
49462
49463 2005-08-16  Bruno Haible  <bruno@clisp.org>
49464
49465         * m4/mbchar.m4: New file.
49466
49467 2005-08-16  Bruno Haible  <bruno@clisp.org>
49468
49469         * lib/tls.h: New file, from GNU gettext.
49470         * lib/tls.c: New file, from GNU gettext.
49471
49472 2005-08-16  Bruno Haible  <bruno@clisp.org>
49473
49474         * lib/strnlen1.h: New file.
49475         * lib/strnlen1.c: New file.
49476
49477 2005-08-16  Bruno Haible  <bruno@clisp.org>
49478
49479         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
49480         (mbi_init): Update.
49481         (mbi_avail, mbi_advance): Let the iteration end before the terminating
49482         NUL byte, not after it.
49483
49484 2005-08-16  Bruno Haible  <bruno@clisp.org>
49485
49486         * lib/strcase.h (strcasecmp): Add note in comments.
49487         * lib/strncasecmp.c: Use code from strcasecmp.c.
49488         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
49489         (strcasecmp): Work correctly in multibyte locales.
49490
49491 2005-08-16  Bruno Haible  <bruno@clisp.org>
49492
49493         * lib/mbiter.h: New file.
49494
49495 2005-08-16  Bruno Haible  <bruno@clisp.org>
49496
49497         * lib/mbfile.h: New file.
49498
49499 2005-08-16  Bruno Haible  <bruno@clisp.org>
49500
49501         * lib/mbchar.h: New file.
49502         * lib/mbchar.c: New file.
49503
49504 2005-08-16  Bruno Haible  <bruno@clisp.org>
49505
49506         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
49507         the valid ones. Makes the comparison operations transitive:
49508         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
49509         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
49510
49511 2005-08-15  Simon Josefsson  <jas@extundo.com>
49512
49513         * modules/ssize_t (License): Change to 'unlimited'.
49514
49515         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
49516
49517 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49518
49519         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
49520         Add comments for each pending glibc patch.
49521
49522 2005-08-15  Bruno Haible  <bruno@clisp.org>
49523
49524         * lib/regex.h (__restrict_arr): Don't define to __restrict if
49525         __cplusplus is defined.
49526
49527 2005-08-14  Jim Meyering  <jim@meyering.net>
49528
49529         Sync from coreutils.
49530
49531         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
49532         Use the hash-table-based cycle-detection code not just when
49533         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
49534         Reported by James Youngman in
49535         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
49536         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
49537         FTS_TIGHT_CYCLE_CHECK.
49538         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
49539         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
49540         once again.
49541         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
49542         * lib/fts.c (fd_safer): Remove decl.
49543         Include fcntl--.h rather than unistd-safer.h
49544         (fts_safe_changedir): Don't call fd_safer; no longer needed
49545         now that we include fcntl--.h.
49546
49547 2005-08-12  Simon Josefsson  <jas@extundo.com>
49548
49549         * modules/getndelim2: Use ssize_t module.
49550         * modules/getnline: Likewise.
49551         * modules/safe-read: Likewise.
49552         * modules/xreadlink: Likewise.
49553
49554         * modules/ssize_t: New file.
49555
49556 2005-08-12  Simon Josefsson  <jas@extundo.com>
49557
49558         * m4/readline.m4: Look for termcap, curses or ncurses if required.
49559
49560 2005-08-12  Simon Josefsson  <jas@extundo.com>
49561
49562         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49563         ssize_t.
49564
49565 2005-08-12  Simon Josefsson  <jas@extundo.com>
49566
49567         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
49568         readline, getdelim and check_version.
49569         (Support for systems lacking ISO C 99: Sizes of integer types):
49570         Add size_max.
49571
49572 2005-08-12  Bruno Haible  <bruno@clisp.org>
49573
49574         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
49575
49576 2005-08-11  Simon Josefsson  <jas@extundo.com>
49577
49578         * modules/readline: New file.
49579
49580         * modules/strnlen (Files): Add strnlen.h.
49581
49582 2005-08-11  Simon Josefsson  <jas@extundo.com>
49583
49584         * m4/readline.m4: New file.
49585
49586 2005-08-11  Simon Josefsson  <jas@extundo.com>
49587
49588         * lib/readline.h, readline.c: New file.
49589
49590 2005-08-11  Simon Josefsson  <jas@extundo.com>
49591
49592         * doc/gnulib.texi (Initial import, Finishing touches): Mention
49593         gl_AVOID.
49594
49595 2005-08-11  Bruno Haible  <bruno@clisp.org>
49596
49597         * lib/strnlen.h (strnlen): Change parameter name to match comment.
49598
49599 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
49600
49601         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
49602
49603 2005-08-10  Simon Josefsson  <jas@extundo.com>
49604
49605         * tests/test-iconvme.c: New file.
49606
49607 2005-08-10  Simon Josefsson  <jas@extundo.com>
49608
49609         * m4/strnlen.m4: New file.
49610
49611         * m4/strndup.m4: Don't check for strnlen declaration, done in
49612         strnlen.m4.
49613
49614 2005-08-10  Simon Josefsson  <jas@extundo.com>
49615
49616         * lib/strndup.c: Use strnlen.h.
49617
49618         * lib/strnlen.h: New file.
49619
49620 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49621
49622         * README: Typos.
49623
49624 2005-08-02  Simon Josefsson  <jas@extundo.com>
49625
49626         * modules/readline: New file.
49627
49628 2005-08-02  Simon Josefsson  <jas@extundo.com>
49629
49630         * modules/getdelim: New file.
49631
49632         * modules/getline: Rewrite, don't use getndelim2.
49633
49634 2005-08-02  Simon Josefsson  <jas@extundo.com>
49635
49636         * m4/getline.m4: Separate out getdelim stuff into separate module.
49637
49638         * m4/getdelim.m4: New file.
49639
49640 2005-08-02  Simon Josefsson  <jas@extundo.com>
49641
49642         * lib/getline.h, getline.c: Rewrite.
49643
49644         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
49645
49646 2005-07-31  Bruno Haible  <bruno@clisp.org>
49647
49648         * lib/lock.h (gl_lock_initializer): New macro.
49649         (gl_lock_define_initialized): Use it.
49650         (gl_rwlock_initializer): New macro.
49651         (gl_rwlock_define_initialized): Use it.
49652         (gl_recursive_lock_initializer): New macro.
49653         (gl_recursive_lock_define_initialized): Use it.
49654
49655 2005-07-30  Karl Berry  <karl@gnu.org>
49656
49657         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
49658         Report from Ben Pfaff, regarding getopt.
49659
49660 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
49661
49662         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
49663         normal way.
49664         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
49665         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
49666         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
49667         (gl_GETOPT): Use the new macros.  Most of the implementation
49668         is moved to the new macros.  This is for programs like Emacs
49669         that don't want all the functionality of gl_GETOPT.
49670
49671 2005-07-26  Bruno Haible  <bruno@clisp.org>
49672
49673         * m4/lock.m4: Update from GNU gettext.
49674
49675 2005-07-26  Bruno Haible  <bruno@clisp.org>
49676
49677         * lib/lock.h: Update from GNU gettext.
49678         * lib/lock.c: Update from GNU gettext.
49679
49680 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
49681
49682         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
49683         obsolescent AC_TRY_RUN.  Include the default includes files, for
49684         'exit'.
49685
49686 2005-07-24  Bruno Haible  <bruno@clisp.org>
49687
49688         * modules/visibility: New file.
49689         * MODULES.html.sh (Misc): Add visibility.
49690
49691 2005-07-24  Bruno Haible  <bruno@clisp.org>
49692
49693         * m4/visibility.m4: New file.
49694
49695 2005-07-24  Bruno Haible  <bruno@clisp.org>
49696
49697         * doc/visibility.texi: New file.
49698
49699 2005-07-22  Bruno Haible  <bruno@clisp.org>
49700
49701         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
49702         $(ALLOCA_H), redundant through BUILT_SOURCES.
49703         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
49704         redundant through BUILT_SOURCES.
49705         * modules/byteswap (Makefile.am): Remove explicit dependency on
49706         $(BYTESWAP_H), redundant through BUILT_SOURCES.
49707         * modules/fnmatch (Makefile.am): Remove explicit dependency on
49708         $(FNMATCH_H), redundant through BUILT_SOURCES.
49709         * modules/getopt (Makefile.am): Remove explicit dependency on
49710         $(GETOPT_H), redundant through BUILT_SOURCES.
49711         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
49712         redundant through BUILT_SOURCES.
49713         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
49714         redundant through BUILT_SOURCES.
49715         * modules/stdbool (Makefile.am): Remove explicit dependency on
49716         $(STDBOOL_H), redundant through BUILT_SOURCES.
49717         * modules/stdint (Makefile.am): Remove explicit dependency on
49718         $(STDINT_H), redundant through BUILT_SOURCES.
49719         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
49720         Remove explicit dependency on $(SYSEXITS_H).
49721         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
49722
49723 2005-07-18  Simon Josefsson  <jas@extundo.com>
49724
49725         * lib/check-version.c (check_version): Accept identical versions too.
49726
49727 2005-07-18  Bruno Haible  <bruno@clisp.org>
49728
49729         * modules/lock: New file.
49730         * MODULES.html.sh (Multithreading): New section.
49731
49732 2005-07-18  Bruno Haible  <bruno@clisp.org>
49733
49734         * m4/lock.m4: New file, from GNU gettext.
49735
49736 2005-07-18  Bruno Haible  <bruno@clisp.org>
49737
49738         * lib/lock.h: New file, from GNU gettext.
49739         * lib/lock.c: New file, from GNU gettext.
49740
49741 2005-07-18  Bruno Haible  <bruno@clisp.org>
49742
49743         * lib/lock.h (gl_once_t): New type.
49744         (gl_once_define, gl_once): New macros.
49745         * lib/lock.c (fresh_once): New variable.
49746         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
49747         functions.
49748
49749 2005-07-16  Simon Josefsson  <jas@extundo.com>
49750
49751         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
49752         workaround, suggested by Bruno.
49753
49754 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
49755
49756         * modules/xalloc (Depends-on): Add xalloc-die.
49757         * modules/xvasprintf (Depends-on): Add xalloc-die.
49758
49759 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
49760
49761         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
49762         with a minor change.
49763
49764 2005-07-15  Bruno Haible  <bruno@clisp.org>
49765
49766         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
49767         When using lib/poll.c, define poll as rpl_poll.
49768
49769 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
49770
49771         * modules/argp (Depends-on): Remove unlocked-io.
49772
49773 2005-07-14  Derek Price  <derek@ximbiot.com>
49774
49775         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
49776         for glob symlink bug.
49777
49778 2005-07-14  Bruno Haible  <bruno@clisp.org>
49779
49780         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
49781         Instead, test for *_unlocked function declarations directly.
49782
49783 2005-07-11  Simon Josefsson  <jas@extundo.com>
49784
49785         * modules/size_max: New file.
49786
49787         * modules/xsize: Depend on size_max module for size_max.m4.
49788
49789 2005-07-11  Simon Josefsson  <jas@extundo.com>
49790
49791         * lib/size_max.h: New file.
49792
49793 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
49794
49795         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
49796         copyright symbol and the year.
49797         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
49798         (version_etc_va): Use parameterized copyright notice.
49799         Reword to conform to the current GNU coding standards.
49800
49801 2005-07-11  Karl Berry  <karl@gnu.org>
49802
49803         * doc/gnulib.texi (Quoting): new node.
49804         (Initial import): more info, from Patrice.
49805
49806 2005-07-11  Bruno Haible  <bruno@clisp.org>
49807
49808         * gnulib-tool (func_usage): Document option --avoid.
49809         (Command line options): Handle --avoid.
49810         (func_acceptable): New function.
49811         (func_modules_transitive_closure): Use it.
49812
49813 2005-07-11  Bruno Haible  <bruno@clisp.org>
49814
49815         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
49816         Reported by Jim Meyering.
49817
49818 2005-07-10  Bruno Haible  <bruno@clisp.org>
49819
49820         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
49821         Needed when size_t is smaller than 'unsigned int'.
49822         Reported by Paul Eggert.
49823
49824 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49825
49826         * modules/argp (Depends-on): Add unlocked-io
49827
49828 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49829
49830         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
49831         block of defines.
49832
49833 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
49834
49835         * config/srclist.txt: Comment out regcomp.c, since we have a porting
49836         fix now.
49837
49838 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
49839         and Paul Eggert  <eggert@cs.ucla.edu>
49840
49841         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
49842         in wint_t, not wchar_t.  Remove now-unnecessary cast.
49843
49844 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49845
49846         * modules/regex (Files): Add lib/regex_internal.c,
49847         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
49848         (Depends-on): Add extensions.
49849         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
49850
49851 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49852
49853         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
49854         pathconf.
49855         * m4/same.m4 (gl_SAME): Likewise.
49856         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
49857
49858         * m4/regex.m4: Adjust to new libc regex implementation.
49859         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
49860         all the .c and .h parts of (the new) regex.
49861         Quote the m4 stuff better.
49862         Check for RE_ICASE bug of old gnulib.
49863         Check for REG_STARTEND of recent libc.
49864         Rename local variables from jm_* to gl_*.
49865         Quote operand of "test -f".
49866         Say "recent enough" version of libc, not "version 2".
49867         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
49868         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
49869         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
49870         Remove check for btowc, isascii.
49871         Require AM_LANGINFO_CODESET.
49872
49873 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49874
49875         * lib/regex.c, regex.h: Sync from libc.
49876         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
49877         * lib/regexec.c:
49878         New files, synced from libc, except that regex_internal.h
49879         currently has a small porting fix.
49880
49881 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49882
49883         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
49884         regex_internal.c, regexec.c.
49885         Add regex_internal.h too, but as a comment, since the libc version
49886         is currently broken in gnulib mode.
49887
49888 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49889
49890         Support programs like Emacs that use gnulib but not gettext.
49891         * MODULES.html.sh (Internationalization functions): Add gettext-h.
49892         * modules/gettext-h: New file.
49893         * modules/gettext (Files): Remove lib/gettext.h.
49894         (Depends-on): Add gettext-h.
49895         (Makefile.am): Remove lib_SOURCES.
49896         * modules/argmatch, modules/c-stack, modules/closeout:
49897         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
49898         * modules/execute, modules/file-type, modules/getaddrinfo:
49899         * modules/getopt, modules/human, modules/javacomp:
49900         * modules/javaexec, modules/mkdir-p, modules/obstack:
49901         * modules/openat, modules/pagealign_alloc, modules/pipe:
49902         * modules/quotearg, modules/regex, modules/rpmatch:
49903         * modules/unicodeio, modules/userspec, modules/version-etc:
49904         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
49905         * modules/xsetenv:
49906         Depend on gettext-h, not gettext.
49907
49908 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
49909
49910         * gnulib-tool (func_import): Add support for 'public domain' license.
49911         * modules/alloca, modules/atexit, modules/memmove:
49912         Now public domain, not GPL.
49913         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
49914         * modules/realloc, modules/strerror, modules/strtod:
49915         Now LGPL, not GPL.
49916
49917 2005-07-05  Bruno Haible  <bruno@clisp.org>
49918
49919         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
49920         autoconf CVS. Needed for mingw.
49921
49922 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49923
49924         Remove the dependency of the strftime module on the tzset module.
49925         * modules/strftime (Depends-on): Remove dependency on tzset.
49926
49927 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49928
49929         Remove the dependency of the strftime module on the tzset module.
49930         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
49931         gl_FUNC_TZSET_CLOBBER.
49932
49933 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49934
49935         Remove the dependency of the strftime module on the tzset module.
49936         * lib/strftime.c (my_strftime)
49937         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
49938         Copy the input structure, to work around some of the bug with
49939         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
49940         Solaris releases, you should also use the tzset module, but we won't
49941         require it as a dependency any more since we don't want LGPLed code
49942         to depend on GPLed code.
49943
49944 2005-07-02  Jim Meyering  <jim@meyering.net>
49945
49946         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
49947         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
49948         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
49949         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
49950
49951 2005-07-02  Jim Meyering  <jim@meyering.net>
49952
49953         * lib/backupfile.c (backup_args): Change a `0' to NULL.
49954
49955 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49956
49957         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
49958         declares only 'struct timespec;' (!).
49959
49960 2005-07-01  Jim Meyering  <jim@meyering.net>
49961
49962         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
49963         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
49964         * lib/save-cwd.c, tempname.c:
49965         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
49966         and don't include <sys/file.h>).
49967
49968 2005-06-29  Jim Meyering  <jim@meyering.net>
49969
49970         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
49971         type name.  Use the variable name instead.
49972         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
49973         Likewise.
49974
49975 2005-06-28  Simon Josefsson  <jas@extundo.com>
49976
49977         * modules/check-version (Files): Add check-version.m4.
49978
49979 2005-06-28  Simon Josefsson  <jas@extundo.com>
49980
49981         * m4/check-version.m4: New file, suggested by Jim Meyering
49982         <jim@meyering.net>.
49983
49984 2005-06-28  Simon Josefsson  <jas@extundo.com>
49985
49986         * lib/check-version.h, lib/check-version.c: New files.
49987
49988 2005-06-28  Simon Josefsson  <jas@extundo.com>
49989
49990         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
49991         collision with global variable.  Better indentation.  Don't
49992         increment buffer pointer beyond buffer end.  Based on comments
49993         from Paul Eggert <eggert@cs.ucla.edu>.
49994
49995         * lib/base64.h: Indent.
49996
49997 2005-06-28  Simon Josefsson  <jas@extundo.com>
49998
49999         * doc/gnulib.texi (Library version handling): New section.
50000
50001 2005-06-28  Jim Meyering  <jim@meyering.net>
50002
50003         * check-module (find_included_lib_files): Hard-code another
50004         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
50005         but modules/fts-lgpl (correctly) does not list those files.
50006
50007         * modules/canonicalize (Files): Add lib/pathmax.h.
50008
50009 2005-06-25  Simon Josefsson  <jas@extundo.com>
50010
50011         * modules/check-version: New file.
50012
50013 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
50014
50015         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
50016         initializer of struct addrinfo, as an indication that we don't
50017         care how many members the structure has.
50018
50019 2005-06-24  Derek Price  <derek@ximbiot.com>
50020         and Bruno Haible  <bruno@clisp.org>
50021
50022         Remove stat module & update lstat.
50023         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
50024         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50025         * m4/stat.m4: Remove this file.
50026
50027 2005-06-24  Derek Price  <derek@ximbiot.com>
50028         and Bruno Haible  <bruno@clisp.org>
50029
50030         Remove stat module & update lstat.
50031         * lib/stat.c: Remove this file...
50032         (slash_aware_lstat): ...moving this content and its support...
50033         * lib/lstat.c (rpl_lstat): ...into here.
50034         * lib/lstat.h: New file.
50035
50036 2005-06-24  Derek Price  <derek@ximbiot.com>
50037         and Bruno Haible  <bruno@clisp.org>
50038
50039         Remove stat module & update lstat.
50040         * config/srclist.txt (libc sources): Remove stat.
50041
50042 2005-06-24  Derek Price  <derek@ximbiot.com>
50043         and Bruno Haible  <bruno@clisp.org>
50044
50045         Remove stat module & update lstat.
50046         * MODULES.html.sh (stat): Remove.
50047         * MODULES.html: Regenerated.
50048         * modules/lstat (Description): Correct function name.
50049         (Files): Add "lstat.h".
50050         (Depends-on): Remove stat, add xalloc, stat-macros.
50051         * modules/stat: Remove this file.
50052         (Include): Add "lstat.h", remove <sys/stat.h>.
50053
50054 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50055
50056         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
50057         (ranged_convert): Don't save conversion in a temporary struct.
50058         This causes a warning with GCC 4.0.0, and anyway in the typical
50059         case it's not worth the extra 100 bytes or so of code.
50060         (ranged_convert, __mktime_internal): When calling a function via a
50061         pointer P, use P () rather than (*P) (), as we now assume C89 or
50062         better.
50063
50064 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
50065
50066         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
50067         "who -r" failed to give output.  Problem reported by Tim Waugh.
50068
50069         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
50070         (xcalloc): Use it to avoid needless tests.
50071         Problem reported by Jim Meyering.
50072
50073 2005-06-20  Derek Price  <derek@ximbiot.com>
50074
50075         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
50076         unnecessary for Autoconfs > 2.59c.
50077
50078 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50079
50080         * lib/argp.h (__option_is_short): Check upper limit of
50081         __key. Isprint() requires its argument to have the value
50082         of an unsigned char or EOF.
50083
50084 2005-06-16  Jim Meyering  <jim@meyering.net>
50085
50086         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
50087         when either N or S is zero.
50088
50089 2005-06-16  Derek Price  <derek@ximbiot.com>
50090
50091         * m4/bison.m4: Declare YACC & YFLAGS precious.
50092
50093 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
50094
50095         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
50096         multibyte string or pattern, fall back on unibyte matching.
50097         Problem reported by James Youngman.
50098
50099 2005-06-08  Bruno Haible  <bruno@clisp.org>
50100
50101         * modules/csharpcomp: New file.
50102         * MODULES.html.sh (C#): Add csharpcomp.
50103
50104 2005-06-08  Bruno Haible  <bruno@clisp.org>
50105
50106         * m4/csharpcomp.m4: New file, from GNU gettext.
50107
50108 2005-06-08  Bruno Haible  <bruno@clisp.org>
50109
50110         * lib/csharpcomp.h: New file, from GNU gettext.
50111         * lib/csharpcomp.c: New file, from GNU gettext.
50112         * lib/csharpcomp.sh.in: New file, from GNU gettext.
50113
50114 2005-06-08  Bruno Haible  <bruno@clisp.org>
50115
50116         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
50117         warning on mingw.
50118
50119 2005-06-07  Derek Price  <derek@ximbiot.com>
50120
50121         Sync from CVS.
50122         * lib/glob_.h: Indent nested #ifdef.
50123
50124 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
50125
50126         Sync from coreutils.
50127         Use "file name" when talking about file names, instead of "filename"
50128         or "path", as per the GNU coding standards.
50129         * lib/mkdir-p.c: Renamed from makepath.c.
50130         (make_dir_parents): Renamed from make_path.  All callers changed.
50131         * lib/mkdir-p.h: Likewise.  All includers changed.
50132         * lib/filenamecat.c: Renamed from path-concat.c.
50133         (file_name_concat): Renamed from path_concat.  All callers changed.
50134         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
50135         * lib/filenamecat.h: Likewise.  All includers changed.
50136         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
50137         in comments or local variable names.
50138         * lib/basename.c: Likewise.
50139         * lib/canonicalize.c, canonicalize.h: Likewise.
50140         * lib/dirname.c, dirname.h: Likewise.
50141         * lib/euidaccess.c: Likewise.
50142         * lib/exclude.c: Likewise
50143         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
50144         * lib/fsusage.c, fsuage.h: Likewise.
50145         * lib/fts.c, fts_.h: Likewise.
50146         * lib/getcwd.c: Likewise.
50147         * lib/getloadavg.c: Likewise.
50148         * lib/mkstemp.c: Likewise.
50149         * lib/mountlist.c, mountlist.h: Likewise.
50150         * lib/openat.c, openat.h: Likewise.
50151         * lib/readlink-stub.c: Likewise.
50152         * lib/readutmp.c, readutmp.h: Likewise.
50153         * lib/rename.c: Likewise.
50154         * lib/rmdir.c: Likewise.
50155         * lib/same.c: Likewise.
50156         * lib/savedir.c: Likewise.
50157         * lib/stripslash.c: Likewise.
50158         * lib/tempname.c: Likewise.
50159         * lib/xreadlink.c: Likewise.
50160         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
50161         All uses changed.
50162         * lib/exclude.h: Likewise.
50163
50164         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
50165         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50166         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
50167         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50168         * lib/pathmax.h: Include <limits.h> unconditionally, since other
50169         files have been getting away with it for years (MORE/BSD 4.3
50170         is extinct now).
50171         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
50172         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50173
50174         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
50175         Define to 256, not 255, as per modern POSIX.
50176
50177 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
50178
50179         Sync from coreutils.
50180         Use "file name" when talking about file names, instead of "filename"
50181         or "path", as per the GNU coding standards.
50182         * MODULES.html.sh: mkdir-p renamed from makepath.
50183         filenamecat renamed from path-concat.
50184         * modules/filenamecat: Renamed from modules/path-concat.
50185         (Files): filenamecat.h and filenamecat.c renamed from
50186         path-concat.h and path-concat.c.
50187         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
50188         (Include): filenamecat.h, not path-concat.h.
50189         * modules/mkdir-p: Renamed from modules/makepath.
50190         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
50191         makepath.c.
50192         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
50193         (Include): mkdir-p.h, not makepath.h.
50194
50195 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
50196
50197         Sync from coreutils.
50198         * m4/mkdir-p.m4: Renamed from makepath.m4.
50199         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
50200         Rename files from makepath.c to mkdir-p.c, and from
50201         makepath.h to mkdir-p.h.
50202         * m4/filenamecat.m4: Renamed from path-concat.m4.
50203         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
50204         Rename files from path-concat.c to filenamecat.c,
50205         and from path-concat.h to filenamecat.h.
50206         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
50207         "file name" in local variables or comments.
50208         * m4/rename.m4: Likewise.
50209
50210 2005-06-01  Bruno Haible  <bruno@clisp.org>
50211
50212         * modules/csharpexec: New file.
50213         * MODULES.html.sh (C#): New section.
50214
50215 2005-06-01  Bruno Haible  <bruno@clisp.org>
50216
50217         * m4/csharp.m4: New file, from GNU gettext.
50218         * m4/csharpexec.m4: New file, from GNU gettext.
50219
50220 2005-06-01  Bruno Haible  <bruno@clisp.org>
50221
50222         * lib/csharpexec.h: New file, from GNU gettext.
50223         * lib/csharpexec.c: New file, from GNU gettext.
50224         * lib/csharpexec.sh.in: New file, from GNU gettext.
50225
50226 2005-05-31  Derek Price  <derek@ximbiot.com>
50227             Paul Eggert  <eggert@cs.ucla.edu>
50228
50229         Sync from cvs.
50230         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50231
50232 2005-05-31  Derek Price  <derek@ximbiot.com>
50233             Paul Eggert  <eggert@cs.ucla.edu>
50234
50235         Sync from cvs.
50236         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50237
50238 2005-05-29  Derek Price  <derek@ximbiot.com>
50239
50240         * config/srclist.txt (glob_.h, glob.c): Add these files.
50241
50242 2005-05-29  Derek Price  <derek@ximbiot.com>
50243
50244         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
50245         * modules/glob: New file.
50246         * modules/getlogin_r: Add link to POSIX spec in description.
50247
50248 2005-05-29  Derek Price  <derek@ximbiot.com>
50249             Paul Eggert  <eggert@cs.ucla.edu>
50250
50251         * m4/glob.m4: New file.
50252
50253 2005-05-29  Derek Price  <derek@ximbiot.com>
50254             Paul Eggert  <eggert@cs.ucla.edu>
50255
50256         * lib/glob_.h, lib/glob.c: New files.
50257
50258 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
50259
50260         * modules/fts (Files): Remove m4/inttypes-pri.m4.
50261         * modules/fts-lgpl (Depends-on): Remove gettext.
50262
50263 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
50264
50265         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
50266         and don't require gt_INTTYPES_PRI.
50267
50268 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
50269
50270         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
50271
50272         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
50273         the configuration hassle isn't worth it.
50274         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
50275         (LONGEST_MODIFIER, PRIuMAX): Remove.
50276
50277 2005-05-27  Bruno Haible  <bruno@clisp.org>
50278
50279         * lib/getlogin_r.h: Remove second include of <stddef.h>.
50280
50281 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
50282
50283         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
50284         _POSIX_PTHREAD_SEMANTICS for Solaris.
50285
50286 2005-05-25  Derek Price  <derek@ximbiot.com>
50287
50288         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
50289
50290 2005-05-25  Derek Price  <derek@ximbiot.com>
50291             Paul Eggert  <eggert@cs.ucla.edu>
50292
50293         * modules/getlogin_r, m4/getlogin_r.m4: New files.
50294         * lib/getlogin_r.c, getlogin_r.h: New files.
50295
50296 2005-05-25  Bruno Haible  <bruno@clisp.org>
50297             Derek Price  <derek@ximbiot.com>
50298
50299         * lib/getlogin_r.h: Simplify API documentation.
50300
50301 2005-05-23  Derek Price  <derek@ximbiot.com>
50302
50303         * modules/minmax (Files): Add m4/minmax.m4.
50304         (configure.ac): Add gl_MINMAX.
50305
50306 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
50307
50308         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
50309         so that unistd-safer.h (GPL'ed code) need not be included.
50310
50311 2005-05-22  Bruno Haible  <bruno@clisp.org>
50312
50313         * m4/minmax.m4: New file.
50314         Based on a patch by Derek Price <derek@ximbiot.com>.
50315
50316 2005-05-22  Bruno Haible  <bruno@clisp.org>
50317
50318         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
50319         (INT64_MIN): Fix definition.
50320         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
50321
50322         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
50323         NEED_SIGNED_INT_TYPES.
50324
50325         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
50326         HAVE_SYSTEM_INTTYPES.
50327
50328 2005-05-22  Bruno Haible  <bruno@clisp.org>
50329
50330         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
50331         Also include <sys/param.h> if it defines MIN, MAX.
50332         Based on a patch by Derek Price <derek@ximbiot.com>.
50333
50334 2005-05-21  Jim Meyering  <jim@meyering.net>
50335
50336         * modules/fts (Files): Add m4/inttypes-pri.m4.
50337         (Depends-on): Add lstat and remove gettext.  Alphabetize.
50338
50339 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50340
50341         New fts module.
50342         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
50343         (setup_dir, free_dir): New functions.
50344         (enter_dir, leave_dir): Define trivial
50345         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
50346         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
50347         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
50348         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
50349         Move to fts-cycle.c.
50350         (fts_open): Use setup_dir.
50351         (fts_close): Use free_dir.
50352         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
50353         This adds a label and some gotos, but the alternatives were messier.
50354         Check for memory allocation failure when entering a dir.
50355         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
50356         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
50357         (FTS): New member fts_cycle, that is a union that contains the
50358         old active_dir_ht and cycle_state.  All uses changed to mention
50359         fts_cycle.ht and fts_cycle.state.
50360         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
50361         fts.c, with the following changes:
50362         (setup_dir, free_dir): New functions.
50363         (enter_dir): Now returns bool.  Return true if successful, false
50364         if memory exhausted.  All callers changed.
50365         Do not bother partly cleaning up on
50366         memory allocation failure; that is free_dir's job.
50367         However, free ad if hash_insert fails, to avoid memory leak.
50368         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
50369         fts->fts_options to see which union member to use.
50370
50371 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50372
50373         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
50374         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
50375
50376 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50377
50378         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
50379
50380 2005-05-20  Jim Meyering  <jim@meyering.net>
50381
50382         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
50383         Now a macro, to pacify GCC.
50384
50385 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
50386
50387         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
50388         of -1.
50389
50390 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
50391
50392         * lib/chown.c (rpl_chown): Return -1 on failure.
50393
50394 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
50395
50396         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
50397         Don't check for stddef.h.
50398         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
50399         don't use its results.
50400         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
50401         since we include them unconditionally.  Don't require
50402         AM_STDBOOL_H, since stdbool is a prerequisite.
50403         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
50404         since we assume C89 or better.
50405         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
50406         as we don't use their results.
50407         Don't check for fchdir, memmove, memset, strrchr, as we use
50408         them unconditionally.
50409         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
50410         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
50411
50412 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
50413
50414         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
50415         Include <stddef.h> unconditionally, since we assume C89 now.
50416         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
50417         * lib/fts.c: Include fts_.h first, to check interface.
50418         Do not include intprops.h; no longer needed.
50419         Include cycle-check.h and hash.h, since fts_.h no longer does.
50420         Remove unnecessary casts of closedir to void.
50421         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
50422         decide whether to decrement nlinks.
50423         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
50424         (FTS): Use struct hash_table * instead of Hash_table, so that
50425         we no longer need to include hash.h here.
50426
50427 2005-05-18  Jim Meyering  <jim@meyering.net>
50428
50429         * modules/dirfd (License): Change to LGPL.  Most of the code
50430         is already in the public domain.
50431
50432 2005-05-18  Jim Meyering  <jim@meyering.net>
50433
50434         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
50435         Reported by Yoann Vandoorselaere.
50436
50437 2005-05-17  Jim Meyering  <jim@meyering.net>
50438
50439         * m4/fts.m4: New file, from coreutils.
50440
50441 2005-05-17  Jim Meyering  <jim@meyering.net>
50442
50443         * lib/fts.c, lib/fts_.h: New files, from coreutils.
50444
50445 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50446
50447         Sync from coreutils.
50448         * m4/unlinkdir.m4: New file.
50449
50450 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50451
50452         Sync from coreutils.
50453         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
50454         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
50455         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
50456         White space changes only.
50457         * lib/makepath.c (make_path): Port to hosts where leading "//" is
50458         special.
50459         * lib/yesno.c: Include getline.h, not ctype.h.
50460         (yesno): Don't remove leading white space; POSIX doesn't allow it.
50461         Use getline to remove arbitrary restriction on response length.
50462
50463 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50464
50465         * config/srclist-update: Spell out "Street" in FSF postal
50466         mail address; this is the style the FSF seems to prefer.
50467
50468         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
50469         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
50470         this updates FSF postal mail address.
50471
50472         Sync from coreutils.
50473         * modules/unlinkdir: New file.
50474         * modules/yesno (Depends-on): Add getline.
50475         * MODULES.html.sh (File system functions): Add unlinkdir.
50476
50477 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
50478
50479         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
50480         lib/strsep.h:
50481         Change the initial comment to refer to GPL, not LGPL.
50482         gnulib-tool will change it to LGPL as needed.
50483
50484         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
50485         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
50486         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
50487         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
50488         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
50489         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
50490         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
50491         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
50492         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
50493         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
50494         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
50495         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
50496         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
50497         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
50498         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
50499         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
50500         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
50501         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
50502         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
50503         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
50504         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
50505         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
50506         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
50507         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
50508         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
50509         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
50510         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
50511         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
50512         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
50513         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
50514         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
50515         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
50516         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
50517         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
50518         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
50519         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
50520         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
50521         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
50522         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
50523         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
50524         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
50525         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
50526         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
50527         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
50528         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
50529         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
50530         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
50531         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
50532         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
50533         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
50534         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
50535         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
50536         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
50537         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
50538         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
50539         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
50540         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
50541         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
50542         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
50543         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
50544         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
50545         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
50546         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
50547         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
50548         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
50549         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
50550         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
50551         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
50552         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
50553         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
50554         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
50555         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
50556         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
50557         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
50558         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
50559         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
50560         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
50561         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
50562         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
50563         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
50564         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
50565         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
50566         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
50567         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
50568         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
50569         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
50570         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
50571         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
50572         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
50573         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
50574         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
50575         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
50576         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
50577         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
50578         lib/yesno.c, lib/yesno.h:
50579         Update FSF postal mail address.
50580
50581 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
50582
50583         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
50584         tests/test-memmem.c, tests/test-stpncpy.c:
50585         Update FSF postal mail address.
50586
50587 2005-05-13  Bruno Haible  <bruno@clisp.org>
50588
50589         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
50590         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
50591         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
50592         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
50593         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
50594         Add support for 64-bit integers in the MSVC compiler.
50595
50596 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50597
50598         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
50599
50600 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
50601
50602         * gnulib-tool (func_import): Sort and uniquify recommended includes.
50603
50604 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
50605
50606         * doc/getdate.texi (General date syntax): Don't say that date
50607         date --iso-8601=ns generates acceptable dates; it doesn't yet.
50608         Problem reported by Nic Ferrier.
50609
50610 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50611
50612         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
50613         specified in ai_socktype. Fix invalid ai_protocol
50614         check. ai_protocol is usually set to 0 or depending on
50615         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
50616         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
50617         ai_socktype / ai_protocol in the returned addrinfo structure.
50618
50619 2005-05-10  Simon Josefsson  <jas@extundo.com>
50620
50621         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
50622         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50623
50624 2005-05-10  Karl Berry  <karl@gnu.org>
50625
50626         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
50627         (from http://www.gnu.org/licenses).
50628         * doc/COPYING.LIB: also rename to COPYING.LESSER.
50629         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
50630         fdl.texi suffices.
50631
50632 2005-05-10  Karl Berry  <karl@gnu.org>
50633
50634         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
50635         (COPYING.DOC): remove.
50636
50637         * config/srclist-update: new FSF address.
50638
50639 2005-05-10  Derek Price  <derek@ximbiot.com>
50640
50641         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
50642         possible.
50643
50644 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50645             Bruno Haible  <bruno@clisp.org>
50646
50647         * modules/inet_ntop: New file.
50648         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50649         inet_ntop.
50650
50651 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50652             Bruno Haible  <bruno@clisp.org>
50653
50654         * m4/inet_ntop.m4: New file.
50655
50656 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50657             Bruno Haible  <bruno@clisp.org>
50658
50659         * lib/inet_ntop.h: New file.
50660         * lib/inet_ntop.c: New file, from glibc with modifications.
50661
50662 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
50663
50664         * modules/time_r (License): Change to LGPL.
50665         * modules/extensions (License): Change to LGPL.  Actually,
50666         the license is more permissive than that, but currently gnulib-tool
50667         doesn't know how to handle more-permissive licenses.
50668
50669         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
50670         Problem reported by Dave Love.
50671
50672 2005-05-08  Jim Meyering  <jim@meyering.net>
50673
50674         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
50675         blank.
50676
50677 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
50678
50679         * modules/argmatch (Depends-on): Add stdbool.
50680         * modules/backupfile (Depends-on): Likewise.
50681         * modules/chdir-long (Depends-on): Likewise.
50682         * modules/closeout (Depends-on): Likewise.
50683         * modules/cycle-check (Depends-on): Likewise.
50684         * modules/dirname (Depends-on): Likewise.
50685         * modules/fnmatch (Depends-on): Likewise.
50686         * modules/fsusage (Depends-on): Likewise.
50687         * modules/fwriteerror (Depends-on): Likewise.
50688         * modules/getcwd (Depends-on): Likewise.
50689         * modules/getloadavg (Depends-on): Likewise.
50690         * modules/hard-locale (Depends-on): Likewise.
50691         * modules/makepath (Depends-on): Likewise.
50692         * modules/mountlist (Depends-on): Likewise.
50693         * modules/nanosleep (Depends-on): Likewise.
50694         * modules/posixtm (Depends-on): Likewise.
50695         * modules/quotearg (Depends-on): Likewise.
50696         * modules/readtokens (Depends-on): Likewise.
50697         * modules/readtokens0 (Depends-on): Likewise.
50698         * modules/readutmp (Depends-on): Likewise.
50699         * modules/save-cwd (Depends-on): Likewise.
50700         * modules/strftime (Depends-on): Likewise.
50701         * modules/userspec (Depends-on): Likewise.
50702         * modules/utimecmp (Depends-on): Likewise.
50703         * modules/xgetcwd (Depends-on): Likewise.
50704         * modules/xnanosleep (Depends-on): Likewise.
50705         * modules/xstrtod (Depends-on): Likewise.
50706         * modules/yesno (Depends-on): Likewise.
50707
50708 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
50709
50710         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
50711         needless checks.
50712
50713 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
50714
50715         Merge from coreutils.  Among other things,
50716         add bulletproofing for cases where stdin, stdout, or stderr are closed.
50717         * lib/fd-safer.c: New file.
50718         * lib/fcntl-safer.h, open-safer.c: Remove.
50719         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
50720         * lib/dup-safer.c: Include unistd-safer.h first.
50721         Don't include errno.h.
50722         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
50723         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
50724         * lib/file-type.c: Rely on file-type.h change.
50725         * lib/getloadavg.c: Include unistd-safer.h.
50726         (getloadavg): Use safer open.
50727         * lib/getusershell.c: Include "stdio-safer.h".
50728         (getusershell): Use safer fopen.
50729         * lib/long-options.c (long_options): Use NULL rather than 0.
50730         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
50731         'free'.
50732         * lib/modechange.c: Likewise.
50733         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
50734         (MODE_DONE): New constant.
50735         (struct mode_change): Remove 'next' member.
50736         (make_node_op_equals): New function; like the old one of the
50737         same name, except it allocates an array.
50738         (mode_compile, mode_create_from_ref): Use it.
50739         (mode_compile): Allocate result as an array, not a linked list.
50740         Parse octal string ourself, so that we catch mistakes like "+0".
50741         (mode_adjust): Arg is an array, not a linked list.
50742         * lib/modechange.c: Include stat-macros.h, xalloc.h.
50743         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
50744         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
50745         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
50746         Remove.  This is now stat-macros.h's job.
50747         (talloc): Remove.  All callers replaced by xalloc, so that
50748         our invokers don't have to worry about reporting memory failures.
50749         (make_node_op_equals): Remove.
50750         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
50751         New constants.
50752         (struct mode_change): Moved here from modechange.h.
50753         (mode_append_entry): Remove.
50754         (mode_compile): Remove MASKED_OPS arg, since it encouraged
50755         apps to have incorrect behavior.  Use simpler algorithm for head
50756         and tail.  Don't futz with umask; that's now the job of mode_adjust.
50757         Detect more invalid usages rather than having somewhat-random behavior.
50758         Don't insert an "a=" action, as that leads to incorrect behavior.
50759         (mode_compile, mode_create_from_ref): Return NULL on error instead
50760         of an enum, since now there's only one way to have an error.  All
50761         callers changed.
50762         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
50763         at the correct time.  Simplify calculation of "+u" and its ilk.
50764         Don't mishandle "+X".
50765         (mode_free): Remove "register" and localize decls.
50766         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
50767         (struct mode_change): Move to modechange.c; callers don't
50768         need to see this stuff.
50769         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
50770         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
50771         (mode_change, mode_adjust): Reflect the new signatures noted above.
50772         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
50773         that might redefine system include files.
50774         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
50775         (my_usleep): Use NULL rather than (void *) 0.
50776         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
50777         Use siginterrupt to specify that system calls should be interrupted.
50778         (rpl_nanosleep): Move initialization of suspended closer to call of
50779         my_usleep.
50780         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
50781         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
50782         (desirable_utmp_entry): New function.
50783         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
50784         using x2nrealloc, to simplify logic.
50785         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
50786         size calculation.  Do not assume utmp file is a regular file.
50787         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
50788         (READ_UTMP_CHECK_PIDS): New constant.
50789         * lib/save-cwd.c: Include unistd-safer.h.
50790         (save_cwd): Use fd_safer.
50791         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
50792         [!_LIBC] Include "stat-macros.h" instead.
50793         * lib/unistd-safer.h (fd_safer): New decl.
50794
50795 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
50796
50797         * modules/getloadavg (Depends-on): Add unistd-safer.
50798         * modules/getusershell (Depends-on): Add stdio-safer.
50799         * modules/lstat (Depends-on): Remove xalloc.
50800         * modules/mkstemp (Depends-on): Add stat-macros.
50801         * modules/modechange (Depends-on): Remove xstrtol.
50802         Add stat-macros, xalloc.
50803         * modules/save-cwd (Depends-on): Add unistd-safer.
50804         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
50805         * modules/unistd-safer (Files): Add lib/fd-safer.c
50806         (Makefile.am): Remove lib_SOURCES.
50807
50808         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
50809         Remove fcntl-safer; unistd-safer supersedes it.
50810
50811 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
50812
50813         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
50814         AC_HEADER_STAT.
50815         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
50816         (gl_PREREQ_CHOWN): Remove.
50817         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
50818         it.  Don't require AC_HEADER_STAT.
50819         (gl_PREREQ_LSTAT): Remove.
50820         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
50821         Don't require AC_HEADER_STAT.
50822         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
50823         (gl_PREREQ_RMDIR): Remove.
50824         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
50825         mention stat-macros.h or AC_HEADER_STAT, since we'll make
50826         the stat-macros module a prerequisite.
50827         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
50828         * m4/filemode.m4 (gl_FILEMODE): Likewise.
50829         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
50830         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
50831         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
50832         variable names.
50833         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
50834         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
50835         variable prefixes.
50836         * m4/fcntl-safer.m4: Remove.
50837         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
50838         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
50839         Invoke gl_PREREQ_FD_SAFER.
50840         (gl_PREREQ_FD_SAFER): New macro.
50841         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
50842         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
50843         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
50844         Remove duplicate call to AC_LIBOBJ(readutmp).
50845         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
50846
50847         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
50848         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
50849
50850 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
50851
50852         * MODULES.html.sh (Misc): Add byteswap.
50853
50854 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
50855
50856         * modules/getcwd (Depends-on): Add extensions.
50857         * modules/openat (Depends-on): Likewise.
50858
50859 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
50860
50861         * modules/byteswap: New file.
50862
50863 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
50864
50865         * m4/byteswap.m4: New file.
50866
50867 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
50868
50869         * lib/byteswap_.h: New file.
50870
50871 2005-04-25  Karl Berry  <karl@gnu.org>
50872
50873         * m4/gettext.m4: Update from GNU gettext 0.14.4.
50874
50875 2005-04-25  Albert Chin  <china@thewrittenword.com>
50876
50877         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
50878         Toolkit C bug.
50879
50880 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
50881
50882         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
50883         (func_ln_if_changed) Remove forcibly for no error message
50884         in case file does not exist.
50885
50886 2005-04-19  Simon Josefsson  <jas@extundo.com>
50887
50888         * gnulib-tool (Options): Make --symlink mean --symbolic.
50889
50890 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
50891
50892         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
50893
50894 2005-04-16  Simon Josefsson  <jas@extundo.com>
50895
50896         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
50897
50898 2005-04-15  Simon Josefsson  <jas@extundo.com>
50899
50900         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
50901
50902 2005-04-15  Simon Josefsson  <jas@extundo.com>
50903
50904         * gnulib-tool: Rename --symlink to --symbolic.
50905
50906 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
50907
50908         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
50909         symbolic links to files instead of copying/moving.  Add --aux-dir,
50910         specifying directory relative --dir where auxiliary build tools
50911         are placed.
50912
50913 2005-04-14  Bruno Haible  <bruno@clisp.org>
50914
50915         * modules/allocsa (License): Change to LGPL.
50916         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50917
50918 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50919
50920         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
50921         that "UTC +1 second" continues to work.  Problem reported
50922         by Dmitry V. Levin.
50923         (relunit_snumber): New rule.
50924         (relunit): Use it.
50925
50926 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
50927
50928         * lib/getdate.y (universal_time_zone_table): New constant.
50929         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
50930         universal_time_zone_table.
50931         (lookup_zone): Prefer universal_time_zone_table to
50932         local_time_zone_table, so that "GMT" time stamps are allowed in
50933         London during the summer.  Problem reported by Ian Abbott.
50934
50935 2005-04-12  Jim Meyering  <jim@meyering.net>
50936
50937         * lib/human.c (humblock): Set *options even when returning due to
50938         xstrtoumax conversion failure.  Thanks to a used-uninitialized
50939         warning from gcc-4.
50940
50941 2005-04-09  Jim Meyering  <jim@meyering.net>
50942
50943         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
50944         -Wuninitialized: initialize tm0.tm_year.
50945
50946 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
50947
50948         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
50949         count, since there's no maximum.  All uses changed.
50950         Add member dsts_seen.
50951         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
50952         not being INT_MAX.
50953         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
50954         Use pc_rels_seen to decide whther a date is absolute.
50955
50956         * lib/getdate.y (number): Don't overwrite year.
50957         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
50958         check.
50959
50960 2005-04-02  Simon Josefsson  <jas@extundo.com>
50961
50962         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
50963         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
50964
50965 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
50966
50967         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
50968         where no absolute path name can be longer than PATH_MAX.
50969
50970 2005-03-27  Jim Meyering  <jim@meyering.net>
50971
50972         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
50973
50974 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
50975
50976         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
50977         "one's complement" -> "ones' complement" in comment, as per Knuth.
50978         "value of type" -> "type or expression" in comment.
50979         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
50980
50981 2005-03-26  Jim Meyering  <jim@meyering.net>
50982
50983         Comment nits.
50984         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
50985         Correct typos: s/or/of/.
50986
50987 2005-03-26  Jim Meyering  <jim@meyering.net>
50988
50989         * modules/check-include-files: Move to ../ and rename to...
50990         * check-module: ...this.
50991
50992 2005-03-25  Jim Meyering  <jim@meyering.net>
50993
50994         * modules/xvasprintf (Files): Add xalloc.h.
50995
50996 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
50997
50998         * modules/gettext (Files): config/config.rpath ->
50999         build-aux/config.rpath
51000         * modules/iconv (Files): Likewise.
51001         Problem reported by Oskar Liljeblad.
51002
51003 2005-03-23  Jim Meyering  <jim@meyering.net>
51004
51005         * modules/check-include-files: New script to check for
51006         missing dependencies, multiple includes, etc.
51007
51008         * modules/c-strtold (Depends-on): Add xalloc.
51009         * modules/c-strtod (Depends-on): Add xalloc.
51010         * modules/hash (Depends-on): Add xalloc.
51011         (Files): Remove lib/xalloc.h.
51012
51013         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
51014         * modules/userspec (Files): Add lib/inttostr.h.
51015
51016 2005-03-23  Jim Meyering  <jim@meyering.net>
51017
51018         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
51019
51020 2005-03-22  Jim Meyering  <jim@meyering.net>
51021
51022         * modules/stat-macros: New module.
51023         * modules/canonicalize, modules/euidaccess, modules/file-type,
51024         * modules/filemode, modules/lchown, modules/makepath,
51025         * modules/rmdir, modules/stat: Depend on new stat-macros module
51026         rather than listing lib/stat-macros.h manually.
51027         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
51028
51029 2005-03-22  Jim Meyering  <jim@meyering.net>
51030
51031         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
51032
51033 2005-03-22  Bruno Haible  <bruno@clisp.org>
51034
51035         * config/srclist.txt: Replace target directory 'config' with
51036         'build-aux'.
51037         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
51038         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
51039         ../build-aux/.
51040
51041 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
51042
51043         * modules/chdir-long (Depends-on): Add mempcpy.
51044
51045         * modules/acl, modules/backupfile, modules/c-strtod,
51046         modules/c-strtold, modules/canon-host, modules/canonicalize,
51047         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
51048         modules/exclude, modules/exitfail, modules/file-type,
51049         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
51050         modules/getdate, modules/getline, modules/getpagesize,
51051         modules/getpass, modules/getugroups, modules/group-member,
51052         modules/hard-locale, modules/hash, modules/human, modules/idcache,
51053         modules/inttostr, modules/long-options, modules/makepath,
51054         modules/md5, modules/memcasecmp, modules/memcoll,
51055         modules/modechange, modules/mountlist, modules/path-concat,
51056         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
51057         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
51058         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
51059         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
51060         modules/strftime, modules/strndup, modules/strverscmp,
51061         modules/timespec, modules/unlocked-io, modules/userspec,
51062         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
51063         modules/yesno:
51064         Remove lib_SOURCES line from Makefile.am section, as this is now
51065         done automatically by the corresponding Autoconf macro.
51066
51067 2005-03-21  Jim Meyering  <jim@meyering.net>
51068
51069         Changes imported from coreutils.
51070
51071         * lib/cycle-check.c: Don't include xalloc.h.
51072
51073         * lib/path-concat.c: Don't include assert.h.
51074         (path_concat): Remove assertion that would have triggered
51075         for ABASE starting with more than one slash.
51076         Reported by Andreas Schwab.
51077
51078         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
51079         properly when ABASE is an absolute file name.
51080         Correct the description of this function.
51081         Include <assert.h>.
51082         Add an assertion and a test driver.
51083         This fixes a bug introduced on 2004-07-02.
51084         Andreas Schwab reported the resulting failure of cp --parents:
51085         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
51086
51087 2005-03-21  Jim Meyering  <jim@meyering.net>
51088
51089         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
51090         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
51091
51092 2005-03-21  Jim Meyering  <jim@meyering.net>
51093         and  Paul Eggert  <eggert@cs.ucla.edu>
51094
51095         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
51096         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
51097         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
51098         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
51099         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
51100         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
51101         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
51102         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
51103         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
51104         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
51105         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
51106         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
51107         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
51108         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
51109         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
51110         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
51111         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
51112         for these modules.
51113
51114 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
51115
51116         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
51117         (which shouldn't happen), generate nothing instead of returning 0
51118         immediately, so that nstrftime (NULL, ...) doesn't return 0.
51119
51120 2005-03-16  Bruno Haible  <bruno@clisp.org>
51121
51122         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
51123         HAVE_LONGLONG_64BIT.
51124
51125 2005-03-16  Bruno Haible  <bruno@clisp.org>
51126
51127         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
51128         HAVE_LONGLONG_64BIT.
51129
51130 2005-03-16  Bruno Haible  <bruno@clisp.org>
51131
51132         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
51133         HAVE_LONGLONG_64BIT.
51134
51135 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
51136
51137         * lib/strftime.c (my_strftime): Prepend space to format so that we can
51138         reliably distinguish strftime failure from empty output on POSIX
51139         hosts.
51140
51141 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
51142
51143         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
51144         (iconv_string): Don't guess a size-zero buffer, as that might cause
51145         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
51146         result would be 'too large', where 'too large' is (heuristically)
51147         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
51148         overflow concerns.  This will prevent some unwanted malloc failures
51149         when the inputs are very large.
51150
51151 2005-03-15  Karl Berry  <karl@gnu.org>
51152
51153         * config/srclist.txt (config.rpath): from gettext.
51154         * config/config.rpath: update.
51155
51156 2005-03-15  Bruno Haible  <bruno@clisp.org>
51157
51158         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
51159         to 'negate'.
51160
51161         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
51162         variable.
51163
51164         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
51165         results.
51166
51167 2005-03-14  Simon Josefsson  <jas@extundo.com>
51168
51169         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
51170         <fx@gnu.org>.
51171
51172 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
51173
51174         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
51175         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
51176         intprops.h.
51177         * lib/strtol.c: Likewise.
51178
51179 2005-03-14  Jim Meyering  <jim@meyering.net>
51180
51181         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
51182         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
51183         to be nonzero so that we (and caller) can detect the difference
51184         between a valid zero-length expansion and an error return, even
51185         when the underlying strftime fails before writing anything into
51186         that location.
51187
51188 2005-03-14  Bruno Haible  <bruno@clisp.org>
51189
51190         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
51191         Update from GNU gettext 0.14.3.
51192
51193 2005-03-10  Jim Meyering  <jim@meyering.net>
51194
51195         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
51196
51197 2005-03-10  Jim Meyering  <jim@meyering.net>
51198
51199         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
51200         so that this module works on systems without fchdir.
51201
51202 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
51203
51204         Factor int-properties macros into a single file, except for
51205         glibc-related files.
51206         * lib/intprops.h: New file.
51207         * lib/getloadavg.c: Include it instead of limits.h.
51208         (INT_STRLEN_BOUND): Remove.
51209         * lib/human.c: Include intprops.h.
51210         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
51211         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
51212         302/1000.
51213         * lib/inttostr.h: Include intprops.h instead of limits.h.
51214         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
51215         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
51216         for consistency with intprops.h.
51217         (time_t_is_integer, twos_complement_arithmetic): Use them.
51218         * lib/sig2str.h: Include <signal.h>, intprops.h.
51219         (INT_STRLEN_BOUND): Remove.
51220         * lib/strftime.c (TYPE_SIGNED): Remove.
51221         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
51222         * lib/strtol.c: Adjust comments to match intprops.h.
51223         * lib/userspec.c: Include intprops.h.
51224         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
51225         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
51226         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
51227         instead of rolling our own expressions.
51228         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
51229
51230         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
51231         instead of int.
51232         (my_strftime): Do not mishandle years close to INT_MAX, by doing
51233         the right thing even if adding 1900 would overflow.  Similarly
51234         for tm_mon + 1 and tm_yday + 1.
51235         Make %Y always equivalent to %C%y, and similarly for %G and %g.
51236         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
51237         (DO_SIGNED_NUMBER): New macro.
51238         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
51239
51240 2005-03-07  Bruno Haible  <bruno@clisp.org>
51241
51242         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
51243
51244 2005-03-07  Bruno Haible  <bruno@clisp.org>
51245
51246         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
51247
51248 2005-03-04  Derek R. Price  <derek@ximbiot.com>
51249
51250         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
51251         (func_import): Only replace files via --import when they have actually
51252         changed.
51253
51254 2005-03-03  Derek R. Price  <derek@ximbiot.com>
51255
51256         * m4/mmap-anon.m4: New file.
51257         * m4/pagealign_alloc.m4: New file.
51258
51259 2005-03-03  Derek R. Price  <derek@ximbiot.com>
51260             Bruno Haible  <bruno@clisp.org>
51261
51262         * modules/pagealign_alloc: New file.
51263         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
51264
51265 2005-03-03  Derek R. Price  <derek@ximbiot.com>
51266             Bruno Haible  <bruno@clisp.org>
51267
51268         * lib/pagealign_alloc.h: New file.
51269         * lib/pagealign_alloc.c: New file.
51270
51271 2005-03-03  Bruno Haible  <bruno@clisp.org>
51272
51273         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
51274         Use an all-permissive copyright notice, recommended by RMS.
51275
51276 2005-03-02  Bruno Haible  <bruno@clisp.org>
51277
51278         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
51279         of AIX, the replacement has to be done only after <string.h> is
51280         included, therefore not in config.h. stpncpy.h does the replacement,
51281         and stpncpy.c uses it.
51282
51283 2005-03-02  Bruno Haible  <bruno@clisp.org>
51284
51285         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
51286         stpncpy.c uses it.
51287
51288 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51289
51290         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
51291         The workaround isn't strictly needed for POSIX conformance, and
51292         it's too much of a pain to configure and maintain.  We'll ask
51293         people to fix their kernels instead.
51294         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
51295         (NANOSLEEP_BUG_WORKAROUND): Remove.
51296         (xnanosleep): Remove the workaround.
51297
51298 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51299
51300         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
51301         Reported by Derek Price.
51302         (Include): Add "timespec.h".
51303
51304         * modules/xnanosleep (Depends-on): Remove gethrxtime.
51305
51306 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51307
51308         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
51309         to detect nanosleep bug.
51310
51311 2005-03-01  Bruno Haible  <bruno@clisp.org>
51312
51313         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
51314
51315 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
51316
51317         * modules/gethrxtime: New file.
51318         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
51319         (Depends-on): Add gethrxtime.
51320         (configure.ac): Add gl_XNANOSLEEP.
51321         (Makefile.am): Remove lib_SOURCES line.
51322
51323 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51324
51325         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
51326         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
51327
51328 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51329
51330         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
51331         * lib/timespec.h (gettime): Return void, since it always
51332         succeeds now.  All uses changed.
51333         * lib/gettime.c (gettime) Likewise.
51334         [HAVE_NANOTIME]: Prefer nanotime.
51335         Assume gettimeofday succeeds, as POSIX requires.
51336         Assime time () succeeds, since other code already does.
51337         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
51338         (timespec_subtract): Remove.
51339         (NANOSLEEP_BUG_WORKAROUND): New constant.
51340         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
51341         things considerably.  Use it only on GNU/Linux hosts, since the
51342         workaround shouldn't be needed elsewhere.
51343
51344 2005-02-24  Bruno Haible  <bruno@clisp.org>
51345
51346         * modules/gettext (Files): Add m4/glibc2.m4.
51347
51348 2005-02-24  Bruno Haible  <bruno@clisp.org>
51349
51350         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
51351         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
51352         * m4/progtest.m4:
51353         Update from GNU gettext 0.14.2.
51354         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
51355
51356 2005-02-24  Bruno Haible  <bruno@clisp.org>
51357
51358         * lib/localcharset.c: Update from GNU gettext 0.14.2.
51359         * lib/config.charset: Update from GNU gettext 0.14.2.
51360
51361 2005-02-24  Bruno Haible  <bruno@clisp.org>
51362
51363         * lib/gettext.h: Update from GNU gettext 0.14.2.
51364
51365 2005-02-23  Simon Josefsson  <jas@extundo.com>
51366
51367         * m4/iconvme.m4: New file.
51368
51369 2005-02-23  Jim Meyering  <jim@meyering.net>
51370
51371         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
51372         change.
51373         Thanks to Bruno Haible for catching it.
51374
51375 2005-02-22  Simon Josefsson  <jas@extundo.com>
51376
51377         * modules/iconvme: New file.
51378
51379         * MODULES.html.sh: Add iconvme.
51380
51381 2005-02-22  Simon Josefsson  <jas@extundo.com>
51382
51383         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
51384
51385 2005-02-22  Simon Josefsson  <jas@extundo.com>
51386
51387         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
51388
51389 2005-02-22  Jim Meyering  <jim@meyering.net>
51390
51391         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
51392         s/ifndef/ifdef/.
51393
51394 2005-02-20  Neil Conway  <neilc@samurai.com>
51395
51396         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
51397         returned by OSX/Darwin if the specified buffer is not large
51398         enough for the hostname.
51399
51400 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51401
51402         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
51403         pass it to _help, otherwise the latter coredumps trying to
51404         dereference state.root_argp.
51405
51406 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51407
51408         * modules/chdir-long (Depends-on): Add memrchr.
51409         * modules/memrchr (Files): Add lib/memrchr.h.
51410         (Include): "memrchr.h".
51411
51412 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51413
51414         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
51415
51416 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51417
51418         * lib/memrchr.h: New file.
51419         * lib/chdir-long.c: Include it.
51420         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
51421         Don't bother including stddef.h.
51422
51423 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
51424
51425         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
51426         inclusion.
51427         Include <sys/types.h>, for dev_t.
51428         (ME_DUMMY, ME_REMOTE): Move from here....
51429         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
51430         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
51431         Dmitry V. Levin.
51432         Include mountlist.h first, to test the interface.
51433
51434 2005-01-29  Bruno Haible  <bruno@clisp.org>
51435
51436         * lib/progname.c (program_name): Initialize.
51437         Needed when linking statically on MacOS X.
51438
51439 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51440
51441         Sync from coreutils.
51442         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
51443         (Depends-on): Add c-strtod.
51444         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
51445
51446 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51447
51448         Sync from coreutils.
51449         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
51450
51451         Remove files that are specific to coreutils.
51452         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
51453
51454 2005-01-28  Bruno Haible  <bruno@clisp.org>
51455
51456         * modules/javacomp: New file.
51457         * MODULES.html.sh (Java): Add javacomp.
51458
51459 2005-01-28  Bruno Haible  <bruno@clisp.org>
51460
51461         * m4/javacomp.m4: New file, from GNU gettext.
51462
51463 2005-01-28  Bruno Haible  <bruno@clisp.org>
51464
51465         * lib/javacomp.sh.in: New file, from GNU gettext.
51466         * lib/javacomp.h: New file, from GNU gettext.
51467         * lib/javacomp.c: New file, from GNU gettext.
51468
51469 2005-01-26  Simon Josefsson  <jas@extundo.com>
51470
51471         * lib/gai_strerror.c: Use GPL in header.
51472
51473 2005-01-26  Bruno Haible  <bruno@clisp.org>
51474
51475         * modules/javaexec: New file.
51476         * MODULES.html.sh (Java): Add javaexec.
51477
51478 2005-01-26  Bruno Haible  <bruno@clisp.org>
51479
51480         * m4/javaexec.m4: New file, from GNU gettext.
51481
51482 2005-01-26  Bruno Haible  <bruno@clisp.org>
51483
51484         * lib/javaexec.sh.in: New file, from GNU gettext.
51485         * lib/javaexec.h: New file, from GNU gettext.
51486         * lib/javaexec.c: New file, from GNU gettext.
51487
51488 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51489
51490         * modules/lchown (Depends-on): Remove lchown.h
51491
51492 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51493
51494         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
51495         must be defined if the header file was not found, in order
51496         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
51497
51498 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51499
51500         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
51501         initializers for struct pentry_state.
51502         (__argp_error): Check return value of __asprintf
51503         (__argp_failure): Translate error message
51504
51505         * lib/argp-parse.c: Removed braces around the expansion of N_()
51506
51507 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51508
51509         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
51510         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
51511         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
51512         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
51513         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
51514         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
51515         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
51516         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
51517         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
51518         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
51519         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
51520         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
51521         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
51522         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
51523         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
51524         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
51525         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
51526         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
51527         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
51528         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
51529         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
51530         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
51531         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
51532         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
51533         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
51534         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
51535         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
51536         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
51537         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
51538         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
51539         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
51540         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
51541         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
51542         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
51543         xstrtol.m4, xstrtoumax.m4, yesno.m4:
51544         Use an all-permissive copyright notice, recommended by RMS.
51545
51546 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
51547
51548         * modules/chdir-long (Depends-on): Remove mempcpy.
51549
51550 2005-01-21  Jim Meyering  <jim@meyering.net>
51551
51552         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
51553         same value as for Solaris 9.
51554
51555         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
51556         component length.  This included changing the parameter to be
51557         of type `char *' rather than `char const *'.
51558         * lib/chdir-long.h (chdir_long): Update prototype.
51559
51560         * lib/openat.c (fdopendir, fstatat): New functions.
51561         * lib/openat.h: Include headers required for use of DIR and struct
51562         stat.
51563         [AT_SYMLINK_NOFOLLOW]: Define.
51564         (fdopendir, fstatat): Add prototypes.
51565
51566 2005-01-21  Bruno Haible  <bruno@clisp.org>
51567
51568         * modules/classpath: New file.
51569         * MODULES.html.sh (Java): Add classpath.
51570
51571 2005-01-21  Bruno Haible  <bruno@clisp.org>
51572
51573         * lib/classpath.h: New file, from GNU gettext.
51574         * lib/classpath.c: New file, from GNU gettext.
51575
51576 2005-01-20  Simon Josefsson  <jas@extundo.com>
51577
51578         * modules/version-etc-fsf: New file.
51579
51580 2005-01-20  Simon Josefsson  <jas@extundo.com>
51581
51582         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
51583         * lib/version-etc.c: Remove version_etc_copyright.
51584         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
51585         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
51586
51587 2005-01-20  Simon Josefsson  <jas@extundo.com>
51588
51589         * lib/base64.h (isbase64): Add.
51590
51591         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
51592         using a unsigned prototype, don't inline.
51593         (base64_decode): Use it.
51594
51595 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51596
51597         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
51598         it.
51599
51600 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51601
51602         * lib/save-cwd.c (save_cwd): Remove code to support the case
51603         where fchdir is missing or flaky.
51604
51605 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51606
51607         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
51608
51609 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
51610
51611         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
51612         AC_LIBSOURCES now does this.
51613         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
51614         with new ullong_max module.
51615
51616 2005-01-19  Bruno Haible  <bruno@clisp.org>
51617
51618         * modules/sh-quote: New file.
51619         * MODULES.html.sh (Executing programs): Add sh-quote.
51620
51621 2005-01-19  Bruno Haible  <bruno@clisp.org>
51622
51623         * lib/sh-quote.h: New file, from GNU gettext.
51624         * lib/sh-quote.c: New file, from GNU gettext.
51625
51626 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
51627
51628         Merge from coreutils.
51629         * m4/ullong_max.m4: New file.
51630         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
51631         (gl_MACROS): Assume localeconv exists.
51632
51633 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
51634
51635         Merge changes from coreutils, as described below in several
51636         changelogs dated today.
51637
51638         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
51639         (O_DIRECTORY): Remove; not needed here, since "." must be
51640         a directory.  All uses removed.
51641         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
51642         universal on Suns, and we also need to test for IRIX.
51643         Revamp code to use 'if' rather than '#if'.
51644         Avoid unnecessary comparison of cwd->desc to 0.
51645
51646         * lib/utimens.c (futimens): Robustify the previous patch, by checking
51647         for known valid error numbers rather than observed invalid ones.
51648
51649 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
51650
51651         * modules/ullong_max: New file.
51652
51653         * modules/chdir-long, modules/openat: New files.
51654         * modules/save-cwd (Depends-on): Depend on chdir-long.
51655         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
51656
51657 2005-01-18  Jim Meyering  <jim@meyering.net>
51658
51659         Merge from coreutils.
51660         * m4/chdir-long.m4, m4/openat.m4: New files.
51661         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
51662         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
51663         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
51664         is sane and DOES follow symlinks.  Besides, testing 20 different
51665         systems found no broken chown implementations.
51666         Prompted by a change in rsync's copy of this macro.
51667         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
51668
51669         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
51670
51671         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
51672         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
51673         NULL-means-set-to-current-time semantics.
51674         Remove temporary file immediately, rather than waiting
51675         for configure's at-exit trap code to do it.
51676
51677 2005-01-18  Jim Meyering  <jim@meyering.net>
51678
51679         * lib/version-etc.c (version_etc_copyright): Update copyright date.
51680
51681         * lib/utimens.c (futimens): Account for the fact that futimes
51682         can also fail with errno == ENOSYS or errno == ENOENT.
51683         Patch from Dmitry V. Levin.
51684
51685         Change the name of the robust chdir function from chdir to chdir_long.
51686         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
51687         (restore_cwd): Use chdir_long, not chdir.
51688         * lib/chdir-long.c: Renamed from chdir.c.
51689         * lib/chdir-long.h: Renamed from chdir.h.
51690         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
51691         Hurd.
51692
51693 2005-01-18  Bruno Haible  <bruno@clisp.org>
51694
51695         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
51696         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
51697         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
51698         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
51699         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
51700         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
51701         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
51702         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
51703         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
51704         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
51705         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
51706         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
51707         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
51708         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
51709         Use an all-permissive copyright notice, recommended by RMS.
51710
51711 2005-01-18  Bob Proulx  <bob@proulx.com>
51712
51713         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
51714         simplify offsetof() macro construct to avoid compile failure with
51715         native HP-UX 11.0 ANSI C compiler.
51716
51717 2005-01-17  Bruno Haible  <bruno@clisp.org>
51718
51719         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
51720         redundant because stpncpy.m4 takes care of it.
51721
51722 2005-01-17  Bruno Haible  <bruno@clisp.org>
51723
51724         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
51725
51726 2005-01-17  Bruno Haible  <bruno@clisp.org>
51727
51728         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
51729         used.
51730
51731 2005-01-17  Bruno Haible  <bruno@clisp.org>
51732
51733         * lib/fwriteerror.h (fwriteerror): Change specification to include
51734         fclose.
51735         * lib/fwriteerror.c: Include <stdbool.h>.
51736         (fwriteerror): At the end, close the file stream. Record whether
51737         stdout was already closed.
51738
51739 2005-01-17  Bruno Haible  <bruno@clisp.org>
51740
51741         * lib/execute.c (environ): Declare if needed.
51742         * lib/pipe.c (environ): Likewise.
51743         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
51744
51745 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51746
51747         * modules/argp: Depend on vsnprintf
51748
51749 2005-01-10  Jim Meyering  <jim@meyering.net>
51750
51751         * modules/closeout (Depends-on): Add atexit.
51752
51753 2005-01-06  Bruno Haible  <bruno@clisp.org>
51754
51755         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
51756
51757 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
51758
51759         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
51760         definitions to be after all include files, to avoid collisions.
51761         Problem reported by Bob Proulx.
51762
51763 2005-01-04  Jim Meyering  <jim@meyering.net>
51764
51765         Changes imported from coreutils.
51766         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
51767         as the mkstemp template, use a temporary directory and an
51768         8.3-friendly template to avoid trouble on systems like DJGPP.
51769         Reported by Juan M. Guerrero via Stepan Kasal.
51770         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
51771         close. Remove the temporary directory right away, rather than waiting
51772         for configure's at-exit trap code to do it.
51773         Suggestion from Stepan Kasal.
51774
51775 2005-01-01  Simon Josefsson  <jas@extundo.com>
51776
51777         * gnulib-tool: Print #include directives when --import'ing.
51778
51779 2004-12-28  Simon Josefsson  <jas@extundo.com>
51780
51781         * tests/test-base64.c: Include required header files.  Remove
51782         unused variables.
51783
51784 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
51785
51786         * modules/error (Depends-on): Remove gettext.
51787
51788 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
51789
51790         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
51791         not needed.  This removes a dependency on the gettext module.
51792         [defined _LIBC]: Do not include <libintl.h>; not needed.
51793
51794 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
51795
51796         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
51797         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
51798
51799 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
51800
51801         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
51802         HAVE_DECL_STRTOLD.
51803
51804 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51805
51806         * modules/getdate (Depends-on): Remove alloca-opt.
51807
51808 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51809
51810         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
51811
51812 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51813
51814         * lib/argp-parse.c: Include <stddef.h>.
51815         (alignof, alignto): New macros.
51816         (parser_init): Don't assume that void * is aligned sufficiently
51817         for struct option.
51818
51819         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
51820         need to extend the stack.
51821         (YYINITDEPTH): New macro, so that the initial stack isn't overly
51822         large.
51823
51824 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51825
51826         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
51827
51828 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
51829
51830         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
51831         (2004-10-24) change.  Apparently this was a false alarm.
51832
51833         * modules/getdate: Depend on alloca-opt, not alloca.
51834
51835 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
51836
51837         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
51838         Remove now-obsolete comment about AIX.
51839         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
51840         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
51841         (YYMAXDEPTH): New macro.
51842
51843 2004-12-18  Simon Josefsson  <jas@extundo.com>
51844
51845         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
51846
51847 2004-12-18  Bruno Haible  <bruno@clisp.org>
51848
51849         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
51850
51851 2004-12-18  Bruno Haible  <bruno@clisp.org>
51852
51853         * lib/fatal-signal.c (fatal_signals): Make non-const.
51854         (init_fatal_signals): New function.
51855         (uninstall_handlers, install_handlers): Ignore signals that were set to
51856         SIG_IGN.
51857         (at_fatal_signal): Call init_fatal_signals.
51858         (init_fatal_signal_set): Likewise. Ignore signals that were set to
51859         SIG_IGN.
51860         Reported by Paul Eggert.
51861
51862 2004-12-18  Bruno Haible  <bruno@clisp.org>
51863
51864         * doc/alloca.texi: New file.
51865         * doc/alloca-opt.texi: New file.
51866
51867 2004-12-17  Jim Meyering  <jim@meyering.net>
51868
51869         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
51870         Otherwise, install-sh could exit with improper exit status when
51871         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
51872
51873 2004-12-16  Simon Josefsson  <jas@extundo.com>
51874
51875         * tests/test-base64.c: Add license.
51876
51877 2004-12-15  Stepan Kasal  <address@hidden>
51878
51879         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
51880
51881 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
51882
51883         * modules/getcwd (Files): Add m4/d-ino.m4.
51884         Suggested by Mark D. Baushke.
51885
51886 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
51887
51888         * lib/getdate.y (textint): New member "negative".
51889         (time_zone_hhmm): New function.
51890         Expect 14 shift-reduce conflicts, not 13.
51891         (o_colon_minutes): New rule.
51892         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
51893         (yylex): Set the "negative" member of signed numbers.
51894
51895 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
51896
51897         * doc/getdate.texi (Time of day items, Time zone items):
51898         Describe new formats +00:00, UTC+00:00.
51899
51900 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
51901
51902         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
51903         spurious "-l"s.  Problem reported by Stepan Kasal.
51904
51905 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
51906
51907         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
51908         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
51909
51910 2004-12-04  Simon Josefsson  <jas@extundo.com>
51911
51912         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
51913         Vandoorselaere <yoann@prelude-ids.org>.
51914
51915 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
51916
51917         Changes imported from coreutils.
51918         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
51919         exist.
51920         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
51921
51922 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
51923
51924         Changes imported from coreutils.
51925         * lib/hard-locale.c: Assume <locale.h> exists.
51926         Include "strdup.h".
51927         (GLIBC_VERSION): New macro.
51928         (hard_locale): Assume setlocale exists.
51929         Rewrite to avoid #ifdef.
51930         Use strdup rather than malloc + strcpy.
51931         * lib/human.c: Assume <locale.h> exists.
51932         (human_readable): Assume localeconv exists.
51933
51934 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
51935
51936         * modules/hard-locale (Depends-on): Add strdup.
51937
51938 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
51939
51940         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
51941         convert T2, not T.  (Imported from libc.)
51942
51943 2004-11-30  Simon Josefsson  <jas@extundo.com>
51944
51945         * modules/restrict (License): Change to LGPL.
51946
51947 2004-11-30  Simon Josefsson  <jas@extundo.com>
51948
51949         * m4/restrict.m4: Add copyright and copying conditions.
51950
51951 2004-11-30  Simon Josefsson  <jas@extundo.com>
51952
51953         * m4/base64.m4: New file.
51954
51955 2004-11-30  Simon Josefsson  <jas@extundo.com>
51956
51957         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
51958         base64.
51959
51960         * tests/test-base64.c: New file.
51961
51962         * modules/base64: New file.
51963
51964 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
51965
51966         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
51967         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
51968
51969         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
51970
51971 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
51972
51973         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
51974         (__getcwd.c): Don't restore errno; glibc doesn't.
51975         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
51976         first, falling back to our code only if its results look suspicious.
51977         Ensure that the resulting buffer is only as large as necessary.
51978
51979         * lib/readutmp.c: Include readutmp.h first.
51980         Include <errno.h>, since readutmp.h no longer does that.
51981         * lib/readutmp.h: Don't include <errno.h>,
51982         <sys/param.h>, <time.h>; not needed to establish interface.
51983         (errno): Remove decl.
51984         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
51985         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
51986         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
51987
51988 2004-11-28  Simon Josefsson  <jas@extundo.com>
51989
51990         * lib/base64.h, base64.c: New file.
51991
51992 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
51993
51994         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
51995
51996 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
51997
51998         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
51999         (Depends-on): Remove pathmax, same.  Add mempcpy.
52000         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
52001         (Makefile.am): Append getcwd.h to lib_SOURCES.
52002         (Include): Add getcwd.h.
52003         (Maintainer): Change from Jim Meyering to "all, glibc",
52004         since getdate now uses intended-for-glibc code.
52005         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
52006         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
52007
52008 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
52009
52010         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
52011         HP's ANSI C compiler.
52012         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
52013         Declaring int functions causes warnings on some modern systems and
52014         shouldn't be needed to compile on ancient ones.
52015         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
52016         defined.
52017
52018         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
52019         with the following changes.
52020         (__set_errno): Parenthesize properly.
52021         Include <stdbool.h>.
52022         (MIN, MAX, MATCHING_INO): New macros.
52023         (__getcwd): Define with prototype, not K&R form.
52024         Use heuristics to allocate default buffer on stack if possible.
52025         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
52026         behavior, and to avoid the PATH_MAX limit when computing
52027         ../../../../...
52028         Use MATCHING_INO to compare inode number to file.
52029         Check for arithmetic overflow in size calculations.
52030         Fix bug in reallocation of dot array that caused getcwd to fail
52031         on directories nested deeper than 75.
52032         Be more careful about saving errno on error.
52033         Do not use realloc; use only free+malloc, as this is a bit
52034         more flexible and avoids a needless copy operation.
52035         Do not inspect st_dev and st_ino for symbolic links; POSIX
52036         doesn't specify the latter.
52037         Check for closedir errors.
52038         Avoid needless casts.
52039         Use "#ifdef weak_alias" around weak_alias, to be like other
52040         glibc code.
52041         The following changes to getcwd.c have effect only when used in
52042         gnulib; they have no effect inside glibc proper.
52043         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
52044         as alloca isn't used.
52045         (alloca, __alloca): Likewise.
52046         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
52047         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
52048         unconditionally, as gnulib assumes C89 or better.
52049         Do not include <sys/param.h>.
52050         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
52051         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
52052         better.
52053         (NULL) [!defined NULL]: Remove; we assume C89 or better.
52054         Include <dirent.h> in a way that is compatible with modern Autoconf.
52055         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
52056         New macros, if not already defined.
52057         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
52058         Use "_LIBC", not "defined _LIBC", for consistency.
52059         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
52060         a mempcpy module.
52061         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
52062         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
52063         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
52064         credit only to Jim Meyering and adjust the copyright dates.
52065         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
52066         <stdlib.h>, <unistd.h>, "pathmax.h".
52067         Instead, include "xgetcwd.h" (first) and "getcwd.h".
52068         (INITIAL_BUFFER_SIZE): Remove.
52069         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
52070
52071 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
52072
52073         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
52074         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
52075         Use the _ONCE methods, for efficiency.
52076         Check for fcntl.h.  In test program, include <errno.h>
52077         and <fcntl.h> if available.  Remove old K&R cruft from
52078         test program.  Check for common errors in GNU/Linux,
52079         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
52080         don't do AC_LIBOBJ, as that's getcwd.m4's job.
52081         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
52082         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
52083         name accordingly.
52084         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
52085         accommodate new getcwd.c.
52086         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
52087         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
52088         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
52089         that's all we need now.
52090
52091 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52092
52093         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
52094         argp-parse.c depends on getopt internals, that means we should
52095         always use our getopt, to be on the safe side.
52096         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
52097         order not to spoil the result of an eventual previous invocation
52098         of gl_GETOPT_SUBSTITUTE.
52099
52100 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52101
52102         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
52103         redefinition warnings. To avoid them, include the defines
52104         in `#if !defined __need_getopt ... #endif'. The only place
52105         where __getopt_argv_const is used is in definitions
52106         of getopt_long and getopt_long_only below, which are as well
52107         protected by `#ifndef __need_getopt'.
52108         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
52109         __need_getopt after including <stdio.h> and <unistd.h> These
52110         headers might have defined it.
52111
52112 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
52113
52114         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
52115
52116 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
52117
52118         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
52119         (futimens): New function, which uses futimes if available.
52120         (futimens, utimens): Support timespec==NULL, with same semantics
52121         as utime and utimens.
52122         * lib/utimens.h (futimens): New decl.
52123
52124 2004-11-23  Jim Meyering  <jim@meyering.net>
52125
52126         * lib/getopt_.h: Remove trailing blanks.
52127
52128 2004-11-23  Jim Meyering  <jim@meyering.net>
52129
52130         * lib/__fpending.c: Add comment.
52131
52132 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
52133
52134         * modules/canonicalize (Depends-on): Add xreadlink.
52135         Problem reported by James Youngman.
52136
52137 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
52138
52139         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
52140         New macros.
52141         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
52142         optopt): Use them instead of invoking ## directly; otherwise, the
52143         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
52144
52145 2004-11-19  Bruno Haible  <bruno@clisp.org>
52146
52147         * lib/strtok_r.c: Move comments from here...
52148         * lib/strtok_r.h: ... to here.
52149
52150 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
52151
52152         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
52153         implementations that mishandle size_t overflow.
52154
52155 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
52156
52157         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
52158         might fail.  Problem reported by Yoann Vandoorselaere.
52159         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
52160         implementations that mishandle size_t overflow.
52161
52162 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52163
52164         * modules/canon-host (Depends-on): Add strdup.
52165
52166 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52167
52168         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
52169
52170 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52171
52172         * lib/canon-host.c: Include "strdup.h".
52173         (canon_host): Use getaddrinfo if available, so that IPv6 works.
52174         Use strdup instead of malloc/strcpy to duplicate strings.
52175
52176         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
52177         (human_space_before_unit): New constant.
52178         * lib/human.c (human_readable): Support it.
52179
52180         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
52181         (xgetcwd): Set errno correctly when failing.
52182         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
52183         the failure is actually due to a PATH_MAX problem.
52184
52185         Further getopt changes to make it more likely that glibc will
52186         buy the changes back.
52187         * lib/getopt.c (POSIXLY_CORRECT): New constant.
52188         (getopt): Use it, so to preserve glibc semantic
52189         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
52190         when compiling for libc.
52191         * lib/getopt_.h (__getopt_argv_const): Bring it back.
52192         (getopt_long, getopt_long_only): Use it.
52193
52194         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
52195         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
52196         (getopt): Argv is now char * const *, as per standard.
52197         (_getopt_internal_r, _getopt_internal): Argv is now char **,
52198         not char *__getopt_argv_const *.
52199         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
52200         _getopt_long_only_r): Likewise.
52201         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
52202         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
52203         _getopt_long_r, _getopt_long_only_r): Likewise.
52204         * lib/getopt_.h (__getopt_argv_const): Remove.
52205         (getopt): Argv is now char * const *, as per standard.
52206
52207         * lib/getdate.y (tORDINAL): New token.
52208         (day, relunit): Allow it for relative times.
52209         (relative_time_table): Use tORDINAL for ordinals.
52210
52211 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52212
52213         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
52214         Document that "second" isn't allowed as an ordinal number.
52215
52216 2004-11-16  Jim Meyering  <jim@meyering.net>
52217
52218         * modules/closeout (Depends-on): Add fpending.
52219
52220 2004-11-15  Jim Meyering  <jim@meyering.net>
52221
52222         * lib/closeout.c: Include "__fpending.h" once again.
52223         Include <stdbool.h>.
52224         (close_stdout): Don't fail just because stdout was closed initially,
52225         since some programs don't write to stdout in the normal course of
52226         operation (other than --version and --help), and we don't want this
52227         function to make e.g. `touch file >&-' fail.
52228         But do fail if it was closed and someone has tried to write to it.
52229         E.g., `printf foo >&-' must fail.
52230
52231 2004-11-13  Jim Meyering  <jim@meyering.net>
52232
52233         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
52234
52235 2004-11-12  Simon Josefsson  <jas@extundo.com>
52236
52237         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
52238         small doc fix is still pending.
52239
52240 2004-11-11  Simon Josefsson  <jas@extundo.com>
52241
52242         * modules/strtok_r: New file.
52243
52244         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52245         strtok_r.
52246
52247 2004-11-11  Simon Josefsson  <jas@extundo.com>
52248
52249         * m4/strtok_r.m4: New file.
52250
52251         * m4/getopt.m4: Replace opterr.
52252
52253 2004-11-11  Simon Josefsson  <jas@extundo.com>
52254
52255         * lib/strtok_r.h, strtok_r.c: New file.
52256
52257 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
52258
52259         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
52260         of replacing opterr, getopt, etc.  This should handle the
52261         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
52262
52263 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
52264
52265         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
52266         we can stop lying to compilers about the constness of argv when we
52267         are compiled outside glibc.
52268         (getopt, getopt_long, getopt_long_only): Use it.
52269         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
52270         _getopt_internal, getopt): Likewise.
52271         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
52272         _getopt_long_only_r): Likewise.
52273         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
52274         _getopt_long_r, _getopt_long_only_r): Likewise.
52275
52276         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
52277         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
52278         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
52279         the other external symbols.
52280         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
52281         declaration, since the above renaming now works around collisions.
52282
52283 2004-11-11  Jim Meyering  <jim@meyering.net>
52284
52285         * lib/linebreak.c: Remove trailing blanks.
52286         * lib/alloca_.h: Likewise.
52287         * lib/acosl.c: Likewise.
52288         * lib/euidaccess.c: Likewise.
52289         * lib/allocsa.h: Likewise.
52290
52291 2004-11-10  Simon Josefsson  <jas@extundo.com>
52292
52293         * m4/getaddrinfo.m4: New file.
52294
52295 2004-11-10  Simon Josefsson  <jas@extundo.com>
52296
52297         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
52298
52299 2004-11-10  Simon Josefsson  <jas@extundo.com>
52300
52301         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52302         getaddrinfo.
52303
52304         * modules/getaddrinfo: New file.
52305
52306 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52307
52308         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
52309
52310 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52311
52312         * lib/mktime.c (SHR): New macro, which is a portable
52313         substitute for >> that should work even on Crays.
52314         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
52315         Problem reported by Mark D. Baushke in
52316         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
52317         * lib/getdate.y (SHR): Likewise.
52318         (tm_diff): Use it.
52319         * lib/strftime.c (SHR): Likewise.
52320         (tm_diff): Use it.
52321         * lib/quotearg.c (struct quoting_options): Use unsigned int for
52322         quote_these_too, so that right shifts are well defined.  All uses
52323         changed.
52324
52325 2004-11-10  Jim Meyering  <jim@meyering.net>
52326
52327         Ensure that no close failure goes unreported.
52328         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
52329         return early when it seems there's nothing to flush.
52330         Don't include __fpending.h.
52331
52332 2004-11-10  Jim Meyering  <jim@meyering.net>
52333
52334         * modules/closeout (Depends-on): Remove fpending.
52335
52336 2004-11-10  Jim Meyering  <jim@meyering.net>
52337
52338         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
52339
52340 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52341
52342         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
52343         gl_FUNC_STRFTIME.
52344         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
52345         and AC_REQUIRE when possible, to avoid duplicate checks.
52346         Check for <wchar.h>.
52347
52348 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52349
52350         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
52351
52352 2004-11-09  Bruno Haible  <bruno@clisp.org>
52353
52354         * m4/sockpfaf.m4: New file.
52355
52356 2004-11-05  Bruno Haible  <bruno@clisp.org>
52357
52358         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
52359         Reported by Mark D. Baushke <mdb@cvshome.org>.
52360
52361 2004-11-04  Bruno Haible  <bruno@clisp.org>
52362
52363         2004-09-11  Bruno Haible  <bruno@clisp.org>
52364                 * allocsa.valgrind: New file.
52365         2004-02-06  Bruno Haible  <bruno@clisp.org>
52366                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
52367                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
52368                 Reported by Christopher Seip <chris.seip@hp.com>.
52369
52370 2004-11-04  Bruno Haible  <bruno@clisp.org>
52371
52372         * modules/allocsa (Files): Add lib/allocsa.valgrind.
52373         (Makefile.am): Distribute it.
52374
52375 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
52376
52377         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
52378         with errno == ERANGE if the buffer is too small.
52379         Problem reported by Mark D. Baushke.
52380
52381 2004-11-03  Albert Chin  <china@thewrittenword.com>
52382             Paul Eggert  <eggert@cs.ucla.edu>
52383
52384         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
52385         equivalent, substitute $ac_type for equivalent type rather than
52386         blindly using uint32_t *always* which won't work if uint32_t is not
52387         available.  Define _UINT32_T to work around typedef of uint32_t if
52388         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
52389         2.5.1.
52390
52391 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52392
52393         * m4/jm-macros.m4: Sync from coreutils.
52394         (gl_MACROS): Check for mbrlen, for pathchk.
52395         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
52396
52397 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52398
52399         * lib/xreadlink.c (MAXSIZE): New macro.
52400         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
52401         size does not exceed MAXSIZE.  Avoid cast.
52402         As suggested by Mark D. Baushke in
52403         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
52404         if readlink fails with buffer size just under MAXSIZE, try again
52405         with MAXSIZE.
52406
52407 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52408
52409         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
52410
52411 2004-11-02  Derek R. Price  <derek@ximbiot.com>
52412         and  Paul Eggert  <eggert@cs.ucla.edu>
52413
52414         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
52415         (get_date): Overparenthesize to avoid GCC warning.
52416
52417 2004-11-02  Bruno Haible  <bruno@clisp.org>
52418
52419         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
52420         returns void.
52421
52422 2004-11-02  Bruno Haible  <bruno@clisp.org>
52423
52424         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
52425         function returns void.
52426
52427 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
52428
52429         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
52430         fflush_unlocked, flockfile, funlockfile, funlockfile,
52431         fputs_unlocked, putc_unlocked.
52432
52433 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
52434
52435         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
52436         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
52437         already declared.
52438
52439 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52440
52441         * modules/getdate (Files): Add doc/getdate.texi.
52442         (Depends-on): Add setenv, xalloc.
52443
52444 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52445
52446         * lib/getdate.y: Add support for TZ="foo" within a date string.
52447         Fix some bugs near time_t boundaries.  Reject dates with
52448         out-of-range components, e.g., "Sept 31".
52449         Include <stdlib.h>, "setenv.h", "xalloc.h".
52450         (ISDIGIT_LOCALE): Remove; unused.
52451         Note that the TZ and time functions used here are not reentrant.
52452         (mktime_ok, get_tz): New functions.
52453         (TZBUFSIZE): New constant.
52454         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
52455         This requires that we sometimes generate our own TZ="XXX..." setting.
52456
52457 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52458
52459         * doc/getdate.texi: New file, from coreutils with modifications for
52460         the new TZ parsing.
52461
52462 2004-10-27  Derek R. Price  <derek@ximbiot.com>
52463
52464         * lib/mktime.c (not_equal_tm): Remove redundant check.
52465
52466 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52467
52468         * modules/regex (lib_SOURCES): Add regex.c.
52469         Reported by James Youngman in
52470         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
52471
52472 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52473
52474         * lib/getdate.y: Use Bison 1.875 features, and some minor
52475         code cleanups.  This change does not affect semantics.
52476         Don't include <stdlib.h>; no longer needed.
52477         Don't include unlocked-io.h; only the "#if TEST" code uses
52478         stdio, and performance isn't crucial there.
52479         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
52480         Bison 1.875 features as described below.
52481         All uses of "PC." replaced by "pc->".
52482         (YYSTYPE): Add a forward declaration.
52483         (yylex, yyerror): Use full prototypes in forward decls.
52484         Use "%pure-parser" rather than obsolescent "%pure_parser".
52485         Use %parse-param and %lex-param instead of obsolescent
52486         YYPARSE_PARAM and YYLEX_PARAM.
52487         (meridian_table, month_and_day_table, time_units_table,
52488         relative_time_table, time_zone_table, military_table,
52489         lookup_zone, lookup_word, get_date):
52490         Use NULL instead of 0 where appropriate.
52491         (to_hour): Avoid abort (), to avoid a dependency on
52492         stdlib.h.
52493         (yyerror, yylex): Now accepts parser_control * arg.
52494         (main) [TEST]: Use '\0' rather than 0 for char.
52495
52496 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52497
52498         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
52499
52500 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52501
52502         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
52503         It's now the caller's responsibility to handle the case where
52504         !HAVE_GETPAGESIZE && !defined getpagesize.
52505
52506         * lib/mktime.c (leapyear): Arg is long int, not int.
52507
52508 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
52509
52510         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
52511
52512 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
52513
52514         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
52515         missing.  Problem reported by James Youngman.
52516
52517 2004-10-16  Simon Josefsson  <jas@extundo.com>
52518
52519         * gnulib-tool: Fix comments.  Fix parse problem.
52520         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
52521
52522 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
52523
52524         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
52525         implementation of getopt_long.  Problem reported by Alexander Taler in:
52526         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
52527
52528 2004-10-15  Bruno Haible  <bruno@clisp.org>
52529
52530         * gnulib-tool: Untabify. Initialize supplied_libname.
52531         (func_usage): More homogenous output.
52532         (func_modules_transitive_closure, func_modules_to_filelist,
52533         func_emit_lib_Makefile_am): New functions.
52534         (func_import): New function, extracted from big case statement. Use
52535         func_get_license, func_modules_transitive_closure,
52536         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
52537         opt_lgpl. Don't use test -a, as it's not portable.
52538         (func_create_testdir): Use func_modules_transitive_closure,
52539         func_modules_to_filelist, func_emit_lib_Makefile_am.
52540
52541 2004-10-15  Bruno Haible  <bruno@clisp.org>
52542
52543         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
52544
52545 2004-10-15  Bruno Haible  <bruno@clisp.org>
52546
52547         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
52548         the portions belonging to each module.
52549         Suggested by Derek Robert Price <derek@ximbiot.com>.
52550
52551 2004-10-12  Simon Josefsson  <jas@extundo.com>
52552
52553         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
52554         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
52555         to real functions.
52556
52557 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52558
52559         * modules/vsnprintf: New file.
52560
52561 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52562
52563         * m4/vsnprintf.m4: New file.
52564
52565 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52566
52567         * lib/vsnprintf.h: New file.
52568         * lib/vsnprintf.c: New file.
52569
52570 2004-10-11  Bruno Haible  <bruno@clisp.org>
52571
52572         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
52573         vsnprintf.
52574
52575 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
52576
52577         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
52578
52579 2004-10-07  Bruno Haible  <bruno@clisp.org>
52580
52581         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
52582         fits into the provided buffer.
52583
52584 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
52585
52586         * lib/diacrit.c, diacrit.h: Add GPL notice.
52587
52588         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
52589         notice.
52590         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
52591         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
52592         This avoids a potential constant-folding bug.
52593
52594 2004-10-05  Bruno Haible  <bruno@clisp.org>
52595
52596         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
52597         for the declaration of strsep.
52598
52599 2004-10-05  Bruno Haible  <bruno@clisp.org>
52600
52601         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
52602
52603 2004-10-04  Simon Josefsson  <jas@extundo.com>
52604
52605         * modules/memmem: New file.
52606         * tests/test-memmem.c: New file.
52607         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
52608
52609 2004-10-04  Simon Josefsson  <jas@extundo.com>
52610
52611         * m4/memmem.m4: New file.
52612
52613 2004-10-04  Simon Josefsson  <jas@extundo.com>
52614
52615         * lib/memmem.h: New file.
52616         * lib/memmem.c: New file, taken from glibc.
52617
52618 2004-10-04  Simon Josefsson  <jas@extundo.com>
52619
52620         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
52621         '#ifdef USE_UNLOCKED_IO'.
52622
52623 2004-10-04  Simon Josefsson  <jas@extundo.com>
52624
52625         * config/srclist.txt: Add memmem from glibc.
52626
52627 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
52628
52629         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
52630
52631         * modules/argmatch, modules/argp, modules/closeout, modules/error,
52632         modules/exclude, modules/getdate, modules/getline,
52633         modules/getndelim2, modules/getpass, modules/getpass-gnu,
52634         modules/getusershell, modules/linebuffer, modules/md5,
52635         modules/mountlist, modules/posixtm, modules/readtokens,
52636         modules/readutmp, modules/regex, modules/sha1,
52637         modules/version-etc, modules/yesno:
52638         Remove dependency on unlocked-io.
52639
52640 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
52641
52642         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
52643
52644         * m4/unlocked-io.m4: Add copyright notice.
52645         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
52646
52647 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
52648
52649         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
52650         * lib/xmalloc.c (xmemdup): Likewise.
52651         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
52652         XFREE): Remove these long-obsolescent macros.
52653         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
52654         * lib/xstrdup.c: Remove.
52655
52656         * lib/regex.c (re_comp): Cast gettext return value to char *,
52657         Problem reported by Martin Neitzel via Mark D. Baushke.
52658
52659 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
52660
52661         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
52662         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
52663         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
52664         regex.c, sha1.c, version-etc.c, yesno.c:
52665         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
52666         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
52667         the includer's responsibility.
52668
52669         Sync from coreutils.
52670
52671         * lib/modechange.c (mode_compile): Don't decrement a pointer that
52672         points to the start of a string, as the C Standard says the
52673         resulting behavior is undefined.
52674
52675         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
52676         simple -> simple_backups, numbered_existing ->
52677         numbered_existing_backups, numbered -> numbered_backups
52678         to avoid shadowing problems.  All uses changed.
52679         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
52680         * lib/backupfile.c (check_extension, numbered_backup):
52681         Rename locals to avoid shadowing 'basename'.
52682         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
52683         once.
52684
52685         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
52686         * lib/.cvsignore: Add getopt.h.
52687
52688 2004-10-04  Bruno Haible  <bruno@clisp.org>
52689
52690         * modules/README: New file.
52691         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
52692         not a module.
52693
52694 2004-10-02  Jim Meyering  <jim@meyering.net>
52695
52696         * lib/dirfd.h, getpagesize.h: Add copyright notice.
52697
52698 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52699
52700         * modules/strsep: New file.
52701
52702 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52703
52704         * m4/strsep.m4: New file.
52705
52706 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52707
52708         * lib/strsep.h: New file.
52709         * lib/strsep.c: New file.
52710
52711 2004-10-01  Simon Josefsson  <jas@extundo.com>
52712
52713         * lib/snprintf.c (snprintf): Handle size==0.
52714
52715 2004-10-01  Simon Josefsson  <jas@extundo.com>
52716             Bruno Haible  <bruno@clisp.org>
52717
52718         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
52719         (snprintf): Declare 'args'.
52720
52721 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
52722
52723         * lib/snprintf.c: Remove comments as to why each header is needed.
52724
52725 2004-10-01  Bruno Haible  <bruno@clisp.org>
52726
52727         * MODULES.html.sh: Add strsep.
52728
52729 2004-09-30  Simon Josefsson  <jas@extundo.com>
52730
52731         * modules/snprintf: New file.
52732
52733 2004-09-30  Simon Josefsson  <jas@extundo.com>
52734
52735         * m4/snprintf.m4: New file.
52736
52737 2004-09-30  Simon Josefsson  <jas@extundo.com>
52738
52739         * lib/snprintf.h, lib/snprintf.c: New files.
52740
52741 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52742
52743         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
52744         (hol_entry_help): Never translate an empty string.
52745         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
52746         * lib/argp.h (OPTION_NO_TRANS): New option.
52747
52748 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
52749
52750         * modules/argp (Maintainer): Replace Simon Josefsson
52751         by Sergey Poznyakoff.
52752
52753 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
52754
52755         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
52756         changes merged back into glibc.
52757
52758 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
52759
52760         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
52761
52762 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
52763
52764         * lib/xvasprintf.c: Include xalloc.h.
52765         (xvasprintf): Use xalloc_die, not xmalloc_die.
52766
52767 2004-09-29  Bruno Haible  <bruno@clisp.org>
52768
52769         * modules/alloca-opt: New file, derived from modules/alloca.
52770         * modules/allocsa: Depend on alloca-opt instead of alloca.
52771         * modules/setenv: Likewise.
52772         * modules/vasnprintf: Likewise.
52773         * MODULES.html.sh: Add alloca-opt.
52774
52775 2004-09-28  Simon Josefsson  <jas@extundo.com>
52776
52777         * gnulib-tool: New parameter --lgpl, to asseert that modules are
52778         LGPL, and to replace license template from GPL to LGPL.
52779
52780 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
52781
52782         * modules/dummy: Change license to LGPL.
52783
52784 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
52785
52786         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
52787
52788 2004-09-24  Simon Josefsson  <jas@extundo.com>
52789
52790         * modules/minmax (License): Change from GPL to LGPL.
52791
52792 2004-09-23  Simon Josefsson  <jas@extundo.com>
52793
52794         * gnulib-tool (--import): Typo.
52795
52796 2004-09-23  Simon Josefsson  <jas@extundo.com>
52797
52798         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
52799
52800 2004-09-22  Bruno Haible  <bruno@clisp.org>
52801
52802         * modules/*: Add 'License' field.
52803         * gnulib-tool: Accept --extract-license option.
52804         (func_get_license): New function.
52805
52806 2004-09-21  Bruno Haible  <bruno@clisp.org>
52807
52808         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
52809         Reported by Simon Josefsson.
52810
52811 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
52812
52813         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
52814         gl_AC_TYPE_LONG_LONG.
52815
52816 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
52817
52818         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
52819
52820 2004-09-18  Simon Josefsson  <jas@extundo.com>
52821         and  Paul Eggert  <eggert@cs.ucla.edu>
52822
52823         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
52824         calls with autoreconf.  Define GL_LIB.
52825
52826 2004-09-14  Karl Berry  <karl@gnu.org>
52827
52828         * config/srclist.txt: unsync setenv.c, sigh.
52829
52830 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
52831
52832         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
52833         Problem reported by Bruno Haible in:
52834         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
52835
52836 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
52837
52838         * config/srclist.txt: Comment out argp-pvh.c.
52839
52840 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
52841
52842         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
52843         in case some system header has #define'd it.  Problem reported by
52844         Soeren D. Schulze in
52845         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
52846
52847 2004-09-09  Karl Berry  <karl@gnu.org>
52848
52849         * regex.[ch]: delete from the root.  These were supposed to be
52850                 synced with emacs cvs, but this has not happened for about
52851                 a year, and anyway nothing else uses emacs regex.[ch].
52852                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
52853                 lib/regex[.ch] is untouched.
52854
52855 2004-09-09  Bruno Haible  <bruno@clisp.org>
52856
52857         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
52858
52859 2004-09-09  Bruno Haible  <bruno@clisp.org>
52860
52861         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
52862         modifications.
52863         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
52864
52865 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
52866
52867         * modules/xvasprintf: New file.
52868         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
52869
52870 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
52871
52872         * lib/xvasprintf.h: New file.
52873         * lib/xvasprintf.c: New file.
52874         * lib/xasprintf.c: New file.
52875
52876 2004-09-08  Bruno Haible  <bruno@clisp.org>
52877
52878         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
52879
52880 2004-09-08  Bruno Haible  <bruno@clisp.org>
52881
52882         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
52883         length is > INT_MAX.
52884         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
52885         more.
52886
52887 2004-09-08  Bruno Haible  <bruno@clisp.org>
52888
52889         * lib/stdint_.h: New file, taken from GNU clisp.
52890
52891 2004-09-08  Bruno Haible  <bruno@clisp.org>
52892             Oskar Liljeblad  <oskar@osk.mine.nu>
52893
52894         * modules/stdint: New file.
52895         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
52896
52897 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52898
52899         Import from coreutils.
52900         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
52901         strings on unbounded length.  alloca's performance benefits aren't
52902         that important here.
52903         (V_STRDUP): Remove.
52904         (parse_with_separator): New function, with most of the internals
52905         of the old parse_user_spec.  Allow user to omit both user and group,
52906         for compatibility with FreeBSD.
52907         Clone only the user name, not the entire spec.
52908         Do not set *uid, *gid unless entirely successful.
52909         Avoid memory leak in some failing cases.
52910         Fix regression for USER.GROUP reported by Dmitry V. Levin in
52911         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
52912         (parse_user_spec): Rewrite to use parse_with_separator.
52913
52914 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52915
52916         * modules/userspec: Don't depend on alloca.
52917
52918 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52919
52920         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
52921
52922 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
52923
52924         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
52925         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
52926         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
52927
52928 2004-08-16  Simon Josefsson  <jas@extundo.com>
52929
52930         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
52931         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
52932         Add --dry-run for --import.
52933         Let user provided command line parameters override configure.ac
52934         settings.
52935
52936 2004-08-12  Simon Josefsson  <jas@extundo.com>
52937
52938         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
52939         as discussed with Paul Eggert in threads rooted at
52940         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
52941         and
52942         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
52943         Before, the test was empty, and relied on ELIDE_CODE in source
52944         code.)
52945         (gl_PREREQ_GETOPT): New macro.
52946         (gl_GETOPT): Use them.
52947
52948 2004-08-12  Simon Josefsson  <jas@extundo.com>
52949
52950         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
52951         * lib/getopt_.h: Renamed from getopt.h.
52952
52953 2004-08-12  Simon Josefsson  <jas@extundo.com>
52954
52955         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
52956         Change default library name from libfoo to libgnu.
52957         Now, if you have a configure.ac that says:
52958                 gl_SOURCE_BASE(gl)
52959                 gl_M4_BASE(gl/m4)
52960                 gl_MODULES(error getopt etcetera)
52961                 gl_INIT
52962         you can import all you need by running:
52963                 ../gnulib/gnulib-tool --import
52964
52965         * modules/getopt (Files): Rename getopt.h to getopt_.h.
52966         (Makefile.am): Rewrite, use logic from argz.
52967         (Include): Use <getopt.h> instead of "getopt.h".
52968
52969 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52970
52971         * modules/argp (Files): Add m4/unlocked-io.m4.
52972         (Depends-on): Add extensions.
52973
52974 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52975
52976         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
52977         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
52978         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
52979         Check for program_invocation_name, program_invocation_short_name,
52980         flockfile, funlockfile, features.h, _getopt_long_only_r.
52981
52982 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52983
52984         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
52985         its complicated substitute.
52986         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
52987         and program_invocation_name.
52988         (__argp_basename) [!_LIBC]: Remove; the only use was
52989         replaced by its body.
52990         (__argp_short_program_name): Change condition from
52991         !defined __argp_short_program_name to
52992         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
52993         to match argp-namefrob.h.
52994         (__argp_failure): Don't assume strerror_r returns char *.
52995         * lib/argp-parse.c (N_): Define unconditionally.
52996         (argp_default_options): Fill out initializers with 0 to avoid
52997         gcc warnings.
52998
52999 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53000
53001         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
53002         getopt1.c.
53003
53004 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53005
53006         Merge from coreutils.
53007
53008         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
53009
53010         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
53011         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
53012
53013 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53014
53015         Merge from coreutils.
53016
53017         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
53018         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
53019         for Reliant Unix 5.43.
53020
53021         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
53022         (union fooround): Use uintmax_t, not long int.
53023         The rest is a merge from libc:
53024         [defined _LIBC]: Include <shlib-compat.h>.
53025         (_obstack) [defined _LIBC]: Remove after 2.3.4.
53026
53027         * lib/settime.c (settime): Recode to avoid warning with
53028         Sun Forte C 6U2.
53029
53030         * lib/strverscmp.c: Convert to UTF-8.
53031
53032 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53033
53034         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
53035         m4/uintmax_t.m4.
53036
53037 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53038
53039         * modules/xalloc-die: New file.
53040         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
53041
53042         * modules/md5 (Files): Add m4/uint32_t.m4.
53043         * modules/sha1: Renamed from modules/sha.
53044         (Files):
53045         Rename lib/sha.h to lib/sha1.h.
53046         Rename lib/sha.c to lib/sha1.c.
53047         Rename m4/sha.m4 to m4/sha1.m4.
53048         (lib_SOURCES): Likewise.
53049         (configure.ac): Rename gl_SHA to gl_SHA1.
53050         (Include): sha.h -> sha1.h.
53051
53052 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53053
53054         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
53055         * m4/sha1.m4: Renamed from sha.m4.
53056         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
53057
53058 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53059
53060         * lib/obstack.h (obstack_empty_p):
53061         Don't assume that chunk->contents is suitably aligned.
53062         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
53063         Likewise. Problem reported by Benno in
53064         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
53065
53066         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
53067         readable.  This could be improved further but it'd take some work.
53068
53069 2004-08-08  Simon Josefsson  <jas@extundo.com>
53070
53071         * modules/xgethostname (Depends-on): Remove exit and error (not
53072         used).
53073
53074         * modules/getpass-gnu: Add getpass.h.
53075         (Depends-on): Add stdbool.
53076         * modules/getpass: Add getpass.h.
53077
53078 2004-08-08  Simon Josefsson  <jas@extundo.com>
53079
53080         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
53081         Check getpass declaration.
53082
53083 2004-08-08  Simon Josefsson  <jas@extundo.com>
53084
53085         * lib/xgethostname.c: Don't include error.h (not used).
53086
53087         * lib/getpass.h: Add.
53088         * lib/getpass.c: Include getpass.h first.
53089
53090 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
53091
53092         * lib/xalloc-die.c: New file.
53093         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
53094         All uses removed.
53095         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
53096         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
53097         xalloc-die.c.
53098         (_, N_, xalloc_die): Move to xalloc-die.c.
53099         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
53100         so that we needn't mess with xalloc_msg_memory_exhausted.
53101
53102         * lib/sha1.h: Renamed from sha.h.
53103         (SHA1_H): Renamed from _SHA_H.
53104         (sha1_ctx): Renamed from sha_ctx.
53105         (sha1_init_ctx): Renamed from sha_init_ctx.
53106         (sha1_process_block): Renamed from sha_process_block.
53107         (sha1_process_bytes): Renamed from sha_process_bytes.
53108         (sha1_finish_ctx): Renamed from sha_finish_ctx.
53109         (sha1_read_ctx): Renamed from sha_read_ctx.
53110         (sha1_stream): Renamed from sha_stream.
53111         (sha1_buffer): Renamed from sha_buffer.
53112         * lib/sha1.c: Likewise; renamed from sha.c.
53113         Do not include <sys/types.h>.
53114         Include <stddef.h> rather than <stdlib.h>.
53115
53116 2004-08-08  Bruno Haible  <bruno@clisp.org>
53117
53118         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
53119         FILESYSTEM_PREFIX_LEN.
53120         * lib/progreloc.c: Likewise.
53121         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
53122
53123 2004-08-06  Simon Josefsson  <jas@extundo.com>
53124
53125         * modules/progname (Depends-on): Don't depend on stdbool.
53126
53127 2004-08-06  Simon Josefsson  <jas@extundo.com>
53128
53129         * modules/getsubopt: New file.
53130         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53131         getsubopt.
53132
53133 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53134
53135         More merge from coreutils.
53136
53137         * m4/utimens.m4, m4/utimecmp.m4: New files.
53138         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
53139         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
53140         prereq.m4, sha.m4: Import changes from coreutils.
53141
53142 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53143
53144         More merge from coreutils.
53145         * modules/raise, modules/readtokens0, modules/utimens:
53146         * modules/utimecmp, module/xnanosleep: New files.
53147         * modules/strftime: Add lib/strftime.h.
53148         Change include from <time.h> to "strftime.h".
53149         * modules/yesno: Add lib/yesno.h.
53150         * modules/backupfile: Remove lib/addext.c.
53151         * modules/euidaccess: Add stat-macros.h.
53152         * modules/canonicalize, modules/euidaccess,
53153         modules/filemode, modules/lchown, modules/makepath,
53154         modules/rmdir, modules/stat: Likewise.
53155
53156 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53157
53158         Merge from tar.
53159         * lib/argp-help.c (make_hol, hol_append): Don't assume that
53160         SIZE_MAX is a valid preprocessor constant.
53161         (__argp_basename): Change from "#ifndef _LIBC"
53162         to "#ifndef __argp_short_program_name", so that
53163         we don't compile these functions for tar.
53164
53165         More merges from coreutils.
53166         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
53167         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
53168         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
53169         * lib/addext.c: Remove; no longer needed.
53170         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
53171         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
53172         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
53173         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
53174         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
53175         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
53176         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
53177         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
53178         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
53179         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
53180         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
53181         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
53182         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
53183         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
53184         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
53185         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
53186         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
53187         Import changes from coreutils.
53188
53189 2004-08-05  Simon Josefsson  <jas@extundo.com>
53190
53191         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
53192
53193 2004-08-05  Simon Josefsson  <jas@extundo.com>
53194
53195         * m4/getsubopt.m4: New file.
53196
53197 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
53198
53199         Merge from coreutils.
53200
53201         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
53202         * m4/getcwd-path-max.m4: New files.
53203
53204         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
53205         FILESYSTEM_PREFIX_LEN ->
53206         FILE_SYSTEM_PREFIX_LEN.
53207         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
53208         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
53209         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
53210         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
53211
53212         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
53213         prerequisite modules now handle the DOS stuff.
53214         Don't check for unistd.h.
53215
53216 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
53217
53218         Merge from coreutils.
53219
53220         * lib/.gdb-history: Remove; this doesn't belong here.
53221
53222         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
53223         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
53224         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
53225         * lib/getcwd.c: New files.
53226
53227         * lib/dirname.h: Include <stdbool.h>.
53228         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
53229         for consistency with POSIX terminology.  All uses changed.
53230         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
53231         (strip_trailing_slashes): Use bool for booleans.
53232         * lib/stripslash.c (strip_trailing_slashes): Likewise.
53233
53234         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
53235         sometimes returns a positive errno value even when it succeeds.
53236         (print_errno_message) [!LIBC]: Fall back on strerror if
53237         __strerror_r fails.
53238
53239         * lib/path-concat.c (mempcpy): Don't define if a system header defines
53240         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
53241         (longest_relative_suffix): New function.
53242         (path_concat): Use it.  Assume first argument is not NULL.
53243         Port to DOS.  Omit redundant separators.
53244         Report an error instead of returning NULL.
53245         Use mempcpy instead of memcpy.
53246         (xpath_concat): Remove: not declared or used.
53247
53248         * lib/same.h: Include <stdbool.h>
53249         (same_name): Return bool, not int.
53250         * lib/same.c (same_name): Likewise.
53251         (errno): Don't declare; we assume C89 or better now.
53252
53253         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
53254         if not already defined.
53255
53256         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
53257         * lib/dup-safer.c (errno): Likewise.
53258
53259 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
53260
53261         Merge from coreutils.
53262         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
53263         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
53264         * modules/path-concat: Don't depend on strdup.
53265
53266 2004-08-03  Simon Josefsson  <jas@extundo.com>
53267
53268         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
53269         * lib/progname.h: Don't include stdbool.h.
53270
53271 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
53272
53273         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
53274         * MODULES.html.sh (func_all_modules): Remove fatal.
53275
53276 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
53277
53278         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
53279
53280 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
53281
53282         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
53283         working.
53284
53285 2004-08-02  Simon Josefsson  <jas@extundo.com>
53286
53287         * lib/getsubopt.h: New file, with comments from Bruno Haible.
53288         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
53289         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
53290
53291 2004-08-01  Simon Josefsson  <jas@extundo.com>
53292
53293         * lib/xgetdomainname.c: Include stdlib.h, for free().
53294
53295 2004-07-19  Bruno Haible  <bruno@clisp.org>
53296
53297         * MODULES.html.sh (func_all_modules): Add dummy.
53298
53299 2004-07-16  Simon Josefsson  <jas@extundo.com>
53300
53301         * modules/dummy: New file.
53302
53303 2004-07-16  Simon Josefsson  <jas@extundo.com>
53304
53305         * lib/dummy.c: New file.
53306
53307 2004-07-16  Bruno Haible  <bruno@clisp.org>
53308
53309         * lib/backupfile.h: Add extern "C" for C++.
53310         * lib/closeout.h: Likewise.
53311         * lib/copy-file.h: Likewise.
53312         * lib/findprog.h: Likewise.
53313         * lib/full-write.h: Likewise.
53314         * lib/pathname.h: Likewise.
53315         * lib/progname.h: Likewise.
53316         * lib/stpcpy.h: Likewise.
53317         * lib/stpncpy.h: Likewise.
53318         * lib/strcase.h: Likewise.
53319         * lib/strstr.h: Likewise.
53320         * lib/xalloc.h: Likewise.
53321
53322         * lib/mbswidth.h: Add extern "C" for C++.
53323         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
53324
53325 2004-07-13  Robert Millan  <robertmh@gnu.org>
53326
53327         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
53328
53329 2004-07-09  Simon Josefsson  <jas@extundo.com>
53330
53331         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
53332         failed without this.)
53333
53334 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53335
53336         * modules/chown (Files): Add lib/fchown-stub.c, since
53337         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
53338
53339 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53340
53341         * lib/fchown-stub.c: New file.
53342
53343 2004-06-24  Jim Meyering  <jim@meyering.net>
53344
53345         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
53346
53347 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53348
53349         * modules/argz: Omit "#include".
53350
53351         * MODULES.html.sh (func_all_modules): Add calloc, to match
53352         2004-06-01 addition of calloc module.
53353
53354 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53355
53356         * m4/argz.m4: New file, which is autoupdated from libtool.
53357
53358 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53359
53360         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
53361         libtool.
53362
53363 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53364
53365         * config/srclist-update: Don't insist on "USA." before the
53366         close-comment, as libtool omits the period and puts the */ on a
53367         separate line.
53368         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
53369         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
53370
53371 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
53372
53373         * modules/argz: New file.
53374         * MODULES.html.sh (func_all_modules): Add argz.
53375
53376 2004-06-12  Jim Meyering  <jim@meyering.net>
53377         and  Paul Eggert  <eggert@cs.ucla.edu>
53378
53379         * modules/hash (Files): Add lib/xalloc.h.
53380         * modules/pipe (Depends-on): Add wait-process.
53381         * modules/stat (Depends-on): Add xalloc.
53382         * modules/userspec (Files): Add lib/userspec.h.
53383         * modules/xstrto
53384
53385         Upgrade from gettext-0.13.
53386         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
53387         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
53388         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
53389
53390 2004-06-10  Jim Meyering  <jim@meyering.net>
53391
53392         * lib/calloc.c: New file.
53393
53394 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
53395
53396         * lib/getdate.y (yylex): Allow space between sign and number.
53397         Problem reported by Dan Jacobson.
53398
53399 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
53400
53401         Merge from coreutils CVS.
53402
53403         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
53404         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
53405         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
53406         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
53407         xstrtol.m4: Fix copyright date and/or serial number.
53408
53409         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
53410         See if we need an fchown replacement.
53411         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
53412         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
53413         and use the replacement function if we detect either defect.
53414
53415         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
53416         gl_UTIMECMP.
53417
53418 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
53419         and  Jim Meyering  <jim@meyering.net>
53420
53421         Merge from coreutils CVS.
53422
53423         * lib/stat-macros.h: New file, with contents from file-type.h
53424         and coreutils' system.h.
53425         * lib/file-type.c: Include "stat-macros.h".
53426         * lib/file-type.h (file_type): Move all macro definitions to new file,
53427         stat-macros.h.
53428
53429         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
53430         Wrap old code with this conditional.
53431         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
53432         function that does not dereference symlinks.
53433         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
53434
53435         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
53436         dependency problems.
53437         (xreadlink): Accept new arg SIZE, for efficiency.
53438         All decls and uses changed.
53439         * lib/xreadlink.h: Include <stddef.h>, for size_t.
53440
53441         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
53442         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
53443
53444         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
53445         sysexits.h.
53446
53447 2004-06-01  Jim Meyering  <jim@meyering.net>
53448
53449         * m4/calloc.m4: New file.
53450
53451 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
53452
53453         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
53454         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
53455         Also, fix a typo in a diagnostic.
53456
53457 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
53458
53459         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
53460         or AC_FUNC_REALLOC.
53461
53462 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
53463
53464         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
53465         macros to be defined.
53466         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
53467         the allocator returns NULL because the requested size is zero.
53468
53469 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
53470
53471         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
53472         var.  Add comment explaining why libc still defines it.  This
53473         merges the following patch from glibc:
53474         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
53475
53476 2004-05-20  Andreas Schwab  <schwab@suse.de>
53477
53478         * m4/free.m4: Replace free if it not known to work, not the other
53479         way round.
53480
53481 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53482
53483         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
53484         present in glibc since revision 1.1 of this file.
53485         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
53486         obstack_alignment_mask, obstack_alloc, obstack_base,
53487         obstack_blank, obstack_blank_fast, obstack_chunk_size,
53488         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
53489         obstack_grow0, obstack_init, obstack_int_grow,
53490         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
53491         obstack_next_free, obstack_object_size, obstack_ptr_grow,
53492         obstack_ptr_grow_fast, obstack_room): Remove declarations of
53493         nonexistent functions.
53494
53495 2004-05-18  Karl Berry  <karl@gnu.org>
53496
53497         * config/srclist.txt: break link for vasnprintf.c.
53498
53499 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53500
53501         Port obstack to the AS/400, where pointers are 16 bytes wide and
53502         you cannot cast an integer to a valid pointer.  This patch is
53503         currently waiting to be integrated into glibc; see
53504         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
53505
53506         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
53507         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
53508         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
53509         (struct obstack): temp member is now a union of a pointer and
53510         an integer, instead of an integer.  All integer uses changed.
53511         This does not affect the physical layout of struct obstack,
53512         except on hosts (like the AS/400) where the size or alignment of
53513         void * is greater than that of ptrdiff_t.
53514         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
53515         __STDC__)]: Store temporary in pointer member of union, not
53516         integer member.
53517         * lib/obstack.c: Include <stddef.h>, for offsetof.
53518         (struct fooalign): Remove; it doesn't need a name.
53519         (union fooround): Change double to long double, and add void *.
53520         (DEFAULT_ALIGNMENT): Use offsetof to compute.
53521         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
53522         not a macro.  Hence the values are always int; so remove all
53523         casts-to-int in uses.
53524
53525 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53526
53527         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
53528         we can get this patch merged into glibc.
53529
53530 2004-05-17  Derek R. Price  <derek@ximbiot.com>
53531             Paul Eggert  <eggert@cs.ucla.edu>
53532
53533         * m4/argp: Depend on alloca.
53534
53535 2004-05-17  Derek R. Price  <derek@ximbiot.com>
53536             Paul Eggert  <eggert@cs.ucla.edu>
53537
53538         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
53539         freecoding.
53540
53541 2004-05-17  Bruno Haible  <bruno@clisp.org>
53542
53543         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
53544         precision that consists of a '.' followed by an empty digit string.
53545         Patch by Tor Lillqvist <tml@iki.fi>.
53546
53547 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53548
53549         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
53550         for backward compatibility with older code.  We need our own
53551         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
53552         it under some other name, and our alloca.h will define it.
53553
53554 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53555             Derek Price  <derek@ximbiot.com>
53556
53557         * lib/alloca.c: Include <alloca.h>, to get our interface.
53558         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
53559         include <alloca.h> first.  Use C89 prototype for alloca; this
53560         requires including <stddef.h> for size_t.  Use extern "C" if C++.
53561         Use #elif for simplicity, since we can assume C89 now.
53562         Don't try to source the system alloca.h since it will not be found
53563         and to prevent recursively including its replacement.
53564         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
53565         * lib/regex.c: Likewise.
53566
53567 2004-05-16  Derek Price  <derek@ximbiot.com>
53568             Paul Eggert  <eggert@cs.ucla.edu>
53569
53570         getline cleanup.  This changes the getndelim2 API: both order of
53571         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
53572         no delimiter).
53573
53574         * lib/getline.c: Don't include stddef.h or stdio.h, since our
53575         interface does that.
53576         (getline): Always use getdelim, so that we don't have two
53577         copies of this code.
53578         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
53579         if available.
53580         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
53581         (GETNDELIM2_MAXIMUM): New macro.
53582         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
53583         instead of the old practice of delim2==0.  All callers changed.
53584         Return -1 on overflow, instead of returning junk.
53585         Do not set *linesize unless allocation succeeds.
53586         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
53587         that we include sys/types.h.
53588         * lib/getnline.h: Likewise.
53589         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
53590         (getndelim2): Reorder arguments.
53591         * lib/getnline.c (getnline, getndelim):
53592         Don't discard the NMAX argument.
53593         (getnline): Invoke getndelim, to avoid code duplication.
53594         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
53595         of (size_t) -1 by callers of the getnline family.
53596
53597 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
53598
53599         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
53600         Check for gettimeofday.
53601         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
53602         Check for settimeofday, stime.
53603
53604 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
53605
53606         * lib/nanosleep.c (suspended): Change its type from int to
53607         sig_atomic_t volatile.
53608         (first_call): Make it private to rpl_nanosleep, and have it
53609         be zero initially as that's a bit faster.
53610         (my_usleep): Round up fractional times instead of truncating them,
53611         as this is the usual meaning for 'sleep'.
53612
53613         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
53614         doesn't work.
53615         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
53616         (ENOSYS): Define if not defined.
53617         (settime): Fall back on stime if it exists and settimeofday fails.
53618         But don't bother with fallbacks if a method fails with errno == EPERM.
53619
53620 2004-05-11  Jim Meyering  <jim@meyering.net>
53621
53622         Prior to this change, the save_cwd caller required read access to the
53623         current directory on most systems (ones with the fchdir function).
53624
53625         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
53626         fails, try write-only, and finally, resort to using xgetcwd.
53627
53628 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
53629
53630         * lib/obstack.c, obstack.h: Import changes from libc.
53631
53632 2004-04-28  Bruno Haible  <bruno@clisp.org>
53633
53634         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
53635         also implicitly appends .exe to executables.
53636         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
53637         accepts Windows pathnames.
53638         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
53639         Treat Cygwin like Windows, since it now accepts Windows pathnames.
53640         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
53641         Treat Cygwin like Windows, since it now accepts Windows pathnames.
53642         Reported by Derek Robert Price <derek@ximbiot.com>.
53643
53644 2004-04-21  Karl Berry  <karl@gnu.org>
53645
53646         * config/srclist.txt (localcharset.c): break sync.
53647
53648 2004-04-20  Paul Eggert  <eggert@twinsun.com>
53649
53650         * m4/host-os.m4: Add a copyright notice.
53651
53652 2004-04-20  Jim Meyering  <jim@meyering.net>
53653
53654         Change UTILS_ to gl_ in AC_DEFINE'd names.
53655         Change utils_- and jm_-prefixed variables, too.
53656         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
53657         UTILS_FUNC_MKDIR_TRAILING_SLASH.
53658         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
53659
53660         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
53661         Don't emit trailing blanks.
53662         Also rename jm_-prefixed variables to have gl_ prefix.
53663
53664         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
53665         Also rename jm_-prefixed variables to have gl_ prefix.
53666
53667         * m4/jm-macros.m4: Reflect the renamings.
53668         * m4/prereq.m4: Likewise.
53669
53670 2004-04-20  Jim Meyering  <jim@meyering.net>
53671
53672         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
53673         memory.
53674
53675 2004-04-20  Jim Meyering  <jim@meyering.net>
53676             Bruno Haible  <bruno@clisp.org>
53677
53678         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
53679         memory when realloc fails.
53680
53681 2004-04-19  Jim Meyering  <jim@meyering.net>
53682
53683         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
53684         now that readutmp.c may call `free (0)'.
53685
53686 2004-04-19  Bruno Haible  <bruno@clisp.org>
53687
53688         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
53689         * m4/inttypes_h.m4: Likewise.
53690         * m4/stdint_h.m4: Likewise.
53691         * m4/intmax_t.m4: Likewise.
53692         * m4/uintmax_t.m4: Likewise.
53693
53694 2004-04-18  Jim Meyering  <jim@meyering.net>
53695
53696         * m4/prereq.m4: Don't forbid jm_ prefix.
53697
53698         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
53699         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
53700         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
53701         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
53702         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
53703         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
53704         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
53705         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
53706         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
53707         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
53708         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
53709         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
53710         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
53711         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
53712         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
53713         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
53714         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
53715         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
53716         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
53717
53718 2004-04-18  Jim Meyering  <jim@meyering.net>
53719
53720         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
53721         failure, don't leak memory and do call END_UTMP_ENT.
53722
53723 2004-04-16  Jim Meyering  <jim@meyering.net>
53724
53725         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
53726         coreutils' stat program.
53727         (gl_PREREQ): Don't require jm_PREREQ_STAT.
53728
53729 2004-04-11  Paul Eggert  <eggert@twinsun.com>
53730
53731         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
53732         C89.
53733         (CHAR_BIT): Remove, since we assume C89.
53734         Include <stdint.h> if available, as per current Autoconf CVS advice.
53735
53736 2004-03-31  Jim Meyering  <jim@meyering.net>
53737
53738         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
53739         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
53740         * m4/xalloc.m4: Likewise.
53741
53742 2004-03-30  Paul Eggert  <eggert@twinsun.com>
53743
53744         Merge from coreutils.
53745
53746         * m4/inttostr.m4: New file.
53747         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
53748         Require AM_STDBOOL_H and gl_TIMESPEC instead.
53749         Require gl_CLOCK_TIME.
53750         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
53751
53752 2004-03-30  Paul Eggert  <eggert@twinsun.com>
53753
53754         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
53755         not bool, to be more consistent with Unix conventions.
53756         Suggested by Bruno Haible.
53757
53758         Merge from coreutils.
53759
53760         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
53761         * lib/umaxtostr.c: New files.
53762
53763         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
53764         the usual <time.h> dance.
53765         (get_date): Change signature to support fractional time stamps.
53766         All callers changed.
53767         * lib/getdate.y: Include "getdate.h" first, as we can now
53768         assume C89 and don't need to worry about 'const'.
53769         Similarly, include "unlocked-io.h" near start, not in middle.
53770         Include <limits.h>.
53771         (textint.value): Use long int rather than int.
53772         (textint.digits): Use size_t rather than int.
53773         (BILLION, LOG10_BILLION): New constants.
53774         (parser_control): New member rel_ns.  Members day_ordinal,
53775         time_zone, month, day, hour, minutes, rel_year, rel_month,
53776         rel_day, rel_hour, rel_minutes, rel_seconds
53777         are now long int, not int.  Member seconds is now struct timespec,
53778         not int.  New member timespec_seen.  Members dates_seen, days_seen,
53779         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
53780         not int.
53781         (%union.intval): Now long int, not int.
53782         New member timespec.
53783         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
53784         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
53785         (spec): Now is a timespec or an item list.
53786         (timespec, items): New nonterminals.
53787         (time, rel, relunit, number, get_date):
53788         Add support for fractional seconds.
53789         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
53790         (gmtime, localtime, mktime): Remove decls; not needed with C89.
53791         (to_hour): First arg is now long int, not int.
53792         (to_year): Returns long int, not int.
53793         Don't treat year -70 like 70.
53794         (tm_diff): Returns long int, not int.
53795         (lookup_word): Use bool instead of int when appropriate.
53796         (yylex): Use size_t for count, not int.
53797         Detect overflow when parsing large integer constants.
53798         Add support for fractions.
53799         (get_date): Make pointers 'const' if possible.
53800         Use more-portable code to detect integer overflow.
53801         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
53802         Don't use ctime; it's not reliable if the year has >4 digits.
53803
53804         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
53805         This is for compatibility with BSD.
53806
53807         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
53808         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
53809         From coreutils' system.h.
53810
53811         * lib/userspec.c: Don't include "posixver.h".
53812         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
53813         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
53814         compatible extension.  Simplify code by removing a boolean int
53815         that was always nonzero if a string was nonnull.
53816
53817 2004-03-30  Jim Meyering  <jim@meyering.net>
53818
53819         Merge from coreutils.
53820
53821         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
53822         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
53823         on some systems one must include <grp.h> before it.
53824         Reported by Christian Krackowizer.
53825
53826 2004-03-30  Jim Meyering  <jim@meyering.net>
53827
53828         Merge from coreutils.
53829
53830         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
53831
53832         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
53833         an empty input stream.
53834
53835         * lib/readtokens.c: Include <stdbool.h>.
53836         (readtoken): Use `size_t' rather than int/long.
53837         All callers adjusted.
53838         Use `bool' rather than `int' where appropriate.
53839         Use memset rather than an explicit loop.
53840         Use x2nrealloc rather than xrealloc.
53841         Allow the use of `\0' as a delimiter.
53842         (readtokens): Likewise.
53843         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
53844
53845 2004-03-30  Jim Meyering  <jim@meyering.net>
53846
53847         * m4/realloc.m4: Remove file, since now it does no more than
53848         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
53849         the `configure.ac' section of module/realloc.
53850         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
53851
53852 2004-03-30  Bruno Haible  <bruno@clisp.org>
53853
53854         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
53855         nonnull.
53856
53857 2004-03-29  Paul Eggert  <eggert@twinsun.com>
53858
53859         Merge changes to getloadavg.c from coreutils and Emacs.
53860
53861         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
53862         Define to an expression, not to the empty string.
53863         Include cloexec.h and xalloc.h.
53864         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
53865         Use set_cloexec_flag rather than rolling our own.
53866         * lib/cloexec.c, lib/cloexec.h: New files.
53867
53868 2004-03-29  Paul Eggert  <eggert@twinsun.com>
53869
53870         * m4/cloexec.m4: New file.
53871
53872 2004-03-18  Paul Eggert  <eggert@twinsun.com>
53873
53874         * lib/getopt.h: Sync with libc CVS.
53875
53876 2004-03-18  Paul Eggert  <eggert@twinsun.com>
53877             Bruno Haible  <bruno@clisp.org>
53878
53879         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
53880         mbswidth.
53881
53882 2004-03-18  Paul Eggert  <eggert@twinsun.com>
53883             Bruno Haible  <bruno@clisp.org>
53884
53885         * lib/mbswidth.h: Include <wchar.h> only if
53886         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
53887         <wchar.h>.
53888         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
53889
53890 2004-03-09  Paul Eggert  <eggert@twinsun.com>
53891
53892         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
53893         Sync with libc CVS.
53894         * lib/getopt_int.h: New file, also synced from libc.
53895
53896 2004-03-09  Paul Eggert  <eggert@twinsun.com>
53897
53898         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
53899         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
53900         Bring back getopt.c, getopt.h, getopt1.c.
53901
53902 2004-03-07  Paul Eggert  <eggert@twinsun.com>
53903
53904         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
53905         All uses changed.  Check for sa_sigaction member; this fixes
53906         a bug first reported by Jason Andrade in
53907         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
53908
53909 2004-03-07  Paul Eggert  <eggert@twinsun.com>
53910
53911         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
53912         '#if' expressions.  Unlike the code it replaces, it does not
53913         depend on (defined _SC_PAGESIZE).  However, it does depend on
53914         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
53915         first reported by Jason Andrade in
53916         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
53917
53918 2004-02-25  Simon Josefsson  <jas@extundo.com>
53919
53920         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
53921
53922 2004-02-25  Simon Josefsson  <jas@extundo.com>
53923
53924         * lib/strdup.h: New file.
53925         * lib/strdup.c: Include it.
53926         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
53927         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
53928
53929 2004-02-23  Karl Berry  <karl@gnu.org>
53930
53931         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
53932         (from fencepost.gnu.org:/gd/gnuorg).
53933
53934 2004-02-23  Karl Berry  <karl@gnu.org>
53935
53936         * config/srclistvars.sh (GNUORG) [karl]: redefine.
53937         * config/srclist.txt: add maintain/standards documents.
53938
53939 2004-02-18  Bruno Haible  <bruno@clisp.org>
53940
53941         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
53942         Reported by Derek Robert Price <derek@ximbiot.com>.
53943
53944 2004-02-16  Karl Berry  <karl@gnu.org>
53945
53946         * config/mkinstalldirs, install-sh: update from automake.
53947
53948 2004-02-06  Karl Berry  <karl@gnu.org>
53949
53950         * m4/po.m4: update from gettext 0.14.1.
53951
53952 2004-02-06  Karl Berry  <karl@gnu.org>
53953
53954         * lib/config.charset: update from gettext 0.14.1.
53955
53956 2004-02-05  Paul Eggert  <eggert@twinsun.com>
53957
53958         Add comments and code, prompted by suggestions from Bruno Haible
53959         for sh-quote.
53960         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
53961         describing the enum quoting_style values.
53962         * lib/quotearg.c (quotearg_alloc): New function.
53963         (quotearg_buffer_restyled): Treat lone { and } as special.
53964         Treat = as special.  Work around bug with older shells
53965         that "see" a '\' that is really the 2nd byte of a multibyte char.
53966         Quote empty string with shell_quoting_style.
53967
53968 2004-02-03  Bruno Haible  <bruno@clisp.org>
53969
53970         * m4/pipe.m4: New file, from GNU gettext.
53971
53972 2004-02-03  Bruno Haible  <bruno@clisp.org>
53973
53974         * lib/pipe.h: New file, from GNU gettext.
53975         * lib/pipe.c: New file, from GNU gettext.
53976
53977 2004-01-27  Bruno Haible  <bruno@clisp.org>
53978
53979         * m4/execute.m4: New file, from GNU gettext.
53980
53981 2004-01-27  Bruno Haible  <bruno@clisp.org>
53982
53983         * lib/execute.h: New file, from GNU gettext.
53984         * lib/execute.c: New file, from GNU gettext.
53985         * lib/w32spawn.h: New file, from GNU gettext.
53986
53987 2004-01-24  Paul Eggert  <eggert@twinsun.com>
53988
53989         Merge from diffutils.
53990
53991         * lib/file-type.c (file_type): Add typed memory objects.
53992         * lib/file-type.h (S_TYPEISTMO): New macro.
53993
53994         * lib/c-stack.h (c_stack_action): Remove argv argument.
53995         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
53996         (die): Don't calculate message unless segv_action returns.
53997         (get_stack_location, min_address_from_argv, max_address_from_argv,
53998         volatile stack_base, volatile_stack_size): Remove.
53999         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
54000         that every segmentation violation is a stack overflow.  (Ouch!)
54001         See Debian bug 136249 (still outstanding) for more info about why
54002         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
54003
54004 2004-01-24  Paul Eggert  <eggert@twinsun.com>
54005
54006         Exit-status fix from coreutils.
54007
54008         Use exit_failure consistently in place of EXIT_FAILURE,
54009         so that program exit statuses are consistent on failure.
54010
54011         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
54012         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
54013         * lib/argmatch.h: Comment fix to match the above.
54014         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
54015         Now a macro referring to exit_failure, instead of a separate
54016         variable.  Include "exitfail.h" to get it.
54017         * lib/xstrtol.h: Include "exitfail.h".
54018         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
54019
54020         * lib/long-options.c (parse_long_options): Use prototype
54021         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
54022         for clarity.
54023
54024 2004-01-21  Jim Meyering  <jim@meyering.net>
54025
54026         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
54027         so as not to conflict with a different-sized __mktime_internal
54028         function in GNU libc.
54029         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
54030         Problem building statically-linked `ls' reported by Michael Brunnbauer.
54031
54032 2004-01-20  Karl Berry  <karl@gnu.org>
54033
54034         * config/config.guess: update from config.
54035
54036         * config/srclistvars.sh: GNUWWWLICENSES for karl.
54037
54038 2004-01-20  Bruno Haible  <bruno@clisp.org>
54039
54040         Safer stack allocation.
54041         * lib/setenv.c: Include allocsa.h.
54042         (alloca): Remove fallback definition.
54043         (freea): Remove macro.
54044         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
54045         instead of freea.
54046
54047 2004-01-20  Bruno Haible  <bruno@clisp.org>
54048
54049         * m4/eealloc.m4: New file, from GNU gettext.
54050
54051 2004-01-20  Bruno Haible  <bruno@clisp.org>
54052
54053         * m4/allocsa.m4: New file, from GNU gettext.
54054
54055 2004-01-20  Bruno Haible  <bruno@clisp.org>
54056
54057         * lib/xallocsa.h: New file, from GNU gettext.
54058         * lib/xallocsa.c: New file, from GNU gettext.
54059
54060 2004-01-20  Bruno Haible  <bruno@clisp.org>
54061
54062         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
54063
54064 2004-01-20  Bruno Haible  <bruno@clisp.org>
54065
54066         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
54067         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
54068         specially.
54069
54070 2004-01-20  Bruno Haible  <bruno@clisp.org>
54071
54072         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
54073         patch.
54074
54075 2004-01-20  Bruno Haible  <bruno@clisp.org>
54076
54077         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
54078
54079 2004-01-20  Bruno Haible  <bruno@clisp.org>
54080
54081         * lib/eealloc.h: New file.
54082
54083 2004-01-20  Bruno Haible  <bruno@clisp.org>
54084
54085         * lib/binary-io.h: Avoid warnings on Cygwin.
54086
54087 2004-01-20  Bruno Haible  <bruno@clisp.org>
54088
54089         * lib/allocsa.h: New file, from GNU gettext.
54090         * lib/allocsa.c: New file, from GNU gettext.
54091
54092 2004-01-18  Karl Berry  <karl@gnu.org>
54093
54094         * doc/gpl.texi, doc/lgpl.texi: new files.
54095
54096 2004-01-18  Karl Berry  <karl@gnu.org>
54097
54098         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
54099         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
54100
54101 2004-01-15  Paul Eggert  <eggert@twinsun.com>
54102
54103         Merge from coreutils.
54104
54105         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
54106         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
54107         (gl_DEFAULT_POSIX2_VERSION): Move
54108         the documentation from 'configure' into 'config.hin',
54109         so that 'configure --help' isn't burdened by it and
54110         we don't have to worry about its formatting there.
54111         Reword the documentation so that it's more succinct
54112         and can be run together into a single paragraph.
54113         * m4/same.m4 (gl_SAME): Check for pathconf.
54114
54115 2004-01-15  Paul Eggert  <eggert@twinsun.com>
54116
54117         Merge from coreutils.
54118
54119         * lib/posixver.c: Include posixver.h.
54120
54121         * lib/same.c: Include <stdbool.h>, <limits.h>.
54122         (_POSIX_NAME_MAX): Define if not defined.
54123         (MIN): New macro.
54124         (same_name): If file names are silently truncated, report
54125         that the file names are the same if they are the same after
54126         the silent truncation.
54127
54128         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
54129         conversion function.
54130         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
54131         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
54132         longer needed.
54133
54134 2004-01-15  Jim Meyering  <jim@meyering.net>
54135
54136         Merge from coreutils.
54137
54138         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
54139         if no library is required.
54140         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
54141         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
54142         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
54143         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
54144         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
54145         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
54146         value, $ac_cv_search_crypt, if it's "none required".
54147         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
54148         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
54149         not gl_FUNC_GETLOADAVG.
54150         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
54151         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
54152
54153 2004-01-15  Jim Meyering  <jim@meyering.net>
54154
54155         Merge from coreutils.
54156
54157         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
54158         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
54159         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
54160
54161         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
54162         optional configure-time default.
54163
54164         * lib/version-etc.c (version_etc_copyright): Update copyright date.
54165
54166         * lib/xreadlink.c (xreadlink): Correct outdated comment.
54167
54168 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
54169
54170         Merge from coreutils.
54171
54172         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
54173         value, $ac_cv_search_nanosleep, if it's "none required".
54174
54175 2004-01-14  Paul Eggert  <eggert@twinsun.com>
54176
54177         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
54178         with like-named macro in fnmatch.c.
54179         (EXT): Use an internal constant instead.
54180
54181         Merge fnmatch patches from glibc.
54182         * lib/fnmatch.c (mbsinit): Remove define.
54183         Add libc_hidden_ver (__fnmatch, fnmatch).
54184         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
54185         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
54186
54187 2004-01-14  Karl Berry  <karl@gnu.org>
54188
54189         * config/install-sh: update from automake.
54190
54191 2004-01-13  Karl Berry  <karl@gnu.org>
54192
54193         * config/install-sh: update from automake.
54194
54195 2004-01-09  Karl Berry  <karl@gnu.org>
54196
54197         * config/install-sh: update from automake.
54198
54199 2004-01-05  Karl Berry  <karl@gnu.org>
54200
54201         * config/config.{sub,guess}: update from config.
54202
54203 2003-12-31  Karl Berry  <karl@gnu.org>
54204
54205         * config/depcomp: update from automake.
54206
54207 2003-12-14  Karl Berry  <karl@gnu.org>
54208
54209         * lib/config.charset: update from gettext-runtime.
54210
54211 2003-12-03  Paul Eggert  <eggert@twinsun.com>
54212
54213         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
54214         Bug reported by Alfred M. Szmidt.
54215
54216 2003-12-03  Bruno Haible  <bruno@clisp.org>
54217
54218         * m4/gettext.m4: Upgrade from gettext-0.13.
54219         * m4/po.m4: Upgrade from gettext-0.13.
54220         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
54221         * m4/intmax.m4: New file, from gettext-0.13.
54222         * m4/printf-posix.m4: New file, from gettext-0.13.
54223
54224 2003-11-29  Karl Berry  <karl@gnu.org>
54225
54226         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
54227
54228 2003-11-25  Paul Eggert  <eggert@twinsun.com>
54229             Bruno Haible  <bruno@clisp.org>
54230
54231         * lib/printf-parse.h: Don't include sys/types.h.
54232         (ARG_NONE): New macro.
54233         (char_directive): Change type of *arg_index fields to size_t.
54234         * lib/printf-parse.c: Don't include sys/types.h.
54235         (SSIZE_MAX): Remove macro.
54236         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
54237         Remove unnecessary overflow check.
54238         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
54239         fields.
54240
54241 2003-11-25  Bruno Haible  <bruno@clisp.org>
54242
54243         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
54244
54245 2003-11-25  Bruno Haible  <bruno@clisp.org>
54246
54247         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
54248         gt_TYPE_SSIZE_T.
54249
54250 2003-11-24  Paul Eggert  <eggert@twinsun.com>
54251
54252         * modules/alloca: Remove dependency on xalloc.
54253
54254 2003-11-24  Paul Eggert  <eggert@twinsun.com>
54255
54256         * lib/alloca.c: Remove dependency on xalloc module.
54257         (xalloc_die): Remove.
54258         (memory_full) [!defined emacs]: New macro.
54259         [!defined emacs]: Don't include xalloc.h.
54260         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
54261         address arithmetic overflows.  Change datatypes a bit to avoid
54262         unnecessary casts.
54263
54264 2003-11-22  Jim Meyering  <jim@meyering.net>
54265
54266         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
54267         s/size/size_t/.
54268
54269 2003-11-21  Karl Berry  <karl@gnu.org>
54270
54271         * config/config.{sub,guess}: update from config.
54272
54273 2003-11-18  Karl Berry  <karl@gnu.org>
54274
54275         * config/config.{sub,guess}: update from config.
54276
54277         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
54278
54279 2003-11-17  Paul Eggert  <eggert@twinsun.com>
54280
54281         * README: Mention that S+T cannot overflow if S is the size of
54282         an existing object and T is sufficiently small.
54283
54284 2003-11-17  Jim Meyering  <jim@meyering.net>
54285
54286         On systems without utime and without a utimes function capable of
54287         dealing with a NULL struct utimbuf* argument, this utime replacement
54288         could -- in unusual circumstances -- leak a file descriptor.
54289         * lib/utime.c: Include <unistd.h> and <errno.h>.
54290         (utime_null): Be sure to close `fd' and to preserve errno.
54291         Reported by Geoff Collyer via Arnold Robbins.
54292
54293 2003-11-17  Bruno Haible  <bruno@clisp.org>
54294
54295         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
54296         (Depends-on): Add xsize.
54297
54298 2003-11-17  Bruno Haible  <bruno@clisp.org>
54299
54300         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
54301
54302 2003-11-17  Bruno Haible  <bruno@clisp.org>
54303
54304         * lib/vasnprintf.c (alloca): Remove fallback definition.
54305         (freea): Remove definition.
54306         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
54307         Reported by Paul Eggert.
54308
54309 2003-11-16  Paul Eggert  <eggert@twinsun.com>
54310             Bruno Haible  <bruno@clisp.org>
54311
54312         Protect against address arithmetic overflow.
54313         * lib/printf-args.h: Include stddef.h.
54314         (arguments): Change type of field 'count' to size_t.
54315         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
54316         'unsigned int' where appropriate.
54317         * lib/printf-parse.h: Include sys/types.h.
54318         (char_directive): Change type of *arg_index fields to ssize_t.
54319         (char_directives): Change type of fields 'count', max_*_length to
54320         size_t.
54321         * lib/printf-parse.c: Include sys/types.h and xsize.h.
54322         (SSIZE_MAX): Define fallback value.
54323         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
54324         instead of 'int' where appropriate. Check a_allocated, d_allocated
54325         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
54326         * lib/vasnprintf.c: Include xsize.h.
54327         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
54328         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
54329         overflow. Avoid wraparound when converting a width or precision from
54330         decimal to binary.
54331
54332 2003-11-16  Bruno Haible  <bruno@clisp.org>
54333
54334         Update from GNU gettext.
54335         * lib/printf-parse.c: Generalize to it can be compiled for wide
54336         strings.
54337         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
54338         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
54339         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
54340         SNPRINTF): New macros.
54341         Don't include <alloca.h> if the file is used inside libintl.
54342         (local_wcslen): New function, for Solaris 2.5.1.
54343         (VASNPRINTF): Use it instead of wcslen.
54344
54345 2003-11-16  Bruno Haible  <bruno@clisp.org>
54346
54347         * lib/xsize.h (xmax): New function.
54348         (xsum, xsum3, xsum4): Declare as "pure" functions.
54349
54350 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54351
54352         * modules/xalloc (Files): Undo latest change, since xalloc.h
54353         no longer needs SIZE_MAX or PTRDIFF_MAX.
54354
54355 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54356
54357         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
54358         gl_PTRDIFF_MAX.
54359
54360 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54361
54362         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
54363         "return", to pacify some unknown compiler.  Problem reported
54364         by Joerg Schilling.
54365
54366 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54367
54368         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
54369         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
54370         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
54371         heuristic is just as accurate as far as we know, and it removes a
54372         dependency on size_max.m4 and ptrdiff_max.m4.
54373
54374 2003-11-11  Bruno Haible  <bruno@clisp.org>
54375
54376         * modules/xsize (Files): Add m4/size_max.m4.
54377         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
54378
54379 2003-11-11  Bruno Haible  <bruno@clisp.org>
54380
54381         * m4/size_max.m4: New file.
54382         * m4/ptrdiff_max.m4: New file.
54383         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
54384         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
54385         (gl_XALLOC): Invoke it.
54386
54387 2003-11-11  Bruno Haible  <bruno@clisp.org>
54388
54389         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
54390         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
54391         defined.
54392
54393 2003-11-10  Paul Eggert  <eggert@twinsun.com>
54394
54395         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
54396         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
54397         rejected some allocations of exactly SIZE_MAX - 2 bytes.
54398         From Bruno Haible.
54399         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
54400         not (size_t) -1, since it's defined here.
54401
54402 2003-11-09  Karl Berry  <karl@gnu.org>
54403
54404         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
54405
54406 2003-11-06  Paul Eggert  <eggert@twinsun.com>
54407
54408         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
54409         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
54410         Reject sizes of exactly SIZE_MAX bytes.
54411         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
54412         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
54413
54414 2003-11-05  Bruno Haible  <bruno@clisp.org>
54415
54416         * lib/xsize.h: Include limits.h, to avoid a possible collision with
54417         SIZE_MAX defined in <limits.h> on Solaris.
54418
54419 2003-11-04  Jim Meyering  <jim@meyering.net>
54420
54421         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
54422         variable names, rather than @VAR@.
54423         * modules/poll: Likewise.
54424
54425 2003-11-04  Bruno Haible  <bruno@clisp.org>
54426
54427         * modules/xsize: New file.
54428         * modules/linebreak: Depend on xsize.
54429         * MODULES.html.sh (func_all_modules): Add xsize.
54430
54431 2003-11-04  Bruno Haible  <bruno@clisp.org>
54432
54433         * m4/xsize.m4: New file.
54434
54435 2003-11-04  Bruno Haible  <bruno@clisp.org>
54436
54437         * lib/xsize.h: New file.
54438         * lib/linebreak.c: Include xsize.h.
54439         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
54440         argument for overflow.
54441         Suggested by Paul Eggert.
54442
54443 2003-11-03  Karl Berry  <karl@gnu.org>
54444
54445         * config/config.{guess,sub}: update from config.
54446
54447 2003-11-03  Jim Meyering  <jim@meyering.net>
54448
54449         * modules/userspec (lib_SOURCES): Add userspec.h.
54450         (Include): Add "userspec.h".
54451         Improve description.
54452
54453 2003-11-03  Jim Meyering  <jim@meyering.net>
54454
54455         * lib/userspec.c: Include "userspec.h".
54456         * lib/userspec.h: New file.
54457
54458 2003-11-03  Bruno Haible  <bruno@clisp.org>
54459
54460         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
54461
54462 2003-11-03  Bruno Haible  <bruno@clisp.org>
54463
54464         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
54465         available, to avoid (extremely rare) race condition.
54466         Suggested by Paul Eggert.
54467
54468 2003-11-02  Karl Berry  <karl@gnu.org>
54469
54470         * config/srclist.txt (vasprintf.c): sync broken, sigh.
54471
54472 2003-10-31  Paul Eggert  <eggert@twinsun.com>
54473
54474         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
54475         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
54476         (read_filesystem_list): Set and use me_type_malloced.
54477         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
54478         whatever the type happens to be), for brevity and consistency.
54479         Check for size calculation overflow on Alphas running OSF/1.
54480
54481 2003-10-31  Jim Meyering  <jim@meyering.net>
54482
54483         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
54484
54485         * lib/linebuffer.c: Include <string.h> for declaration of memset.
54486
54487 2003-10-30  Paul Eggert  <eggert@twinsun.com>
54488             Bruno Haible  <bruno@clisp.org>
54489
54490         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
54491         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
54492
54493 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
54494
54495         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
54496         netbsd*-gnu*.  Suggested by Robert Millan.
54497
54498 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54499
54500         * modules/group-member: Depend on stdbool.
54501
54502 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54503
54504         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
54505
54506 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54507
54508         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
54509         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
54510         after the 'gnu' in these cases.  This fixes some bugs in the
54511         previous change, and is based on suggestions by Robert Millan.
54512
54513 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54514
54515         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
54516         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
54517         no longer needed.
54518         * lib/quotearg.c (quotearg_n_options): Use it.
54519         * lib/group-member.c: Include <stdbool.h>.
54520         (free_group_info): Arg is now const *; don't free arg.
54521         (get_group_info): Now returns bool and accepts struct group_info *,
54522         rather than returning a malloc'ed struct group_info *.
54523         All uses changed.  Check for overflow in internal size calculation.
54524
54525         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
54526         rather than xmalloc/xrealloc.
54527         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
54528         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
54529         conformance bug: the old code used a pointer after freeing the
54530         storage that it addressed.
54531         * lib/hash.c (hash_initialize): Simplify the code by using
54532         xalloc_oversized rather than doing it by hand.
54533         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
54534         the buffer preserved.  Use free and xmalloc instead.
54535         * lib/quotearg.c (quotearg_n_options): Likewise.
54536         Use a simpler test for size overflow.  Don't use xalloc_oversized
54537         because unsigned int might be wider than size_t (!); this suggests
54538         that we should switch from unsigned int to size_t for slot numbers.
54539
54540 2003-10-28  Paul Eggert  <eggert@twinsun.com>
54541
54542         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
54543         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
54544         NetBSD kernels.  Requested by Richard Stallman.
54545
54546 2003-10-27  Paul Eggert  <eggert@twinsun.com>
54547
54548         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
54549         to allocate the returned structure.  Do not allocate a subarray,
54550         as x2nrealloc will do that.
54551         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
54552         instead of xnrealloc.
54553         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
54554
54555 2003-10-27  Bruno Haible  <bruno@clisp.org>
54556
54557         * lib/stdbool_.h: Better support for BeOS.
54558
54559 2003-10-26  Paul Eggert  <eggert@twinsun.com>
54560
54561         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
54562         now uses inline.
54563
54564 2003-10-26  Paul Eggert  <eggert@twinsun.com>
54565
54566         * lib/xalloc.h (xalloc_oversized): New static inline function, for
54567         callers that want to do their own size-overflow checking.  Include
54568         <stdbool.h>, since xalloc_oversized returns bool.
54569         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
54570         to use xalloc_oversized.
54571
54572         Add two functions x2realloc, x2nrealloc, for programs that grow
54573         arrays dynamically by doubling their sizes.
54574         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
54575         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
54576         New functions.
54577
54578         Port to C99 semantics for 'inline' of external functions.
54579         Bug reported by Bruno Haible.
54580         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
54581         with the old contents of xnmalloc.
54582         (xnmalloc, xmalloc): Use it.
54583         (xnrealloc_inline): New static inline function,
54584         with the old contents of xnrealloc.
54585         (xnrealloc, xrealloc): Use it.
54586
54587         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
54588         that.
54589
54590 2003-10-26  Karl Berry  <karl@gnu.org>
54591
54592         * config/srclist.txt (COPYING.DOC): no longer available from
54593         /gd/gnuorg; don't know where the ultimate source is.
54594
54595 2003-10-25  Paul Eggert  <eggert@twinsun.com>
54596
54597         Fix several address-calculation bugs in the hash modules,
54598         plus some minor code cleanup.
54599
54600         * lib/hash.h: Include <stdbool.h>, for bool.
54601         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
54602         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
54603         hash_get_n_entries, hash_get_max_bucket_length,
54604         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
54605         hash_rehash): Use size_t rather than unsigned.
54606         * lib/hash.c (struct hash_table, hash_get_n_buckets,
54607         hash_get_n_buckets_used, hash_get_n_entries,
54608         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
54609         hash_get_entries, hash_do_for_each, hash_string, is_prime,
54610         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
54611         Likewise.
54612         (SIZE_MAX): Define if not defined.
54613         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
54614         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
54615         hash_print):
54616         Use const * when possible.
54617         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
54618         (check_tuning): Fix bug: if tuning parameters were very close to
54619         0 or 1, rounding errors could have caused subscript violations.
54620         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
54621         (hash_initialize): Add 'fail:' label
54622         to free table and return NULL, and use it to simplify code.
54623         Use calloc rather than clearing the storage ourself.
54624         (hash_initialize, hash_rehash): Check for arithmetic overflow in
54625         buffer size calculations.
54626         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
54627         Include <stddef.h>, for size_t.
54628         * lib/hash-pjw.c (hash_pjw): Likewise.
54629         Switch to method described by Bruno Haible.
54630         Include <limits.h>, for CHAR_BIT.
54631         (SIZE_BITS): New macro.
54632
54633 2003-10-23  Paul Eggert  <eggert@twinsun.com>
54634
54635         * m4/getline.m4 (AM_FUNC_GETLINE):
54636         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
54637         hosts.  Problem reported by Derek Robert Price in
54638         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
54639         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
54640         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
54641
54642 2003-10-21  Paul Eggert  <eggert@twinsun.com>
54643
54644         * lib/getndelim2.c (getndelim2): When size calculation overflows,
54645         ceiling the allocation at NMAX bytes rather than silently
54646         discarding input bytes before NMAX is reached.  This makes
54647         a difference only if NMAX exceeds SIZE_MAX / 2.
54648
54649         * lib/obstack.c: Merge from glibc.
54650         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
54651         Add libc_hidden_def (_obstack_newchunk).
54652         (_obstack_free) [! defined _LIBC]: Remove.
54653         [defined _LIBC]: Make a strong alias from obstack_free, rather than
54654         a clone of the function body.
54655         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
54656         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
54657
54658         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
54659         glibc.
54660         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
54661         arg to memcpy.
54662
54663         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
54664         (obstack_ptr_grow_fast, obstack_int_grow_fast):
54665         Don't use lvalue casts, as GCC plans to remove support for them
54666         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
54667         was also present in the non-GCC version, indicating that this
54668         code had always been buggy and had never been widely used.
54669         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
54670         Use the fast variant of each macro, rather than copying the
54671         definiens of the fast variant; that way, we'll be more likely to
54672         catch future bugs in the fast variants.
54673
54674 2003-10-20  Bruno Haible  <bruno@clisp.org>
54675
54676         * modules/wait-process: New file.
54677         * MODULES.html.sh (func_all_modules): Add wait-process.
54678
54679 2003-10-20  Bruno Haible  <bruno@clisp.org>
54680
54681         * m4/wait-process.m4: New file.
54682
54683 2003-10-20  Bruno Haible  <bruno@clisp.org>
54684
54685         * lib/wait-process.h: New file, from GNU gettext.
54686         * lib/wait-process.c: New file, from GNU gettext.
54687
54688 2003-10-19  Jim Meyering  <jim@meyering.net>
54689
54690         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
54691         HPUX 10.20.
54692
54693 2003-10-18  Karl Berry  <karl@gnu.org>
54694
54695         * config/config.guess: update from config.
54696
54697 2003-10-16  Paul Eggert  <eggert@twinsun.com>
54698
54699         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
54700         (getgroups): First arg is int, not size_t.
54701         Don't let 'free' mangle errno.
54702
54703 2003-10-16  Paul Eggert  <eggert@twinsun.com>
54704
54705         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
54706
54707 2003-10-16  Karl Berry  <karl@gnu.org>
54708
54709         * config/config.{guess,sub}: update from config.
54710
54711 2003-10-16  Jim Meyering  <jim@meyering.net>
54712
54713         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
54714         memcpy.
54715
54716 2003-10-15  Paul Eggert  <eggert@twinsun.com>
54717
54718         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
54719         (SIZE_MAX): Remove.
54720         (new_exclude, add_exclude_file): Initial size no longer needs to
54721         be a power of 2.
54722         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
54723         our own address arithmetic overflow checking.
54724
54725         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
54726         (fnmatch): Do not alloca more than 2000 wide characters;
54727         instead, use malloc for large buffers.
54728         Check for address arithmetic overflow, and return -1
54729         with errno set to ENOMEM in that case.
54730         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
54731         (NEW_PATTERN): Do not alloca more than 8000 bytes;
54732         instead, return -1.  Check for address arithmetic overflow.
54733
54734 2003-10-14  Paul Eggert  <eggert@twinsun.com>
54735
54736         Handle invalid suffixes and overflow independently, so that
54737         callers can treat them independently as needed.  Fix some bugs in
54738         suffix handling, e.g., "100k@" was not diagnosed as an invalid
54739         suffix for a human-readable blocksize.  The major caller-visible
54740         change is the addition of a new
54741         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
54742         that both overflow and suffix chars were found.
54743
54744         * lib/human.c (humblock): Don't check separately for invalid suffix
54745         char; that is xstrtoumax's job (now that its bug is fixed).
54746         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
54747         INTMAX_MAX]: New macros.
54748         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
54749         TYPE_MAXIMUM): New macros.
54750         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
54751         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
54752         if overflow occurs, as it's what __strtol does and it's more useful
54753         in practice.
54754         (__xstrtol): If __strtol reports some error other than ERANGE,
54755         reflect it to the caller as LONGINT_INVALID.  If it reports
54756         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
54757         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
54758         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
54759         value.
54760         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
54761         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
54762         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
54763         [defined UINTMAX_MAX]: New macros.
54764
54765 2003-10-14  Bruno Haible  <bruno@clisp.org>
54766
54767         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
54768
54769 2003-10-14  Bruno Haible  <bruno@clisp.org>
54770
54771         * m4/sig_atomic_t: New file, from GNU gettext.
54772         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
54773
54774 2003-10-14  Bruno Haible  <bruno@clisp.org>
54775
54776         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
54777         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
54778         Also use volatile where needed.
54779
54780 2003-10-12  Paul Eggert  <eggert@twinsun.com>
54781
54782         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
54783         Change maintainer from Bruno Haible to 'all'.
54784
54785 2003-10-12  Paul Eggert  <eggert@twinsun.com>
54786
54787         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
54788
54789 2003-10-12  Paul Eggert  <eggert@twinsun.com>
54790
54791         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
54792         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
54793         and define in terms of the other primitives.
54794         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
54795         (SIZE_MAX): Define if not already defined.
54796         (array_size_overflow): New function.
54797         (xalloc_die): Abort instead of exiting if 'error' returns.
54798         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
54799         (xmalloc, xrealloc): Use them.
54800         (xcalloc): Check for address arithmetic overflow.
54801         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
54802         a bit faster than strcpy.
54803
54804 2003-10-10  Simon Josefsson  <jas@extundo.com>
54805
54806         * modules/argp (Depends-on): Add restrict and strcase.
54807
54808 2003-10-10  Simon Josefsson  <jas@extundo.com>
54809
54810         * m4/argp.m4: Add AC_C_INLINE.
54811
54812 2003-10-08  Paul Eggert  <eggert@twinsun.com>
54813
54814         Merge getpass from libc, plus a few fixes.
54815
54816         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
54817         Include <stdbool.h>.
54818         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
54819         __fsetlocking to empty.
54820         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
54821         do include <bits/libc-lock.h>.
54822         Do not include <fcntl.h>; not needed.
54823         [_LIBC]: Include <wchar.h>.
54824         (NOTCANCEL_MODE): New macro.
54825         (flockfile, funlockfile) [_LIBC]: New macros.
54826         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
54827         [!_LIBC]: New macros.
54828         (call_fclose): New function.
54829         (getpass): Use it.  Save tty stream separately; this simplifies the
54830         code and makes it more reliable if stdin happens to equal stdout.
54831         Invoke __fsetlocking on tty.
54832         Handle thread cancellation if needed.
54833         Namespace cleanup (use __tcgetattr, __getline).
54834         Use bool for Booleans.
54835         [USE_IN_LIBIO]: Handle wide streams.
54836         [!_LIBC]: Unconditionally do the fseek, since we don't know what
54837         stream might go where.
54838
54839         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
54840         doesn't have to include <stdio.h> before us.
54841         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
54842         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
54843         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
54844         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
54845         if not declared, so that we can use getpass.c code from libc without
54846         rewriting it.
54847         (flockfile, ftrylockfile, funlockfile): New macros.
54848
54849 2003-10-08  Paul Eggert  <eggert@twinsun.com>
54850
54851         * modules/getpass: Depend on stdbool.
54852
54853 2003-10-08  Paul Eggert  <eggert@twinsun.com>
54854
54855         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
54856
54857 2003-10-07  Karl Berry  <karl@gnu.org>
54858
54859         * config/config.{guess,sub}: update from config.
54860
54861 2003-10-06  Jim Meyering  <jim@meyering.net>
54862             Bruno Haible  <bruno@clisp.org>
54863
54864         This lets translators provide better translations for the
54865         "Written by ..." part of --version output.
54866         * lib/version-etc.h: Include stdarg.h.
54867         (version_etc_copyright): Declare as readonly.
54868         (version_etc): Make this function variadic with a NULL-terminated list
54869         of author name strings.
54870         (version_etc_va): New declaration.
54871         * lib/version-etc.c: Include stdarg.h, stdlib.h.
54872         (version_etc_copyright): Declare as readonly.
54873         (version_etc_va): New function. Provide a different translatable string
54874         for each possible number of authors < 10. Abbreviate when there are 10
54875         authors or more.
54876         (version_etc): Make this function variadic. Call version_etc_va.
54877         Suggestion from Gary V. Vaughan.
54878
54879         * lib/long-options.h (parse_long_options): Change prototype: the
54880         authors string is moved to the end and becomes variadic.
54881         * lib/long-options.c: Include stdarg.h.
54882         (parse_long_options): Make this function variadic, too.
54883         Call version_etc_va, not version_etc.
54884
54885 2003-10-06  Bruno Haible  <bruno@clisp.org>
54886
54887         * modules/version-etc-2: Remove file.
54888         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
54889
54890 2003-10-06  Bruno Haible  <bruno@clisp.org>
54891
54892         * modules/fatal-signal: New file.
54893         * MODULES.html.sh (func_all_modules): Add fatal-signal.
54894
54895 2003-10-06  Bruno Haible  <bruno@clisp.org>
54896
54897         * m4/fatal-signal.m4: New file.
54898         * m4/signalblocking.m4: New file, from GNU gettext.
54899
54900 2003-10-06  Bruno Haible  <bruno@clisp.org>
54901
54902         * lib/version-etc-2.h: Remove file.
54903         * lib/version-etc-2.c: Remove file.
54904
54905 2003-10-06  Bruno Haible  <bruno@clisp.org>
54906
54907         * lib/fatal-signal.h: New file, from GNU gettext.
54908         * lib/fatal-signal.c: New file, from GNU gettext.
54909
54910 2003-10-05  Paul Eggert  <eggert@twinsun.com>
54911
54912         * README: Rework advice for preventing empty .o files.
54913         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
54914         not <sys/types.h>.
54915
54916 2003-10-04  Karl Berry  <karl@gnu.org>
54917
54918         * lib/argp*: update from libc.
54919
54920 2003-10-04  Karl Berry  <karl@gnu.org>
54921
54922         * config/config.{guess,sub}: update from config.
54923
54924 2003-10-02  Bruno Haible  <bruno@clisp.org>
54925
54926         * modules/lchown (Include): Add lchown.h.
54927         * modules/time_r (Include): Use "..." syntax.
54928         * modules/xgetdomainname (Include): Add xgetdomainname.h.
54929
54930 2003-10-01  Simon Josefsson  <jas@extundo.com>
54931
54932         * MODULES.html.sh (func_all_modules): Move gethostname from section
54933         'based on' to section 'lacking' POSIX:2001.
54934
54935 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
54936
54937         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
54938         to output mode on the same stream.
54939
54940 2003-09-29  Paul Eggert  <eggert@twinsun.com>
54941
54942         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
54943         Fix arg typo in previous patch.
54944
54945 2003-09-28  Jim Meyering  <jim@meyering.net>
54946
54947         * lib/error.c: Correct cpp indentation.
54948
54949 2003-09-27  Paul Eggert  <eggert@twinsun.com>
54950
54951         * modules/free: New file.
54952
54953 2003-09-27  Paul Eggert  <eggert@twinsun.com>
54954
54955         * m4/free.m4: New file.
54956
54957 2003-09-27  Paul Eggert  <eggert@twinsun.com>
54958
54959         * lib/minmax.h (MIN, MAX)
54960         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
54961         Omit the special code that used __typeof__, since we worry that
54962         it could be more trouble than it's worth.  See:
54963         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
54964         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
54965
54966         * lib/free.c: New file.
54967
54968 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
54969
54970         Trivial fixes to Makefile.am parts of module listings.
54971         * modules/strstr: Append strstr.h to lib_SOURCES.
54972         * modules/strcase: Likewise, for strcase.h.
54973
54974 2003-09-27  Karl Berry  <karl@gnu.org>
54975
54976         * config/mkinstalldirs: update from automake.
54977
54978 2003-09-26  Paul Eggert  <eggert@twinsun.com>
54979
54980         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
54981         (error_tail): Do not loop, reallocating temporary buffer, since
54982         the output cannot contain more wide characters than the input
54983         contains bytes, the size must be big enough already.  This avoids
54984         one potential size overflow calculation.  Check for size overflow
54985         when calculating temporary buffer size.  Free temporary buffer
54986         when done, if it was allocated with malloc; this plugs a memory
54987         leak.  Remove casts from void * to pointers, that are no longer
54988         needed now that we're assuming C89 or better.
54989
54990         Merge error changes from glibc.
54991
54992         * lib/error.c, error.h: Update copyright notice header to match glibc.
54993         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
54994         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
54995         Disable cancellation while printing error.
54996         * lib/error.h: Prepend __ to parameter names.
54997
54998 2003-09-26  Jim Meyering  <jim@meyering.net>
54999
55000         * lib/error.c (error_tail): Move some declarations
55001         into inner scope where the local variables are used.
55002
55003 2003-09-26  Bruno Haible  <bruno@clisp.org>
55004
55005         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
55006         stpncpy().
55007         Don't define stpncpy through config.h; it's now done through stpncpy.h.
55008
55009 2003-09-26  Bruno Haible  <bruno@clisp.org>
55010
55011         * lib/stpncpy.h (gnu_stpncpy): New declaration.
55012         (stpncpy): Define as alias for gnu_stpncpy.
55013         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
55014
55015 2003-09-25  Simon Josefsson  <jas@extundo.com>
55016
55017         * lib/xgetdomainname.h: New file.
55018         * lib/xgetdomainname.c: New file.
55019
55020 2003-09-25  Simon Josefsson  <jas@extundo.com>
55021             Bruno Haible  <bruno@clisp.org>
55022
55023         * modules/getdomainname: New file.
55024         * modules/xgetdomainname: New file.
55025         * MODULES.html.sh (func_all_modules): Add getdomainname,
55026         xgetdomainname.
55027
55028 2003-09-25  Simon Josefsson  <jas@extundo.com>
55029             Bruno Haible  <bruno@clisp.org>
55030
55031         * m4/getdomainname.m4: New file.
55032
55033 2003-09-25  Simon Josefsson  <jas@extundo.com>
55034             Bruno Haible  <bruno@clisp.org>
55035
55036         * lib/getdomainname.h: New file.
55037         * lib/getdomainname.c: New file.
55038
55039 2003-09-25  Karl Berry  <karl@gnu.org>
55040
55041         * lib/argp-fmtstream.c, argp-help.c: update from libc.
55042
55043 2003-09-25  Karl Berry  <karl@gnu.org>
55044
55045         * config/install-sh: update from automake.
55046
55047 2003-09-25  Bruno Haible  <bruno@clisp.org>
55048
55049         * modules/version-etc-2: New file, from modules/version-etc with
55050         modifications.
55051         * MODULES.html.sh (func_all_modules): Add version-etc-2.
55052
55053 2003-09-25  Bruno Haible  <bruno@clisp.org>
55054
55055         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
55056         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
55057
55058 2003-09-24  Simon Josefsson  <jas@extundo.com>
55059
55060         * modules/xgethostname: Add xgethostname.h.
55061
55062 2003-09-24  Paul Eggert  <eggert@twinsun.com>
55063
55064         * lib/linebuffer.c (freebuffer): Don't free the argument, just
55065         the buffer associated with the argument.  Bug reported by
55066         Simon Josefsson.
55067
55068 2003-09-24  Paul Eggert  <eggert@twinsun.com>
55069
55070         * README: Document assumptions that 'int' is at least 32 bits
55071         wide, that integer arithmetic is 2's complement without overflow,
55072         that there are no holes in integer values, that adding sizes of
55073         two nonoverlapping objects can't overflow, and that all-bits-zero
55074         yields scalar zero.  Fix spelling and capitalization typos.
55075
55076 2003-09-19  Karl Berry  <karl@gnu.org>
55077
55078         * lib/argp.h: update from libc.
55079
55080 2003-09-17  Paul Eggert  <eggert@twinsun.com>
55081
55082         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
55083         to avoid spurious warnings like "AC_RUN_IFELSE was called before
55084         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
55085
55086 2003-09-17  Paul Eggert  <eggert@twinsun.com>
55087
55088         * gnulib-tool: Use "test -h", not "test -L", for portability
55089         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
55090         (tags_regexp): Remove, since \| doesn't conform to POSIX.
55091         (sed_extract_prog): Issue s commands one-by-one, rather than
55092         using \| in one s command.
55093
55094 2003-09-16  Paul Eggert  <eggert@twinsun.com>
55095
55096         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
55097         input error, instead of returning NULL the next time we are called
55098         (and therefore losing track of errno).
55099
55100 2003-09-16  Bruno Haible  <bruno@clisp.org>
55101
55102         * gnulib-tool (func_create_testdir): Warn about duplicated
55103         dependencies.
55104
55105 2003-09-15  Paul Eggert  <eggert@twinsun.com>
55106
55107         * modules/argmatch, modules/fatal, modules/obstack,
55108         modules/xalloc, modules/xgethostname: Sort dependencies by
55109         importance, not alphabetically.
55110
55111 2003-09-15  Paul Eggert  <eggert@twinsun.com>
55112
55113         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
55114         fails, so that the caller gets the proper errno.
55115
55116         * lib/readutmp.c (read_utmp): Likewise.
55117         Check for fstat error.  Close stream and free storage
55118         when failing.
55119
55120 2003-09-14  Karl Berry  <karl@gnu.org>
55121
55122         * config/srclist.txt (strdup.c): disable for c89 changes.
55123
55124 2003-09-14  Jim Meyering  <jim@meyering.net>
55125
55126         * lib/getloadavg.c: Correct cpp indentation.
55127         * lib/strdup.c: Likewise.
55128         * lib/vasnprintf.c: Likewise.
55129
55130 2003-09-14  Bruno Haible  <bruno@clisp.org>
55131
55132         * modules/fwriteerror: New file.
55133         * MODULES.html.sh (func_all_modules): Add fwriteerror.
55134
55135 2003-09-14  Bruno Haible  <bruno@clisp.org>
55136
55137         * lib/fwriteerror.h: New file.
55138         * lib/fwriteerror.c: New file.
55139
55140 2003-09-12  Paul Eggert  <eggert@twinsun.com>
55141
55142         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
55143         modules/xgethostname, modules/xalloc: Depend on exit.
55144
55145 2003-09-12  Paul Eggert  <eggert@twinsun.com>
55146
55147         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
55148
55149         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
55150         and AC_MINIX, too, so that their extensions are available.
55151
55152         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
55153         This macro has been superseded by gl_BACKUPFILE.
55154
55155         More patches to assume C89 or better.
55156
55157         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
55158
55159         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
55160         unconditionally.
55161         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
55162         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
55163         Include <string.h>, <stdlib.h> unconditionally.
55164         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
55165         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
55166         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
55167         headers or for string.h.
55168         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
55169         or strtoul.
55170
55171         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
55172         headers.
55173         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
55174         * m4/userspec.m4 (gl_USERSPEC): Likewise.
55175         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
55176         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
55177         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55178         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
55179         memcpy, memset.
55180         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
55181         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
55182         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
55183         strtol.
55184         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
55185         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
55186         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
55187         strtoul.
55188
55189 2003-09-12  Paul Eggert  <eggert@twinsun.com>
55190
55191         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
55192         * lib/obstack.c [!defined _LIBC]: Likewise.
55193         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
55194         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
55195         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
55196
55197         More changes to assume C89 or better.
55198
55199         * lib/error.c (error_tail): Assume vprintf.
55200
55201         * lib/argmatch.c (getenv): Remove decl.
55202         * lib/progreloc.c (get_full_program_name): Define via prototype.
55203         * lib/setenv.c (clearenv): Likewise.
55204         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
55205         needed.
55206         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
55207         (malloc, memcpy): Remove decls.
55208         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
55209         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
55210         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55211         (memcpy): Remove macro.
55212         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
55213         (__P): Remove.  All uses removed.
55214         (PTR): Remove.  All uses changed to void *.
55215         (CHAR_BIT, NULL): Remove.
55216         (spaces, zeros, memset_space, memset_zero)
55217         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
55218         Remove.
55219         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
55220         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
55221         Define with prototype.
55222         Remove now-unnecessary prototype decl.
55223         (extra_args_spec): Assume ANSI C.  All uses changed.
55224         (extra_args_spec_iso): Remove.
55225         (my_strftime, emacs_strftimeu): Define via prototype.
55226         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
55227         unconditionally.
55228         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
55229         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
55230         (strtoul, strtol): Remove decls.
55231         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
55232         LONG_MAX): Remove.
55233         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55234         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
55235         (LOCALE_PARAM_PROTO): New macro.
55236         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
55237         (INTERNAL (strtol), strtol): Define with a prototype.
55238         (PARAMS): Remove.  All uses removed.
55239         * lib/tempname.c: Include <string.h> unconditionally.
55240         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
55241         * lib/xgethostname.c (main): Define with a prototype.
55242         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
55243         Include <stdlib.h> unconditionally.
55244         (calloc, malloc, realloc, free): Remove decls.
55245         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
55246         Include <stdlib.h> unconditionally.  Sort include file names.
55247         (strtod): Remove.
55248         (xstrtod): Define with a prototype.
55249         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
55250         (strtol, strtoul): Remove decls.
55251
55252 2003-09-11  Paul Eggert  <eggert@twinsun.com>
55253
55254         More patches to assume C89 or better.
55255         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
55256         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
55257         string.h, memchr, STDC_HEADERS.
55258
55259 2003-09-11  Paul Eggert  <eggert@twinsun.com>
55260
55261         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
55262         Include <stdlib.h>, <string.h> unconditionally.
55263         Remove now-unnecessary cast to char *.
55264         * lib/strnlen.c: Include <string.h> unconditionally.
55265         * lib/yesno.c (yesno): Define with a prototype.
55266
55267 2003-09-11  Bruno Haible  <bruno@clisp.org>
55268
55269         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
55270
55271 2003-09-10  Jim Meyering  <jim@meyering.net>
55272
55273         * lib/error.c: Correct indentation of cpp directives.
55274
55275 2003-09-10  Bruno Haible  <bruno@clisp.org>
55276
55277         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
55278         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
55279         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
55280         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
55281         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
55282         <stdlib.h> and <string.h> checks.
55283         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
55284         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
55285
55286 2003-09-10  Bruno Haible  <bruno@clisp.org>
55287
55288         * lib/strcspn.c: Include <string.h> unconditionally.
55289         * lib/strpbrk.c: Include <string.h> unconditionally.
55290         * lib/strstr.c: Include <string.h> unconditionally.
55291         * lib/unicodeio.c: Include <string.h> unconditionally.
55292         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
55293         * lib/unsetenv.c: Likewise.
55294         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
55295         * lib/yesno.c: Include <stdlib.h> unconditionally.
55296         (rpmatch): Add prototype.
55297
55298 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55299
55300         More patches to assume C89 or better.
55301         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
55302         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
55303         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
55304         or for string.h.
55305         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
55306         stdlib.h.
55307         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
55308         C headers.
55309         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
55310         string.h.
55311         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
55312         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
55313         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
55314         or for string.h.
55315         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
55316         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
55317         C headers.
55318         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
55319         memcpy.
55320         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
55321         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
55322         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
55323         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
55324         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
55325         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
55326         string.h, free.
55327         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
55328         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
55329         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
55330         C headers, or for string.h.
55331         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
55332         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
55333         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
55334         headers, memory.h, stdlib.h, string.h, strings.h.
55335         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
55336         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
55337         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
55338         strchr.
55339         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
55340         headers, memory.h, string.h.
55341         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
55342         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
55343         free.
55344         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
55345         headers.
55346         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
55347         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
55348         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
55349         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
55350         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
55351
55352 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55353
55354         More K&R removal.
55355
55356         * lib/acosl.c (main): Use a prototype.
55357         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
55358         tanl.c: Likewise.
55359
55360         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
55361
55362         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
55363         (getopt, etopt_long, getopt_long_only, _getopt_internal)
55364         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
55365         with a prototype.
55366         * lib/getopt.c (const): Remove macro.
55367         Include <string.h> unconditionally.
55368         (my_index): Remove; all uses changed to strchr.
55369         (strlen): Remove decl.
55370         (exchange): Remove forward decl; no longer needed.
55371         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
55372         Define with prototype.
55373         * lib/getopt1.c (const): Remove macro.
55374         (getopt_long, getopt_long_only, main): Define with prototype.
55375
55376         * lib/getugroups.c: Include <string.h> unconditionally.
55377
55378         * lib/getusershell.c: Include <stdlib.h> unconditionally.
55379         (getusershell, setusershell, endusershell, readname, main):
55380         Define with prototypes.
55381
55382         * lib/group-member.c: Include group-member.h first.
55383         Include <stdlib.h> unconditionally.
55384
55385         * lib/hard-locale.c: Include hard-locale.h first.
55386         Include <stdlib.h>, <string.h> unconditionally.
55387
55388         * lib/hash.c (free, malloc): Remove decls.
55389         Include <stdlib.h> unconditionally.
55390
55391         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
55392         (getenv): Do not declare.
55393
55394         * lib/idcache.c: Include <string.h> unconditionally.
55395
55396         * lib/long-options.c: Include long-options.h first, to test interface.
55397         Include <stdlib.h> unconditionally.
55398
55399         * lib/makepath.c: Include makepath.h first, to test interface.
55400         Include <stdlib.h> and <string.h> unconditionally.
55401
55402         * lib/linebuffer.c: Include <stdlib.h>.
55403         (free): Remove decl.
55404
55405         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
55406         stddef.h. rpl_malloc returns void *, not char *.
55407         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
55408         prototype.
55409
55410         * lib/md5.h: Include <limits.h> unconditionally.
55411         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
55412         (__P): Remove; all uses removed.
55413         * lib/md5.c: Include "md5.h" first.
55414         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
55415         md5_buffer, md5_process_bytes, md5_process_block):
55416         Define with prototypes.
55417         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
55418         * lib/sha.c: Include "sha.h" first.
55419         Include <stdlib.h>, <string.h> unconditionally.
55420
55421         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
55422         * lib/memcmp.c (__ptr_t): Likewise.
55423         * lib/memrchr.c (__ptr_t): Likewise.
55424         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
55425         Include <string.h> unconditionally.
55426         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
55427         * lib/memchr.c: Include <stdlib.h> unconditionally.
55428         * lib/memchr.c (LONG_MAX): Remove.
55429         * lib/memrchr.c (LONG_MAX): Likewise.
55430         * lib/memchr.c (__memchr): Define via a prototype.
55431         * lib/memrchr.c (__memrchr): Likewise.
55432         * lib/memcmp.c (__P): Remove, and remove all uses.
55433         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
55434         Remove forward decls; no longer needed.
55435         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
55436         Use types required by C89 in prototype.
55437
55438         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
55439         * lib/savedir.c: Likewise.
55440         * lib/mkdir.c (free): Remove decl.
55441         * lib/rmdir.c (rmdir): Define with a prototype.
55442         * lib/savedir.c: Include savedir.h first, to test interface.
55443
55444         * lib/mktime.c (STDC_HEADERS): Remove.
55445         Include <stdlib.h>, <string.h> unconditionally.
55446
55447         * lib/modechange.c: Include <stdlib.h> unconditionally.
55448         (malloc): Remove decl.
55449
55450         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
55451         (free): Remove decl.
55452
55453         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
55454         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
55455         (This type really should be intptr_t, but that's a C99ism.)
55456         (_obstack_memcpy): Remove: all uses changed to memcpy.
55457         Include <string.h> unconditionally.
55458         (struct obstack): Assume __STDC__ for types of members
55459         chunkfun, freefun, extra_arg.
55460         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
55461         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
55462         obstack_begin, obstack_specify_allocation,
55463         obstack_specify_allocation_with_arg, obstack_chunkfun,
55464         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
55465         Remove unprototyped decls and the macros that use them.
55466         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
55467         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
55468         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
55469         (defined __STDC__ && __STDC__)]:
55470         Remove nonprototyped code.
55471         Include <stdlib.h> unconditionally.
55472         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
55473         _obstack_allocated_p, _obstack_free, obstack_free,
55474         _obstack_memory_used, print_and_abort):
55475         Define using prototypes.
55476         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
55477         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
55478         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
55479         obstack_next_free, obstack_object_size, obstack_room) [0]:
55480         Remove unused, unprototyped code.
55481
55482         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
55483
55484         * lib/physmem.c (physmem_total, physmem_available, main): Define
55485         with prototypes.
55486
55487         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
55488         (main): Define with a prototype.
55489
55490         * lib/posixver.c (getenv): Remove decl.
55491
55492         * lib/putenv.c (malloc): Returns void *, not char *.
55493         Include <string.h> unconditionally.
55494         (strchr, memcpy, NULL): Do not define.
55495
55496         * lib/readtokens.c: Include readtokens.h first, to test interface.
55497         Include <stdlib.h>, <string.h> unconditionally.
55498         (init_tokenbuffer): Define with a prototype.
55499
55500         * lib/regex.c (PARAMS): Remove.  All uses removed.
55501         All uses of _RE_ARGS removed, too.
55502         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
55503         unconditionally.
55504         (bzero): Assume memset exists.
55505         (memcmp, memcpy, NULL): Remove.
55506         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
55507         char, or assignments to local vars of type signed char.
55508         (init_syntax_once, PREFIX(extract_number_and_incr),
55509         PREFIX(print_partial_compiled_pattern),
55510         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
55511         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
55512         PREFIX(regex_grow_registers), PREFIX(regex_compile),
55513         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
55514         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
55515         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
55516         wcs_compile_range, byte_compile_range, truncate_wchar,
55517         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
55518         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
55519         count_mbs_length, wcs_re_match_2_internal,
55520         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
55521         PREFIX(alt_match_null_string_p),
55522         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
55523         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
55524         regfree, PREFIX(extract_number)): Define with prototype.  Remove
55525         now-unnecessary declaration, if any.
55526         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
55527         regcomp, regexec):
55528         Remove now-unnecessary casts among pointer types.
55529         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
55530
55531         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
55532         (free): Remove decl.
55533
55534         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
55535
55536         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
55537         (free): Remove decl.
55538
55539         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
55540         * lib/xgetcwd.c: Likewise.
55541
55542         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
55543         (free): Remove decl.
55544
55545         * lib/strchrnul.c (strchrnul): Define with a prototype.
55546         Fix bug: c_in was not converted to char before searching.
55547
55548         The following changes are not K&R related:
55549
55550         * lib/group-member.h: Include <sys/types.h>, so that this file is
55551         self-contained.
55552         * lib/makepath.h: Likewise.
55553
55554         * lib/getusershell.c (readname, default_index, line_size, readname):
55555         Use size_t, not int, for sizes.
55556         (readname): If the size overflows, report an error instead of
55557         looping forever.
55558
55559 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55560
55561         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
55562         libc.
55563
55564 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55565
55566         * README: New section: portability guidelines.
55567
55568 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
55569
55570         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
55571         C89 spec.
55572
55573 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
55574
55575         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
55576
55577 2003-09-08  Paul Eggert  <eggert@twinsun.com>
55578
55579         Assume C89 or better; remove K&R cruft.
55580         A few of these changes were first proposed by Derek Robert Price
55581         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
55582
55583         * lib/addext.c: Include <string.h> unconditionally.
55584         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
55585         Don't declare getenv or malloc.
55586
55587         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
55588         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
55589         (NULL): Remove.
55590         (find_stack_direction, alloca): Use prototypes.
55591
55592         * lib/atexit.c (atexit): Define using a prototype.
55593
55594         * lib/basename.c, dirname.c, stripslash.c:
55595         Include <string.h> unconditionally.
55596
55597         * lib/bcopy.c: Include <stddef.h>.
55598         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
55599
55600         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
55601
55602         * lib/error.h (error, error_at_line, error_print_progname)
55603         [! (defined (__STDC__) && __STDC__)]: Remove decls.
55604         * lib/error.c: Include error.h first, to check interface.
55605         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
55606         (VA_START): Remove; all uses changeed to va_start.
55607         (exit, strerror): Remove decls.
55608         (error_print_progname): Prototype uncondionally.
55609         Don't include <errno.h>; no longer needed.
55610         (private_strerror): Remove.
55611         (error_tail): Always define.
55612         (error, error_at_line): Assume C89 or better; always use prototypes.
55613         * lib/fatal.c: Include "fatal.h" first, to test interface.
55614         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
55615         (VA_START): Remove; all uses changed to va_start.
55616         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
55617         this case.
55618         (exit): Remove decl.
55619         (fatal): Prototype unconditionally.  Assume va_start works.
55620         Abort at end, to pacify gcc.
55621
55622         * lib/euidaccess.c (main): Define with a prototype.
55623
55624         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
55625
55626         * lib/exitfail.c: Include <stdlib.h> unconditionally.
55627
55628         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
55629         prototypes.
55630         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
55631         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
55632         (getenv): Remove decl.
55633         (fnmatch): Define using a prototype.
55634         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
55635         (FCT): Define using a prototype.
55636
55637         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
55638
55639         * lib/gethostname.c: Include <stddef.h>.
55640         (gethostname): Define with prototype.  Length is size_t, not int.
55641
55642 2003-09-08  Paul Eggert  <eggert@twinsun.com>
55643
55644         Assume C89 or better; remove K&R cruft.
55645         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
55646         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
55647         string.h, getenv, malloc.
55648         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
55649         headers.
55650         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
55651         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
55652         do not check for strerror.
55653         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
55654         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
55655         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
55656         do not check for doprnt or vprintf.
55657         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
55658         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
55659
55660 2003-09-08  Paul Eggert  <eggert@twinsun.com>
55661
55662         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
55663         getversion.c should have been removed then, but was accidentally
55664         preserved.
55665
55666         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
55667         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
55668
55669 2003-09-08  Karl Berry  <karl@gnu.org>
55670
55671         * config/config.sub, config.guess, srclistvars.sh: update from savannah
55672                 config, forget about prep.
55673
55674         * config/depcomp, missing: update from automake.
55675
55676 2003-09-07  Paul Eggert  <eggert@twinsun.com>
55677
55678         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
55679         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
55680
55681 2003-09-07  Paul Eggert  <eggert@twinsun.com>
55682
55683         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
55684         copy_tm_result.  Bug reported by Simon Josefsson in
55685         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
55686
55687 2003-09-06  Paul Eggert  <eggert@twinsun.com>
55688
55689         * m4/time_r.m4: New file.
55690         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
55691         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
55692         is. Check for timegm declaration.
55693         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
55694         Do not check for gmtime_r.
55695         Replace mktime if __mktime_internal does not exist and if mktime
55696         hasn't been replaced already.
55697
55698 2003-09-06  Paul Eggert  <eggert@twinsun.com>
55699
55700         * lib/time_r.c, lib/time_r.h: New files.
55701
55702         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
55703         __localtime_r.
55704         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
55705         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
55706
55707         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
55708         __gmtime_r.
55709         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
55710         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
55711         Include <time_r.h>.
55712
55713         * lib/timegm.c: Switch to glibc implementation, with the following
55714         changes:
55715         [defined HAVE_CONFIG_H]: Include <config.h>.
55716         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
55717         (__mktime_internal) [!defined _LIBC]: New decl.
55718         (__gmtime_r) [!defined _LIBC]: New macro and function.
55719         (timegm): Use a prototype, since gnulib assumes C89.
55720         Do not bother declaring tmp to be const, as it's not really usefu.
55721         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
55722         (timegm): Declare only if HAVE_DECL_TIMEGM.
55723
55724 2003-09-06  Paul Eggert  <eggert@twinsun.com>
55725
55726         * MODULES.html.sh (func_all_modules): Add time_r.
55727         * modules/time_r: New file.
55728         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
55729         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
55730
55731 2003-09-03  Paul Eggert  <eggert@twinsun.com>
55732
55733         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
55734         Bug reported by Lute Kamstra in
55735         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
55736
55737         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
55738         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
55739         course with correspondingly smaller numbers for tomorrow and
55740         yesterday.  From Tadayoshi Funaba.  Originally installed into
55741         sh-utils on 1999-08-07, but the patch got lost (I guess during the
55742         coreutils merge?).
55743
55744 2003-08-31  Simon Josefsson  <jas@extundo.com>
55745
55746         * modules/timegm: New file.
55747         * MODULES.html.sh (func_all_modules): Add timegm.
55748
55749 2003-08-31  Simon Josefsson  <jas@extundo.com>
55750
55751         * m4/timegm.m4: New file.
55752
55753 2003-08-31  Simon Josefsson  <jas@extundo.com>
55754
55755         * lib/timegm.h: New file.
55756         * lib/timegm.c: New file.  Based on
55757         wget-1.8.2/src/http.c:mktime_from_utc.
55758
55759 2003-08-31  Karl Berry  <karl@gnu.org>
55760
55761         * lib/argp.h: update from libc.
55762
55763 2003-08-28  Bruno Haible  <bruno@clisp.org>
55764
55765         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
55766         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
55767         followed by '#define fnmatch fnmatch_posix' gives an error.
55768
55769 2003-08-28  Bruno Haible  <bruno@clisp.org>
55770
55771         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
55772         warning on QNX, which defines O_BINARY to 000000.
55773
55774 2003-08-27  Jim Meyering  <jim@meyering.net>
55775
55776         * m4/mkstemp.m4: Require that the system mkstemp be able to create
55777         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
55778         would fail after 32.  Reported by Danny Levinson.  Details here:
55779         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
55780
55781 2003-08-24  Bruno Haible  <bruno@clisp.org>
55782
55783         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
55784         MSVC7 <stdio.h> is included later.
55785
55786 2003-08-22  Simon Josefsson  <jas@extundo.com>
55787
55788         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
55789
55790 2003-08-20  Karl Berry  <karl@gnu.org>
55791
55792         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
55793
55794 2003-08-20  Bruno Haible  <bruno@clisp.org>
55795
55796         * modules/progname: New file.
55797         * MODULES.html.sh (func_all_modules): Add progname.
55798
55799 2003-08-20  Bruno Haible  <bruno@clisp.org>
55800
55801         * lib/progname.h: New file, from GNU gettext.
55802         * lib/progname.c: New file, from GNU gettext.
55803         * lib/progreloc.c: New file, from GNU gettext.
55804
55805 2003-08-19  Jim Meyering  <jim@meyering.net>
55806
55807         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
55808         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
55809
55810 2003-08-19  Bruno Haible  <bruno@clisp.org>
55811
55812         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
55813         more.
55814
55815 2003-08-19  Bruno Haible  <bruno@clisp.org>
55816
55817         * lib/xstrdup.c: Assume <string.h> exists.
55818
55819 2003-08-18  Paul Eggert  <eggert@twinsun.com>
55820
55821         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
55822         in makefile rules.
55823
55824 2003-08-18  Jim Meyering  <jim@meyering.net>
55825
55826         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
55827         * m4/lib-ld.m4: Likewise.
55828
55829 2003-08-18  Jim Meyering  <jim@meyering.net>
55830
55831         * lib/setenv.h: Indent nested cpp directive.
55832         * lib/vasnprintf.c: Remove trailing blanks.
55833
55834 2003-08-17  Simon Josefsson  <jas@extundo.com>
55835
55836         * modules/xstrndup: New file.
55837         * MODULES.html.sh (func_all_modules): Add xstrndup.
55838
55839 2003-08-17  Simon Josefsson  <jas@extundo.com>
55840
55841         * modules/argp: Fix autoconf macro name. Add more dependencies.
55842
55843 2003-08-17  Simon Josefsson  <jas@extundo.com>
55844
55845         * m4/xstrndup.m4: New file.
55846
55847 2003-08-17  Simon Josefsson  <jas@extundo.com>
55848
55849         * m4/argp.m4: New file.
55850
55851 2003-08-17  Simon Josefsson  <jas@extundo.com>
55852             Bruno Haible  <bruno@clisp.org>
55853
55854         * lib/xstrndup.h: New file.
55855         * lib/xstrndup.c: New file.
55856
55857 2003-08-17  Bruno Haible  <bruno@clisp.org>
55858
55859         * modules/strndup (Files, Include): Add lib/strndup.h.
55860
55861 2003-08-17  Bruno Haible  <bruno@clisp.org>
55862
55863         * modules/euidaccess (Files): Add lib/euidaccess.h.
55864
55865 2003-08-17  Bruno Haible  <bruno@clisp.org>
55866
55867         * lib/strndup.h: New file.
55868
55869 2003-08-17  Bruno Haible  <bruno@clisp.org>
55870
55871         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
55872         like AC_GNU_SOURCE.
55873         * modules/extensions (configure.ac): Comment out the invocation of
55874         gl_USE_SYSTEM_EXTENSIONS.
55875
55876 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55877
55878         Merges from coreutils, etc.
55879         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
55880         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
55881         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
55882         fixing a typo.
55883         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
55884         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
55885
55886 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55887
55888         Document merge from coreutils.
55889         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
55890         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
55891         * modules/utime: Add m4/utimes-null.m4.
55892
55893 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55894
55895         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
55896         space, undoing this 2003-08-12 change:
55897         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
55898
55899 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55900
55901         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
55902         strtoul.c from libc, undoing this 2003-08-12 change:
55903         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
55904
55905 2003-08-16  Jim Meyering  <jim@meyering.net>
55906
55907         Merges from coreutils.
55908         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
55909         prefix.  Adjust cache variables similarly.  Create 500 rather than
55910         just 300 files, to exercise bug on Darwin6.5, too.
55911         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
55912         $missing_dir.
55913         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
55914         AM_SYS_POSIX_TERMIOS.
55915         Reported by mkc@mathdogs.com.
55916         Also change use of $am_cv_sys_posix_termios
55917         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
55918         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
55919         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
55920         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
55921         in /proc/mounts until it finds one with matching device number.  This
55922         is unnecessary when the FILE argument *is* a mount point.  No stat call
55923         is necessary in that case.  So, disable the statvfs-testing code on
55924         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
55925         as RedHat bug# 84846.
55926         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
55927         to 1MB, so as not to render systems with no stack size limit (e.g.,
55928         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
55929         Include <unistd.h>.  On some systems,
55930         it is required for the definition of _SC_PAGESIZE.
55931
55932 2003-08-16  Jim Meyering  <jim@meyering.net>
55933
55934         Merge from coreutils.
55935         * lib/xstrtoimax.c: #else #if -> #elif.
55936         * lib/xstrtoumax.c: Likewise.
55937
55938 2003-08-16  Jim Meyering  <jim@meyering.net>
55939
55940         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
55941         * m4/utimes.m4: Removed.
55942         * m4/utimes-null.m4: Renamed from utimes.m4.
55943
55944         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
55945         to 1MB, so as not to render systems with no stack size limit (e.g.,
55946         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
55947         Include <unistd.h>.  On some systems,
55948         it is required for the definition of _SC_PAGESIZE.
55949
55950 2003-08-16  Jim Meyering  <jim@meyering.net>
55951         and Paul Eggert  <eggert@cs.ucla.edu>
55952
55953         Merges from coreutils, etc.
55954
55955         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
55956         using the latest version from cvs.  This avoids problems with #line
55957         directives using a vendor (Sun) compiler.
55958         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
55959         Don't set GETGROUPS_LIB here; now it's
55960         done via getgroups.m4's wrapper function.
55961         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
55962         rather than just in sh-util/configure.in, so that the
55963         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
55964         same.
55965         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
55966         AC_FUNC_GETLOADAVG where to find getloadavg.c.
55967         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
55968         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
55969         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
55970         Remove code that is now done by the newly-required macros.
55971         Append $(EXEEXT) to DF_PROG.
55972         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
55973         Do not invoke or require the following here,
55974         since prereq.m4 or some gnulib .m4 now does this for us:
55975         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
55976         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
55977         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
55978         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
55979         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
55980         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
55981         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
55982         AC_FUNC_OBSTACK.
55983         Do not replace the following functions, as this is now the job
55984         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
55985         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
55986         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
55987         atexit getpass, strdup, getpagesize.
55988         Replace 'raise'.
55989         Do not check for the following functions, as this is now the job
55990         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
55991         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
55992         setregid.
55993         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
55994         Check for sys/sysctl.h.
55995         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
55996         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
55997         of checking for ssize_t ourselves.
55998
55999         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
56000         Require every macro that gnulib/modules/* suggests for us.
56001         (jm_PREREQ_ADDEXT): New macro.
56002         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
56003         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
56004
56005         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
56006         (gl_PHYSMEM): Use it.
56007         Also check for `table' function.
56008         Check for new headers and functions.
56009         Add check for sys/sysmp.h.
56010         With suggestions from Kaveh Ghazi.
56011         Ignore headers that are present but cannot be compiled.  This
56012         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
56013         C 5.4.
56014
56015 2003-08-15  Paul Eggert  <eggert@twinsun.com>
56016
56017         Document merge from coreutils.
56018         * modules/userspec: Depend on posixver.
56019         * modules/strftime: Depend on tzset.
56020
56021 2003-08-15  Paul Eggert  <eggert@twinsun.com>
56022
56023         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
56024         rather than tab, after '#' in shell-script copyright notices.
56025         Suggested by Bruno Haible.
56026
56027 2003-08-15  Paul Eggert  <eggert@twinsun.com>
56028
56029         * config/srclist-update: Use three spaces, rather than tab, after '#'
56030         in shell-script copyright notices.  Suggested by Bruno Haible.
56031         Remove unnecessary parenthesization in regular expression.
56032
56033 2003-08-15  Jim Meyering  <jim@meyering.net>
56034
56035         Merge from coreutils.
56036         * lib/xgethostname.c: Include <stdlib.h>.
56037         (xghostname): Don't exit for anything other than memory-related
56038         failure; just return NULL.
56039         * lib/userspec.c: Include "posixver.h".
56040         (parse_user_spec): Accept `.' as a separator only
56041         in pre-POSIX-200112 mode.
56042         * lib/strtoimax.c: Use #elif rather than #else #if.
56043         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
56044         Remove function, now that we can rely on a working tzset function.
56045         [!_LIBC]: Ensure that the required autoconf test has been run.
56046         [!defined _NL_CURRENT && HAVE_STRFTIME]:
56047         Use underlying_strftime for %r.
56048         * lib/sha.c: Merge in some clean-up and optimization changes from
56049         glibc.
56050         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
56051         Ensure that it is a multiple of 64.
56052         Rearrange loop exit tests so as to avoid performing an
56053         additional fread after encountering an error or EOF.
56054         * lib/realloc.c: Update copyright date.
56055
56056 2003-08-15  Jim Meyering  <jim@meyering.net>
56057         and Paul Eggert  <eggert@twinsun.com>
56058
56059         Merge from coreutils.
56060         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
56061         member but strut utmpx does not.  Needed for AIX 4.3.3.
56062         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
56063
56064 2003-08-15  Jim Meyering  <jim@meyering.net>
56065         and Paul Eggert  <eggert@cs.ucla.edu>
56066
56067         Merges from coreutils, etc.
56068         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
56069         Require gl_FUNC_TZSET_CLOBBER.
56070         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
56071         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
56072         members.
56073
56074 2003-08-14  Paul Eggert  <eggert@twinsun.com>
56075
56076         Help the merge from coreutils.
56077         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
56078         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
56079         * m4/tzset.m4: Use it too.
56080
56081 2003-08-14  Paul Eggert  <eggert@twinsun.com>
56082
56083         * modules/tzset: New file.
56084
56085 2003-08-14  Jim Meyering  <jim@meyering.net>
56086
56087         Merges from coreutils.
56088         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
56089         variable names, rather than @FNMATCH_H@.
56090         * modules/alloca: Likewise for $(ALLOCA_H).
56091
56092         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
56093         the three copies of the literal target, `fnmatch.h'.
56094         * modules/alloca (alloca.h): Likewise.
56095
56096 2003-08-14  Jim Meyering  <jim@meyering.net>
56097
56098         Merge from coreutils.
56099         * m4/tzset.m4: New file.
56100         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
56101         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
56102         otherwise, AIX 5.1 systems would end up using the latter.
56103         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
56104         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
56105         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
56106         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
56107
56108 2003-08-14  Jim Meyering  <jim@meyering.net>
56109
56110         Merge from coreutils.
56111         * lib/obstack.h: Whitespace changes.
56112         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
56113         and xcalloc return values.
56114         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
56115         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
56116         hang on OSF/1 5.1 for DIR on both local and remote file systems.
56117         Reported by (and fix confirmed by) Nelson H. F. Beebe.
56118         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
56119         error from mntctl.
56120         Use mntctl's return value to drive the entry-processing loop, since
56121         we can't rely on the value of the vmt_length member in the last
56122         entry.  On some systems doing so could result in exhausting
56123         virtual memory.  Based in part on a patch from Mike Jetzer.
56124
56125 2003-08-14  Jim Meyering  <jim@meyering.net>
56126         and Paul Eggert  <eggert@twinsun.com>
56127
56128         Merges from coreutils, plus other fixes.
56129         * lib/physmem.c: Merge in portability changes from gcc/libiberty
56130         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
56131         for credits and details.  Thanks to Kaveh Ghazi for helping
56132         to keep these files in sync.
56133         (ARRAY_SIZE): Define it.
56134         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
56135         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
56136         (memcasecmp): Don't assume size_t fits in unsigned int.
56137         Remove casts and duplicate code.
56138         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
56139         (memcpy): Remove definition.
56140         Merge in some clean-up and optimization changes from glibc.
56141         [BLOCKSIZE]: Move definition to top of file.
56142         Ensure that it is a multiple of 64.
56143         Rearrange loop exit tests so as to avoid performing an
56144         additional fread after encountering an error or EOF.
56145         * lib/md5.h (md5_uintptr): Define.
56146         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
56147         return to the initial working directory.  Preserve errno
56148         for caller.
56149         * lib/idcache.c: Include "xalloc.h".
56150         (xmalloc, xrealloc): Remove decls.
56151         (getuser): Remove casts no longer required in C89.
56152         * lib/human.c: Include stdio.h, for sprintf.
56153         * lib/group-member.c: Include "xalloc.h".
56154         (xmalloc, xrealloc): Remove decls.
56155         (get_group_info): Remove casts no longer required in C89.
56156         * lib/getusershell.c (readname): Remove casts no longer required in
56157         C89.
56158         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
56159         * lib/getline.c: Whitespace fix, from coreutils.
56160
56161 2003-08-13  Paul Eggert  <eggert@twinsun.com>
56162
56163         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
56164         Check for isascii.
56165
56166         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
56167         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
56168         Undo previous (whitespace-only) change.
56169
56170 2003-08-13  Paul Eggert  <eggert@twinsun.com>
56171
56172         * lib/exclude.c: Include <ctype.h>
56173         (IN_CTYPE_DOMAIN): New macro.
56174         (is_space): New fn.
56175         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
56176         and empty lines.
56177
56178         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
56179         Undo previous (whitespace-only) change.
56180
56181 2003-08-13  Paul Eggert  <eggert@twinsun.com>
56182
56183         * config/srclist-update: Change update back to the old behavior,
56184         leaving whitespace alone.  Use one 'sed' command rather than a
56185         pipeline.
56186         (fixlicense): Now a variable, not a function.
56187         (remove_trailing_blanks): Remove.
56188         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
56189         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
56190         Undo previous (whitespace-only) change.
56191
56192 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56193
56194         Merge from coreutils.
56195         * modules/euidaccess: Add lib_SOURCES, include for new
56196         file euidaccess.h
56197
56198 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56199
56200         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
56201         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
56202         Normalize leading white space and remove trailing white space.
56203
56204         Merge from coreutils
56205         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
56206
56207         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
56208         0.12.1.  These files are now being upgraded automatically by
56209         ../config/srclist-update.
56210
56211 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56212
56213         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
56214         Normalize leading white space and remove trailing white space.
56215         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
56216         notice, as per ../config/srclist-update.
56217
56218         Merge from coreutils.
56219         * lib/euidaccess.h: New file.
56220         * lib/euidaccess.c: Include it.
56221         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
56222         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
56223         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
56224
56225 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56226
56227         * config/srclist-update: Add copyright notice.
56228         (remove_id_lines, remove_trailing_blanks): New constants.
56229         (fixfile): Use them to normalize spacing a bit in copied files.
56230         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
56231         Normalize leading white space and remove trailing white space.
56232
56233         * config/texinfo.tex: Sync with texinfo.
56234
56235         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
56236         strtoul.c from libc, to merge coreutils whitespace changes.
56237
56238         * config/srclist.txt: Get the following m4 files from gettext:
56239         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
56240         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
56241         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
56242         wint_t.m4.
56243
56244 2003-08-12  Karl Berry  <karl@gnu.org>
56245
56246         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
56247         been made.
56248
56249 2003-08-11  Paul Eggert  <eggert@twinsun.com>
56250
56251         * modules/gnu-source, m4/gnu-source.m4:
56252         Remove; we're assuming Autoconf 2.54 or later now.
56253         Suggested by Bruno Haible.
56254         * MODULES.html.sh (func_all_modules): Remove gnu-source.
56255
56256 2003-08-11  Bruno Haible  <bruno@clisp.org>
56257
56258         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
56259
56260 2003-08-11  Bruno Haible  <bruno@clisp.org>
56261
56262         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
56263         (vasnprintf): Use it instead of wcslen.
56264
56265 2003-08-11  Bruno Haible  <bruno@clisp.org>
56266
56267         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
56268         value to ensure that _Bool promotes to int. Use #define for _Bool when
56269         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
56270
56271 2003-08-10  Karl Berry  <karl@gnu.org>
56272
56273         * lib/regex.h: update from libc (whitespace fix).
56274
56275 2003-08-09  Paul Eggert  <eggert@twinsun.com>
56276
56277         Merge some files from coreutils.  These changes were
56278         originally made by Jim Meyering.
56279         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
56280         many older Unixes require this.
56281         * lib/alloca.c (alloca): Remove cast to argument of free;
56282         no longer needed in C89.
56283         * lib/alloca_.h, regex.h: Fix white space to match
56284         what GNU indent does.
56285
56286 2003-08-09  Paul Eggert  <eggert@twinsun.com>
56287
56288         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
56289         apparently Emacs's Unicode mode got confused before my 2003-08-05
56290         checkin.
56291
56292 2003-08-08  Paul Eggert  <eggert@twinsun.com>
56293
56294         * m4/extensions.m4: New file.
56295         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
56296         Require gl_USE_SYSTEM_EXTENSIONS.
56297         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
56298         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
56299
56300 2003-08-08  Paul Eggert  <eggert@twinsun.com>
56301
56302         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
56303         * modules/extensions, modules/gnu-source: New files.
56304         * modules/timespec, modules/unlocked-io: Depend on extensions.
56305
56306 2003-08-07  Paul Eggert  <eggert@twinsun.com>
56307
56308         * modules/restrict: New file.
56309         * MODULES.html.sh (func_all_modules): Add restrict.
56310         * modules/regex: Depend on restrict.
56311
56312 2003-08-07  Paul Eggert  <eggert@twinsun.com>
56313
56314         * m4/restrict.m4: New file.
56315         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
56316
56317 2003-08-07  Bruno Haible  <bruno@clisp.org>
56318
56319         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
56320         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
56321
56322 2003-08-07  Bruno Haible  <bruno@clisp.org>
56323
56324         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
56325         makes the module 'getndelim2' compatible with the module 'getline'.
56326
56327 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56328
56329         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
56330         byte with "\201" to avoid glitches when editing that source file
56331         with multi-gnome-terminal.
56332
56333 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56334
56335         * lib/bumpalloc.h: Remove.
56336
56337 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56338
56339         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
56340         * modules/bumpalloc: Remove.
56341
56342 2003-08-04  Paul Eggert  <eggert@twinsun.com>
56343
56344         * lib/getloadavg.c: Change copyright notice and spacing to conform to
56345         GNU coding style.
56346
56347         Merge from coreutils.
56348         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
56349         1. From glibc.
56350         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
56351         from Karl Berry, implemented by Jim Meyering.
56352         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
56353         from Dmitry V. Levin.
56354         Remove anachronistic cast of xrealloc.
56355         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
56356         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
56357         type. Otherwise, it wouldn't compile with at least /bin/cc on
56358         ymp-cray-unicos9.0.2.X.
56359         Combine two mostly-identical uses of alloca into one.
56360         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
56361
56362 2003-08-04  Dave Love  <d.love@dl.ac.uk>
56363
56364         [From Emacs.]
56365
56366         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
56367         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
56368         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
56369         obsolete NLIST_NAME_UNION.
56370         [__GNU__]: Undef BSD and FSCALE.
56371         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
56372
56373 2003-08-03  Paul Eggert  <eggert@twinsun.com>
56374
56375         * lib/stdbool_.h (_Bool): Make it signed char, instead of
56376         an enum type, so that it's guaranteed to promote to int.  See:
56377         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
56378
56379 2003-08-03  Karl Berry  <karl@gnu.org>
56380
56381         * config/depcomp: update from automake.
56382
56383 2003-07-31  Paul Eggert  <eggert@twinsun.com>
56384
56385         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
56386         (strerror): Don't assume that a printable int fits in 14 bytes.
56387
56388 2003-07-31  Bruno Haible  <bruno@clisp.org>
56389
56390         * modules/getpass-gnu: New file.
56391         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
56392
56393 2003-07-31  Bruno Haible  <bruno@clisp.org>
56394
56395         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
56396
56397 2003-07-24  Karl Berry  <karl@gnu.org>
56398
56399         * config/missing: update from automake.
56400
56401 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
56402             Bruno Haible  <bruno@clisp.org>
56403
56404         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
56405         * lib/getline.c (getline, getdelim): Likewise.
56406         Remove _GNU_SOURCE define; now it's defined in config.h through
56407         m4/getline.m4.
56408
56409 2003-07-23  Karl Berry  <karl@gnu.org>
56410
56411         * config/config.sub: update from prep.
56412
56413 2003-07-22  Paul Eggert  <eggert@twinsun.com>
56414
56415         * modules/xalloc (Depends-on): Add exitfail.
56416         * modules/xmemcoll: Likewise.
56417
56418 2003-07-22  Paul Eggert  <eggert@twinsun.com>
56419
56420         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
56421         over-parenthesization in macros.
56422
56423         Sync with coreutils.
56424
56425         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
56426         required by C99.
56427
56428         Use `exit_failure' for xalloc and xmemcoll instead of their own
56429         private exit-failure variables.
56430         * lib/xalloc.h (xalloc_exit_failure): Remove.
56431         * lib/xmalloc.c: Likewise.  Include exitfail.h.
56432         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
56433         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
56434         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
56435         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
56436
56437 2003-07-20  Jim Meyering  <jim@meyering.net>
56438
56439         * modules/closeout (Depends-on): Add exitfail.
56440         Suggestion from Bruno Haible.
56441
56442 2003-07-19  Karl Berry  <karl@gnu.org>
56443
56444         * config/config.sub: update from prep.
56445
56446 2003-07-18  Paul Eggert  <eggert@twinsun.com>
56447
56448         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
56449         Remove.
56450         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
56451         to test that it can stand by itself.  Include "exitfail.h".
56452         Clients should set exit_failure instead.
56453         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
56454
56455 2003-07-18  Bruno Haible  <bruno@clisp.org>
56456
56457         * modules/getndelim2: New file.
56458         * modules/getline: Share files with module getndelim2.
56459         * modules/getnline: Depend on getndelim2 instead of sharing files with
56460         it. Add getnline.c to lib_SOURCES.
56461         * MODULES.html.sh (func_all_modules): Add getndelim2.
56462
56463 2003-07-18  Bruno Haible  <bruno@clisp.org>
56464
56465         * m4/getndelim2.m4: New file.
56466         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
56467         invoke gl_PREREQ_GETNDELIM2.
56468         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
56469         gl_PREREQ_GETNDELIM2.
56470         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
56471         gl_GETNDELIM2.
56472
56473 2003-07-18  Bruno Haible  <bruno@clisp.org>
56474
56475         * lib/getndelim2.h: New file.
56476         * lib/getndelim2.c: Make into a module of its own. Include config.h,
56477         getndelim2.h.
56478         (getndelim2): Make non-static. Change return type to ssize_t.
56479         * lib/getline.h: Change argument names.
56480         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
56481         * lib/getnline.c: Include getndelim2.h.
56482
56483 2003-07-18  Andreas Schwab  <schwab@suse.de>
56484
56485         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
56486
56487 2003-07-17  Karl Berry  <karl@gnu.org>
56488
56489         * config/config.sub: update from prep.
56490
56491 2003-07-17  Bruno Haible  <bruno@clisp.org>
56492
56493         * modules/getnline: New file.
56494         * modules/getline: Add lib/getndelim2.c to source file list.
56495         * MODULES.html.sh (func_all_modules): Add getnline.
56496
56497 2003-07-17  Bruno Haible  <bruno@clisp.org>
56498
56499         * m4/getnline.m4: New file.
56500
56501 2003-07-17  Bruno Haible  <bruno@clisp.org>
56502
56503         * m4/Makefile.am.in: Remove file.
56504         * m4/Makefile.am: Remove file.
56505         * m4/Makefile.in: Remove file.
56506
56507 2003-07-17  Bruno Haible  <bruno@clisp.org>
56508
56509         * lib/getnline.h: New file.
56510         * lib/getnline.c: New file.
56511         * lib/getndelim2.c: New file, extracted from getline.c.
56512         (getndelim2): Renamed from getdelim2, with added nmax argument.
56513         * lib/getline.c: Include getndelim2.c.
56514         (getdelim2): Moved out to getndelim2.c.
56515         (getline, getdelim): Update.
56516
56517 2003-07-17  Bruno Haible  <bruno@clisp.org>
56518
56519         * lib/Makefile.am: Remove file.
56520         * lib/Makefile.in: Remove file.
56521
56522 2003-07-17  Bruno Haible  <bruno@clisp.org>
56523
56524         * configure.in: Remove file.
56525         * Makefile.in: Remove file.
56526
56527 2003-07-17  Bruno Haible  <bruno@clisp.org>
56528
56529         * MODULES.html.sh: Put the </BODY> right before </HTML>.
56530
56531 2003-07-16  Karl Berry  <karl@gnu.org>
56532
56533         * config/srclist-update: was running fixlicense twice, which caused
56534                 texinfo.tex to be nullified for some reason.  Simplify,
56535                 $gplsrc is no longer needed as far as I can see?
56536
56537 2003-07-16  Jim Meyering  <jim@meyering.net>
56538
56539         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
56540
56541 2003-07-15  Paul Eggert  <eggert@twinsun.com>
56542
56543         * config/srclist.txt: Get the following files from gettext-runtime/intl
56544         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
56545         ref-del.sin.  From Bruno Haible.
56546         * config/srclist-update (fixfile): Change grep pattern again, since the
56547         previous fix didn't work (there was another trailing $).  Use
56548         '[$]' to escape the $s.
56549
56550 2003-07-15  Karl Berry  <karl@gnu.org>
56551
56552         * lib/vasnprintf.c: update from gettext.
56553
56554 2003-07-15  Karl Berry  <karl@gnu.org>
56555
56556         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
56557         gets expanded when surrounded by '$'.
56558
56559 2003-07-15  Jim Meyering  <jim@meyering.net>
56560
56561         * modules/save-cwd: Don't depend on error.  From Derek Price.
56562
56563 2003-07-15  Jim Meyering  <jim@meyering.net>
56564
56565         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
56566
56567 2003-07-14  Simon Josefsson  <jas@extundo.com>
56568
56569         * modules/mempcpy: New file.
56570         * MODULES.html.sh (func_all_modules): Add mempcpy.
56571
56572 2003-07-14  Simon Josefsson  <jas@extundo.com>
56573
56574         * m4/mempcpy.m4: New file.
56575
56576 2003-07-14  Simon Josefsson  <jas@extundo.com>
56577
56578         * lib/mempcpy.h: New file.
56579         * lib/mempcpy.c: New file.
56580
56581 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56582
56583         * modules/getdate, modules/posixtm: Depend on mktime.
56584
56585 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56586
56587         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
56588         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
56589         unicodeio.c, unicodeio.h, unlocked-io.h:
56590         Switch from LGPL to GPL.
56591
56592 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56593
56594         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
56595         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
56596         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
56597         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
56598         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
56599         updated automatically by ../config/srclist-update.  This changes
56600         their license from LPGL to GPL.
56601
56602 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56603
56604         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
56605         assumed to refer to the root of the most recent stable gettext version.
56606         * config/srclistvars.sh: Add defaults for eggert.
56607         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
56608         Match "This program" as well as "The program".  This is needed
56609         for gettext.
56610
56611 2003-07-14  Jim Meyering  <jim@meyering.net>
56612
56613         Don't emit diagnostics.  Let callers do that.
56614         * lib/save-cwd.c: Don't include "error.h".
56615         (save_cwd): Don't call error.  Ensure that errno is valid
56616         when returning nonzero.
56617
56618         * lib/save-cwd.h (restore_cwd): Update prototype.
56619         * lib/save-cwd.c (restore_cwd): Remove two parameters.
56620         Simplify.  Don't call error upon failure.  Let callers do that.
56621         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
56622         when auditing is enabled.  But don't bother updating the #if.
56623
56624 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
56625
56626         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
56627         it breaks C++ compilation.
56628         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
56629
56630 2003-07-10  Simon Josefsson  <jas@extundo.com>
56631
56632         * modules/strchrnul (Makefile.am): Add strchrnul.h.
56633
56634 2003-07-10  Jim Meyering  <jim@meyering.net>
56635
56636         * m4/clock_time.m4: Remove trailing blank.
56637         * m4/intmax_t.m4: Likewise.
56638
56639 2003-07-10  Jim Meyering  <jim@meyering.net>
56640
56641         * lib/vasnprintf.c: Remove trailing blanks.
56642         Make cpp indentation consistent.
56643
56644 2003-07-09  Paul Eggert  <eggert@twinsun.com>
56645
56646         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
56647         posixver.c, strftime.c, strnlen.c, strverscmp.c:
56648         Switch from LGPL to GPL.
56649
56650 2003-07-09  Paul Eggert  <eggert@twinsun.com>
56651
56652         * config/srclist.txt: Sort sublists.  Add
56653         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
56654         that differ from gnulib for one reason or another; we'd like this list
56655         to be smaller but for now let's document what we have.
56656
56657 2003-07-08  Paul Eggert  <eggert@twinsun.com>
56658
56659         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
56660         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
56661         and sweeter "eval x=$x".
56662         * config/srclist.txt: Get lib/argp* from glibc.
56663
56664 2003-07-07  Paul Eggert  <eggert@twinsun.com>
56665
56666         * lib/mktime.c: Fix some boundary cases and remove need for floating
56667         point.
56668
56669         Issue a compile-time diagnostic if time_t is floating point, or if
56670         two's complement arithmetic is not in effect, or if arithmetic
56671         right shift does not propagate the sign.  These assumptions were
56672         all in the original code but they weren't checked.
56673
56674         (TIME_T_MIDPOINT, verify): New macros.
56675         (__isleap): Remove; it has integer overflow problems.
56676         (leapyear): New function, without those problems.
56677         (ydhms_tm_diff): Remove; splitting into two parts.
56678         (ydhms_diff): New function, containing the arithmetic part of
56679         the old ydhms_tm_diff function.  Issue a compile-time
56680         diagnostic if we are not using C99 integer division.
56681         Avoid casts when possible.
56682         (guess_time_tm): New function, containing the checking part of
56683         the old ydhms_tm_diff function.  Return the new value, rather than
56684         the difference between it and the old.  Accept a new argument T
56685         so that *T specifies the old value.  Check for overflow in the result.
56686
56687         (__mktime_internal): Use a time_t offset, not a long int offset.
56688         This undoes the 2003-06-04 change, which is no longer needed now
56689         that we have better overflow checking.
56690         (localtime_offset): Likewise.
56691
56692         (__mktime_internal): Avoid harmful overflow on hosts where time_t
56693         and long are 64-bit but int is only 32-bit.
56694         (ydhms_diff): Use long int to store year1 and yday1.
56695         Issue a compile-time diagnostic if long int is not wide enough.
56696
56697         (__mktime_internal): Use long int to store adjusted year and yday.
56698         Use plain C rather than preprocessor commands, if that doesn't
56699         affect efficiency.
56700         Check for overflow (and try to repair) after each probe
56701         rather than checking only at the very end.  This avoids some bugs
56702         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
56703         does not equal GMT offset at maximum time).
56704         Use integer to check for overflow rather than floating point; this
56705         is more portable to non-IEEE hosts, and is a tad faster.
56706         When we detect that we are oscillating between two values,
56707         don't check whether tm_isdst has the requested value, since
56708         we already know the answer.  When tm_isdst has the wrong value,
56709         use a different heuristic to find the right one, based on the
56710         extreme values actually observed in practice in tz2003a,
56711         rather than the (overly optimistic) "previous 3 calendar quarters".
56712
56713         (not_equal_tm, print_tm, check_result): Use "const T" rather than
56714         "T const" to accommodate glibc style.
56715         (check_result): Use less-confusing report format.  "long" -> "long int.
56716         (main): Likewise.
56717         Don't loop if the iteration overflows time_t.
56718         Allow a negative step in the iteration.
56719
56720 2003-07-06  Karl Berry  <karl@gnu.org>
56721
56722         * config/depcomp: update from automake.
56723         * config/config.sub: update from prep.
56724
56725 2003-07-03  Karl Berry  <karl@gnu.org>
56726
56727         * config/config.guess: update from prep.
56728
56729 2003-07-01  Paul Eggert  <eggert@twinsun.com>
56730
56731         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
56732         xreadlink.c now includes it unconditionally.
56733
56734 2003-07-01  Paul Eggert  <eggert@twinsun.com>
56735
56736         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
56737         having it depend on HAVE_SYS_TYPES_H.
56738
56739 2003-07-01  Bruno Haible  <bruno@clisp.org>
56740
56741         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
56742         <sys/types.h> should be sufficient.
56743         Reported by Paul Eggert.
56744
56745 2003-06-26  Karl Berry  <karl@gnu.org>
56746
56747         * config/depcomp: update from automake.
56748
56749 2003-06-26  Bruno Haible  <bruno@clisp.org>
56750
56751         * modules/human: Depend on module stdbool.
56752
56753 2003-06-25  Bruno Haible  <bruno@clisp.org>
56754
56755         * modules/readlink: New file.
56756         * modules/xreadlink: Depend on it.
56757         * MODULES.html.sh (func_all_modules): Add readlink.
56758
56759 2003-06-25  Bruno Haible  <bruno@clisp.org>
56760
56761         * m4/readlink.m4: New file.
56762
56763 2003-06-25  Bruno Haible  <bruno@clisp.org>
56764
56765         * lib/readlink.c: New file.
56766
56767 2003-06-22  Karl Berry  <karl@gnu.org>
56768
56769         * config/srclist.txt: update mkinstalldirs from automake.
56770         * config/mkinstalldirs: update.
56771
56772 2003-06-22  Bruno Haible  <bruno@clisp.org>
56773
56774         Portability to mingw32.
56775         * m4/ssize_t.m4: New file, from GNU gettext.
56776         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
56777         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
56778
56779 2003-06-22  Bruno Haible  <bruno@clisp.org>
56780
56781         * modules/safe-read: Add m4/ssize_t.m4.
56782         * modules/xreadlink: Add m4/ssize_t.m4.
56783
56784 2003-06-20  Bruno Haible  <bruno@clisp.org>
56785
56786         Assume C89, so PARAMS isn't needed.
56787         * lib/unicodeio.h (PARAMS): Remove.
56788         * lib/unicodeio.c: Don't use PARAMS.
56789
56790 2003-06-18  Karl Berry  <karl@gnu.org>
56791
56792         * config/config.{guess,sub}: update from prep.
56793
56794 2003-06-18  Jim Meyering  <jim@meyering.net>
56795
56796         Merge changes from coreutils.
56797         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
56798         Remove explicit declarations of xmalloc and realloc.
56799         Include xalloc.h.
56800         (read_utmp): Remove anachronistic cast of xmalloc.
56801
56802 2003-06-17  Paul Eggert  <eggert@twinsun.com>
56803
56804         Assume C89, so PARAMS isn't needed.
56805         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
56806         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
56807         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
56808         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
56809         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
56810         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
56811         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
56812         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
56813         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
56814         lib/xstrtod.h, lib/xstrtol.h: Likewise.
56815         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
56816         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
56817         no longer needed. Anyway, config.h should always be included before any
56818         other file.
56819
56820 2003-06-11  Simon Josefsson  <jas@extundo.com>
56821
56822         * modules/sysexits: New file.
56823         * MODULES.html.sh (func_all_modules): Add sysexits.
56824
56825 2003-06-11  Simon Josefsson  <jas@extundo.com>
56826
56827         * lib/sysexit_.h: New file.
56828
56829 2003-06-11  Derek Price  <derek@ximbiot.com>
56830
56831         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
56832         necessary.
56833
56834 2003-06-11  Bruno Haible  <bruno@clisp.org>
56835
56836         * m4/sysexits.m4: New file.
56837
56838 2003-06-10  Simon Josefsson  <jas@extundo.com>
56839
56840         * lib/argp.h: New file, from glibc.
56841         * lib/argp-ba.c: New file, from glibc.
56842         * lib/argp-eexst.c: New file, from glibc.
56843         * lib/argp-fmtstream.c: New file, from glibc.
56844         * lib/argp-fmtstream.h: New file, from glibc.
56845         * lib/argp-fs-xinl.c: New file, from glibc.
56846         * lib/argp-help.c: New file, from glibc.
56847         * lib/argp-namefrob.h: New file, from glibc.
56848         * lib/argp-parse.c: New file, from glibc.
56849         * lib/argp-pv.c: New file, from glibc.
56850         * lib/argp-pvh.c: New file, from glibc.
56851         * lib/argp-xinl.c: New file, from glibc.
56852
56853 2003-06-10  Simon Josefsson  <jas@extundo.com>
56854
56855         * modules/strchrnul: New file.
56856
56857 2003-06-10  Simon Josefsson  <jas@extundo.com>
56858
56859         * modules/argp: New file.
56860
56861 2003-06-10  Simon Josefsson  <jas@extundo.com>
56862
56863         * m4/strchrnul.m4: New file.
56864
56865 2003-06-10  Simon Josefsson  <jas@extundo.com>
56866
56867         * lib/strchrnul.h: New file.
56868         * lib/strchrnul.c: New file.
56869
56870 2003-06-10  Bruno Haible  <bruno@clisp.org>
56871
56872         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
56873
56874 2003-06-07  Karl Berry  <karl@gnu.org>
56875
56876         * config/config.{guess,sub}: update from prep.
56877
56878 2003-06-07  Jim Meyering  <jim@meyering.net>
56879
56880         * modules/strtod: Use $(...) notation, not @...@ for
56881         AC_REPLACE'd variables.
56882         * modules/localcharset: Likewise.
56883
56884 2003-06-07  Jim Meyering  <jim@meyering.net>
56885
56886         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
56887         in place of my name in the copyright comment.
56888         Remove definition and uses of __P.
56889
56890         From coreutils.
56891         * lib/stat.c: Don't declare xmalloc explicitly.
56892         Instead, include "xalloc.h".
56893         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
56894         xrealloc, and xcalloc return values.
56895         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
56896         Improve comment.
56897         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
56898
56899 2003-06-07  Bruno Haible  <bruno@clisp.org>
56900
56901         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
56902         avoid AC_CONFIG_LINKS.
56903         * modules/fnmatch (Makefile.am): Use explicit creation rule for
56904         fnmatch.h, to avoid AC_CONFIG_LINKS.
56905         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
56906
56907 2003-06-07  Bruno Haible  <bruno@clisp.org>
56908
56909         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
56910         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
56911         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
56912         directory.
56913         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
56914         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
56915         directory.
56916
56917 2003-06-06  Jim Meyering  <jim@meyering.net>
56918
56919         Merge from coreutils.
56920         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
56921         Consolidate declarations and initializations of *_base* locals.
56922
56923         Merge from coreutils.
56924         This avoids a core dump on systems without GNU putenv,
56925         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
56926         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
56927         (unsetenv): New static function, from GNU libc.
56928         (rpl_putenv): Use it.
56929
56930         * lib/modechange.c: Remove trailing blanks.
56931
56932         Merge from coreutils.
56933         * lib/fsusage.c: Remove declaration of statfs.
56934         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
56935
56936         * lib/posixtm.c: Include <stdbool.h> unconditionally.
56937
56938 2003-06-06  Jim Meyering  <jim@meyering.net>
56939
56940         * lib/stdbool_.h: Renamed from stdbool.h.in.
56941
56942 2003-06-06  Jim Meyering  <jim@meyering.net>
56943             Bruno Haible  <bruno@clisp.org>
56944
56945         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
56946         Adjust Makefile.am snippet not to redirect directly to target.
56947         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
56948
56949 2003-06-05  Paul Eggert  <eggert@twinsun.com>
56950
56951         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
56952         mismatch, look in future quarters as well as past.  This fixes a
56953         bug when processing fall-backwards gaps immediately after a long
56954         period of daylight-saving time.
56955
56956         * lib/mktime.c: Assume freestanding C89 or better.
56957         (HAVE_LIMITS_H): Remove.  Assume it's 1.
56958         (__P): Remove; not used.
56959         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
56960         (mktime, not_equal_tm, print_tm, check_result,
56961         main): Use prototypes.  Use const * where appropriate.
56962         (main): Fix typo in testing code that uncovered by above changes.
56963         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
56964
56965 2003-06-04  Paul Eggert  <eggert@twinsun.com>
56966
56967         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
56968         locale.h, localeconv.  This merges changes from coreutils.
56969
56970         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
56971         It can be removed after the next Autoconf is released.
56972         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
56973         needed.
56974
56975 2003-06-04  Paul Eggert  <eggert@twinsun.com>
56976
56977         * lib/mktime.c: Fix Debian bug 177940
56978         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
56979         (localtime_offset): Now long int, not time_t, because we want it
56980         to be guaranteed to be signed.  All uses changed.
56981         (__mktime_internal): If overflow would occur when adding offset,
56982         don't add it.
56983
56984         Merge 'human' changes from coreutils.  Rewrite to support
56985         locale-specific notations like thousands separators.
56986         * lib/human.c: Simplify authorship notice.
56987         Include human.h immediately after config.h.
56988         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
56989         <limits.h>: Do not include, since human.h does.
56990         (SIZE_MAX, UINTMAX_MAX): New macros.
56991         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
56992         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
56993         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
56994         (power_letter): Renamed from suffixes.
56995         (generate_suffix_backwards): Remove.
56996         (adjust_value): Now takes int style (because of human.h changes)
56997         and long double value (for greater precision on some platforms).
56998         (group_number): New function.
56999         (human_readable): Use it.  Use integer options, not enum.
57000         Put the options before the sizes in the arg list.
57001         Support all the new options.
57002         The old human_readable function has been removed;
57003         use inttostr.h instead.
57004         (human_readable, default_block_size, humblock):
57005         Use uintmax_t, not int, for block sizes.
57006         (human_readable_inexact, block_size_types): Remove.
57007         (block_size_opts): New constant.
57008         (human_options): Renamed from human_block_size, with new signature
57009         that allows block sizes up to UINTMAX_MAX.  All callers changed.
57010         * lib/human.h: Add copyright and authorship notice.
57011         Include <limits.h> and <stdbool.h> unconditionally.
57012         (PARAMS): Remove.  All uses removed.
57013         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
57014         (enum human_inexact_style): Remove tag; now a nameless enum.
57015         (human_floor, human_ceiling, human_round_to_even): Now have
57016         values 2, 0, 1 rather than -1, 1, 0.
57017         (human_group_digits, human_suppress_point_zero, human_autoscale,
57018         human_base_1024, human_SI, human_B): New constants.
57019         (human_readable_inexact, human_block_size): Remove.
57020         (human_readable): Size args are now uintmax_t, not int.
57021         (human_options): New decl.
57022
57023         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
57024         unnecessary now that we assume C89 or better.  This change
57025         imported from coreutils.
57026
57027         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57028         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
57029         in the 2003-05-30 sync from glibc.
57030
57031         .h files should stand alone, but we shouldn't include <sys/types.h>
57032         if we can get away with just <stddef.h>.
57033
57034         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
57035         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
57036         rather than <sys/types.h>, as we merely need size_t.
57037         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
57038         to get size_t.
57039         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
57040         Include <stdio.h>, to get FILE.
57041         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
57042         memcasecmp.h has included <stddef.h> and all we need is size_t.
57043         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
57044         our interface, instead of including <sys/types.h>
57045
57046 2003-06-04  Paul Eggert  <eggert@twinsun.com>
57047
57048         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
57049         now, as glibc mktime is buggy on non-glibc systems.
57050
57051 2003-06-03  Karl Berry  <karl@gnu.org>
57052
57053         * config/config.sub: update from prep.
57054
57055 2003-06-02  Paul Eggert  <eggert@twinsun.com>
57056
57057         [from coreutils]
57058         Fix some minor time-related bugs with POSIX time arguments.
57059         Some valid time stamps were being rejected (notably -1, and
57060         time stamps before 1900 on 64-bit hosts).  And some invalid
57061         time stamps were being accepted, e.g. September 31.
57062
57063         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
57064         that we can return (time_t) -1 successfully.
57065         * lib/posixtm.c: Likewise.
57066         [HAVE_STDBOOL_H]: Include <stdbool.h>.
57067         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
57068         (t): Remove static var.
57069         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
57070         of static var.  All uses changed.
57071         (year): Do not reject years before 1900; they can occur with
57072         64-bit time_t.
57073         (posix_time_parse): Do not check for out-of-range components;
57074         that is now the caller's responsibility, since our checks were
57075         only approximations.
57076         (posixtime): Use mktime to check for out-of-range components,
57077         since it knows them exactly.
57078         If mktime returns (time_t) -1, check whether an error actually occurred
57079         by invoking localtime on -1.
57080         (main) [TEST_POSIXTIME]: Check for input data errors, and report
57081         posixtime failures better.
57082         Improve the test data (in comments only).
57083
57084 2003-06-02  Karl Berry  <karl@gnu.org>
57085
57086         * config/mkinstalldirs (version): new variable.
57087         (--version): new option.
57088         (usage): improve message.
57089
57090 2003-05-30  Karl Berry  <karl@gnu.org>
57091
57092         * lib/mktime.c: update from libc.
57093
57094 2003-05-30  Bruno Haible  <bruno@clisp.org>
57095
57096         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
57097         * config/config.rpath: Upgrade to gettext-0.12.1.
57098
57099 2003-05-30  Bruno Haible  <bruno@clisp.org>
57100
57101         * m4/gettext.m4: Upgrade to gettext-0.12.1.
57102         * m4/nls.m4: New file, from gettext-0.12.1.
57103         * m4/po.m4: New file, from gettext-0.12.1.
57104         * m4/progtest.m4: Upgrade to gettext-0.12.1.
57105
57106 2003-05-30  Bruno Haible  <bruno@clisp.org>
57107
57108         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
57109         * lib/localcharset.h: Likewise.
57110         * lib/localcharset.c: Likewise.
57111
57112 2003-05-29  Karl Berry  <karl@gnu.org>
57113
57114         * config/config.rpath: update from gettext.
57115
57116 2003-05-28  Paul Eggert  <eggert@twinsun.com>
57117
57118         Assume the headers required for C89 freestanding compilers.
57119         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
57120         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
57121         * m4/human.m4 (gl_HUMAN): Likewise.
57122         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
57123         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
57124         * m4/userspec.m4 (gl_USERSPEC): Likewise.
57125         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
57126         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57127         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
57128
57129 2003-05-28  Paul Eggert  <eggert@twinsun.com>
57130
57131         Assume the headers required for C89 freestanding compilers.
57132         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
57133         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
57134         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
57135         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
57136         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
57137         define, since <limits.h> is guaranteed to do that.
57138         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
57139         * lib/exclude.c: Include <stdbool.h> unconditionally.
57140         * lib/tempname.c: Include <stddef.h> unconditionally.
57141         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
57142         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
57143         <stddef.h> does that.
57144         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
57145         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
57146         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
57147         needed.
57148         * lib/xstrtol.c: Likewise.
57149         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
57150         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
57151
57152         * lib/addext.c (addext): Use assignment rather than cast, to avoid
57153         warnings on some platforms.
57154
57155         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57156         arbitrarily.
57157
57158 2003-05-26  Jim Meyering  <jim@meyering.net>
57159
57160         Merge in a change from coreutils:
57161         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
57162         that is guaranteed to be `no'.  Use `no_such_member' to indicate
57163         that condition, rather than `-1' which is slightly misleading.
57164         Change the name of the cache variable to have the gl_ prefix.
57165         Prompted by a patch from Richard Dawe for DJGPP.
57166
57167 2003-05-24  Karl Berry  <karl@gnu.org>
57168
57169         * config/config.guess: update from prep.
57170
57171 2003-05-22  Karl Berry  <karl@gnu.org>
57172
57173         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
57174
57175 2003-05-20  Karl Berry  <karl@gnu.org>
57176
57177         * config/config.guess: update from prep.
57178
57179 2003-05-18  Karl Berry  <karl@gnu.org>
57180
57181         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
57182         might actually be set by the user.
57183
57184         * config/depcomp, install-sh, mdate-sh: update from automake.
57185
57186 2003-05-17  Bruno Haible  <bruno@clisp.org>
57187
57188         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
57189         invalid expansion for AC_EGREP_CPP.
57190         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
57191         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
57192         Suggested by Akim Demaille <akim@epita.fr> in
57193         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
57194
57195 2003-05-12  Jim Meyering  <jim@meyering.net>
57196
57197         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
57198         the space-padded-by-default conversion specifiers, %e, %k, %l.
57199
57200 2003-05-12  Bruno Haible  <bruno@clisp.org>
57201
57202         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
57203         the string is longer than 4 KB.
57204
57205 2003-05-11  Karl Berry  <karl@gnu.org>
57206
57207         * config/config.{guess,sub}: update from prep.
57208
57209 2003-05-09  Bruno Haible  <bruno@clisp.org>
57210
57211         * modules/error: Add m4/strerror_r.m4 to file list.
57212
57213 2003-05-03  Bruno Haible  <bruno@clisp.org>
57214
57215         Upgrade to Unicode-4.0.
57216         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
57217         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
57218         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
57219         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
57220         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
57221         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
57222         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
57223         Change width of U+E0100..U+E01EF from 1 to 0.
57224
57225 2003-04-25  Jim Meyering  <jim@meyering.net>
57226
57227         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
57228         of type size_t, not int.
57229
57230 2003-04-25  Bruno Haible  <bruno@clisp.org>
57231
57232         * lib/copy-file.c: Include <stddef.h>, for size_t.
57233
57234 2003-04-21  Paul Eggert  <eggert@twinsun.com>
57235
57236         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
57237         code which expansion is under static control.  Patch imported from
57238         Akim Demaille's patch to Bison; see
57239         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
57240
57241 2003-04-14  Bruno Haible  <bruno@clisp.org>
57242
57243         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
57244
57245 2003-04-11  Jim Meyering  <jim@meyering.net>
57246
57247         Merge changes from Coreutils.
57248
57249         2003-03-22  Jim Meyering  <jim@meyering.net>
57250
57251         * lib/strftime.c (widen): Cast alloca return value to proper type.
57252
57253         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
57254
57255         From GNU libc.
57256         * lib/strftime.c (my_strftime): Handle very large width
57257         specifications for numeric values correctly.  Improve checks for
57258         overflow.
57259
57260         2003-01-19  Jim Meyering  <jim@meyering.net>
57261
57262         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
57263         definitions.
57264         (nl_get_alt_digit) [! defined my_strftime]: Define.
57265         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
57266         _nl_get_alt_digit and _nl_get_walt_digit.
57267
57268         * lib/strftime.c (my_strftime): Merge in locale-related changes from
57269         libc. These changes have no effect outside of _LIBC.
57270
57271 2003-04-10  Bruno Haible  <bruno@clisp.org>
57272
57273         * modules/findprog: New file.
57274         * MODULES.html.sh (func_all_modules): Add it.
57275
57276 2003-04-10  Bruno Haible  <bruno@clisp.org>
57277
57278         * m4/findprog.m4: New file.
57279         * m4/eaccess.m4: New file.
57280
57281 2003-04-10  Bruno Haible  <bruno@clisp.org>
57282
57283         * lib/findprog.h: New file, from GNU gettext.
57284         * lib/findprog.c: New file, from GNU gettext.
57285
57286 2003-04-05  Jim Meyering  <jim@meyering.net>
57287
57288         Merge changes from Coreutils.
57289
57290         * lib/exclude.h (PARAMS): Remove definition and uses.
57291         * lib/exclude.c: Remove uses of `PARAMS'.
57292
57293         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
57294         Add test-cases for DOS filenames. Declare program_name.
57295         (main): Set up program_name.  Patch by Rich Dawe.
57296
57297         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57298         error from mntctl.
57299         Use mntctl's return value to drive the entry-processing loop, since
57300         we can't rely on the value of the vmt_length member in the last
57301         entry.  On some systems doing so could result in exhausting
57302         virtual memory.  Based in part on a patch from Mike Jetzer.
57303
57304 2003-04-04  Bruno Haible  <bruno@clisp.org>
57305
57306         * modules/linebreak: New file.
57307         * MODULES.html.sh (func_all_modules): Add it.
57308
57309 2003-04-04  Bruno Haible  <bruno@clisp.org>
57310
57311         * m4/linebreak.m4: New file.
57312
57313 2003-04-04  Bruno Haible  <bruno@clisp.org>
57314
57315         * lib/linebreak.h: New file, from GNU gettext.
57316         * lib/linebreak.c: New file, from GNU gettext with slight
57317         modifications.
57318         * lib/lbrkprop.h: New file, from GNU gettext.
57319
57320 2003-04-03  Bruno Haible  <bruno@clisp.org>
57321
57322         * modules/utf8-ucs4: New file.
57323         * modules/utf16-ucs4: New file.
57324         * modules/ucs4-utf8: New file.
57325         * modules/ucs4-utf16: New file.
57326         * MODULES.html.sh (func_all_modules): Add them.
57327
57328 2003-04-03  Bruno Haible  <bruno@clisp.org>
57329
57330         * m4/utf-ucs4.m4: New file.
57331         * m4/ucs4-utf.m4: New file.
57332
57333 2003-04-03  Bruno Haible  <bruno@clisp.org>
57334
57335         * lib/utf8-ucs4.h: New file, from GNU gettext.
57336         * lib/utf16-ucs4.h: New file, from GNU gettext.
57337         * lib/ucs4-utf8.h: New file, from GNU gettext.
57338         * lib/ucs4-utf16.h: New file, from GNU gettext.
57339
57340 2003-04-02  Bruno Haible  <bruno@clisp.org>
57341
57342         * modules/binary-io: New file.
57343         * MODULES.html.sh (func_all_modules): Add it.
57344
57345 2003-04-02  Bruno Haible  <bruno@clisp.org>
57346
57347         * lib/binary-io.h: New file, from GNU gettext.
57348
57349 2003-04-01  Bruno Haible  <bruno@clisp.org>
57350
57351         * modules/pathname: New file.
57352         * MODULES.html.sh (func_all_modules): Add it.
57353
57354 2003-04-01  Bruno Haible  <bruno@clisp.org>
57355
57356         * lib/pathname.h: New file, from GNU gettext.
57357         * lib/concatpath.c: New file, from GNU gettext.
57358
57359 2003-03-30  Bruno Haible  <bruno@clisp.org>
57360
57361         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
57362
57363 2003-03-30  Bruno Haible  <bruno@clisp.org>
57364
57365         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
57366         function chown() doesn't exist.
57367
57368 2003-03-28  Bruno Haible  <bruno@clisp.org>
57369
57370         * modules/copy-file: New file.
57371         * MODULES.html.sh (func_all_modules): Add it.
57372
57373 2003-03-28  Bruno Haible  <bruno@clisp.org>
57374
57375         * m4/copy-file.m4: New file.
57376
57377 2003-03-28  Bruno Haible  <bruno@clisp.org>
57378
57379         * lib/copy-file.h: New file, from GNU gettext.
57380         * lib/copy-file.c: New file, from GNU gettext.
57381
57382 2003-03-18  Jim Meyering  <jim@meyering.net>
57383
57384         * lib/quote.c (quote_n): Fix typo in comment.
57385
57386 2003-03-18  Bruno Haible  <bruno@clisp.org>
57387
57388         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
57389         checking.
57390         * m4/onceonly_2_57.m4: Likewise.
57391
57392 2003-03-17  Bruno Haible  <bruno@clisp.org>
57393
57394         * m4/onceonly.m4: Require autoconf 2.54 or newer.
57395         (m4_quote): Remove macro.
57396         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
57397
57398 2003-03-14  Jim Meyering  <jim@meyering.net>
57399
57400         Merge changes from Coreutils.
57401         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
57402         to be const, in order to avoid warnings.
57403         (obstack_room): Likewise.
57404         (obstack_empty_p): Likewise.
57405
57406 2003-03-14  Bruno Haible  <bruno@clisp.org>
57407
57408         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
57409         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
57410
57411 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57412
57413         Merge changes from Bison.
57414         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
57415         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
57416         when compiling Bison 1.875's `bitset bset = obstack_alloc
57417         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
57418         * lib/hash.c: Include <stdbool.h> unconditionally.
57419
57420 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57421
57422         * m4/onceonly.m4 (m4_quote): New macro.
57423         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
57424         Quote AC_FOREACH variable-expansions properly.
57425
57426 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57427
57428         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
57429
57430 2003-03-09  Paul Eggert  <eggert@twinsun.com>
57431
57432         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
57433         Reported by Bruce Becker; see:
57434         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
57435
57436 2003-03-03  Paul Eggert  <eggert@twinsun.com>
57437             Bruno Haible  <bruno@clisp.org>
57438
57439         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
57440         Reported by John Hughes, see
57441         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
57442
57443 2003-02-20  Bruno Haible  <bruno@clisp.org>
57444
57445         * MODULES.html.sh (func_all_modules): Add poll.
57446
57447 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57448
57449         * modules/poll: New file.
57450
57451 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57452
57453         * lib/poll_.h: New file.
57454         * lib/poll.c: New file.
57455
57456 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57457
57458         * m4/poll.m4: New file.
57459
57460 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57461
57462         * modules/mathl: New file.
57463
57464 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57465
57466         * lib/mathl.h: New file.
57467         * lib/acosl.c: New file.
57468         * lib/asinl.c: New file.
57469         * lib/atanl.c: New file.
57470         * lib/ceill.c: New file.
57471         * lib/cosl.c: New file.
57472         * lib/expl.c: New file.
57473         * lib/floorl.c: New file.
57474         * lib/frexpl.c: New file.
57475         * lib/ldexpl.c: New file.
57476         * lib/logl.c: New file.
57477         * lib/sincosl.c: New file.
57478         * lib/sinl.c: New file.
57479         * lib/sqrtl.c: New file.
57480         * lib/tanl.c: New file.
57481         * lib/trigl.c: New file.
57482         * lib/trigl.h: New file.
57483
57484 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57485
57486         * m4/mathl.m4: New file.
57487
57488 2003-02-18  Bruno Haible  <bruno@clisp.org>
57489
57490         * MODULES.html.sh (func_all_modules): Add mathl.
57491
57492 2003-02-17  Bruno Haible  <bruno@clisp.org>
57493
57494         * modules/mkdtemp: New module.
57495         * MODULES.html.sh (func_all_modules): Add it.
57496
57497 2003-02-17  Bruno Haible  <bruno@clisp.org>
57498
57499         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
57500
57501 2003-02-17  Bruno Haible  <bruno@clisp.org>
57502
57503         * lib/mkdtemp.h: New file, from GNU gettext.
57504         * lib/mkdtemp.c: New file, from GNU gettext.
57505
57506 2003-02-02  Jim Meyering  <jim@meyering.net>
57507
57508         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
57509         e.g. glibc-2.2.93.
57510
57511 2003-01-31  Bruno Haible  <bruno@clisp.org>
57512
57513         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
57514         'rpl_rename'.
57515         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
57516         'rpl_strnlen'.
57517         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
57518         'rpl_strtod'.
57519         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
57520         'rpl_utime'.
57521
57522 2003-01-31  Bruno Haible  <bruno@clisp.org>
57523
57524         * lib/rename.c: #undef rename before defining rpl_rename.
57525         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
57526
57527 2003-01-30  Bruno Haible  <bruno@clisp.org>
57528
57529         * modules/vasnprintf, modules/vasprintf: New modules.
57530         * MODULES.html.sh (func_all_modules): Add them.
57531
57532 2003-01-30  Bruno Haible  <bruno@clisp.org>
57533
57534         * m4/signed.m4: New file, from GNU gettext.
57535         * m4/longdouble.m4: New file, from GNU gettext.
57536         * m4/wchar_t.m4: New file, from GNU gettext.
57537         * m4/wint_t.m4: New file, from GNU gettext.
57538         * m4/vasnprintf.m4: New file.
57539         * m4/vasprintf.m4: New file.
57540
57541 2003-01-30  Bruno Haible  <bruno@clisp.org>
57542
57543         * lib/printf-args.h: New file, from GNU gettext.
57544         * lib/printf-args.c: New file, from GNU gettext.
57545         * lib/printf-parse.h: New file, from GNU gettext.
57546         * lib/printf-parse.c: New file, from GNU gettext.
57547         * lib/vasnprintf.h: New file, from GNU gettext.
57548         * lib/vasnprintf.c: New file, from GNU gettext.
57549         * lib/asnprintf.c: New file, from GNU gettext.
57550         * lib/vasprintf.h: New file, from GNU gettext with modifications.
57551         * lib/vasprintf.c: New file, from GNU gettext.
57552         * lib/asprintf.c: New file, from GNU gettext.
57553
57554 2003-01-29  Bruno Haible  <bruno@clisp.org>
57555
57556         * modules/stpncpy: New module.
57557         * MODULES.html.sh (func_all_modules): Add it.
57558
57559 2003-01-29  Bruno Haible  <bruno@clisp.org>
57560
57561         * m4/stpncpy.m4: New file.
57562
57563 2003-01-29  Bruno Haible  <bruno@clisp.org>
57564
57565         * lib/stpncpy.h: New file, from GNU gettext with modifications.
57566         * lib/stpncpy.c: New file, from GNU gettext with modifications.
57567
57568 2003-01-28  Bruno Haible  <bruno@clisp.org>
57569
57570         * modules/c-ctype: New module.
57571         * MODULES.html.sh (func_all_modules): Add it.
57572
57573 2003-01-28  Bruno Haible  <bruno@clisp.org>
57574
57575         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
57576         Paul Eggert.
57577         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
57578         Paul Eggert.
57579
57580 2003-01-27  Bruno Haible  <bruno@clisp.org>
57581
57582         * modules/xsetenv: New module.
57583         * MODULES.html.sh (func_all_modules): Add it.
57584
57585 2003-01-27  Bruno Haible  <bruno@clisp.org>
57586
57587         * lib/xsetenv.h: New file, from GNU gettext.
57588         * lib/xsetenv.c: New file, from GNU gettext.
57589
57590 2003-01-23  Jim Meyering  <jim@meyering.net>
57591
57592         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
57593         from working on systems without dirfd (at least Irix and OSF1/Tru64).
57594
57595 2003-01-23  Bruno Haible  <bruno@clisp.org>
57596
57597         * modules/minmax: New module.
57598         * MODULES.html.sh (func_all_modules): Add it.
57599
57600 2003-01-23  Bruno Haible  <bruno@clisp.org>
57601
57602         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
57603         Eggert.
57604
57605 2003-01-22  Bruno Haible  <bruno@clisp.org>
57606
57607         * modules/exit: New module.
57608         * MODULES.html.sh (func_all_modules): Add it.
57609
57610 2003-01-22  Bruno Haible  <bruno@clisp.org>
57611
57612         * lib/exit.h: New file, from GNU gettext.
57613
57614 2003-01-19  Bruno Haible  <bruno@clisp.org>
57615
57616         * gnulib-tool: Recognize option --extract-maintainer.
57617         (func_get_maintainer): New function.
57618         * modules/*: Add Maintainer entry.
57619
57620 2003-01-16  Jim Meyering  <jim@meyering.net>
57621
57622         * m4/regex.m4: The `regex' struct is both input and output.
57623         Initialize it before each use.  Patch by Tim Waugh.
57624
57625 2003-01-16  Bruno Haible  <bruno@clisp.org>
57626
57627         * MODULES.html.sh: Add a table of contents. Add the module name as
57628         leftmost column. Add hyperlinks.
57629
57630 2003-01-15  Bruno Haible  <bruno@clisp.org>
57631
57632         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
57633
57634 2003-01-15  Bruno Haible  <bruno@clisp.org>
57635
57636         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
57637         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
57638         suffix.
57639
57640 2003-01-15  Bruno Haible  <bruno@clisp.org>
57641
57642         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
57643
57644 2003-01-15  Bruno Haible  <bruno@clisp.org>
57645
57646         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
57647         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
57648
57649 2003-01-14  Jim Meyering  <jim@meyering.net>
57650
57651         * lib/same.c (same_name): Tweak a comment.
57652
57653 2003-01-14  Bruno Haible  <bruno@clisp.org>
57654
57655         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
57656         when a string comparison is sufficient.
57657
57658 2003-01-14  Bruno Haible  <bruno@clisp.org>
57659
57660         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
57661         'unsigned int'.
57662
57663 2003-01-14  Bruno Haible  <bruno@clisp.org>
57664
57665         * lib/hash-pjw.c: Add comment about low quality of this function.
57666
57667 2003-01-13  Bruno Haible  <bruno@clisp.org>
57668
57669         * modules/stpcpy: Distribute lib/stpcpy.h.
57670         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
57671
57672 2003-01-13  Bruno Haible  <bruno@clisp.org>
57673
57674         * modules/*: Add a description.
57675         * modules/strpbrk: Fix Makefile.am snippet.
57676         * modules/strtoimax: Fix dependencies.
57677         * modules/strtoumax: Likewise.
57678
57679 2003-01-13  Bruno Haible  <bruno@clisp.org>
57680
57681         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
57682         * modules/alloca (Makefile.am): All object files depend on alloca.h.
57683         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
57684
57685 2003-01-13  Bruno Haible  <bruno@clisp.org>
57686
57687         * gnulib-tool (func_create_testdir): Store config/* files in the main
57688         directory.
57689         * config.rpath: Move to ...
57690         * config/config.rpath: ... here.
57691         * modules/gettext: Contains config/config.rpath, not config.rpath.
57692         * modules/iconv: Likewise.
57693
57694 2003-01-12  Paul Eggert  <eggert@twinsun.com>
57695
57696         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
57697         to avoid collisions with libcurses and libreadline.
57698
57699         * m4/getstr.m4: Remove.
57700         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
57701
57702 2003-01-12  Paul Eggert  <eggert@twinsun.com>
57703
57704         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
57705         to avoid collisions with libcurses and libreadline.
57706
57707         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
57708         * lib/getstr.h, getstr.c: Remove.
57709         * lib/getline.c: Include "getline.h", to check interface.
57710         Move body of old getstr.c here: this defines MIN_CHUNK and
57711         declares getdelim2, which is renamed from getstr.
57712         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
57713
57714         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
57715         All uses changed.
57716         * lib/linebuffer.h: Likewise.
57717         (readline): Remove backward-compatibility macro.
57718
57719 2003-01-12  Paul Eggert  <eggert@twinsun.com>
57720
57721         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
57722         to avoid collisions with libcurses and libreadline.
57723         * getstr: Remove.
57724         * MODULES.html.sh: Remove getstr.
57725         * modules/getline: Depend on unlocked-io, not getstr.
57726
57727 2003-01-12  Jim Meyering  <jim@meyering.net>
57728
57729         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
57730
57731 2003-01-10  Bruno Haible  <bruno@clisp.org>
57732
57733         * modules/alloca: Change Makefile.am requirements. Simplify Include
57734         requirements. Add lib/alloca_.h to file list.
57735
57736 2003-01-10  Bruno Haible  <bruno@clisp.org>
57737
57738         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
57739
57740 2003-01-10  Bruno Haible  <bruno@clisp.org>
57741
57742         * lib/alloca_.h: New file.
57743         * lib/getdate.y: Unconditionally include alloca.h.
57744         * lib/makepath.c: Likewise.
57745         * lib/setenv.c: Likewise.
57746         * lib/userspec.c: Likewise.
57747
57748 2003-01-09  Karl Berry  <karl@gnu.org>
57749
57750         * MODULES.html.sh: include `dirname $0` in PATH, to find
57751         gnulib-tool.
57752
57753 2003-01-09  Bruno Haible  <bruno@clisp.org>
57754
57755         * modules/stdbool: Change configure.ac, Makefile.am requirements.
57756         Simplify Include requirements. Add lib/stdbool.h.in to file list.
57757
57758 2003-01-09  Bruno Haible  <bruno@clisp.org>
57759
57760         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
57761
57762 2003-01-09  Bruno Haible  <bruno@clisp.org>
57763
57764         * lib/stdbool.h.in: New file.
57765
57766 2003-01-09  Bruno Haible  <bruno@clisp.org>
57767
57768         * gnulib-tool (func_all_modules): Ignore files ending in ~.
57769         * MODULES.html.sh: Likewise.
57770
57771 2003-01-08  Jim Meyering  <jim@meyering.net>
57772
57773         * lib/full-write.c: Undefine and define-away `const' after inclusion
57774         of errno.h, not before.  Suggestion from Bruno Haible.
57775
57776 2003-01-08  Bruno Haible  <bruno@clisp.org>
57777
57778         * modules/full-read: Depend on full-write.
57779
57780 2003-01-08  Bruno Haible  <bruno@clisp.org>
57781
57782         * lib/safe-read.c: Include specification header first, to ensure its
57783         selfcontainedness.
57784         * lib/full-write.c: Likewise.
57785
57786 2003-01-07  Jim Meyering  <jim@meyering.net>
57787
57788         * lib/full-write.c: Rework so that it may serve to define full_read,
57789         too.
57790         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
57791
57792 2003-01-07  Bruno Haible  <bruno@clisp.org>
57793
57794         * lib/strtoimax.c: Include <stdint.h> as an alternative to
57795         <inttypes.h>.
57796         * lib/xstrtol.h: Likewise.
57797         * lib/xstrtoimax.c: Likewise.
57798         * lib/xstrtoumax.c: Likewise.
57799         * lib/human.h: Likewise.
57800
57801         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
57802         on systems that have <inttypes.h> but not <stdint.h>.
57803
57804 2003-01-07  Bruno Haible  <bruno@clisp.org>
57805
57806         * MODULES.html.sh: Add copyright notice.
57807         (missed_files): Omit CVS directory entries.
57808         (func_module): Make it work with sed-3.02.
57809         * MODULES.txt: Remove file.
57810
57811 2003-01-06  Jim Meyering  <jim@meyering.net>
57812
57813         * lib/version-etc.c: Update year in translatable copyright string.
57814
57815 2003-01-03  Karl Berry  <karl@gnu.org>
57816
57817         * config/config.{guess,sub}: update from prep.
57818
57819 2003-01-02  Karl Berry  <karl@gnu.org>
57820
57821         * doc/COPYING.DOC: belatedly updated to 1.2.
57822
57823 2003-01-01  Karl Berry  <karl@gnu.org>
57824
57825         * gnulib-tool (func_verify_module): report module name $module in
57826         error message, not $1.
57827         * gnulib-tool (create-testdir): don't complain if destdir couldn't
57828         be created, only if it doesn't exist.
57829         * gnulib-tool (last_checkin_date): don't expand the $Date here.
57830
57831 2002-12-31  Paul Eggert  <eggert@twinsun.com>
57832
57833         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
57834
57835 2002-12-31  Paul Eggert  <eggert@twinsun.com>
57836
57837         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
57838         memcmp if strcoll doesn't work.
57839
57840 2002-12-31  Bruno Haible  <bruno@clisp.org>
57841
57842         * lib/utime.c (utime_null): No need to call ftruncate if the file was
57843         nonempty.
57844
57845 2002-12-31  Bruno Haible  <bruno@clisp.org>
57846
57847         * lib/memcoll.c (STRCOLL): New macro.
57848         (memcoll): Use it.
57849
57850 2002-12-31  Bruno Haible  <bruno@clisp.org>
57851
57852         * lib/localcharset.h: New file.
57853         * lib/localcharset.c: Include it.
57854         * lib/unicodeio.c: Likewise.
57855
57856 2002-12-31  Bruno Haible  <bruno@clisp.org>
57857
57858         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
57859         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
57860
57861 2002-12-31  Bruno Haible  <bruno@clisp.org>
57862
57863         * lib/getline.h: Include <stddef.h>, for size_t.
57864
57865         * lib/unicodeio.h: Include <stddef.h>, for size_t.
57866         * lib/unicodeio.c: Don't include <stddef.h>.
57867
57868 2002-12-31  Bruno Haible  <bruno@clisp.org>
57869
57870         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
57871         HAVE_TM_ZONE.
57872
57873 2002-12-24  Karl Berry  <karl@gnu.org>
57874
57875         * config/config.guess: update from prep.
57876
57877 2002-12-24  Bruno Haible  <bruno@clisp.org>
57878
57879         General infrasructure.
57880         * m4/README: Rewritten.
57881         * m4/onceonly.m4: New file.
57882         * m4/onceonly_2_57.m4: New file.
57883
57884         Module atexit.
57885         * m4/atexit.m4: New file.
57886
57887         Module strtod.
57888         * m4/strtod.m4: New file.
57889
57890         Module strtol.
57891         * m4/strtol.m4: New file.
57892
57893         Module strtoul.
57894         * m4/strtoul.m4: New file.
57895
57896         Module memchr.
57897         * m4/memchr.m4: New file.
57898
57899         Module memcmp.
57900         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
57901         (jm_FUNC_MEMCMP): Invoke it.
57902
57903         Module memcpy.
57904         * m4/memcpy.m4: New file.
57905
57906         Module memmove.
57907         * m4/memmove.m4: New file.
57908
57909         Module memset.
57910         * m4/memset.m4: New file.
57911
57912         Module strcspn.
57913         * m4/strcspn.m4: New file.
57914
57915         Module strpbrk.
57916         * m4/strpbrk.m4: New file.
57917
57918         Module strstr.
57919         * m4/strstr.m4: New file.
57920
57921         Module strerror.
57922         * m4/strerror.m4: New file.
57923
57924         Module mktime.
57925         * m4/mktime.m4: Renamed from jm-mktime.m4.
57926         (gl_PREREQ_MKTIME): New macro.
57927         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
57928
57929         Module malloc.
57930         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
57931         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
57932         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
57933
57934         Module realloc.
57935         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
57936         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
57937         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
57938
57939         Module strftime.
57940         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
57941         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
57942         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
57943         gl_TM_GMTOFF.
57944         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
57945
57946         Module xalloc.
57947         * m4/xalloc.m4: New file.
57948
57949         Module alloca.
57950         * m4/alloca.m4: New file.
57951
57952         Module putenv.
57953         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
57954         (jm_FUNC_PUTENV): Invoke it.
57955
57956         Module setenv.
57957         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
57958         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
57959         when invoked twice.
57960         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
57961         gt_FUNC_SETENV.
57962
57963         Module memrchr.
57964         * m4/memrchr.m4: New file.
57965
57966         Module stpcpy.
57967         * m4/stpcpy.m4: New file.
57968
57969         Module strcase.
57970         * m4/strcase.m4: New file.
57971
57972         Module strdup.
57973         * m4/strdup.m4: New file.
57974
57975         Module strnlen.
57976         * m4/strnlen.m4: New file.
57977
57978         Module strndup.
57979         * m4/strndup.m4: New file.
57980
57981         Module xstrtod.
57982         * m4/xstrtod.m4: New file.
57983
57984         Module xstrtol.
57985         * m4/xstrtol.m4: New file.
57986
57987         Module getdate.
57988         * m4/getdate.m4: New file.
57989
57990         Module unlocked-io.
57991         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
57992         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
57993         * m4/jm-glibc-io.m4n: Remove file.
57994
57995         Module long-options.
57996         * m4/long-options.m4: New file.
57997
57998         Module md5.
57999         * m4/md5.m4: New file.
58000
58001         Module sha.
58002         * m4/sha.m4: New file.
58003
58004         Module getstr.
58005         * m4/getstr.m4: New file.
58006
58007         Module getline.
58008         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
58009         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
58010         <sys/types.h>, for size_t. Use the function name gnu_getline, not
58011         simply getline. Infoke gl_PREREQ_GETLINE.
58012
58013         Module obstack.
58014         * m4/obstack.m4: New file.
58015
58016         Module hash.
58017         * m4/hash.m4: New file.
58018
58019         Module readtokens.
58020         * m4/readtokens.m4: New file.
58021
58022         Module strverscmp.
58023         * m4/strverscmp.m4: New file.
58024
58025         Module stdbool.
58026         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
58027         OSF/1.
58028
58029         Module strtoll.
58030         * m4/strtoll.m4: New file.
58031
58032         Module strtoull.
58033         * m4/strtoull.m4: New file.
58034
58035         Module strtoimax.
58036         * m4/strtoimax.m4: New file.
58037
58038         Module strtoumax.
58039         * m4/strtoumax.m4: New file.
58040
58041         Module xstrtoimax.
58042         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
58043         jm_AC_PREREQ_XSTRTOIMAX.
58044         Moved the strtol prerequisites to strtol.m4.
58045         Moved the strtoll prerequisites to strtoll.m4.
58046         Moved the strtoimax prerequisites to strtoimax.m4.
58047
58048         Module xstrtoumax.
58049         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
58050         jm_AC_PREREQ_XSTRTOUMAX.
58051         Moved the strtoul prerequisites to strtoul.m4.
58052         Moved the strtoull prerequisites to strtoull.m4.
58053         Moved the strtoumax prerequisites to strtoumax.m4.
58054
58055         Module chown.
58056         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
58057         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
58058
58059         Module dup2.
58060         * m4/dup2.m4: New file.
58061
58062         Module ftruncate.
58063         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
58064         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
58065
58066         Module getgroups.
58067         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
58068         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
58069
58070         Module gettimeofday.
58071         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
58072         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
58073         gl_PREREQ_GETTIMEOFDAY.
58074
58075         Module mkdir.
58076         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
58077         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
58078
58079         Module mkstemp.
58080         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
58081         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
58082         jm_AC_TYPE_UINTMAX_T.
58083         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
58084
58085         Module stat.
58086         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
58087         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
58088
58089         Module lstat.
58090         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
58091         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
58092
58093         Module timespec.
58094         * m4/timespec.m4 (gl_TIMESPEC): New macro.
58095         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
58096         * m4/st_mtim.m4: Indentation.
58097
58098         Module nanosleep.
58099         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
58100         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
58101         gl_PREREQ_NANOSLEEP.
58102
58103         Module regex.
58104         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
58105         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
58106         (gl_REGEX): New macro.
58107
58108         Module rename.
58109         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
58110         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
58111
58112         Module rmdir.
58113         * m4/rmdir.m4: New file.
58114
58115         Module utime.
58116         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
58117         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
58118         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
58119
58120         Module dirname.
58121         * m4/dirname.m4: New file.
58122
58123         Module getopt.
58124         * m4/getopt.m4: New file.
58125
58126         Module unistd-safer.
58127         * m4/unistd-safer.m4: New file.
58128
58129         Module fnmatch.
58130         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
58131         declaration.
58132         (gl_PREREQ_FNMATCH_EXTRA): New macro.
58133         (gl_FUNC_FNMATCH_POSIX): New macro.
58134         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
58135         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
58136         simply fnmatch.
58137
58138         Module exclude.
58139         * m4/exclude.m4: New file.
58140
58141         Module human.
58142         * m4/human.m4: New file.
58143
58144         Module acl.
58145         * m4/acl.m4: Nop.
58146
58147         Module backupfile.
58148         * m4/backupfile.m4: New file.
58149         * m4/d-ino.m4: Indentation.
58150
58151         Module fsusage.
58152         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
58153         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
58154         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
58155
58156         Module dirfd.
58157         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
58158         requirements.
58159
58160         Module euidaccess.
58161         * m4/euidaccess.m4: New file.
58162
58163         Module file-type.
58164         * m4/file-type.m4: New file.
58165
58166         Module fileblocks.
58167         * m4/fileblocks.m4: New file.
58168
58169         Module filemode.
58170         * m4/filemode.m4: New file.
58171
58172         Module isdir.
58173         * m4/isdir.m4: New file.
58174
58175         Module lchown.
58176         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
58177         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
58178
58179         Module makepath.
58180         * m4/makepath.m4: New file.
58181
58182         Module modechange.
58183         * m4/modechange.m4: New file.
58184
58185         Module mountlist.
58186         * m4/mountlist.m4: New file.
58187         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
58188         Indentation.
58189
58190         Module path-concat.
58191         * m4/path-concat.m4: New file.
58192
58193         Module pathmax.
58194         * m4/pathmax.m4: New file.
58195
58196         Module same.
58197         * m4/same.m4: New file.
58198
58199         Module save-cwd.
58200         * m4/save-cwd.m4: New file.
58201
58202         Module savedir.
58203         * m4/savedir.m4: New file.
58204
58205         Module xgetcwd.
58206         * m4/xgetcwd.m4: New file.
58207         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
58208
58209         Module xreadlink.
58210         * m4/xreadlink.m4: New file.
58211
58212         Module safe-read.
58213         * m4/safe-read.m4: New file.
58214
58215         Module safe-write.
58216         * m4/safe-write.m4: New file.
58217
58218         Module closeout.
58219         * m4/closeout.m4: New file.
58220
58221         Module stdio-safer.
58222         * m4/stdio-safer.m4: New file.
58223
58224         Module getpass.
58225         * m4/getpass.m4: New file.
58226
58227         Module getugroups.
58228         * m4/getugroups.m4: New file.
58229
58230         Module group-member.
58231         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
58232         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
58233
58234         Module idcache.
58235         * m4/idcache.m4: New file.
58236
58237         Module userspec.
58238         * m4/userspec.m4: New file.
58239
58240         Module gettime.
58241         * m4/clock_time.m4: New file.
58242         * m4/gettime.m4: New file.
58243
58244         Module settime.
58245         * m4/settime.m4: New file.
58246
58247         Module posixtm.
58248         * m4/posixtm.m4: New file.
58249
58250         Module gethostname.
58251         * m4/gethostname.m4: New file.
58252
58253         Module canon-host.
58254         * m4/canon-host.m4: New file.
58255
58256         Module gettext.
58257         * m4/codeset.m4: New file, from gettext-0.11.5.
58258         * m4/gettext.m4: New file, from gettext-0.11.5.
58259         * m4/glibc21.m4: New file, from gettext-0.11.5.
58260         * m4/iconv.m4: New file, from gettext-0.11.5.
58261         * m4/intdiv0.m4: New file, from gettext-0.11.5.
58262         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
58263         * m4/inttypes.m4: New file, from gettext-0.11.5.
58264         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
58265         * m4/isc-posix.m4: New file, from gettext-0.11.5.
58266         * m4/lcmessage.m4: New file, from gettext-0.11.5.
58267         * m4/lib-ld.m4: New file, from gettext-0.11.5.
58268         * m4/lib-link.m4: New file, from gettext-0.11.5.
58269         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
58270         * m4/progtest.m4: New file, from gettext-0.11.5.
58271         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
58272         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
58273         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
58274
58275         Module localcharset.
58276         * m4/localcharset.m4: New file.
58277
58278         Module hard-locale.
58279         * m4/hard-locale.m4: New file.
58280
58281         Module mbswidth.
58282         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
58283         onceonly macros.
58284         * m4/mbrtowc.m4: Add comment.
58285
58286         Module memcasecmp.
58287         * m4/memcasecmp.m4: New file.
58288
58289         Module memcoll.
58290         * m4/memcoll.m4: New file.
58291
58292         Module unicodeio.
58293         * m4/unicodeio.m4: New file.
58294
58295         Module rpmatch.
58296         * m4/rpmatch.m4: New file.
58297
58298         Module yesno.
58299         * m4/yesno.m4: New file.
58300
58301         Module exitfail.
58302         * m4/exitfail.m4: New file.
58303
58304         Module c-stack.
58305         * m4/c-stack.m4 (gl_C_STACK): New macro.
58306         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
58307
58308         Module error.
58309         * m4/error.m4 (gl_ERROR): New macro.
58310         (jm_PREREQ_ERROR): Use onceonly macros.
58311
58312         Module fatal.
58313         * m4/fatal.m4: New file.
58314
58315         Module getloadavg.
58316         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
58317         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
58318
58319         Module getpagesize.
58320         * m4/getpagesize.m4: New file.
58321
58322         Module getusershell.
58323         * m4/getusershell.m4: New file.
58324
58325         Module physmem.
58326         * m4/physmem.m4: New file.
58327
58328         Module posixver.
58329         * m4/posixver.m4: New file.
58330
58331         Module quotearg.
58332         * m4/quotearg.m4: New file.
58333
58334         Module quote.
58335         * m4/quote.m4: New file.
58336
58337         Module readutmp.
58338         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
58339
58340         Module sig2str.
58341         * m4/sig2str.m4: New file.
58342
58343         Other.
58344         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
58345         ulonglong.m4.
58346         * m4/intmax_t.m4: New file.
58347         * m4/d-type.m4: Indentation.
58348         * m4/jm-macros.m4: Update.
58349         * m4/prereq.m4 (jm_PREREQ): Update.
58350         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
58351         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
58352         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
58353         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
58354         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
58355         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
58356         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
58357         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
58358         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
58359         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
58360         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
58361         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
58362         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
58363         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
58364         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
58365         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
58366         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
58367         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
58368         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
58369
58370 2002-12-24  Bruno Haible  <bruno@clisp.org>
58371
58372         * MODULES.txt: Update according to m4/ changes.
58373
58374         Module gettext.
58375         * config.rpath: New file, from gettext-0.11.5.
58376
58377         * modules/*: New module descriptions.
58378         * gnulib-tool: New file.
58379         * MODULES.html.sh: New file.
58380
58381 2002-12-21  Karl Berry  <karl@gnu.org>
58382
58383         * doc/fdl.texi: update to version 1.2.
58384
58385 2002-12-19  Karl Berry  <karl@gnu.org>
58386
58387         * config/config.guess: update from prep.
58388
58389 2002-12-18  Bruno Haible  <bruno@clisp.org>
58390
58391         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
58392         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
58393
58394 2002-12-17  Bruno Haible  <bruno@clisp.org>
58395
58396         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
58397         stdlib.h, string.h.
58398
58399 2002-12-17  Bruno Haible  <bruno@clisp.org>
58400
58401         * lib/canon-host.c (strdup): Remove unused declaration.
58402
58403         * lib/fsusage.c: Include full_read.h.
58404         (get_fs_usage): Use full_read instead of safe_read.
58405
58406         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
58407
58408 2002-12-12  Karl Berry  <karl@gnu.org>
58409
58410         * config/config.guess: update from prep.
58411
58412 2002-12-11  Bruno Haible  <bruno@clisp.org>
58413
58414         * m4/setenv.m4: New file, from gettext-0.11.5.
58415
58416 2002-12-11  Bruno Haible  <bruno@clisp.org>
58417
58418         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
58419         not unsetenv().
58420         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
58421         modifications:
58422
58423         2002-12-11  Bruno Haible  <bruno@clisp.org>
58424
58425                 * setenv.c (alloca): Fall back to malloc.
58426                 (freea): New macro.
58427                 (setenv): Use freea() to free memory allocated with alloca().
58428
58429         2002-11-13  Bruno Haible  <bruno@clisp.org>
58430
58431                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
58432                 function declarations.
58433                 * unsetenv.c (unsetenv): Likewise.
58434
58435         2002-03-04  Bruno Haible  <bruno@clisp.org>
58436
58437                 Portability to AIX 4.3.3.
58438                 * unsetenv.c: New file, extracted from setenv.c.
58439                 * setenv.c: Move the unsetenv() function to unsetenv.c.
58440
58441         2001-12-20  Bruno Haible  <bruno@clisp.org>
58442
58443                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
58444                 use malloc instead. For SunOS 4.
58445
58446         2001-12-11  Bruno Haible  <bruno@clisp.org>
58447
58448                 * setenv.c: Declare alloca.
58449                 (compar_fn_t): New typedef.
58450                 (KNOWN_VALUE, STORE_VALUE): Use it.
58451
58452         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
58453         setenv.h.
58454
58455 2002-12-10  Paul Eggert  <eggert@twinsun.com>
58456
58457         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
58458         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
58459         Choose values that are less likely to collide with system fnmatch
58460         options.
58461         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
58462         defined (e.g., a pure POSIX system).
58463         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
58464         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
58465
58466 2002-12-06  Paul Eggert  <eggert@twinsun.com>
58467
58468         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
58469         a pain in practice to deal with generated m4 files.  This change
58470         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
58471
58472         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
58473         and jm-glibc-io.m4, as they are no longer a special case.
58474         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
58475         kludge and the auto-generation stuff.  Check only whether the
58476         functions are declared, not whether they exist, since older hosts
58477         that don't declare the functions can't use the optimization anyway.
58478
58479 2002-12-06  Jim Meyering  <jim@meyering.net>
58480
58481         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
58482
58483         Merge in changes from libc's misc/error.c, in preparation
58484         for the merge of gnulib's changes back into libc.
58485
58486         * lib/error.c (_): Define only if not already defined.
58487         Move definition to follow all #include directives.
58488         Include unlocked-io.h only if !_LIBC.
58489         [_LIBC]: Include <libio/libioP.h>.
58490         [USE_IN_LIBIO]: Include <libio/iolibio.h>
58491         (fflush): Tweak definition to use INTUSE.
58492         (putc): Define.
58493
58494 2002-12-05  Paul Eggert  <eggert@twinsun.com>
58495
58496         * lib/alloca.c [defined emacs]: Include "lisp.h".
58497         (xalloc_die) [defined emacs]: New macro.
58498         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
58499         [! defined emacs]: Include <xalloc.h>.
58500         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
58501         (pointer): Typedef to POINTER_TYPE *.
58502         (malloc): Remove decl; we now always use xmalloc.
58503         (alloca): Use old-style definition, since Emacs needs this.
58504         Check for arithmetic overflow when computing combined size.
58505
58506 2002-12-04  Paul Eggert  <eggert@twinsun.com>
58507
58508         Do not generate unlocked-io.h automatically, since it's easier to
58509         maintain it by hand.
58510
58511         * lib/unlocked-io.h: New file, from GNU diffutils,
58512         but with proper copyright notice and attribution.
58513         * lib/gen-uio: Remove.
58514         * lib/Makefile.am: Add copyright notice.
58515         (libfetish_a_SOURCES): Add unlocked-io.h.
58516         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
58517         (DISTCLEANFILES, io_functions): Remove macros.
58518         (EXTRA_DIST): Remove gen_uio.
58519         (unlocked-io.h): Remove rule.
58520
58521 2002-12-04  Jim Meyering  <jim@meyering.net>
58522
58523         Reflect the fact that stat.c and lstat.c are no longer generated.
58524         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
58525         (DISTCLEANFILES): Likewise.
58526         (EXTRA_DIST): Likewise.
58527         (all_local): Don't depend on stat.c or lstat.c.
58528         (stat.c, lstat.c): Remove rules.
58529         (EXTRA_DIST): Remove xstat.in.
58530
58531         * lib/xstat.in: Remove file.  Contents moved into stat.c.
58532         * lib/stat.c: New file.  Contents mostly from xstat.in.
58533         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
58534         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
58535
58536         * lib/safe-read.c: Rework so that it may serve to define safe_write,
58537         too.
58538         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
58539
58540 2002-12-03  Jim Meyering  <jim@meyering.net>
58541
58542         * lib/safe-read.c, safe-write.c: Change variable names and comments,
58543         but not semantics, to minimize the differences between these two files.
58544         (safe_read): Change comment to mention SAFE_READ_ERROR.
58545
58546         * lib/safe-read.c (IS_EINTR): Define.
58547         (safe_read): Use IS_EINTR in place of in-function cpp directives.
58548
58549 2002-12-02  Jim Meyering  <jim@meyering.net>
58550
58551         * lib/safe-read.c (EINTR): Define.
58552         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
58553         (INT_MAX): Provide fallback.
58554         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
58555
58556         * lib/safe-read.h (SAFE_READ_ERROR): Define.
58557
58558 2002-12-02  Bruno Haible  <bruno@clisp.org>
58559
58560         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
58561         Define, taken from safe-read.c.
58562         (INT_MAX): Provide fallback.
58563         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
58564         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
58565
58566         * lib/safe-read.c (EINTR): Remove definition.
58567         (safe_read): Don't use EINTR if it is absent.
58568
58569 2002-12-01  Jim Meyering  <jim@meyering.net>
58570
58571         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
58572         zero.
58573         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
58574
58575 2002-11-27  Paul Eggert  <eggert@twinsun.com>
58576
58577         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
58578         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
58579         with `if (! (value < limit)) abort ();', for readability.
58580
58581 2002-11-26  Karl Berry  <karl@gnu.org>
58582
58583         * lib/strdup.c: copy from libc again, with jim's ok.
58584         * lib/.cppi-disable: re-add strdup.c
58585
58586 2002-11-25  Karl Berry  <karl@gnu.org>
58587
58588         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
58589         instead of "strtol.c".
58590
58591 2002-11-25  Karl Berry  <karl@gnu.org>
58592
58593         * config/install-sh: update from automake for variable quoting, $0 in
58594         error msgs, etc.
58595
58596         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
58597         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
58598         entry.
58599
58600 2002-11-25  Jim Meyering  <jim@meyering.net>
58601
58602         * lib/mktime.c: Sync from libc, now that it has the latest fix.
58603
58604 2002-11-24  Karl Berry  <karl@gnu.org>
58605
58606         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
58607         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
58608
58609 2002-11-24  Jim Meyering  <jim@meyering.net>
58610
58611         Update from coreutils:
58612
58613         * lib/mktime.c: Merge in changes from libc.
58614
58615         Avoid a link-time failure on some Linux systems.
58616         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
58617         (otherwise).
58618         (__mon_yday): Declare with the STATIC attribute.
58619         (__mktime_internal): Likewise.
58620         Based on a report from Greg Schafer.
58621
58622 2002-11-23  Jim Meyering  <jim@meyering.net>
58623
58624         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
58625         Use `unsigned', not `int', as type of index.
58626
58627         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
58628
58629         * lib/fsusage.c: Remove unneeded parentheses around operands of
58630         `defined'.
58631
58632 2002-11-22  Paul Eggert  <eggert@twinsun.com>
58633
58634         * lib/quotearg.h: Allow multiple inclusion by surrounding with
58635         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
58636         so that we can be included first.
58637         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
58638         * lib/quotearg.c: Include quotearg.h immediately after config.h.
58639         No need to include stddef.h or sys/types.h any more.
58640         Surround local include files with "", not "<>".
58641         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
58642         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
58643         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
58644         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
58645         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
58646         (ISPRINT): Remove; no longer needed now that we assume C89.
58647
58648         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
58649         Preserve errno.
58650
58651         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
58652         quotearg_char): Use SIZE_MAX rather than
58653         (size_t) -1 when we are talking about "infinity".
58654
58655         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
58656
58657 2002-11-22  Paul Eggert  <eggert@twinsun.com>
58658
58659         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
58660         hint that one should use `if (! x) abort ();' rather than `assert
58661         (x);', and anyway it's one less thing to worry about configuring.
58662         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
58663         hash_rehash, hash_insert): Use abort rather than assert.
58664
58665 2002-11-22  Bruno Haible  <bruno@clisp.org>
58666
58667         * lib/safe-read.h: Assume C89. Add comments.
58668         (safe_read): Change return type to size_t.
58669         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
58670         byte counts > SSIZE_MAX correctly.
58671         * lib/safe-write.h: New file.
58672         * lib/safe-write.c: New file.
58673         * lib/full-read.h: New file.
58674         * lib/full-read.c: New file.
58675         * lib/full-write.h: Assume C89. Add comments.
58676         * lib/full-write.c: Include safe-write.h.
58677         (full_write): Rewritten to use safe_write.
58678         Suggested by Jim Meyering and Paul Eggert.
58679
58680 2002-11-21  Jim Meyering  <jim@meyering.net>
58681
58682         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
58683
58684         Merge in changes from the coreutils.
58685
58686         2002-09-25  Paul Eggert  <eggert@twinsun.com>
58687         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
58688         <stdint.h>.
58689         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
58690         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
58691         int.  Work more efficiently if X is the same width as uintmax_t.
58692         Do not compare X to -1, to avoid bogus compiler warning.
58693         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
58694         Don't assume that f_frsize and f_bsize are the same type.
58695
58696         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
58697         warning on FreeBSD.
58698
58699         * lib/makepath.c (make_path): Restore umask *before* creating the final
58700         component.
58701         (make_path): Minor reformatting.
58702
58703         * lib/xmalloc.c: Adjust to work with new autoconf macros,
58704         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
58705         HAVE_MALLOC/HAVE_REALLOC.
58706
58707         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
58708         dummy ones.  At least on GNU/Linux systems, `auto' means something
58709         else.
58710         From Michael Stone.
58711
58712 2002-11-21  Bruno Haible  <bruno@clisp.org>
58713
58714         Remove case insensitive option matching.
58715         * lib/argmatch.h (argcasematch): Remove declaration.
58716         (ARGCASEMATCH): Remove macro.
58717         (__xargmatch_internal): Remove case_sensitive argument.
58718         (XARGMATCH): Update.
58719         (XARGCASEMATCH): Remove macro.
58720         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
58721         case_sensitive argument.
58722         (argcasematch): Remove function.
58723         (__xargmatch_internal): Remove case_sensitive argument.
58724         (main): Use XARGMATCH instead of XARGCASEMATCH.
58725
58726         * lib/xmalloc.c: Change compile-time error message. Add comment about
58727         required autoconf version.
58728
58729 2002-11-20  Paul Eggert  <eggert@twinsun.com>
58730
58731         Merge argmatch cleanups from Bison.  Assume C89.
58732
58733         * lib/argmatch.c: Include config.h here, not in argmatch.h.
58734         Include stdlib.h, for EXIT_FAILURE.
58735         Always include <string.h>, since we assume C89.
58736         (EXIT_FAILURE): Remove pre-C89 bug workaround.
58737         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
58738         Include <stddef.h> instead, since it's all we need for size_t.
58739         (PARAMS): Remove.  All uses removed.
58740         (ARRAY_CARDINALITY): Do not bother to #undef.
58741         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
58742         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
58743         Remove unnecessary parentheses.
58744         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
58745         Insert necessary parentheses.
58746         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
58747         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
58748
58749 2002-11-19  Bruno Haible  <bruno@clisp.org>
58750
58751         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
58752         * lib/mbswidth.h: Include <stddef.h>, for size_t.
58753
58754         * lib/mbswidth.h (PARAMS): Remove macro.
58755         (mbswidth, mbsnwidth): Use ANSI C function declarations.
58756         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
58757
58758         * lib/gcd.h (PARAMS): Remove macro.
58759         (gcd): Use ANSI C function declarations.
58760         * lib/gcd.c (gcd): Likewise.
58761
58762 2002-11-15  Bruno Haible  <bruno@clisp.org>
58763
58764         * lib/strcspn.c: Include <stddef.h>.
58765         (strcspn): Use ANSI C function declaration. Change return type to
58766         size_t. Use NULL.
58767         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
58768         (strpbrk): Use NULL.
58769         * lib/strpbrk.h (PARAMS): Remove macro.
58770         (strpbrk): Use ANSI C function declaration.
58771         * lib/strstr.c: Don't include <sys/types.h>.
58772         * lib/strstr.h (PARAMS): Remove macro.
58773         (strstr): Use ANSI C function declarations.
58774
58775 2002-11-14  Karl Berry  <karl@gnu.org>
58776
58777         * config/mkinstalldirs: `do' on separate line, instead of
58778         `for var; do'.
58779
58780 2002-11-06  Bruno Haible  <bruno@clisp.org>
58781
58782         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
58783         * lib/gcd.c (gcd): Likewise.
58784
58785 2002-11-05  Bruno Haible  <bruno@clisp.org>
58786
58787         * lib/gcd.h: New file, from gettext-0.11.5.
58788         * lib/gcd.c: New file, from gettext-0.11.5.
58789
58790 2002-11-05  Bruno Haible  <bruno@clisp.org>
58791
58792         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58793         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58794         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58795         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58796
58797         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
58798         <libintl.h>.
58799         * lib/makepath.c: Include gettext.h instead of <locale.h> and
58800         <libintl.h>.
58801
58802         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
58803         * lib/human.c: Include gettext.h instead of <libintl.h>.
58804         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
58805         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
58806         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
58807         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
58808         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
58809         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
58810         (textdomain): Remove definition.
58811         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
58812
58813         * lib/long-options.c: Remove include of <libintl.h> and definition of
58814         _.
58815         * lib/same.c: Remove include of <libintl.h> and definition of _.
58816
58817 2002-11-04  Owen Taylor  <otaylor@redhat.com>
58818
58819         * lib/config.charset: A few additions for Solaris.
58820
58821 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
58822
58823         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
58824         * lib/localcharset.c (locale_charset): Declare as extern "C".
58825
58826 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
58827
58828         * lib/config.charset: msdos in uk_UA uses CP1125.
58829
58830 2002-11-04  Bruno Haible  <bruno@clisp.org>
58831
58832         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
58833         * lib/strcase.h: New file, from GNU gettext-0.11.5.
58834         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
58835         * lib/strstr.h: New file, from GNU gettext-0.11.5.
58836         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
58837
58838 2002-11-04  Bruno Haible  <bruno@clisp.org>
58839
58840         * lib/localcharset.c (locale_charset): Don't return an empty string.
58841
58842 2002-11-04  Bruno Haible  <bruno@clisp.org>
58843
58844         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
58845         aliases.
58846
58847 2002-11-04  Bruno Haible  <bruno@clisp.org>
58848
58849         * lib/config.charset: Update for newest glibc. Add canonical names
58850         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
58851
58852 2002-11-04  Bruno Haible  <bruno@clisp.org>
58853
58854         * lib/config.charset: Add support for NetBSD.
58855
58856 2002-11-04  Bruno Haible  <bruno@clisp.org>
58857
58858         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
58859
58860 2002-11-01  Bruno Haible  <bruno@clisp.org>
58861
58862         * configure.in: Add AC_CONFIG_AUX_DIR call.
58863         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
58864         test/Makefile.
58865         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
58866
58867 2002-09-28  Karl Berry  <karl@gnu.org>
58868
58869         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
58870         installed automake until the next release, since changes have been
58871         made.
58872
58873 2002-09-25  Karl Berry  <karl@gnu.org>
58874
58875         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
58876         * lib/getopt*: copy from libc/posix.
58877         * lib/gettext.h: copy from gettext.
58878         * lib/.cppi-disable: add strdup.c, gettext.h.
58879
58880 2002-09-25  Karl Berry  <karl@gnu.org>
58881
58882         * config/srclist.txt: enable gettext.h check.
58883         * config/config.{guess,sub}: update from prep.
58884         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
58885                 from automake 1.6.3.
58886         See srclist*.
58887
58888 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
58889
58890         * regex.c (PATFETCH): Remove the translating fetch.
58891         (PATFETCH_RAW): Rename to PATFETCH.
58892         (set_image_of_range): New fun.
58893         (SET_RANGE_TABLE_WORK_AREA): Use it.
58894         (regex_compile): Don't translate the pattern chars so eagerly.
58895         Only do it when inserting an `exactn' bytecode or when handling
58896         a char-range.
58897         (mutually_exclusive_p): Avoid empty statement.
58898
58899 2002-07-06  Jim Meyering  <meyering@lucent.com>
58900
58901         * m4/README: Don't mention Makefile.am.in.
58902         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
58903
58904 2002-07-01  Jim Meyering  <meyering@lucent.com>
58905
58906         * lib/c-stack.c: Include sys/time.h.
58907         From Volker Borchert.
58908
58909 2002-06-26  Paul Eggert  <eggert@twinsun.com>
58910
58911         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
58912
58913 2002-06-26  Paul Eggert  <eggert@twinsun.com>
58914
58915         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
58916         New macro.  Use it uniformly instead of
58917         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
58918         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
58919         reported by Vin Shelton.
58920
58921 2002-06-22  Paul Eggert  <eggert@twinsun.com>
58922
58923         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
58924         Do not assume SA_SIGINFO behavior.
58925         Bug reported by Jim Meyering on NetBSD 1.5.2.
58926
58927 2002-06-22  Jim Meyering  <meyering@lucent.com>
58928
58929         * m4/c-stack.m4: New file, from diffutils-2.8.2.
58930         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
58931
58932         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
58933         now that configure.ac uses AC_GNU_SOURCE.
58934         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
58935         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
58936
58937         Update to latest tools.  Suggestions from Paul Eggert.
58938         * m4/stdbool.m4: New file, from diffutils-2.8.2.
58939         * m4/gnu-source.m4: Update from diffutils-2.8.2.
58940         * m4/fnmatch.m4: Likewise.
58941         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
58942         to AC_HEADER_STDBOOL
58943
58944 2002-06-22  Jim Meyering  <meyering@lucent.com>
58945
58946         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
58947         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
58948
58949 2002-06-22  Jim Meyering  <meyering@lucent.com>
58950
58951         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
58952
58953         * lib/exitfail.c, exitfail.h: Likewise.
58954         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
58955
58956         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
58957         of fnmatch.h.
58958         (EXTRA_DIST): Add fnmatch_loop.c.
58959         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
58960
58961         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
58962         * lib/fnmatch.c: Update from diffutils-2.8.2.
58963         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
58964         * lib/fnmatch.h: Remove file.
58965
58966 2002-06-21  Jim Meyering  <meyering@lucent.com>
58967
58968         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
58969         * m4/mbrtowc.m4: Likewise.
58970
58971         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
58972         * m4/mbswidth.m4: Reflect name change:
58973         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
58974         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
58975
58976         * m4/lib-link.m4: Update from gettext-0.11.2.
58977         * m4/gettext.m4: Likewise.
58978
58979         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
58980         From Alfred M. Szmidt.
58981
58982 2002-06-18  Paul Eggert  <eggert@twinsun.com>
58983
58984         * lib/file-type.h: Report an error if neither S_ISREG nor
58985         S_IFREG is defined, instead of using a test specific to glibc
58986         2.2.  This should be safe, since POSIX requires S_ISREG and
58987         Unix Version 7 had S_IFREG.  We don't need to check for
58988         <sys/types.h> since we don't use any symbols that it defines.
58989
58990 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
58991
58992         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
58993         $@-t, so that each temporary file name is unique and valid in the first
58994         8 characters, for operation under DOS.
58995
58996 2002-06-15  Paul Eggert  <eggert@twinsun.com>
58997
58998         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
58999
59000 2002-06-15  Jim Meyering  <meyering@lucent.com>
59001
59002         Work even with DJGPP 2.03, which lacks support for symlinks.
59003         From Richard Dawe.
59004         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
59005         is defined.
59006         * lib/lchown.c (S_ISLNK): Likewise.
59007
59008 2002-06-15  Jim Meyering  <meyering@lucent.com>
59009
59010         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
59011         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
59012         have been included before this file.
59013
59014 2002-06-14  Jim Meyering  <meyering@lucent.com>
59015
59016         * lib/file-type.h: Use the version from diffutils-2.8.2.
59017         * lib/file-type.c: Likewise.
59018
59019 2002-06-07  Jim Meyering  <meyering@lucent.com>
59020
59021         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
59022         They're needed at least for NetBSD 1.5.2.
59023         ($statxfs_includes): Include those same headers.
59024         ($statxfs_includes): Include sys/vfs.h if available.
59025         ($statxfs_includes): Likewise for sys/statvfs.h.
59026         Check for the following members in both structs statfs and statvfs:
59027         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
59028
59029 2002-06-01  Jim Meyering  <meyering@lucent.com>
59030
59031         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
59032         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
59033
59034 2002-05-28  Jim Meyering  <meyering@lucent.com>
59035
59036         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
59037         Reported by Volker Borchert.
59038
59039 2002-05-27  Jim Meyering  <meyering@lucent.com>
59040
59041         Fix a problem seen only on nonconforming systems whereby ls.c's
59042         use of localtime, and then of gettimeofday would cause trouble:
59043         the localtime call used to initialize rpl_gettimeofday's save
59044         mechanism would clobber ls's current local time information so
59045         that in any long listing the first file would always be listed
59046         with date 1970-01-01.  Analysis by Volker Borchert.
59047
59048         * lib/gettimeofday.c (localtime): Undefine.
59049         (rpl_localtime): New function.
59050
59051 2002-05-27  Jim Meyering  <meyering@lucent.com>
59052
59053         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
59054         localtime.
59055
59056         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
59057         use the replacement function; it wouldn't resolve at link time.
59058         Reported by Volker Borchert.
59059
59060 2002-05-22  Jim Meyering  <meyering@lucent.com>
59061
59062         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
59063         file-type.h.
59064         * lib/file-type.h: New file.
59065         * lib/file-type.c (file_type): New file/function.  Extracted from
59066         diffutils.
59067
59068 2002-04-30  Jim Meyering  <meyering@lucent.com>
59069
59070         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
59071
59072 2002-04-29  Paul Eggert  <eggert@twinsun.com>
59073
59074         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
59075
59076 2002-04-29  Paul Eggert  <eggert@twinsun.com>
59077
59078         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
59079         Do not check for alloca.h (no longer used) or stdbool.h (was never
59080         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
59081
59082 2002-04-29  Paul Eggert  <eggert@twinsun.com>
59083
59084         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
59085
59086 2002-04-29  Jim Meyering  <meyering@lucent.com>
59087
59088         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
59089         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
59090         Use AC_FUNC_STRNLEN here instead.
59091
59092         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
59093         With autoconf-2.53a, it's part of AC_PROG_CC.
59094
59095 2002-04-28  Paul Eggert  <eggert@twinsun.com>
59096
59097         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
59098         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
59099
59100 2002-04-28  Paul Eggert  <eggert@twinsun.com>
59101
59102         * lib/sig2str.h, lib/sig2str.c: New files.
59103         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
59104
59105 2002-04-28  Paul Eggert  <eggert@twinsun.com>
59106
59107         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
59108         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
59109         of 127, since 64 is the largest conceivable number for ancient
59110         nonstandard hosts.
59111         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
59112
59113 2002-04-28  Jim Meyering  <meyering@lucent.com>
59114
59115         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
59116
59117 2002-04-24  Jim Meyering  <meyering@lucent.com>
59118
59119         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
59120         (jm_PREREQ): Use it.
59121
59122         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
59123         mach/mach.h fcntl.h.
59124         Check for this function: setlocale.
59125
59126 2002-04-24  Jim Meyering  <meyering@lucent.com>
59127
59128         * lib/gettext.h: New file, from Gettext.
59129         * lib/Makefile.am (INCLUDES): Remove -I../intl.
59130         (libfetish_a_SOURCES): Add gettext.h.
59131
59132 2002-04-16  Jim Meyering  <meyering@lucent.com>
59133
59134         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
59135         ut_pid, ut_id, ut_exit.
59136
59137 2002-04-16  Jim Meyering  <meyering@lucent.com>
59138
59139         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
59140         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
59141         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
59142
59143 2002-04-12  Jim Meyering  <meyering@lucent.com>
59144
59145         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
59146         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
59147         existence of the getmntinfo function.  Needed for Darwin 5.3.
59148
59149         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
59150         This is necessary at least on Darwin 5.3.
59151
59152         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
59153         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
59154         strnlen.o in the library, and that makes some versions of ranlib
59155         object.
59156
59157 2002-04-12  Jim Meyering  <meyering@lucent.com>
59158
59159         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
59160
59161 2002-04-09  Jim Meyering  <meyering@lucent.com>
59162
59163         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
59164         to be more precise.  Rather than saying we're checking whether the
59165         function `works', say what we're testing.
59166         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
59167         Reported by Bruno Haible.
59168
59169 2002-03-10  Jim Meyering  <meyering@lucent.com>
59170
59171         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
59172         Suggestion from Santiago Vila.
59173
59174 2002-03-08  Jim Meyering  <meyering@lucent.com>
59175
59176         * lib/rename.c: Mention that this wrapper is needed also on
59177         mips-dec-ultrix4.4 systems.
59178
59179 2002-03-02  Jim Meyering  <meyering@lucent.com>
59180
59181         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
59182         not HAVE_CLOCK_SETTIME.
59183
59184 2002-02-27  Paul Eggert  <eggert@twinsun.com>
59185
59186         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
59187         Check for clock_settime.
59188
59189 2002-02-27  Paul Eggert  <eggert@twinsun.com>
59190
59191         * lib/nanosleep.h: Rename to....
59192         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
59193
59194         * lib/gettime.c: New file.
59195         * lib/settime.c: New file.
59196         * lib/stime.c: Remove.
59197
59198         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
59199         timespec.h.  Remove nanosleep.h.
59200
59201 2002-02-25  Paul Eggert  <eggert@twinsun.com>
59202
59203         * m4/acl.m4: New file.
59204         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
59205         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
59206
59207 2002-02-25  Paul Eggert  <eggert@twinsun.com>
59208
59209         * lib/acl.c, lib/acl.h: New files.
59210         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
59211
59212 2002-02-24  Jim Meyering  <meyering@lucent.com>
59213
59214         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
59215         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
59216         cause trouble.  Reported by Nelson Beebe.
59217
59218 2002-02-23  Paul Eggert  <eggert@twinsun.com>
59219
59220         * lib/path-concat.c (xpath_concat): Reorder code to pacify
59221         compilers that don't know that xalloc_die never returns.
59222
59223 2002-02-20  Jim Meyering  <meyering@lucent.com>
59224
59225         * lib/getdate.c: Regenerate using bison-1.33.
59226
59227 2002-02-17  Jim Meyering  <meyering@lucent.com>
59228
59229         * config/config.guess (main): Don't use `head -1'; it's no longer
59230         portable. Use `sed 1q' instead.
59231
59232 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
59233
59234         * m4/codeset.m4: Upgrade to gettext-0.11.
59235         * m4/gettext.m4: Upgrade to gettext-0.11.
59236         * m4/glibc21.m4: Upgrade to gettext-0.11.
59237         * m4/iconv.m4: Upgrade to gettext-0.11.
59238         * m4/isc-posix.m4: Upgrade to gettext-0.11.
59239         * m4/lcmessage.m4: Upgrade to gettext-0.11.
59240         * m4/lib-ld.m4: New file, from gettext-0.11.
59241         * m4/lib-link.m4: New file, from gettext-0.11.
59242         * m4/lib-prefix.m4: New file, from gettext-0.11.
59243         * m4/progtest.m4: Upgrade to gettext-0.11.
59244
59245 2002-02-15  Paul Eggert  <eggert@twinsun.com>
59246
59247         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
59248         (jm_PREREQ): Use it.
59249
59250 2002-02-15  Paul Eggert  <eggert@twinsun.com>
59251
59252         * lib/posixver.c, lib/posixver.h: New files.
59253         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59254
59255 2002-02-02  Paul Eggert  <eggert@twinsun.com>
59256             Bruno Haible  <bruno@clisp.org>
59257
59258         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
59259         (fwrite_success_callback): New declaration.
59260         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
59261         print_unicode_char. Call failure callback instead of error.
59262         (fwrite_success_callback): New function.
59263         (exit_failure_callback): New function.
59264         (fallback_failure_callback): New function.
59265         (print_unicode_char): Call unicode_to_mb.
59266
59267 2002-01-26  Jim Meyering  <meyering@lucent.com>
59268
59269         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
59270         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
59271
59272 2002-01-26  Jim Meyering  <meyering@lucent.com>
59273
59274         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
59275
59276 2002-01-22  Paul Eggert  <eggert@twinsun.com>
59277
59278         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
59279
59280 2002-01-22  Jim Meyering  <meyering@lucent.com>
59281
59282         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
59283         Otherwise, some versions of automake would omit the rule that makes
59284         Makefile from Makefile.in.
59285
59286 2002-01-21  Paul Eggert  <eggert@twinsun.com>
59287
59288         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
59289         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59290         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
59291         (memcoll): Set errno to zero if there is no error.
59292
59293         * lib/quotearg.c (quotearg_buffer_restyled):
59294         Fix bug with quoting buffers containing NUL when backslashing escapes.
59295         This bug was exposed by the other changes in this patch.
59296         (quotearg_n_options): New arg ARGSIZE.
59297         All callers changed.
59298         (quoting_options_from_style): New function.
59299         (quotearg_n_style): Use it.
59300         (quotearg_n_style_mem): New function.
59301
59302         * lib/quotearg.h (quotearg_n_style_mem): New function.
59303
59304 2002-01-19  Jim Meyering  <meyering@lucent.com>
59305
59306         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
59307         Remove useless quotes: DF_PROG="df".
59308         * m4/strnlen.m4: New file.
59309
59310 2002-01-16  Paul Eggert  <eggert@twinsun.com>
59311
59312         * lib/backupfile.c (ISDIGIT): Comment fix.
59313         * lib/getdate.y (ISDIGIT): Likewise.
59314         * lib/posixtm.c (ISDIGIT, year): Likewise.
59315         * lib/strverscmp.c (ISDIGIT): Likewise.
59316         * lib/userspec.c (ISDIGIT): Likewise.
59317
59318 2002-01-16  Jim Meyering  <meyering@lucent.com>
59319
59320         * lib/getdate.y: Add three semicolons, each just before a closing
59321         brace. Bison (as of version 1.31) no longer papers over that mistake.
59322
59323 2002-01-05  Jim Meyering  <meyering@lucent.com>
59324
59325         * lib/version-etc.c (version_etc_copyright): Update copyright year.
59326
59327 2001-12-19  Paul Eggert  <eggert@twinsun.com>
59328
59329         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
59330         not silently exit merely because the output buffer happens to
59331         have nothing pending.
59332
59333 2001-12-18  Paul Eggert  <eggert@twinsun.com>
59334
59335         See the big note in ../ChangeLog.
59336         * lib/human.c (suffixes): Prefer K to k for 1024.
59337         (generate_suffix_backwards): New function.
59338         (human_readable_inexact): Use it.
59339         * lib/xstrtol.c (__xstrtol): If there is no number but there
59340         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
59341         Accept 'K' as well as 'k'.
59342
59343 2001-12-15  Jim Meyering  <meyering@lucent.com>
59344
59345         * lib/regex.h (__restrict_arr): Update from libc.
59346
59347         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
59348         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
59349         (STREQ): Define.
59350
59351 2001-12-14  Jim Meyering  <meyering@lucent.com>
59352
59353         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
59354         Suggestion from Bruno Haible.
59355
59356 2001-12-10  Jim Meyering  <meyering@lucent.com>
59357
59358         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
59359         xrealloc, Instead, include "xalloc.h".
59360         (initbuffer): Don't cast xmalloc return value to char*.
59361         (readline): Reword comment.
59362         Don't cast xrealloc return value to char*
59363         Return NULL, not 0.
59364
59365 2001-12-09  Jim Meyering  <meyering@lucent.com>
59366
59367         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
59368         about `signed and unsigned type in conditional expression'.
59369         * lib/posixtm.c (posix_time_parse): Likewise.
59370
59371         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
59372
59373         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
59374         to avoid a pedantic warning.
59375
59376         * lib/getstr.c: Don't include assert.h.
59377         (getstr): Remove warning-evoking assertions.
59378         Return -1 if offset parameter is out of bounds.
59379         Change the type of a local from int to size_t.
59380
59381         * lib/strftime.c (my_strftime_localtime_r): Include this function
59382         definition in the `#if ! HAVE_TM_GMTOFF' block.
59383
59384         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
59385         Include xalloc.h instead.
59386
59387 2001-12-02  Jim Meyering  <meyering@lucent.com>
59388
59389         * lib/tempname.c: Don't declare getenv, thus reverting the change of
59390         2001-11-18.  It's no longer necessary, now that stdlib.h is always
59391         included.
59392
59393         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
59394         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
59395
59396 2001-11-30  Akim Demaille  <akim@epita.fr>
59397
59398         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
59399         before being defined.
59400
59401 2001-11-27  Paul Eggert  <eggert@twinsun.com>
59402
59403         * lib/quotearg.h (quotearg_n, quotearg_n_style):
59404         First arg is int, not unsigned.
59405         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
59406         (SIZE_MAX, UINT_MAX): New macros.
59407         (quotearg_n_options): Abort if N is negative.
59408         Avoid overflow check on hosts where size_t is 64 bits and int
59409         is 32 bits, as overflow is impossible there.
59410         Fix off-by-one typo that caused unnecessary reallocation.
59411
59412 2001-11-27  Jim Meyering  <meyering@lucent.com>
59413
59414         * lib/tempname.c: Merge with version from libc.
59415         * lib/regex.c: Likewise.
59416
59417         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
59418         systems for which STDC_HEADERS is 0, it was not included, resulting in
59419         a warning about an integer-to-pointer conversion problem with getenv.
59420         Reported by Volker Borchert.
59421
59422 2001-11-26  Jim Meyering  <meyering@lucent.com>
59423
59424         * lib/gtod.h: Remove file.
59425         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
59426         * lib/gettimeofday.c: Don't include gtod.h.
59427         (GTOD_init): Remove function.
59428         (rpl_gettimeofday): Do its job here instead, rather than aborting.
59429         Suggestion from Volker Borchert.
59430
59431 2001-11-23  Jim Meyering  <meyering@lucent.com>
59432
59433         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
59434         it.
59435         * lib/hash.c (struct hash_table): Define it here instead.
59436
59437 2001-11-22  Jim Meyering  <meyering@lucent.com>
59438
59439         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
59440
59441 2001-11-20  Jim Meyering  <meyering@lucent.com>
59442
59443         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
59444         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
59445
59446 2001-11-19  Jim Meyering  <meyering@lucent.com>
59447
59448         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
59449         directory.  Use "conftestXXXXXX" as the template.
59450         Suggestion from Paul Eggert.
59451
59452         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
59453         immediately, so the test doesn't mistakenly hit the max-open-files
59454         limit.
59455
59456 2001-11-18  Paul Eggert  <eggert@twinsun.com>
59457
59458         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
59459         (TEMPORARIES): New macro.
59460         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
59461         removes an artificial limitation (e.g. HP-UX 10.20, where
59462         TMP_MAX is 17576).
59463
59464 2001-11-18  Jim Meyering  <meyering@lucent.com>
59465
59466         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
59467
59468 2001-11-18  Jim Meyering  <meyering@lucent.com>
59469
59470         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
59471         on SunOS 4.
59472
59473         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
59474         files will be created before anything else.
59475
59476 2001-11-17  Paul Eggert  <eggert@twinsun.com>
59477
59478         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
59479         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
59480
59481 2001-11-17  Jim Meyering  <meyering@lucent.com>
59482
59483         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
59484         Prompted by a report from Bob Proulx.
59485
59486         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
59487         Instead, require UTILS_FUNC_MKSTEMP.
59488
59489 2001-11-17  Jim Meyering  <meyering@lucent.com>
59490
59491         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
59492         Now, that's done as part of AC_FUNC_STRTOD.
59493
59494 2001-11-17  Jim Meyering  <meyering@lucent.com>
59495
59496         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
59497         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
59498         rather than group writable.  Patch by Juan F. Codagnone.
59499
59500         * lib/readtokens.c: Remove explicit declarations of xmalloc and
59501         xrealloc, Instead, include "xalloc.h".
59502
59503         * lib/mountlist.c: Include unlocked-io.h after all system headers.
59504         Remove explicit declarations of xmalloc, xrealloc,
59505         and xstrdup.  Instead, include "xalloc.h".
59506
59507         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
59508         unlocked-io.h.
59509         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
59510         Likewise.
59511         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
59512
59513         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
59514         Reported by Padraig Brady.
59515
59516         * lib/mkstemp.c: #undef mkstemp.
59517         Include config.h.
59518         (rpl_mkstemp): Rename from mkstemp.
59519         Protoize.
59520
59521 2001-11-16  Jim Meyering  <meyering@lucent.com>
59522
59523         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
59524         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
59525         determine the amount of total physical memory, use pstat_getstatic.
59526         HPUX-11 doesn't define _SC_PHYS_PAGES.
59527         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
59528         If sysconf couldn't be used to determine the amount of available
59529         physical memory, use both pstat_getstatic and pstat_getdynamic.
59530         Based on a patch from Bob Proulx.
59531
59532 2001-11-10  Jim Meyering  <meyering@lucent.com>
59533
59534         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
59535         (jm_PREREQ): Use it.
59536
59537 2001-11-09  Jim Meyering  <meyering@lucent.com>
59538
59539         * m4/jm-macros.m4: Require autoconf-2.52f.
59540         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
59541         Use these AC_-prefixed names, not the AM_-prefixed ones.
59542
59543         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
59544
59545 2001-11-05  Jim Meyering  <meyering@lucent.com>
59546
59547         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
59548
59549 2001-11-04  Jim Meyering  <meyering@lucent.com>
59550
59551         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
59552         $DEFS.
59553
59554 2001-11-03  Jim Meyering  <meyering@lucent.com>
59555
59556         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
59557         of AC_DEFUN.
59558
59559         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
59560         know the name of the variable in the macro definition.
59561
59562 2001-11-03  Jim Meyering  <meyering@lucent.com>
59563
59564         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
59565         in argmatch_to_argument call.
59566
59567         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
59568         argument.
59569
59570         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
59571         e.g., a fault due to an attempt to free a NULL pointer.
59572
59573 2001-11-01  Jim Meyering  <meyering@lucent.com>
59574
59575         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
59576         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
59577
59578 2001-11-01  Jim Meyering  <meyering@lucent.com>
59579
59580         * lib/dirfd.c, lib/dirfd.h: New files.
59581         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
59582
59583         * lib/hash.c (hash_print) [TESTING]: Clean up.
59584
59585 2001-10-22  Paul Eggert  <eggert@twinsun.com>
59586
59587         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
59588         to avoid a warning if -Wall.
59589
59590 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
59591
59592         * README: New file
59593         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
59594         (per RMS's instructions, this is now the canonical source)
59595         * lgpl/, gpl/: New directories.
59596
59597 2001-10-21  Paul Eggert  <eggert@twinsun.com>
59598
59599         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
59600
59601 2001-10-21  Jim Meyering  <meyering@lucent.com>
59602
59603         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
59604         this code would end up calling gettext even in packages built
59605         with --disable-nls.
59606         * lib/getopt.c (_): Likewise.
59607         * lib/regex.c (_): Likewise.
59608
59609 2001-10-20  Paul Eggert  <eggert@twinsun.com>
59610
59611         * m4/error.m4 (jm_PREREQ_ERROR):
59612         Do not invoke AC_CHECK_FUNCS with strerror_r, as
59613         AC_FUNC_STRERROR_R does that.
59614         Check for strerror declaration.
59615
59616         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
59617         are supposed to have them these days.
59618         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
59619         Merge changes from latest Autoconf CVS.
59620         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
59621         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
59622         POSIX decided to standardize on the int flavor of strerror_r.
59623
59624 2001-10-20  Paul Eggert  <eggert@twinsun.com>
59625
59626         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
59627         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
59628         Use strerror_r that is only a macro, even if it is not a function.
59629         (strerror): Check for HAVE_DECL_STRERROR before declaring.
59630         (private_strerror): Use prototypes, not old-style function definition.
59631         (print_errno_message): New function.
59632         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
59633         char*-flavored one.
59634         (error_tail, error, error_at_line): Use it.
59635
59636 2001-10-11  Jim Meyering  <meyering@lucent.com>
59637
59638         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
59639         and quote_n (1, ... to avoid clobbering a buffer.
59640
59641 2001-10-05  Jim Meyering  <meyering@lucent.com>
59642
59643         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
59644         hash-pjw.h.
59645         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
59646         * lib/hash-pjw.h: New file.
59647
59648 2001-09-30  Jim Meyering  <meyering@lucent.com>
59649
59650         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
59651         `struct fsstat' has the `f_fstypename' member.
59652         Use that to define FS_TYPE, which is now used to make
59653         the getfsstat link test tighter.
59654
59655 2001-09-30  Jim Meyering  <meyering@lucent.com>
59656
59657         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
59658         Include <sys/ucred.h>, for Apple Darwin.
59659         Include sys/mount.h and sys/fs_types.h only if available.
59660         (FS_TYPE): Define.
59661         (read_filesystem_list): Use FS_TYPE.
59662
59663 2001-09-29  Paul Eggert  <eggert@twinsun.com>
59664
59665         * lib/exclude.c (excluded_filename): 0 -> false, since it's
59666         a boolean context.
59667
59668 2001-09-29  Jim Meyering  <meyering@lucent.com>
59669
59670         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
59671         [one-argument getmntent function]): Include stdio.h before mntent.h.
59672         SunOS 4.1.x needs it for the declaration of `FILE'.
59673         Patch by Volker Borchert.
59674
59675         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
59676         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
59677         sys/fs_types.h, and make the link-test for getfsstat guard #include
59678         directives with appropriate #if HAVE_*_H tests so that we can
59679         detect getfsstat on Apple Darwin1.3.7 systems.
59680         Reported by Nelson Beebe.
59681         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
59682
59683 2001-09-28  Paul Eggert  <eggert@twinsun.com>
59684
59685         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
59686         #defines strtoimax.  Also treat the other strto* functions
59687         like strtoimax.
59688
59689         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
59690         Check for strtoul and strtoumax,
59691         as those declarations are made even in the signed case.
59692         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
59693         Likewise, for strtol and strtoimax.
59694
59695 2001-09-28  Paul Eggert  <eggert@twinsun.com>
59696
59697         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
59698         #defines strtoimax.  Also treat the other strto* functions
59699         like strtoimax.
59700
59701         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
59702         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
59703         (strtoimax, strtoumax): Do not declare if already defined as a macro.
59704
59705 2001-09-26  Jim Meyering  <meyering@lucent.com>
59706
59707         Most macros in unlocked-io.h had the wrong number of arguments.
59708         * lib/gen-uio: New script.
59709         (USE_UNLOCKED_IO): Define to 1 if not already defined.
59710         * lib/unlocked-io.hin: Remove file.
59711         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
59712         rather than trying to embed it here.
59713         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
59714         Reported by Padraig Brady.
59715
59716 2001-09-25  Volker Borchert  <bt@teknon.de>
59717
59718         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
59719         `result'.
59720
59721 2001-09-24  Jim Meyering  <meyering@lucent.com>
59722
59723         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
59724
59725 2001-09-23  Jim Meyering  <meyering@lucent.com>
59726
59727         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
59728         instead of the mere test for existence of mntent.h.  The latter
59729         would get a false-positive on AIX 3.4 systems.
59730         In the outer getmntent if-block, don't die if neither of the getmntent
59731         tests succeeds.  Instead, just fall through and continue with the
59732         remaining tests.
59733
59734 2001-09-23  Jim Meyering  <meyering@lucent.com>
59735
59736         * lib/mountlist.c: Remove useless parentheses in #if directives.
59737         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
59738         the deprecated MOUNTED symbol is no longer defined in mntent.h.
59739
59740 2001-09-22  Jim Meyering  <meyering@lucent.com>
59741
59742         * m4/gettext.m4: New file.  From gettext.
59743         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
59744         * m4/progtest.m4: Likewise
59745         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
59746         * m4/glibc21.m4: Likewise.
59747
59748         * m4/libintl.m4: Remove.  No longer used.
59749
59750 2001-09-22  Jim Meyering  <meyering@lucent.com>
59751
59752         * lib/localcharset.c: Update from latest gettext.
59753         * lib/config.charset: Likewise.
59754
59755 2001-09-20  Jim Meyering  <meyering@lucent.com>
59756
59757         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
59758         strtoimax.
59759         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
59760         strtoumax.
59761
59762 2001-09-20  Jim Meyering  <meyering@lucent.com>
59763
59764         * lib/xstrtol.c (strtoimax): Guard declaration with
59765         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
59766         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
59767         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
59768         (strtoumax): Likewise, for completeness (it wasn't necessary).
59769
59770 2001-09-17  Paul Eggert  <eggert@twinsun.com>
59771
59772         * lib/strtoimax.c (HAVE_LONG_LONG):
59773         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
59774         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
59775         to work around bug in IBM C compiler.
59776
59777 2001-09-17  Jim Meyering  <meyering@lucent.com>
59778
59779         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
59780         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
59781         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
59782         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
59783         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
59784         whenever the right hand side need not be expanded by the shell.
59785
59786 2001-09-16  Paul Eggert  <eggert@twinsun.com>
59787
59788         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
59789         library.  It's not correct, as some older glibcs are buggy.
59790         fnmatch wasn't fixed until glibc 2.2.
59791
59792         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
59793         special shell magic here.
59794
59795 2001-09-16  Jim Meyering  <meyering@lucent.com>
59796
59797         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
59798         * m4/jm-macros.m4: Require it.
59799
59800 2001-09-16  Jim Meyering  <meyering@lucent.com>
59801
59802         * lib/mkdir.c: New file.
59803
59804 2001-09-15  Jim Meyering  <meyering@lucent.com>
59805
59806         * m4/jm-macros.m4: Check for help2man.
59807
59808 2001-09-11  Jim Meyering  <meyering@lucent.com>
59809
59810         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
59811         The body, by Paul Eggert, was moved here from configure.in.
59812         * m4/jm-macros.m4: Require UTILS_HOST_OS.
59813
59814 2001-09-04  Paul Eggert  <eggert@twinsun.com>
59815
59816         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
59817         (jm_PREREQ): Use it.
59818
59819 2001-09-04  Paul Eggert  <eggert@twinsun.com>
59820
59821         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
59822         Use ssize_t, not int, to store result of readlink.
59823         Check for ssize_t overflow as well as size_t overflow,
59824         as POSIX says the result of readlink is implementation-defined
59825         when ssize_t overflows.
59826         Remove unnecessary cast to char*.
59827         Use free+malloc instead of realloc, as the storage doesn't need
59828         to be preserved and it's clearer and can be more efficient that way.
59829         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
59830         * lib/xreadlink.h (xreadlink): Update prototype.
59831
59832 2001-09-04  Paul Eggert  <eggert@twinsun.com>
59833
59834         * lib/xgetcwd.c: Revert some of the previous change; intead,
59835         fix the HAVE_GETCWD_NULL code to behave more like the
59836         !HAVE_GETCWD_NULL code used to.
59837
59838         Include "xalloc.h".
59839         (xgetcwd): Do not return NULL when memory is exhausted; instead,
59840         invoke xalloc_die.
59841
59842 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59843
59844         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
59845         sys/param.h, as pathmax.h includes them.
59846
59847 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59848
59849         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
59850         (jm_PREREQ_XGETCWD): New macro.
59851
59852         * m4/getcwd.m4: New file.
59853
59854 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59855
59856         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
59857         like the HAVE_GETCWD_NULL code.
59858         Include pathmax.h if not HAVE_GETCWD.
59859         Do not include xalloc.h.
59860         (INITIAL_BUFFER_SIZE): New symbol.
59861         Do not use xmalloc / xrealloc, since the caller is responsible for
59862         handling errors.  Preserve errno around `free' during failure.
59863         Do not overrun buffer when using getwd.
59864
59865 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59866
59867         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
59868         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
59869         getcwd (NULL, 0).
59870
59871 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59872
59873         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
59874         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
59875         spotted by Jim Meyering.
59876
59877 2001-09-03  Jim Meyering  <meyering@lucent.com>
59878
59879         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
59880         failure.
59881
59882 2001-09-02  Jim Meyering  <meyering@lucent.com>
59883
59884         * lib/error.c: Update from GNU libc.
59885
59886 2001-09-01  Jim Meyering  <meyering@lucent.com>
59887
59888         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
59889         Used by df.
59890
59891 2001-09-01  Jim Meyering  <meyering@lucent.com>
59892
59893         * lib/xreadlink.c: New file.
59894         * lib/xreadlink.h: New file.
59895         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
59896         xreadlink.h.
59897
59898         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
59899         doesn't conflict with sparc Solaris 7's definition in
59900         /usr/include/sys/int_types.h.
59901
59902         * lib/exclude.c: Use `""', not `<>' to #include non-system header
59903         files.
59904         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
59905         and strncasecmp as r-values.  Unixware didn't have declarations.
59906
59907 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59908
59909         * lib/xstrtol.h: Add copyright notice.
59910         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
59911         LONGINT_INVALID_SUFFIX_CHAR.
59912
59913 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59914
59915         * lib/xstrtol.c (strtoimax): New decl.
59916
59917 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59918
59919         * lib/xgetcwd.c: Don't include pathmax.h.
59920         Include stdlib.h and unistd.h if available.
59921         Include xalloc.h.
59922         (xmalloc, xstrdup, free): Remove decls.
59923         (xgetcwd): Don't assume sizes fit in unsigned.
59924         Check for overflow when computing sizes.
59925         Simplify reallocation code.
59926
59927 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59928
59929         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
59930         a directory's st_size can have an arbitrary value, so the old
59931         usage could waste an arbitrary amount of memory.  All uses
59932         changed.
59933         * lib/savedir.h: Update prototype.
59934
59935 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59936
59937         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
59938
59939         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
59940         old strtoimax.c.
59941
59942         Also, make the following further changes to make this file's
59943         configuration more similar to that of strtol.c:
59944         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
59945         (strtoumax, uintmax_t, strtoull, strtol): Remove.
59946         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
59947         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
59948         changed to signed values.
59949
59950         And make the following changes as well:
59951         Fix copyright notice, as 1999 was missing.
59952         (verify): New macro.
59953         (strtoimax): Check sizes at compile-time, not run-time.
59954         Prefer strtol to strtoll if both work.
59955         (main): Remove; it was not that useful and was a pain to maintain.
59956
59957         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
59958
59959 2001-08-31  Jim Meyering  <meyering@lucent.com>
59960
59961         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
59962         Use an initial, malloc'd, buffer of length 128 rather than
59963         a statically allocated one of length 1024.
59964
59965 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59966
59967         Simplify code, partly by assuming autoconf 2.52 semantics.
59968
59969         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
59970
59971         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
59972         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
59973         All uses removed.
59974         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
59975         Move AC_REQUIRE to next-to-top level, to avoid confusion.
59976         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
59977         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
59978         jm_AC_HEADER_INTTYPES_H.
59979         * m4/jm-macros.m4 (jm_MACROS): Likewise.
59980
59981         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
59982
59983         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
59984         Quote first arg of AC_DEFUN.
59985         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
59986         since they are needed to parse the include file even if we need
59987         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
59988         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
59989         but with opposite signedness.
59990
59991 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59992
59993         Merge 'exclude' changes from tar 1.13.22.
59994         This fixes one or two unlikely storage allocation overflow bugs,
59995         but doesn't change user-visible behavior otherwise.
59996
59997 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59998
59999         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
60000         (jm_PREREQ_EXCLUDE): New macro.
60001
60002 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60003
60004         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
60005         tm to be declared.
60006
60007 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60008
60009         * lib/hash.c: Remove '2001' from copyright notice.
60010
60011 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60012
60013         * lib/full-write.h: New file.
60014         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
60015         * lib/full-write.c: Correct credits, as cccp.c no longer
60016         exists and anyway it was so heavily changed from the old cccp
60017         code as to be unrecognizable.  Include full-write.h.
60018         (full_write) Return size_t, with short writes meaning failure.
60019         All callers changed.  This fixes a bug with large buffers
60020         on 64-bit hosts.
60021         * lib/utime.c: Include full-write.h.
60022
60023 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60024
60025         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
60026         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
60027         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
60028         Include if available.
60029         (<xalloc.h>): Include
60030         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
60031         (verify): New macro.  Use it to verify that EXCLUDE macros do not
60032         collide with FNM macros.
60033         (struct patopts): New struct.
60034         (struct exclude): Use it, as exclude patterns now come with options.
60035         (new_exclude): Support above changes.
60036         (new_exclude, add_exclude_file):
60037         Initial size must now be a power of two to simplify overflow checking.
60038         (free_exclude, fnmatch_no_wildcards): New function.
60039         (excluded_filename): No longer requires options arg, as the options
60040         are determined by add_exclude.  Now returns bool, not int.
60041         (excluded_filename, add_exclude):
60042         Add support for the fancy new exclusion options.
60043         (add_exclude, add_exclude_file): Now takes int options arg.
60044         Check for arithmetic overflow when computing sizes.
60045         (add_exclude_file): xrealloc might modify errno, so don't
60046         realloc until after errno might be used.
60047
60048         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
60049         New macros.
60050         (free_exclude): New decl.
60051         (add_exclude, add_exclude_file): Now takes int options arg.
60052         (excluded_filename): No longer requires options arg, as the options
60053         are determined by add_exclude.  Now returns bool, not int.
60054
60055 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60056
60057         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
60058
60059 2001-08-27  Jim Meyering  <meyering@lucent.com>
60060
60061         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
60062
60063         * lib/version-etc.c (N_): Remove definition.
60064         Revert most of last change.
60065         Instead, simply don't mark the `Copyright...' string for translation.
60066         Based on advice from Paul Eggert.
60067
60068         * lib/strtoxmax.c: Tweak comment.
60069
60070 2001-08-26  Jim Meyering  <meyering@lucent.com>
60071
60072         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
60073
60074         * m4/xstrtoimax.m4: New file.
60075         * m4/xstrtoumax.m4: Add comments explaining why we
60076         AC_REPLACE_FUNCS(strtol).
60077
60078 2001-08-26  Jim Meyering  <meyering@lucent.com>
60079
60080         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
60081         of copyright with `%s' so translators don't get an untranslated
60082         message in 2002.
60083         (COPYRIGHT_YEAR): Define.
60084         (version_etc): Use fprintf rather than fputs.
60085         Suggestion from Ulrich Drepper.
60086
60087         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
60088
60089         * lib/strtoll.c: New file, from GNU libc.
60090         * lib/xstrtoimax.c: New file.
60091
60092         * lib/xstrtol.h: Add xstrtoimax.
60093         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
60094         * lib/strtoimax.c: New file.  Likewise, but first define
60095         STRTOUXMAX_SIGNED.
60096
60097         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
60098         ...
60099         * lib/strtoxmax.c: ... then renamed to this.
60100
60101 2001-08-18  Paul Eggert  <eggert@twinsun.com>
60102
60103         * m4/inttypes.m4: Add AC_PREREQ(2.13).
60104         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
60105         (jm_AC_TYPE_INTMAX_T): New macro.
60106         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
60107
60108         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
60109
60110         * m4/longlong.m4: Renamed from ulonglong.m4.
60111         * m4/inttypes.m4: Renamed from inttypes_h.m4.
60112         * m4/uintmax_t.m4: Removed.
60113
60114 2001-08-13  Paul Eggert  <eggert@twinsun.com>
60115
60116         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
60117         Port to Solaris 8, where 'sed' requires a space after the 'r'
60118         command, and where sh dislikes "$/".  Clean up the spacing a bit.
60119         Redirect output to $tmp just once.
60120
60121 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
60122
60123         * lib/addext.c (<errno.h>): Include.
60124         (errno): Declare if not defined.
60125         (addext): Work correctly when pathconf returns -1 and leaves
60126         errno alone because there is no limit.  Also, work even if
60127         pathconf returns a value greater than SIZE_MAX.
60128
60129 2001-08-12  Jim Meyering  <meyering@lucent.com>
60130
60131         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
60132         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
60133         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
60134         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
60135         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
60136         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
60137         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
60138         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
60139         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
60140         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
60141         utime.m4, utimes.m4, xstrtoumax.m4:
60142         Quote the first argument in each use of AC_DEFUN.
60143
60144 2001-08-12  Jim Meyering  <meyering@lucent.com>
60145
60146         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
60147         Simply `return getcwd (NULL, 0);'.
60148         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
60149         Use 1300 as initial value for length, not PATH_MAX.
60150
60151         * lib/pathmax.h: Clean up cpp syntax.
60152
60153 2001-08-12  Jim Meyering  <meyering@lucent.com>
60154
60155         * lib/gettimeofday.c: New file.
60156         * lib/gtod.h: New file.
60157         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
60158
60159 2001-08-05  Jim Meyering  <meyering@lucent.com>
60160
60161         * m4/jm-macros.m4: Require autoconf-2.52.
60162
60163 2001-08-04  Jim Meyering  <meyering@lucent.com>
60164
60165         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
60166         stmt, to get in sync with glibc.
60167
60168 2001-08-03  Paul Eggert  <eggert@twinsun.com>
60169
60170         The following changes are from gettext 0.10.39 as maintained by
60171         Bruno Haible.
60172
60173         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
60174         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
60175         with inverted sense.  All uses changed.
60176
60177         * lib/mbswidth.c: Don't include <limits.h>.
60178         Include <stdlib.h> and <string.h> unconditionally.
60179         (iswcntrl, mbsinit, ISCNTRL): New macros.
60180         (mbsnwidth): Use K&R style function declarations.
60181         Don't bother checking for MB_LEN_MAX == 1, since the compiler
60182         can optimize it when MB_CUR_MAX == 1.
60183         The width of control characters is zero, not 1.
60184
60185 2001-08-03  Paul Eggert  <eggert@twinsun.com>
60186
60187         The following changes are from gettext 0.10.39 as maintained by
60188         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
60189
60190         * m4/codeset.m4: Upgrade to serial AM1.
60191         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
60192         all uses changed.  Quote first arg of AC_DEFUN.
60193         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
60194
60195         * m4/iconv.m4: Upgrade to serial AM2.
60196         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
60197         Add --with-libconv-prefix.
60198         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
60199         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
60200         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
60201         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
60202         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
60203
60204         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
60205         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
60206         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
60207         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
60208         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
60209         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
60210         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
60211         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
60212         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
60213
60214         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
60215         string.h any more.
60216
60217         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
60218         not the default value.
60219
60220         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
60221         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
60222         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
60223         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
60224         Also check for iswcntrl, used for wcwidth fallback.
60225         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
60226         to Autoconf 2.13.
60227
60228 2001-08-03  Jim Meyering  <meyering@lucent.com>
60229
60230         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
60231         as it was in the original.  Reported by Paul Eggert.
60232
60233 2001-07-16  Jim Meyering  <meyering@lucent.com>
60234
60235         * m4/gettimeofday.m4: New file.
60236         Prompted by a report from Bernhard Baehr.
60237
60238 2001-07-15  Jim Meyering  <meyering@lucent.com>
60239
60240         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
60241         stuff. Now it's in ../Makefile.cfg.
60242
60243 2001-07-15  Jim Meyering  <meyering@lucent.com>
60244
60245         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
60246         (BUILT_SOURCES): Add unlocked-io.h.
60247         (io_functions): Define.
60248         (unlocked-io.h): New rule.
60249         (DISTCLEANFILES): Add unlocked-io.h.
60250         (all-local): Depend on unlocked-io.h, to ensure it is created.
60251
60252         * lib/unlocked-io.hin: New file
60253
60254         * lib/regex.c: Update from glibc.
60255
60256 2001-07-05  Jim Meyering  <meyering@lucent.com>
60257
60258         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
60259         recommendation.
60260         (libfetish_a_SOURCES): Put all .h files here instead.
60261         Remove a thus-exposed (better checks in automake) duplicate and
60262         two unnecessary .h files.
60263
60264 2001-07-04  Jim Meyering  <meyering@lucent.com>
60265
60266         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
60267         that generates jm-glibc-io.m4 so that it doesn't trigger any make
60268         distcheck failure.
60269
60270 2001-07-02  Jim Meyering  <meyering@lucent.com>
60271
60272         The following changes were prompted by suggestions from Bruno Haible.
60273
60274         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
60275         is now generated.
60276         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
60277         definition of EXTRA_DIST.
60278         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
60279         ensure that the generated file is created/updated whenever the list
60280         of $(unlocked_functions) is changed.
60281         (jm-glibc-io.m4): New rule.
60282         (unlocked-io.h): New rule -- currently unused.
60283
60284 2001-06-24  Jim Meyering  <meyering@lucent.com>
60285
60286         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
60287         unmatched right bracket, rather than kludging it with an extra,
60288         falsely-matching quote in a comment.  Patch by Akim Demaille.
60289
60290 2001-06-11  Jim Meyering  <meyering@lucent.com>
60291
60292         * lib/regex.c: Update from GNU libc.
60293
60294 2001-05-27  Jim Meyering  <meyering@lucent.com>
60295
60296         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
60297         Check for ut_type in struct utmp.
60298
60299 2001-05-27  Jim Meyering  <meyering@lucent.com>
60300
60301         * lib/readutmp.h (UT_TYPE): Define.
60302
60303 2001-05-24  Jim Meyering  <meyering@lucent.com>
60304
60305         * lib/argmatch.c: Include "quote.h".
60306         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
60307         quote function.  Reported by Göran Uddeborg.
60308
60309 2001-05-22  Jim Meyering  <meyering@lucent.com>
60310
60311         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
60312         now that we use the package-supplied version unconditionally.
60313         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
60314
60315 2001-05-21  Jim Meyering  <meyering@lucent.com>
60316
60317         * m4/regex.m4: Change a couple backticks to single quotes to avoid
60318         shell syntax errors.
60319
60320 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
60321
60322         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
60323
60324 2001-05-20  Paul Eggert  <eggert@twinsun.com>
60325
60326         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
60327         Don't bother to check library strftime, since
60328         we'll be using our own my_strftime function anyway.
60329         Define my_strftime instead of strftime.
60330
60331 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
60332
60333         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
60334         which is not yet declared.
60335
60336 2001-05-15  Jim Meyering  <meyering@lucent.com>
60337
60338         * m4/regex.m4: Use proper quoting so brackets appear in the test
60339         program.
60340         Reported by, and with help from, Bruno Haible.
60341
60342 2001-05-13  Jim Meyering  <meyering@lucent.com>
60343
60344         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
60345         undefined.
60346
60347 2001-05-11  Paul Eggert  <eggert@twinsun.com>
60348
60349         dirname code cleanup.  base_name now behaves more compatibly
60350         with POSIX basename when given file names that have trailing
60351         slashes, and similarly for dir_name.  Add new primitives
60352         base_len and dir_len.  Put the directory-name-related decls
60353         into dirname.h.
60354
60355         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
60356         * lib/backupfile.c (base_name): Likewise.
60357         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
60358         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
60359         * lib/makepath.c (strip_trailing_slashes): Likewise.
60360         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
60361         ISSLASH): Likewise.
60362         * lib/rename.c (strip_trailing_slashes): Likewise.
60363         * lib/same.c (base_name): Likewise.
60364         * lib/stripslash.c (ISSLASH): Likewise.
60365
60366         * lib/addext.c: Include <dirname.h> after size_t is defined.
60367         * lib/backupfile.c: Likewise.
60368
60369         * lib/addext.c (addext): Use base_len to trim redundant
60370         trailing slashes instead of doing it ourselves.
60371         But do not trim the last slash if it is not redundant.
60372
60373         * lib/backupfile.c (find_backup_file_name,
60374         max_backup_version): Use base_len instead of rolling it ourselves.
60375         Handle the case of "" and (on DOS) "C:" correctly.
60376
60377         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
60378         needed. Include <string.h>, <dirname.h>.
60379         (base_name): Allow file names ending in slashes, other than names
60380         that are all slashes.  In this case, return the basename followed
60381         by the slashes.  This is more general, and can be used in places
60382         where the original base_name purposely had an assertion failure.
60383         (base_len): New function.
60384
60385         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
60386         Do not include <assert.h>; no longer needed.
60387         Include xalloc.h.
60388         (memrchr): Remove decl.
60389         (dir_name_r): Remove.
60390         (dir_len): Renamed from dirlen.  All callers changed.
60391         Rewrite in terms of base_name, for simplicity and consistency.
60392         (dir_name): Never return NULL.  All callers changed.
60393         Do not include <stdlib.h> in test program; no longer needed.
60394         return 0; is fine for test program.
60395
60396         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
60397         New macros.
60398         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
60399
60400         * lib/path-concat.c (path_concat): Use base_len to compute
60401         base length, not strlen; this means we cannot rely on memcpy
60402         to null-terminate.
60403
60404         * lib/same.c (STREQ): Remove.
60405         (same_name): Handle the case where the basename ends in trailing '/'.
60406
60407         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
60408         a slash was stripped.  Do not strip the last slash after a
60409         file system prefix.
60410
60411 2001-05-11  Paul Eggert  <eggert@twinsun.com>
60412
60413         * lib/Makefile.am (libfetish_a_SOURCES):
60414         Add strftime.c, since we now compile it on all hosts.
60415
60416         * lib/strftime.c (my_strftime):
60417         Define to nstrftime if emacs, but only if my_strftime is not defined.
60418         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
60419         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
60420         Add one more extra argument: a nanoseconds value.
60421         All uses changed.
60422         (ns): New macro.
60423         (my_strftime function): Add %N format.
60424         (emacs_strftimeu): Renamed from emacs_strftime,
60425         with extra ut argument.
60426
60427 2001-05-09  Paul Eggert  <eggert@twinsun.com>
60428
60429         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
60430
60431 2001-04-21  Jim Meyering  <meyering@lucent.com>
60432
60433         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
60434         doesn't interfere.
60435
60436 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
60437
60438         * m4/ftruncate.m4: Check for chsize.
60439         Link with ftruncate.o unconditionally if ftruncate is missing.
60440         This was required when cross-compiling to i586-mingw32msvc.
60441
60442 2001-04-08  Jim Meyering  <meyering@lucent.com>
60443
60444         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
60445         recomputed; that's necessary when the offset spans a DST transition.
60446         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
60447
60448 2001-04-02  Jim Meyering  <meyering@lucent.com>
60449
60450         * lib/regex.h, regex.c: Update from GNU libc.
60451
60452 2001-03-24  Jim Meyering  <meyering@lucent.com>
60453
60454         * m4/jm-macros.m4: Require autoconf-2.49d.
60455
60456 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
60457
60458         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
60459
60460 2001-03-19  Paul Eggert  <eggert@twinsun.com>
60461
60462         * lib/version-etc.c (version_etc_copyright): Update to 2001.
60463
60464 2001-03-17  Jim Meyering  <meyering@lucent.com>
60465
60466         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
60467         now that the version in autoconf is equivalent.
60468         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
60469
60470         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
60471         Suggestion from Akim Demaille.
60472
60473         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
60474         (jm_PREREQ_TEMPNAME): New function.
60475
60476 2001-03-16  Paul Eggert  <eggert@twinsun.com>
60477
60478         * lib/tempname.c (uint64_t): Define to uintmax_t if
60479         not defined, and if UINT64_MAX is not defined.
60480         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
60481         Reported by John David Anglin.
60482
60483 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
60484
60485         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
60486         resolve alias if codeset is empty.
60487         * lib/config.charset (BeOS): Use wildcard syntax.
60488
60489 2001-03-13  Jim Meyering  <meyering@lucent.com>
60490
60491         * lib/path-concat.c (path_concat)
60492         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
60493         concatenating e.g., `C:' and `foo'.
60494         From Bruno Haible.
60495
60496 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
60497
60498         * lib/localcharset.c (locale_charset): Don't use
60499         setlocale(LC_CTYPE,NULL). Don't return NULL.
60500         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
60501
60502 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
60503
60504         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
60505         support for DOS/DJGPP.
60506
60507 2001-03-01  Paul Eggert  <eggert@twinsun.com>
60508
60509         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
60510         lacks mkstemp.  Compile our own tempname.c if we compile our own
60511         mkstemp.c, as mkstemp relies on tempname.
60512
60513 2001-03-01  Jim Meyering  <meyering@lucent.com>
60514
60515         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
60516         AH_VERBATIM really does output its argument verbatim.
60517
60518 2001-02-28  Paul Eggert  <eggert@twinsun.com>
60519
60520         * lib/Makefile.am (libfetish_a_SOURCES):
60521         Add dup-safer.c, fopen-safer.c.
60522         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
60523
60524         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
60525         * lib/unistd-safer.h: New files.
60526
60527 2001-02-25  Paul Eggert  <eggert@twinsun.com>
60528
60529         The mkstemp replacement is taken from glibc 2.2.2, with some
60530         portability fixes for use outside glibc, as follows:
60531
60532         * lib/tempname.c (struct_stat64): New macro.
60533         (direxists, __gen_tempname): Use it.
60534         This avoids a portability problem with Solaris 8.
60535
60536         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
60537         (<stddef.h>, <stdint.h>, <string.h>):
60538         Include only if STDC_HEADERS || _LIBC.
60539         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
60540         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
60541         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
60542         (__set_errno): Define this macro if <errno.h> doesn't.
60543         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
60544         Define these macros if <stdio.h> doesn't.
60545         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
60546         Define these macros if <sys/stat.h>
60547         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
60548         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
60549         __xstat64): Define if not _LIBC.
60550         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
60551         (__gen_tempname): Invoke gettimeofday only if
60552         HAVE_GETTIMEOFDAY || _LIBC;
60553         otherwise, fall back on plain "time".
60554         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
60555
60556         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
60557
60558         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
60559
60560 2001-02-18  Paul Eggert  <eggert@twinsun.com>
60561
60562         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
60563
60564 2001-02-17  Paul Eggert  <eggert@twinsun.com>
60565
60566         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
60567         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
60568         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
60569         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60570
60571 2001-02-17  Paul Eggert  <eggert@twinsun.com>
60572
60573         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
60574         Remove workaround macros for hosts that have mbrtowc but not
60575         mbstate_t, as we now insist on proper declarations for both
60576         before using mbrtowc.
60577
60578 2001-02-17  Jim Meyering  <meyering@lucent.com>
60579
60580         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
60581         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
60582         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
60583         UnixWare 7.1.1.
60584
60585         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
60586         rather than AC_CACHE_VAL.
60587
60588 2001-02-17  Jim Meyering  <meyering@lucent.com>
60589
60590         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
60591         around included file name.
60592
60593         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
60594
60595         * lib/strftime.c: Update from GNU libc (the only changes were to
60596         comments).
60597
60598 2001-02-17  Jim Meyering  <meyering@lucent.com>
60599
60600         * lib/regex.c: Update from libc.
60601
60602 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
60603
60604         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
60605         clash.
60606
60607 2001-02-16  Paul Eggert  <eggert@twinsun.com>
60608
60609         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
60610         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
60611         Reported by Mark Hounschell via Paul Eggert.
60612
60613 2001-02-07  Jim Meyering  <meyering@lucent.com>
60614
60615         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
60616
60617 2001-02-05  Jim Meyering  <meyering@lucent.com>
60618
60619         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
60620         it includes the patch required for `large file' support with at least
60621         HP-UX's 10.20 /bin/cc.
60622
60623 2001-02-03  Jim Meyering  <meyering@lucent.com>
60624
60625         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
60626         AS_IF, now that it works once again (mysteriously).
60627         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
60628
60629 2001-01-30  Jim Meyering  <meyering@lucent.com>
60630
60631         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
60632         * m4/chown.m4: Rename conftestchown to conftest.chown.
60633         * m4/rename.m4: s/conftestdir/conftest.d1/ and
60634         s/conftestdir2/conftest.d2/.
60635         * m4/utimes.m4: s/conftestdata/conftest.data/
60636         Inspired by Pavel Roskin's change in autoconf.
60637
60638 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
60639
60640         * lib/config.charset: Update for FreeBSD 4.2.
60641
60642 2001-01-27  Jim Meyering  <meyering@lucent.com>
60643
60644         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
60645         a use of AS_IF.
60646         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
60647
60648 2001-01-26  Jim Meyering  <meyering@lucent.com>
60649
60650         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
60651         quotearg.c includes it.
60652
60653 2001-01-26  Jim Meyering  <meyering@lucent.com>
60654
60655         * lib/quotearg.c: Include stddef.h.
60656         * lib/quote.c: Include stddef.h.
60657         Reported by Axel Kittenberger.
60658
60659         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
60660         line in double quotes so that it evokes a better diagnostic.
60661         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
60662         Reported by Axel Kittenberger.
60663
60664 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
60665
60666         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
60667         as if it was a `charset'.
60668
60669 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
60670
60671         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
60672         has const.
60673
60674 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
60675
60676         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
60677         to avoid a warning.  Add back 'const' to inptr.
60678
60679 2001-01-20  Jim Meyering  <meyering@lucent.com>
60680
60681         Be sure that headers are checked before used in code compiled
60682         for the type checks.
60683         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
60684         In place of that, invoke jm_CHECK_ALL_TYPES.
60685         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
60686         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
60687         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
60688         The check for ssize_t was mistakenly run before the test for unistd.h.
60689
60690         The configure-time check for stdbool.h was missing.
60691         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
60692         (jm_PREREQ_HASH): New function.
60693
60694 2001-01-17  Jim Meyering  <meyering@lucent.com>
60695
60696         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
60697         for autoconf-2.49c.
60698         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
60699
60700 2001-01-16  Jim Meyering  <meyering@lucent.com>
60701
60702         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
60703         From Bruno Haible.
60704
60705 2001-01-14  Jim Meyering  <meyering@lucent.com>
60706
60707         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
60708         foo and bar.  Create conftestdir/ in the script, not in the C code.
60709         Remove directories in the script, not in the C code.
60710         Remove conftestdir{,2} before trying to create the directory.
60711         Make the entire configure script fail if the mkdir fails.
60712
60713 2001-01-14  Jim Meyering  <meyering@lucent.com>
60714
60715         * lib/rename.c: New file.  From Volker Borchert.
60716         Include stdlib.h, string.h or strings.h, and xalloc.h.
60717         Use strip_trailing_slashes rather than open-coding it.
60718
60719 2001-01-03  Paul Eggert  <eggert@twinsun.com>
60720
60721         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
60722
60723 2001-01-03  Jim Meyering  <meyering@lucent.com>
60724
60725         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
60726         of local `inptr' to avoid warning with some system declarations of
60727         iconv.
60728
60729 2001-01-02  Volker Borchert  <bt@teknon.de>
60730
60731         * m4/rename.m4: New file.
60732         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
60733
60734 2001-01-01  Jim Meyering  <meyering@lucent.com>
60735
60736         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
60737         even on systems with utmpx.h.  It's necessary for the declaration of
60738         utmp's ut_user member.  Reported by Andreas Jaeger.
60739
60740         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
60741         available. They are required for the declarations of getgrgid and
60742         getpwuid resp.
60743         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
60744         Reported by Andreas Jaeger.
60745
60746 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
60747
60748         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
60749         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
60750         so `make install' also works in VPATH builds.
60751
60752 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
60753
60754         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
60755         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
60756         can be used in subdirectories.
60757
60758 2000-12-29  Paul Eggert  <eggert@twinsun.com>
60759
60760         * lib/modechange.c: Do not assume that mode_t uses the
60761         traditional octal encoding.  E.g. "chmod 1 FOO" should set
60762         the other-execute bit of FOO even if S_IXOTH != 1.
60763
60764         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
60765         WOTH, XOTH, ALLM): New macros.
60766         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
60767          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
60768         Use them.
60769         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
60770         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
60771         (mode_compile):
60772         No need to use uintmax_t; unsigned long is long enough.
60773         Don't bother to get suffix since we don't use it.
60774
60775 2000-12-26  Jim Meyering  <meyering@lucent.com>
60776
60777         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
60778         better with autoheader.
60779
60780 2000-12-24  Jim Meyering  <meyering@lucent.com>
60781
60782         * lib/hash.c (is_prime): Return explicit boolean values.
60783         (hash_get_first): Return NULL to appease Irix5.6's 89.
60784         Reported by Nelson Beebe.
60785
60786 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
60787
60788         * lib/localcharset.c (locale_charset): Add support for Win32.
60789
60790 2000-12-18  Paul Eggert  <eggert@twinsun.com>
60791
60792         * lib/physmem.h, lib/physmem.c: New files.
60793
60794         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
60795         (noinst_HEADERS): Add physmem.h.
60796
60797         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
60798         't' for compatibility with Solaris 8 sort.
60799
60800 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
60801
60802         * lib/config.charset: Add support for BeOS.
60803
60804 2000-12-17  Jim Meyering  <meyering@lucent.com>
60805
60806         * m4/dos.m4 (jm_AC_DOS): New file and macro.
60807         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
60808
60809 2000-12-16  Jim Meyering  <meyering@lucent.com>
60810
60811         This bug had a serious impact on chown: `chown N:M FILE' (for integer
60812         N and M) would have treated it like `chown N:N FILE'.
60813
60814         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
60815
60816 2000-12-16  Jim Meyering  <meyering@lucent.com>
60817
60818         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
60819         SHELLS_FILE to a file name that's useful on djgpp systems.
60820         Include stdlib.h.
60821         (ADDITIONAL_DEFAULT_SHELLS): Define.
60822         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
60823         Based mostly on a patch from Prashant TR.
60824
60825 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
60826
60827         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
60828         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
60829         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
60830
60831 2000-12-08  Andreas Schwab  <schwab@suse.de>
60832
60833         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
60834         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
60835
60836 2000-12-07  Jim Meyering  <meyering@lucent.com>
60837
60838         * lib/stripslash.c (ISSLASH): Define.
60839         (strip_trailing_slashes): Use ISSLASH rather than comparing against
60840         `/'.
60841         From Prashant TR.
60842
60843         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
60844         (dir_name_r): Declare this function as static.
60845         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
60846         manifest itself on a name containing a mix of slashes and
60847         backslashes.
60848         Make this function work with names starting with a DOS-style
60849         drive letter and colon prefix.
60850         (dir_name): Append `.' if necessary.
60851         Based mostly on patches from Prashant TR and Eli Zaretskii.
60852
60853         * lib/dirname.h (dir_name_r): Remove prototype.
60854
60855 2000-12-06  Paul Eggert  <eggert@twinsun.com>
60856
60857         * m4/off_t-format.m4: Remove this file.
60858         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
60859
60860 2000-12-06  Jim Meyering  <meyering@lucent.com>
60861
60862         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
60863         replacement strtoull, we may well need the replacement strtoul, too.
60864         Check for declarations of strtoul and strtoull.
60865         Check for strtol.  Mainly as a cue to cause automake to include
60866         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
60867         Check for limits.h -- strtol.c needs it.
60868
60869 2000-12-05  Jim Meyering  <meyering@lucent.com>
60870
60871         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
60872
60873 2000-12-04  Jim Meyering  <meyering@lucent.com>
60874
60875         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
60876         Also include memory.h, stdlib.h, unistd.h if appropriate.
60877         Reported by Andreas Jaeger (conflicting declaration of malloc).
60878
60879 2000-12-02  Jim Meyering  <meyering@lucent.com>
60880
60881         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
60882         * m4/jm-macros.m4 (jm_MACROS): require it.
60883
60884 2000-12-02  Jim Meyering  <meyering@lucent.com>
60885
60886         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
60887
60888 2000-12-01  Paul Eggert  <eggert@twinsun.com>
60889
60890         * lib/memrchr.c: Include <config.h> before any system include file.
60891
60892 2000-11-30  Jim Meyering  <meyering@lucent.com>
60893
60894         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
60895
60896 2000-11-30  Jim Meyering  <meyering@lucent.com>
60897
60898         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
60899
60900 2000-11-29  Paul Eggert  <eggert@twinsun.com>
60901
60902         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
60903
60904 2000-11-26  Jim Meyering  <meyering@lucent.com>
60905
60906         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
60907
60908 2000-11-22  Paul Eggert  <eggert@twinsun.com>
60909
60910         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
60911         size of (size_t) -1; it's not portable.
60912
60913 2000-11-17  Jim Meyering  <meyering@lucent.com>
60914
60915         * lib/strstr.c: Update from GNU libc.
60916
60917 2000-11-17  Akim Demaille  <akim@epita.fr>
60918
60919         * lib/obstack.h: Formatting changes.
60920         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
60921         prevent type checking.
60922         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
60923         cast the value to (void *): assigning a `foo *' to a `void *'
60924         variable is valid.
60925         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
60926
60927 2000-11-16  Jim Meyering  <meyering@lucent.com>
60928
60929         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
60930
60931 2000-11-11  Jim Meyering  <meyering@lucent.com>
60932
60933         * lib/error.c: Add a couple #includes, merging from GNU libc version.
60934
60935 2000-11-10  Jim Meyering  <meyering@lucent.com>
60936
60937         * lib/obstack.h: Update from GNU libc.
60938         * lib/obstack.c: Likewise.
60939
60940 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
60941
60942         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
60943
60944 2000-11-06  Paul Eggert  <eggert@twinsun.com>
60945
60946         * lib/getusershell.c (setusershell): Use rewind rather than
60947         fseek/fseeko, to avoid configuration hassles with fseeko.
60948         Don't bother opening SHELLS_FILE if shellstream is NULL;
60949         it's not necessary.
60950
60951 2000-11-05  Jim Meyering  <meyering@lucent.com>
60952
60953         * lib/makepath.h (make_dir): Declare.
60954         * lib/makepath.c (make_dir): Remove `static' attribute.
60955         Tweak a comment.
60956
60957 2000-11-04  Jim Meyering  <meyering@lucent.com>
60958
60959         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
60960
60961 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
60962
60963         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
60964         last one in a bucket, advance to the next bucket.
60965
60966 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
60967
60968         * lib/fnmatch.c: Do not comment out all the code if we are using
60969         the GNU C library, because in some cases we are replacing buggy
60970         code in the GNU C library itself.
60971
60972 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
60973
60974         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
60975         (regex_compile): Catch bogus \(\1\).
60976
60977 2000-10-30  Paul Eggert  <eggert@twinsun.com>
60978
60979         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
60980         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
60981         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
60982
60983 2000-10-30  Paul Eggert  <eggert@twinsun.com>
60984
60985         * lib/error.h, getline.h, modechange.h:
60986         Remove "2000" from Copyright line, as the file hasn't been
60987         changed this year other than in the copyright notice.
60988
60989         * lib/xalloc.h: Add "2000" to Copyright line, as this file
60990         was changed this year.
60991
60992 2000-10-29  Jim Meyering  <meyering@lucent.com>
60993
60994         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
60995         renaming.
60996         * m4/ls-mntd-fs.m4: Likewise
60997
60998 2000-10-29  Jim Meyering  <meyering@lucent.com>
60999
61000         * lib/xstat.in: Fix grammar in comment.
61001
61002 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
61003
61004         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
61005         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
61006         doesn't define __restrict_arr.
61007
61008 2000-10-28  Jim Meyering  <meyering@lucent.com>
61009
61010         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
61011         (jm_PREREQ_MEMCHR): New function.
61012
61013 2000-10-28  Jim Meyering  <meyering@lucent.com>
61014
61015         * lib/memchr.c: Update from libc.
61016         Adjust for portability:
61017         [HAVE_STDLIB_H]: Include stdlib.h.
61018         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
61019         Undef __memchr, too.
61020         [!weak_alias]: Define __memchr to memchr.
61021
61022         * lib/regex.c: Update from libc.
61023         * lib/regex.h: Likewise.
61024         * lib/getopt1.c: Likewise.
61025         * lib/memcmp.c: Likewise.
61026
61027         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
61028         Avoid using fseek, when possible -- it's broken by design.
61029         Patch by Ulrich Drepper.
61030
61031 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
61032
61033         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
61034         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
61035         Giving in to popular pressure to shut up the compiler with casts.
61036
61037 2000-10-26  Jim Meyering  <meyering@lucent.com>
61038
61039         * lib/strftime.c: Update from libc.
61040
61041 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
61042
61043         * regex.c: More `unsigned char' -> `re_char' changes.
61044         Also change several `int' into `re_wchar_t'.
61045         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
61046         (PUSH_FAILURE_POINTER): Don't cast any more.
61047         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
61048         We want GCC to complain, since this piece of code makes
61049         re_match non-reentrant, which *should* be fixed.
61050         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
61051         (EXTEND_BUFFER): Use RETALLOC.
61052         (SET_LIST_BIT): Don't cast.
61053         (re_wchar_t): New type.
61054         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
61055         that those two functions will always properly return.
61056         (IMMEDIATE_QUIT_CHECK): Cast to void.
61057         (analyse_first): Use recursion rather than an explicit stack.
61058         (re_compile_fastmap): Can't fail anymore.
61059         (re_search_2): Don't check re_compile_fastmap for failure.
61060         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
61061         Now also sets the new value (passed in a new argument).
61062         (re_match_2_internal): Use it.
61063         Also, use a new var `reg' of type size_t when looping through regs
61064         rather than reuse the inappropriate `mcnt'.
61065
61066 2000-10-25  Jim Meyering  <meyering@lucent.com>
61067
61068         * lib/obstack.c: Update from libc.
61069
61070 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
61071
61072         * regex.c (regex_compile): Change the way of handling a range from
61073         a char less than 256 to a char not less than 256.
61074
61075 2000-10-24  Andrew Innes  <andrewi@gnu.org>
61076
61077         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
61078         NT-Emacs only.
61079         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
61080         so that re_search functions only quit when callers expect them to.
61081
61082 2000-10-23  Jim Meyering  <meyering@lucent.com>
61083
61084         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
61085         wrong.  That set_locale call must not have any side effects.
61086         From Paul Eggert.
61087
61088 2000-10-22  Jim Meyering  <meyering@lucent.com>
61089
61090         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
61091         [CYCLIC]: Remove now-unused definition.
61092
61093         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
61094         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
61095         Suggestion from Ulrich Drepper.
61096
61097 2000-10-21  Jim Meyering  <meyering@lucent.com>
61098
61099         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
61100         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
61101         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
61102
61103 2000-10-21  Jim Meyering  <meyering@lucent.com>
61104
61105         * lib/dirname.c (memrchr): Declare if necessary.
61106         (dir_name): Remove the restriction that there be no
61107         trailing slashes.  Now, this code skips past them, effectively
61108         ignoring them.
61109         [TEST_DIRNAME] (main): New unit tests.
61110
61111         * lib/memrchr.c: New file from GNU libc.
61112         Undef __memrchr, too.
61113         [!weak_alias]: Define __memrchr to memrchr.
61114         Guard weak_alias use with `#ifdef weak_alias'.
61115
61116 2000-10-21  Jim Meyering  <meyering@lucent.com>
61117
61118         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
61119         (dir_name): Use dir_name_r.
61120         * lib/dirname.h (dir_name_r): Declare it.
61121
61122 2000-10-17  Jim Meyering  <meyering@lucent.com>
61123
61124         * lib/quote.h (PARAMS): Define and use.
61125         Reported by Akim Demaille.
61126
61127         * lib/getopt.c: Update from libc.
61128
61129 2000-10-16  Jim Meyering  <meyering@lucent.com>
61130
61131         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
61132         setlocale.
61133         From Jan Fedak.
61134
61135 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
61136
61137         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
61138
61139 2000-09-25  Jim Meyering  <meyering@lucent.com>
61140
61141         * lib/md5.h (rol): Define (from GnuPG).
61142
61143         * lib/sha.c: Give credit (GnuPG) where due.
61144         (M): Use rol rather than open-coding it.
61145         Add a FIXME comment.
61146
61147 2000-09-21  Jim Meyering  <meyering@lucent.com>
61148
61149         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
61150         Reported by Michael Stone.
61151
61152 2000-09-20  Jim Meyering  <meyering@lucent.com>
61153
61154         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
61155         (noinst_HEADERS): Add sha.h.
61156         Based on code from Scott G. Miller and from GnuPG.
61157
61158 2000-09-18  Jim Meyering  <meyering@lucent.com>
61159
61160         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
61161         LIBS. Otherwise, everyone ends up linking with -lelf for some
61162         configurations.
61163         Reported by Mike Stone.
61164
61165 2000-09-15  Jim Meyering  <meyering@lucent.com>
61166
61167         * lib/regex.c: Update from libc.
61168
61169 2000-09-10  Jim Meyering  <meyering@lucent.com>
61170
61171         * lib/getopt.c (_getopt_internal): Update from glibc.
61172
61173 2000-09-09  Jim Meyering  <meyering@lucent.com>
61174
61175         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
61176         think it should be used as a general replacement for isascii.
61177         * lib/fnmatch.c: Likewise.
61178         * lib/mbswidth.c: Likewise
61179         * lib/regex.c: Likewise.
61180
61181         Don't use atoi.
61182         * lib/userspec.c: Include sys/param.h and limits.h.
61183         Include xstrtol.h.
61184         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
61185         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
61186         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
61187         UID, GID.  Check range.
61188
61189 2000-09-06  Jim Meyering  <meyering@lucent.com>
61190
61191         * lib/getopt.c (_getopt_internal): Update from glibc.
61192
61193 2000-08-30  Jim Meyering  <meyering@lucent.com>
61194
61195         * lib/strftime.c: Merge in changes from GNU libc.
61196
61197 2000-08-26  Jim Meyering  <meyering@lucent.com>
61198
61199         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
61200         * m4/fpending.m4: New file.
61201
61202 2000-08-26  Jim Meyering  <meyering@lucent.com>
61203
61204         * lib/closeout.c: Include "__fpending.h".
61205         (close_stdout_status): Return right away if there's nothing to flush.
61206
61207         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
61208         * lib/__fpending.c: New file.
61209         * lib/__fpending.h: New file.
61210
61211 2000-08-20  Jim Meyering  <meyering@lucent.com>
61212
61213         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
61214         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
61215         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
61216
61217 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
61218
61219         Improve fileutils installation on systems where running
61220         programs (like install) can't be unlinked.
61221         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
61222         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
61223
61224 2000-08-07  Paul Eggert  <eggert@twinsun.com>
61225
61226         Standardize on "memory exhausted" instead of "Memory exhausted"
61227         or "virtual memory exhausted".
61228         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
61229         "virtual memory exhausted".
61230         * lib/same.c (same_name): Invoke xalloc_die instead of printing
61231         our own message.
61232         * lib/userspec.c (parse_user_spec): Likewise.
61233         * lib/bumpalloc.h: comment fix
61234         * lib/same.c, userspec.c: Include xalloc.h.
61235
61236         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
61237         not char *const and pointing to a constant array.
61238         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
61239         (xrealloc): Comment fix.
61240
61241         * lib/userspec.c (parse_user_spec):
61242         Don't translate a message until just before returning,
61243         to avoid unnecessary translation.
61244
61245 2000-08-07  Jim Meyering  <meyering@lucent.com>
61246
61247         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
61248         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
61249         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
61250         getgroups.c, gethostname.c, getopt.h, group-member.c,
61251         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
61252         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
61253         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
61254         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
61255         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
61256         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
61257         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
61258         yesno.c: Back out Copyright date changes for each file with no change
61259         this year.  This eases coordination with other programs using the same
61260         source code modules.  From Paul Eggert.
61261
61262 2000-08-06  Paul Eggert  <eggert@twinsun.com>
61263
61264         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
61265         not char, for compatibility with glibc 2.1.3 strftime.c.
61266
61267 2000-08-03  Greg McGary  <greg@mcgary.org>
61268
61269         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
61270         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
61271         (EXTEND_BUFFER): Use them.
61272
61273 2000-08-01  Jim Meyering  <meyering@lucent.com>
61274
61275         * lib/dirname.c (ISSLASH): Define.
61276         (BACKSLASH_IS_PATH_SEPARATOR): Define.
61277         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
61278         both `\' and `/' may be use as path separators.
61279         Based on a patch from Prashant TR.
61280
61281 2000-07-31  Paul Eggert  <eggert@twinsun.com>
61282
61283         * lib/quotearg.c (quotearg_n_options): Don't make the initial
61284         slot vector a constant, since it might get modified.
61285
61286 2000-07-31  Jim Meyering  <meyering@lucent.com>
61287
61288         * lib/xmalloc.c: Use `virtual memory exhausted', not
61289         `Memory exhausted'.
61290         * lib/obstack.c (print_and_abort): Likewise.
61291
61292 2000-07-30  Paul Eggert  <eggert@twinsun.com>
61293
61294         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
61295         buffer, so that the caller can always quote one small
61296         component of a "memory exhausted" message in slot 0.
61297         From a suggestion by Jim Meyering.
61298
61299 2000-07-30  Jim Meyering  <meyering@lucent.com>
61300
61301         * lib/makepath.c (make_path): Quote the other instance, too.
61302
61303         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
61304         (STATIC_BUF_SIZE): Define.
61305         (quotearg_n_options): Use only statically allocated storage when
61306         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
61307         than STATIC_BUF_SIZE.
61308
61309 2000-07-29  Jim Meyering  <meyering@lucent.com>
61310
61311         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
61312         * lib/dirname.c (dir_name): Likewise.
61313
61314         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
61315         `/'.
61316
61317         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
61318         (dir_name): Assert that there are no trailing slashes.
61319
61320 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
61321
61322         * lib/mbswidth.h (mbswidth): Add a flags argument.
61323         (mbswidth): New declaration.
61324         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
61325         * lib/mbswidth.c (mbswidth): Add a flags argument.
61326         (mbsnwidth): New function.
61327
61328 2000-07-24  Jim Meyering  <meyering@lucent.com>
61329
61330         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
61331
61332 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61333
61334         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
61335
61336 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61337
61338         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
61339         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
61340         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
61341         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
61342         invoke multibyte primitives.
61343
61344 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61345
61346         * lib/quotearg.c:
61347         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
61348         so that mbstate_t is always defined.
61349
61350         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
61351         be 1 in at least one GCC installation, and this configuration
61352         error is likely to be common.  Ignoring MB_LEN_MAX hurts
61353         performance on hosts that have mbrtowc but have only unibyte
61354         locales, but I assume these hosts are rare.
61355
61356 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61357
61358         * lib/mbswidth.c (_XOPEN_SOURCE):
61359         Don't define; this causes problems on Solaris 7.
61360         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
61361
61362 2000-07-23  Jim Meyering  <meyering@lucent.com>
61363
61364         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
61365         too: getgrgid, getpwuid, getuid.
61366
61367 2000-07-23  Jim Meyering  <meyering@lucent.com>
61368
61369         * lib/basename.c (base_name): Add an assertion.
61370
61371 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
61372
61373         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
61374         shadow its mbsinit function.
61375
61376 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
61377
61378         * lib/mbswidth.h: New file.
61379         * lib/mbswidth.c: New file.
61380         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
61381         (noinst_HEADERS): Add mbswidth.h.
61382
61383 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
61384
61385         * lib/config.charset: Add support for FreeBSD. Improve support for
61386         HP-UX and IRIX 6.
61387
61388 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
61389
61390         * m4/mbswidth.m4: New file.
61391         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
61392
61393 2000-07-15  Jim Meyering  <meyering@lucent.com>
61394
61395         * lib/makepath.c: Include quote.h.
61396         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
61397         corresponding argument in a `quote (...)' call.
61398         Give better diagnostics.
61399
61400         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
61401         (noinst_HEADERS): Add quote.h.
61402
61403         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
61404         from tar's src/misc.c.
61405         * lib/quote.h: New file.  Prototypes for same.
61406
61407 2000-07-14  Paul Eggert  <eggert@twinsun.com>
61408
61409         From a suggestion by Bruno Haible.
61410         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
61411         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
61412         to decide whether to define the BeOS workaround macro;
61413         this adjusts to the change to AC_MBSTATE_T.
61414
61415 2000-07-14  Jim Meyering  <meyering@lucent.com>
61416
61417         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
61418         jm_AC_TYPE_UINTMAX_T.
61419
61420 2000-07-13  Paul Eggert  <eggert@twinsun.com>
61421
61422         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
61423
61424         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
61425         quotearg_buffer_restyled): Add support for
61426         clocale_quoting_style.  Undo previous change to
61427         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
61428         and "{RIGHT QUOTATION MARK}" msgids.
61429
61430 2000-07-10  Paul Eggert  <eggert@twinsun.com>
61431
61432         From a suggestion by Bruno Haible.
61433         * m4/mbstate_t.m4 (AC_MBSTATE_T):
61434         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
61435         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
61436         and mbstate_t, to a single-part test that simply defines mbstate_t.
61437         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
61438         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
61439
61440 2000-07-10  Jim Meyering  <meyering@lucent.com>
61441
61442         * m4/strerror_r.m4: Mirror the correction made in autoconf.
61443
61444         * m4/gnu-source.m4: Output to confdefs.h directly.
61445         Suggestion from Akim Demaille.
61446
61447 2000-07-09  Paul Eggert  <eggert@twinsun.com>
61448
61449         The old behavior of quoting `like this' doesn't look good with
61450         newer, ISO-style fonts.  See:
61451         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
61452
61453         Instead, quote "like this" by default.  Let the translator
61454         tailor the locale-specific quoting behavior by providing
61455         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
61456
61457         * lib/quotearg.c (N_): New macro.
61458         (gettext_default): New function.
61459         (quotearg_buffer_restyled): Use
61460         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
61461         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
61462
61463 2000-07-09  Jim Meyering  <meyering@lucent.com>
61464
61465         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
61466         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
61467
61468         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
61469         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
61470
61471 2000-07-09  Jim Meyering  <meyering@lucent.com>
61472
61473         * lib/Most files: Update copyright dates to include 2000.
61474
61475 2000-07-08  Jim Meyering  <meyering@lucent.com>
61476
61477         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
61478         if not defined.
61479         (xgethostname): Remove now-unnecessary #ifdef.
61480         Move declaration of `err' into loop where it's used.
61481
61482 2000-07-05  Paul Eggert  <eggert@twinsun.com>
61483         and Bruno Haible  <haible@clisp.cons.org>
61484
61485         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
61486         only if the test for an object-type mbstate_t fails.  This
61487         prevents us from mistakenly reporting that mbstate_t is a
61488         system object type after we "#define mbstate_t int" to work
61489         around its lack.
61490
61491 2000-07-05  Paul Eggert  <eggert@twinsun.com>
61492         and Bruno Haible  <haible@clisp.cons.org>
61493
61494         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
61495
61496 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
61497
61498         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
61499         to strerror_r.
61500         Include <ctype.h> for use of isalpha.
61501
61502 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
61503
61504         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
61505         by allocating a larger buffer. Test the gethostname return value for
61506         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
61507         returns an error and ENAMETOOLONG isn't defined.
61508
61509 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
61510
61511         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
61512         dimension.
61513
61514 2000-07-04  Jim Meyering  <meyering@lucent.com>
61515
61516         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
61517         of the deprecated AC_CHECKING.
61518
61519 2000-07-04  Jim Meyering  <meyering@lucent.com>
61520
61521         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
61522         Reported by Bruno Haible.
61523
61524 2000-07-04  Jim Meyering  <meyering@lucent.com>
61525
61526         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
61527         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
61528         lacks mbrtowc.
61529
61530 2000-07-03  Paul Eggert  <eggert@twinsun.com>
61531
61532         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
61533         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
61534
61535 2000-07-03  Paul Eggert  <eggert@twinsun.com>
61536         and Bruno Haible  <haible@clisp.cons.org>
61537
61538         * lib/quotearg.c (mbrtowc):
61539         Assign to *pwc, and return 1 only if result is nonzero.
61540         (iswprint): Use ISPRINT when substituting our own mbrtowc.
61541
61542 2000-07-03  Jim Meyering  <meyering@lucent.com>
61543
61544         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
61545
61546 2000-07-03  Jim Meyering  <meyering@lucent.com>
61547
61548         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
61549         This is necessary to get a definition of e.g., UTMP_FILE on
61550         HP-UX 10.20.
61551         From Bob Proulx.
61552
61553 2000-07-02  Jim Meyering  <meyering@lucent.com>
61554
61555         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
61556
61557         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
61558         AC_LIBOBJ(function_name).
61559         * m4/chown.m4: Likewise.
61560         * m4/fnmatch.m4: Likewise.
61561         * m4/ftruncate.m4: Likewise.
61562         * m4/getgroups.m4: Likewise.
61563         * m4/getline.m4: Likewise.
61564         * m4/group-member.m4: Likewise.
61565         * m4/jm-macros.m4: Likewise.
61566         * m4/lstat.m4: Likewise.
61567         * m4/malloc.m4: Likewise.
61568         * m4/memcmp.m4: Likewise.
61569         * m4/nanosleep.m4: Likewise.
61570         * m4/putenv.m4: Likewise.
61571         * m4/realloc.m4: Likewise.
61572         * m4/regex.m4: Likewise.
61573         * m4/stat.m4: Likewise.
61574         * m4/strftime.m4: Likewise.
61575
61576 2000-07-02  Jim Meyering  <meyering@lucent.com>
61577
61578         * lib/quotearg.c (mbstate_t): Don't define here.
61579
61580 2000-07-02  Jim Meyering  <meyering@lucent.com>
61581
61582         * lib/nanosleep.c (SIGCONT): Define if not already defined.
61583
61584 2000-07-01  Jim Meyering  <meyering@lucent.com>
61585
61586         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
61587
61588 2000-07-01  Jim Meyering  <meyering@lucent.com>
61589
61590         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
61591         problem.
61592
61593 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
61594
61595         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
61596         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
61597
61598 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
61599
61600         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
61601         per change in ../m4/ls-mntd-fs.m4.
61602         (read_filesystem_list): Ignore symbolic links.
61603
61604 2000-06-29  Jim Meyering  <meyering@lucent.com>
61605
61606         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
61607         for declaration of strcmp.
61608
61609         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
61610
61611         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
61612         Avoid warning by casting result to `char *' to remove `const'.
61613
61614 2000-06-28  Jim Meyering  <meyering@lucent.com>
61615
61616         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
61617         included by quotearg.c, for which we perform this test.  From
61618         Bruno Haible.
61619
61620 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
61621
61622         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
61623         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
61624         <utmpx.h> exists, put readutmp.o into LIBOBJS.
61625
61626 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
61627
61628         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
61629
61630 2000-06-26  Paul Eggert  <eggert@twinsun.com>
61631
61632         savedir now sets errno on failure and invokes xmalloc to get memory.
61633         Fix a couple of other minor bugs while we're at it.
61634
61635         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
61636         (NAMLEN): Remove macro.
61637         (malloc, realloc): Remove decls.
61638         (stpcpy): Likewise.
61639         ("xalloc.h"): Include.
61640         (NAME_SIZE_DEFAULT): New macro.
61641         (savedir): Use xmalloc / xrealloc to allocate memory.
61642         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
61643         Skip "" directory entries.
61644         Use strlen to calculate directory entry length, since the old method
61645         is rarely used these days and isn't worth supporting.
61646         Don't use a pointer after freeing it.
61647         Check for integer overflow when calculating allocation size.
61648         Use memcpy to copy entries, instead of stpcpy.
61649         Set errno properly when returning NULL.
61650         Check for readdir error.
61651
61652 2000-06-26  Jim Meyering  <meyering@lucent.com>
61653
61654         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
61655
61656 2000-06-25  Jim Meyering  <meyering@lucent.com>
61657
61658         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
61659         Linux header bug when _XOPEN_SOURCE is defined to 500.
61660
61661 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
61662
61663         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
61664         deficiency.
61665
61666 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
61667
61668         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
61669         Include xalloc.h.
61670         Don't include <stdlib.h>.  Don't declare malloc, realloc.
61671
61672 2000-06-24  Jim Meyering  <meyering@lucent.com>
61673
61674         * m4/strerror_r.m4: Revive this file -- to try out an experimental
61675         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
61676         for which strerror does return char*, but which lacks a conveniently
61677         accessible declaration of the function.  If the compile-test says
61678         strerror_r doesn't work, then resort to a `run'-test that works on
61679         BeOS and segfaults on DEC Unix.
61680
61681 2000-06-24  Jim Meyering  <meyering@lucent.com>
61682
61683         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
61684
61685 2000-06-23  Paul Eggert  <eggert@twinsun.com>
61686
61687         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
61688         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
61689
61690 2000-06-23  Paul Eggert  <eggert@twinsun.com>
61691
61692         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
61693         (mbrtowc, mbstate_t): Define substitutes if
61694         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
61695         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
61696         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
61697
61698 2000-06-23  Jim Meyering  <meyering@lucent.com>
61699
61700         * m4/afs.m4: Add missing AC_MSG_RESULT.
61701         Reported by Bruno Haible.
61702
61703         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
61704         Suggestion from Bruno Haible.
61705
61706 2000-06-23  Jim Meyering  <meyering@lucent.com>
61707
61708         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
61709
61710 2000-06-21  Jim Meyering  <meyering@lucent.com>
61711
61712         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
61713
61714 2000-06-21  Jim Meyering  <meyering@lucent.com>
61715
61716         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
61717         (noinst_HEADERS): Add getstr.h.
61718
61719         * lib/getline.c (getstr): Move into a separate file.
61720         * lib/getstr.c (getstr): New file, extracted from getline.c, with
61721         the following changes: new parameter, delim2; both delim[12]
61722         parameters have type `int', not `char'.  The latter would lose
61723         with 8-bit delimiters.
61724         * lib/getstr.h: New file.
61725
61726 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
61727
61728         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
61729         than 1024, return a memory chunk of least possible size, instead
61730         of size PATH_MAX + 2. In the loop, increment the size proportionally.
61731         Use free/xmalloc instead of xrealloc to avoid copying for very long
61732         paths.
61733
61734 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
61735
61736         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
61737         the empty string.
61738
61739 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
61740
61741         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
61742         address, not strdup.  Include <stdlib.h> and don't declare free().
61743
61744 2000-06-19  Jim Meyering  <meyering@lucent.com>
61745
61746         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
61747
61748 2000-06-18  Jim Meyering  <meyering@lucent.com>
61749
61750         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
61751
61752         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
61753         `checking whether...' message to be consistent with that of the
61754         lstat test.
61755
61756 2000-06-18  Jim Meyering  <meyering@lucent.com>
61757
61758         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
61759         Besides, these days every porting target provides a mkdir function.
61760
61761         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
61762         needed. (this snippet comes from src/system.h).
61763
61764 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
61765
61766         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
61767
61768 2000-06-15  Paul Eggert  <eggert@twinsun.com>
61769
61770         * lib/human.c (adjust_value): New function.
61771         (human_readable_inexact): Apply rounding style even when
61772         printing approximate values.
61773
61774 2000-06-14  Paul Eggert  <eggert@twinsun.com>
61775
61776         * lib/human.c (human_readable_inexact): Allow an input block
61777         size that is not a multiple of the output block size, and vice versa.
61778         Reported by Piergiorgio Sartor.
61779
61780 2000-06-14  Paul Eggert  <eggert@twinsun.com>
61781
61782         * lib/getdate.y (get_date): Apply relative times after time
61783         zone indicator, not before.  Reported by Todd A. Jacobs.
61784
61785 2000-06-13  Jim Meyering  <meyering@lucent.com>
61786
61787         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
61788
61789         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
61790
61791 2000-06-12  Paul Eggert  <eggert@twinsun.com>
61792
61793         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
61794
61795 2000-06-12  Jim Meyering  <meyering@lucent.com>
61796
61797         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
61798         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
61799         optional argument.
61800         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
61801         the optional argument, `lib'.
61802
61803 2000-06-08  Jim Meyering  <meyering@lucent.com>
61804
61805         * m4/largefile.m4: Remove file (now that it's part of autoconf).
61806
61807 2000-06-04  Paul Eggert  <eggert@twinsun.com>
61808
61809         Rewrite largefile configuration so that we don't need to run
61810         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
61811         AC_CANONICAL_HOST in configure.in -- jmm]
61812
61813         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
61814         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
61815         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
61816         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
61817         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
61818         All uses changed.
61819         Instead of inspecting the output of getconf, try to compile the
61820         test program without and with the macro definition.
61821         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
61822         for getconf.  Instead, check for the needed flags by compiling
61823         test programs.
61824
61825 2000-06-04  Paul Eggert  <eggert@twinsun.com>
61826
61827         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
61828
61829 2000-06-04  Jim Meyering  <meyering@lucent.com>
61830
61831         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
61832         SunOS 4.1.4 for which gid_t is an unsigned type.
61833
61834 2000-06-03  Jim Meyering  <meyering@lucent.com>
61835
61836         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
61837         now that autoconf requires that.
61838
61839         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
61840         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
61841         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
61842
61843 2000-06-03  Jim Meyering  <meyering@lucent.com>
61844
61845         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
61846
61847 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
61848
61849         * m4/glibc21.m4: New file.
61850         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
61851
61852 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
61853
61854         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
61855         newer, don't install charset.alias.
61856         * lib/config.charset: Change the Linux/glibc rules so they become empty
61857         on glibc-2.1 or newer.
61858
61859 2000-06-02  Jim Meyering  <meyering@lucent.com>
61860
61861         * lib/mountlist.c: Back out last change.  Instead, do this...
61862         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
61863         me_dummy member using the same `ignore'-testing code.
61864         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
61865         fs_type strings.
61866         From Mark D. Roth.
61867
61868 2000-05-29  Jim Meyering  <meyering@lucent.com>
61869
61870         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
61871         mounts with the `ignore' attribute.  Based on a patch from
61872         Mark D. Roth.
61873
61874 2000-05-28  Jim Meyering  <meyering@lucent.com>
61875
61876         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
61877         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61878         * m4/stat.m4: Likewise.
61879         * m4/lstat.m4: Likewise.
61880         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
61881
61882         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
61883         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
61884
61885 2000-05-26  Jim Meyering  <meyering@lucent.com>
61886
61887         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
61888
61889 2000-05-24  Jim Meyering  <meyering@lucent.com>
61890
61891         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
61892         autoconf requires that.
61893         * m4/lib-check.m4: Likewise.
61894         * m4/jm-macros.m4: Likewise.
61895         * m4/strftime.m4: Likewise.
61896
61897         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
61898         AC_CHECK_DECLS, now that autoconf requires that.
61899
61900 2000-05-22  Jim Meyering  <meyering@lucent.com>
61901
61902         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61903         * m4/lstat.m4: Likewise.
61904
61905 2000-05-22  Jim Meyering  <meyering@lucent.com>
61906
61907         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
61908
61909 2000-05-20  Jim Meyering  <meyering@lucent.com>
61910
61911         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
61912         (jm_PREREQ): Use it.
61913
61914 2000-05-18  Jim Meyering  <meyering@lucent.com>
61915
61916         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
61917         back, too, since it may have been modified by allocate_entry.
61918         (hash_delete): Rewrite to use neither the assignment operator
61919         nor the comma operator in an if-expression.
61920
61921 2000-05-15  Paul Eggert  <eggert@twinsun.com>
61922
61923         * lib/closeout.c:
61924         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
61925         Remove; no longer needed.
61926         "quotearg.h": Add include.
61927         (file_name): Do not bother to explicitly initialize to NULL; it's less
61928         efficient on some hosts.
61929         (close_stdout_status): Remove test as to whether stdout was already
61930         closed; it breaks for the case "echo x | sort >&-".
61931         Quote file name colons.
61932         Do not assume that _("write error") lacks format strings.
61933
61934 2000-05-15  Jim Meyering  <meyering@lucent.com>
61935
61936         * lib/version-etc.c (version_etc_copyright): Update the copyright
61937         string used in all --version output.
61938
61939 2000-05-14  Jim Meyering  <meyering@lucent.com>
61940
61941         * lib/closeout.c (close_stdout_set_file_name): New function.
61942         (close_stdout_status): Use new file-scoped global.
61943         Return right away if fstat says the stdout file descriptor is invalid.
61944         * lib/closeout.h (close_stdout_set_file_name): Declare.
61945
61946 2000-05-10  Jim Meyering  <meyering@lucent.com>
61947
61948         * lib/closeout.c [default_exit_status]: New file-scoped variable.
61949         (close_stdout_set_status): New function.
61950         * lib/closeout.h (close_stdout_set_status): Declare.
61951
61952 2000-05-09  Jim Meyering  <meyering@lucent.com>
61953
61954         * m4/gettext.m4: Rename this...
61955         * m4/libintl.m4: ...to this.
61956
61957 2000-05-08  Jim Meyering  <meyering@lucent.com>
61958
61959         * lib/long-options.c: Don't include closeout.h.
61960         (parse_long_options): Don't call close_stdout for --version.
61961
61962 2000-05-06  Paul Eggert  <eggert@twinsun.com>
61963
61964         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
61965         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
61966         2.1.3 bug.  This avoids a clash when files like regex.c define
61967         _GNU_SOURCE.
61968
61969 2000-05-06  Jim Meyering  <meyering@lucent.com>
61970
61971         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
61972         (AC_REPLACE_FUNCS): Add strnlen.
61973
61974         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
61975         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
61976
61977         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
61978         AC_SEARCH_LIBS call for nanosleep.
61979         (LIB_NANOSLEEP): Set and AC_SUBST.
61980
61981 2000-05-06  Jim Meyering  <meyering@lucent.com>
61982
61983         * lib/strnlen.c: Undefine __strnlen and strnlen.
61984         [!weak_alias]: Define __strnlen to strnlen.
61985
61986         * lib/atexit.c: New file, from libiberty.
61987
61988 2000-05-06  Jim Meyering  <meyering@lucent.com>
61989
61990         * lib/closeout.c (close_stdout_status): Also check for errors on the
61991         stderr stream.
61992
61993 2000-05-05  Jim Meyering  <meyering@lucent.com>
61994
61995         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
61996         AC_SEARCH_LIBS call for clock_gettime.
61997         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
61998
61999         * m4/search-libs.m4: Update from autoconf.
62000
62001         su doesn't work on Solaris 2.6.
62002         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
62003         <shadow.h>.  Reported by Dragos Harabor.
62004
62005 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
62006
62007         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
62008         memcpy instead of xmalloc, xrealloc, path_concat.
62009         (locale_charset): Treat empty environment variables as absent.
62010         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
62011
62012 2000-05-04  Jim Meyering  <meyering@lucent.com>
62013
62014         * lib/getopt.c: Update from glibc.
62015         * lib/obstack.c: Likewise.
62016         * lib/obstack.h: Likewise.
62017         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
62018         file
62019
62020         * lib/regex.h: Likewise.
62021         * lib/strndup.c: Likewise.
62022         * lib/strnlen.c: New file, from glibc.
62023
62024 2000-05-03  Jim Meyering  <meyering@lucent.com>
62025
62026         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
62027
62028 2000-05-02  Paul Eggert  <eggert@twinsun.com>
62029
62030         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
62031         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
62032         compile-time test, rather than inspecting host and OS, to
62033         decide whether to define _LARGEFILE_SOURCE.
62034
62035 2000-05-01  Jim Meyering  <meyering@lucent.com>
62036
62037         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
62038
62039         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
62040         Based on a patch from Bruno Haible.
62041
62042 2000-05-01  Jim Meyering  <meyering@lucent.com>
62043
62044         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
62045
62046 2000-04-29  Jim Meyering  <meyering@lucent.com>
62047
62048         * lib/path-concat.c: Declare strdup only if it's not defined.
62049         * lib/canon-host.c: Likewise.
62050
62051 2000-04-28  Jim Meyering  <meyering@lucent.com>
62052
62053         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
62054         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
62055         is included first, then limits.h is included by locale.h by libintl.h.
62056         From John David Anglin.
62057
62058 2000-04-25  Jim Meyering  <meyering@lucent.com>
62059
62060         * lib/makepath.c (S_IRWXUGO): Define.
62061         (make_path): Always perform explicit chmod if MODE specifies any
62062         of the `special' permission bits.  Prompted by a bug report against
62063         install from Mate Wierdl and Joost van Baal.
62064
62065 2000-04-18  Jim Meyering  <meyering@lucent.com>
62066
62067         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
62068         (jm_PREREQ): Use it.
62069
62070 2000-04-18  Jim Meyering  <meyering@lucent.com>
62071
62072         * lib/README: New file.
62073
62074         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
62075         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
62076
62077 2000-04-17  Jim Meyering  <meyering@lucent.com>
62078
62079         Get it right :-)
62080         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
62081         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
62082         Suggestion from Akim Demaille.
62083
62084 2000-04-17  Jim Meyering  <meyering@lucent.com>
62085
62086         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
62087         the definition of it to rpl_strftime also defined-away the system's
62088         declaration.
62089
62090 2000-04-15  Jim Meyering  <meyering@lucent.com>
62091
62092         Use `C' to denote so-called `contiguous' files, the same way
62093         that tar does.
62094         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
62095         (ftypelet): Use S_ISCTG.
62096         From Michael Deutschmann.
62097
62098 2000-04-14  Jim Meyering  <meyering@lucent.com>
62099
62100         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
62101         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
62102         clobbered.
62103
62104 2000-04-14  Jim Meyering  <meyering@lucent.com>
62105
62106         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
62107
62108 2000-04-13  Jim Meyering  <meyering@lucent.com>
62109
62110         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
62111         AH_VERBATIM to insert required #ifndef into config.h.in.
62112         Suggestion from Akim Demaille.
62113
62114 2000-04-12  Jim Meyering  <meyering@lucent.com>
62115
62116         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
62117         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
62118         Christian Krackowizer.
62119
62120         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
62121         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
62122         (AC_SYS_LARGEFILE): Require.
62123         (AM_C_PROTOTYPES): Require.
62124
62125 2000-04-08  Jim Meyering  <meyering@lucent.com>
62126
62127         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
62128         names don't conflict.  Reported by Eli Zaretskii.
62129
62130 2000-04-07  Jim Meyering  <meyering@lucent.com>
62131
62132         * lib/putenv.c: Move inclusion of errno.h so it follows that of
62133         sys/types.h, to work around system header problems on AIX 3.2.5.
62134         From Bruno Haible.
62135
62136 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
62137
62138         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
62139         bug.  Deal with the different error behavior of Irix iconv.
62140
62141 2000-04-05  Paul Eggert  <eggert@twinsun.com>
62142
62143         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
62144         IRIX if the installer said otherwise.
62145
62146 2000-04-05  Jim Meyering  <meyering@lucent.com>
62147
62148         Portability tweaks required for ultrix4.3.
62149         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
62150         (jm_CHECK_DECLS): Add getutent to the list of functions.
62151         (_jm_DECL_HEADERS): Add utmpx.h.
62152         From John David Anglin.
62153
62154         * m4/strftime.m4: Back out the 2000-04-02 change.
62155         Instead of that change, simply undefine putenv in the test program.
62156
62157 2000-04-05  Jim Meyering  <meyering@lucent.com>
62158
62159         Portability tweaks required for ultrix4.3.
62160         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
62161         getutent.
62162         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
62163         * lib/canon-host.c: Declare strdup.
62164         * lib/path-concat.c: Likewise.
62165         From John David Anglin.
62166
62167 2000-04-04  Jim Meyering  <meyering@lucent.com>
62168
62169         Be more DOS 8.3-friendly.
62170         * lib/ref-add.sin: Renamed from ref-add.sed.in.
62171         * lib/ref-del.sin: Renamed from ref-del.sed.in.
62172         * lib/Makefile.am: Reflect renaming.
62173         Reported by Eli Zaretskii.
62174
62175         Use a temporary file name that won't clash with `charset.alias'
62176         in the DOS 8.3 name space.
62177         * lib/Makefile.am (charset_tmp): Define.
62178         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
62179         (uninstall-local): Likewise.
62180         Reported by Eli Zaretskii.
62181
62182 2000-04-03  Jim Meyering  <meyering@lucent.com>
62183
62184         * m4/gettext.m4: Fix typo in comment.
62185
62186         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
62187         textutils/configure.in).  Suggestion from Paul Eggert.
62188         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
62189
62190 2000-04-02  Paul Eggert  <eggert@twinsun.com>
62191
62192         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
62193         variable in the shell rather than using putenv, which isn't
62194         portable.  This avoids the configure-time inter-test dependency
62195         on the potentially-renamed putenv function.
62196
62197 2000-03-30  Paul Eggert  <eggert@twinsun.com>
62198
62199         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
62200         before checking struct stat.st_blksize, so that
62201         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
62202
62203 2000-03-29  Paul Eggert  <eggert@twinsun.com>
62204
62205         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
62206         since strftime.c uses HAVE_STRFTIME to decide whether to use
62207         the underlying strftime.
62208
62209 2000-03-29  Paul Eggert  <eggert@twinsun.com>
62210
62211         * lib/time/strftime.c (my_strftime): Make sure we call the system
62212         strftime, not ourselves, when invoking the underlying strftime.
62213
62214 2000-03-24  Jim Meyering  <meyering@lucent.com>
62215
62216         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
62217         (charset_alias): Define.
62218         (install-exec-local): Factor out common code.
62219         (uninstall-local): Split lines longer than 80.
62220         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
62221         (SUFFIXES): Define.
62222         (.sed.in.sed): New rule.  Don't redirect directly to $@.
62223         (CLEANFILES): Add ref-add.sed and ref-del.sed.
62224
62225 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
62226
62227         * lib/config.charset: Output a line containing "Packages using this
62228         file".
62229         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
62230         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
62231         ref-del.sed): New rules.
62232
62233 2000-03-17  Jim Meyering  <meyering@lucent.com>
62234
62235         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
62236         Otherwise, include <strings.h>
62237
62238 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
62239
62240         * lib/unicodeio.c (utf8_wctomb): New function.
62241         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
62242         format instead of in UCS-4 with platform dependent endianness.
62243
62244 2000-03-10  Jim Meyering  <meyering@lucent.com>
62245
62246         * m4/lib-check.m4: Look for getspnam in -lgen, too.
62247         From Marco Franzen.
62248
62249 2000-03-07  Paul Eggert  <eggert@twinsun.com>
62250
62251         * lib/savedir.c (savedir): Work even if directory size is
62252         negative; this can happen with some screwy NFS configurations.
62253
62254 2000-03-06  Jim Meyering  <meyering@lucent.com>
62255
62256         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
62257         if it's NULL (because we ran out of memory).  From Bruno Haible.
62258
62259 2000-03-05  Jim Meyering  <meyering@lucent.com>
62260
62261         * lib/localcharset.c ("path-concat.h"): Include.
62262         (get_charset_aliases): Use path_concat instead of ANSI string
62263         concatenation.
62264
62265         * lib/unicodeio.h (PARAMS): Define.
62266         Use it to guard prototype.
62267
62268 2000-03-04  Jim Meyering  <meyering@lucent.com>
62269
62270         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
62271         for lib/localcharset.c.
62272
62273 2000-03-04  Jim Meyering  <meyering@lucent.com>
62274
62275         * lib/Makefile.am (install-exec-local): Create $(libdir) before
62276         installing into it.
62277         (uninstall-local): Uncomment this rule so `make distcheck' works
62278         once again.
62279
62280         * lib/unicodeio.c (<errno.h>): Include it.
62281         (errno): Declare if not defined.
62282
62283         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
62284
62285         * lib/config.charset: New version, incorporating remarks from a linux
62286         i18n mailing list.  From Bruno Haible.
62287
62288 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
62289
62290         * m4/codeset.m4: New file.
62291         * m4/iconv.m4: New file.
62292         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
62293
62294 2000-03-03  Jim Meyering  <meyering@lucent.com>
62295
62296         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
62297
62298 2000-03-02  Jim Meyering  <meyering@lucent.com>
62299
62300         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
62301         the messages come out on separate lines.
62302
62303         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
62304         rather than jm_CHECK_DECLARATIONS.
62305         * m4/decl.m4: Remove now-unused file.
62306
62307         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
62308         geteuid.
62309
62310 2000-03-02  Jim Meyering  <meyering@lucent.com>
62311
62312         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
62313
62314 2000-03-01  Jim Meyering  <meyering@lucent.com>
62315
62316         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
62317         * lib/unicodeio.c: Likewise.
62318
62319 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
62320
62321         * lib/config.charset: New file.
62322         * lib/localcharset.c: New file.
62323         * lib/unicodeio.h, lib/unicodeio.c: New files.
62324         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
62325         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
62326         (noinst_HEADERS): Add unicodeio.h.
62327         (all-local, install-exec-local, charset.alias): New targets.
62328
62329 2000-02-28  Paul Eggert  <eggert@twinsun.com>
62330
62331         * lib/quotearg.c (ALERT_CHAR): New macro.
62332         (quotearg_buffer_restyled): Use it.
62333
62334 2000-02-27  Jim Meyering  <meyering@lucent.com>
62335
62336         * m4/check-decl.m4: Add getenv to the list.
62337
62338 2000-02-27  Jim Meyering  <meyering@lucent.com>
62339
62340         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
62341         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
62342
62343         * lib/backupfile.c: Guard inclusion of stdlib.h with
62344         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
62345         Declare malloc if needed.
62346
62347         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
62348         `#ifndef HAVE_DECL..'
62349         now that autoconf always defines the HAVE_DECL_ symbols.
62350         * lib/human.c: Likewise.
62351         * lib/same.c: Likewise.
62352         * lib/strtoumax.c: Likewise.
62353
62354         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
62355         declaration check was not run.
62356         * lib/hash.c: Likewise.
62357         * lib/human.c: Likewise.
62358         * lib/same.c: Likewise.
62359         * lib/strtoumax.c: Likewise.
62360
62361         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
62362         `.', then first look up the entire `.'-containing string as a login
62363         name.
62364
62365 2000-02-23  Jim Meyering  <meyering@lucent.com>
62366
62367         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
62368         in place of my hack.
62369
62370 2000-02-18  Paul Eggert  <eggert@twinsun.com>
62371
62372         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
62373         (textint): New typedef.
62374         (parser_control): Member year changed from int to textint.
62375         All uses changed.
62376         (YYSTYPE): Removed; replaced by %union with int and textint members.
62377         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
62378         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
62379         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
62380         (tSNUMBER, tUNUMBER): Now of type <textintval>.
62381         (date, number, to_year): Use width of number in digits, not its value,
62382         to determine whether it's a 2-digit year, or a 2-digit time.
62383         (yylex): Store number of digits of numeric tokens.
62384         Reported by John Kendall.
62385
62386         (parser_control): Changed from struct parser_control to typedef (for
62387         consistency).  All uses changed.
62388
62389         (tID): Removed; not used.
62390         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
62391
62392 2000-02-14  Paul Eggert  <eggert@twinsun.com>
62393
62394         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
62395         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
62396
62397 2000-02-12  Jim Meyering  <meyering@lucent.com>
62398
62399         * lib/userspec.c (ISDIGIT): Define it.
62400         (isdigit): Remove definition.
62401         (is_number): Use ISDIGIT, not isdigit.
62402         <libintl.h>: Include.
62403         (_ and N_): Define.
62404         (parse_user_spec): Mark translatable strings.
62405
62406 2000-02-10  Jim Meyering  <meyering@lucent.com>
62407
62408         With these changes, nanosleep.[ch] are finally enough like the other
62409         lib/* replacement files to compile on a few more losing systems.
62410
62411         * lib/nanosleep.h: Don't include config.h.
62412         Remove prototype from declaration of nanosleep.
62413         (PARAMS): Remove now-unneeded definition.
62414         * lib/nanosleep.c: #undef nanosleep.
62415         (rpl_nanosleep): Rename from nanosleep.
62416
62417 2000-02-10  Jim Meyering  <meyering@lucent.com>
62418
62419         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
62420         gnu_nanosleep to rpl_nanosleep.
62421
62422 2000-02-09  Jim Meyering  <meyering@lucent.com>
62423
62424         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
62425         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
62426
62427 2000-02-08  Akim Demaille  <akim@epita.fr>
62428
62429         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
62430         `[' and `]' and remove uses of `changequote'.
62431         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
62432         (AC_SYS_LARGEFILE): Likewise.
62433         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
62434         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
62435         of changequote.
62436         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
62437         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
62438         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
62439         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
62440
62441 2000-02-05  Jim Meyering  <meyering@lucent.com>
62442
62443         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
62444         Remove explicit use of AC_HEADER_TIME.  It is required by
62445         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
62446         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
62447         in autoconf whereby the expansion of the latter ended up preceding
62448         the expansion of its prerequisite, AC_HEADER_TIME.
62449         Reported by Volker Borchert.
62450
62451 2000-02-03  Jim Meyering  <meyering@lucent.com>
62452
62453         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
62454
62455 2000-02-03  Jim Meyering  <meyering@lucent.com>
62456
62457         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
62458         rather than with `#if HAVE_UTMPNAME'.
62459
62460 2000-02-02  Jim Meyering  <meyering@lucent.com>
62461
62462         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
62463         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
62464         Reported by Eli Zaretskii.
62465
62466 2000-02-01  Jim Meyering  <meyering@lucent.com>
62467
62468         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
62469
62470 2000-01-31  Jim Meyering  <meyering@lucent.com>
62471
62472         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
62473         functions.  Add the time.h and sys/time.h headers along with the
62474         AC_REQUIRE'ment of AC_HEADER_TIME.
62475
62476 2000-01-31  Jim Meyering  <meyering@lucent.com>
62477
62478         * lib/nanosleep.h (nanosleep): Guard declaration with
62479         `#if ! HAVE_DECL_NANOSLEEP'.
62480         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
62481         the declaration in that vendor's sys/timers.h.
62482         Reported by Christian Krackowizer.
62483
62484         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
62485         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
62486         (ISPRINT): Likewise.
62487         Reported by Tom Tromey.
62488
62489 2000-01-30  Jim Meyering  <meyering@lucent.com>
62490
62491         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
62492
62493         * m4/prereq.m4 (utmp_includes): Define.
62494         Check for ut_user and ut_name members in both struct utmpx
62495         and struct utmp.
62496
62497 2000-01-30  Jim Meyering  <meyering@lucent.com>
62498
62499         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
62500         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
62501         header files where only utmpx.ut_user is declared.
62502
62503         * lib/readutmp.h (UT_USER): Define.
62504
62505 2000-01-29  Jim Meyering  <meyering@lucent.com>
62506
62507         * m4/lib-check.m4: New file containing library-related checks from
62508         fileutils and sh-utils (textutils had none).
62509
62510 2000-01-28  Jim Meyering  <meyering@lucent.com>
62511
62512         * m4/perl.m4: Change format of warning message to look more like that
62513         from the missing script.  Suggestion from François Pinard.
62514
62515 2000-01-25  Jim Meyering  <meyering@lucent.com>
62516
62517         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
62518         well as time.h in the compile check.
62519         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
62520         Fix typo in cross-compiling case: s/yes/no/.
62521
62522 2000-01-23  Jim Meyering  <meyering@lucent.com>
62523
62524         * m4/jm-macros.m4: Move df-related tests here from
62525         fileutils/configure.in
62526
62527         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
62528         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
62529
62530         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
62531         s/space/ac_fsusage_space/.
62532         (jm_FILE_SYSTEM_USAGE): Take two parameters.
62533
62534         * m4/ftruncate.m4: New file (derived from part of
62535         fileutils/configure.in).
62536         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
62537         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
62538
62539         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
62540         AC_SUBST these here, rather than just in sh-util/configure.in, so
62541         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
62542         all the same.
62543         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
62544         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
62545         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
62546         (AC_SUBST(POW_LIBM)): Likewise.
62547         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
62548
62549 2000-01-23  Jim Meyering  <meyering@lucent.com>
62550
62551         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
62552         obstack.c.
62553
62554 2000-01-22  Jim Meyering  <meyering@lucent.com>
62555
62556         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
62557
62558         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
62559
62560         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
62561         configure.in
62562         (AC_CHECK_HEADERS): Likewise for sh-utils.
62563         (AC_CHECK_HEADERS): Likewise for textutils.
62564         Merge the three lists of headers.
62565
62566         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
62567         from fileutils' configure.in.
62568
62569         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
62570         code. Moved tests into their own function (_jm_DECL_HEADERS) in
62571         check-decl.m4.
62572
62573         * m4/check-decl.m4: Use #if rather than #ifdef.
62574         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
62575         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
62576         (_jm_DECL_HEADERS): Define new function.
62577         (jm_CHECK_DECLARATIONS): Require it.
62578
62579 2000-01-22  Jim Meyering  <meyering@lucent.com>
62580
62581         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
62582         [! HAVE_DECL_STRTOULL]: Declare strtoull.
62583         Required for some AIX systems.  Reported by Christian Krackowizer.
62584         [TESTING] (main): New function.
62585
62586         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
62587         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
62588         letters.
62589
62590         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
62591         iswprint.
62592
62593         * lib/strverscmp.c (ISDIGIT): Define.
62594         (strverscmp): Use ISDIGIT, not isdigit.
62595
62596 2000-01-19  Jim Meyering  <meyering@lucent.com>
62597
62598         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
62599         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
62600         defines `struct timespec' in <sys/time.h>
62601
62602         * m4/c-bs-a.m4: Remove uses of changequote altogether.
62603         Thanks to Akim for explaining.
62604
62605 2000-01-17  Paul Eggert  <eggert@twinsun.com>
62606
62607         * lib/nanosleep.c (nanosleep):
62608         Don't use SA_INTERRUPT to decide whether to call sigaction, as
62609         POSIX.1 doesn't require SA_INTERRUPT and some systems
62610         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
62611         it's been part of POSIX.1 since day 1 (in 1988).
62612
62613 2000-01-17  Jim Meyering  <meyering@lucent.com>
62614
62615         * lib/interlock: Remove unused file.  Reported by François Pinard.
62616
62617 2000-01-16  Paul Eggert  <eggert@twinsun.com>
62618
62619         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
62620         alert, backslash, formfeed, and vertical tab unnecessarily in
62621         shell quoting style.
62622
62623 2000-01-16  Jim Meyering  <meyering@lucent.com>
62624
62625         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
62626         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
62627         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
62628         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
62629
62630 2000-01-16  Jim Meyering  <meyering@lucent.com>
62631
62632         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
62633         because the latter didn't work.
62634
62635 2000-01-15  Jim Meyering  <meyering@lucent.com>
62636
62637         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
62638         (AC_REPLACE_FUNCS): Add memcpy and memset.
62639         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
62640         Add strpbrk.
62641         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
62642
62643 2000-01-12  Jim Meyering  <meyering@lucent.com>
62644
62645         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
62646         (jm_PREREQ): Use it.
62647         (jm_PREREQ_READUTMP): New macro.
62648         (jm_PREREQ): Use it.
62649
62650 2000-01-11  Paul Eggert  <eggert@twinsun.com>
62651
62652         Quote multibyte characters correctly.
62653         * m4/c-bs-a.m4: New file.
62654         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
62655         (jm_PREREQ): Use it.
62656
62657 2000-01-11  Paul Eggert  <eggert@twinsun.com>
62658
62659         * m4/uintmax_t.m4: Port to autoconf 2.13.
62660
62661 2000-01-08  Jim Meyering  <meyering@ascend.com>
62662
62663         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
62664         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
62665
62666 2000-01-04  Jim Meyering  <meyering@ascend.com>
62667
62668         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
62669         jm_STRUCT_DIRENT_D_TYPE.
62670         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
62671         jm_STRUCT_DIRENT_D_INO.
62672         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
62673         jm_STRUCT_UTIMBUF.
62674         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
62675         renamings.
62676         * m4/utime.m4: Likewise.
62677
62678         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
62679         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
62680
62681 2000-01-03  Paul Eggert  <eggert@twinsun.com>
62682
62683         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
62684         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
62685
62686 2000-01-02  Jim Meyering  <meyering@ascend.com>
62687
62688         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
62689         remember if this is necessary.
62690
62691 1999-12-26  Jim Meyering  <meyering@ascend.com>
62692
62693         * m4/jm-macros.m4: Use it here.
62694         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
62695
62696 1999-12-23  Jim Meyering  <meyering@ascend.com>
62697
62698         * m4/jm-macros.m4: Check for clock_gettime (moved from
62699         fileutils/configure.in)
62700         Check for gettimeofday.
62701
62702 1999-12-20  Jim Meyering  <meyering@ascend.com>
62703
62704         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
62705         autoconf-2.14a-1999-12-20.
62706
62707 1999-12-19  Jim Meyering  <meyering@ascend.com>
62708
62709         * m4/lstat-slash.m4: New file.
62710         * m4/jm-macros.m4: Use the new macro:
62711         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62712
62713 1999-12-07  Jim Meyering  <meyering@ascend.com>
62714
62715         * m4/perl.m4: Require that File::Compare be available, too.
62716         Too many systems seem to lack it.
62717
62718         * m4/strftime.m4: Add checks for most of the cpp macros tested in
62719         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
62720
62721 1999-11-18  Paul Eggert  <eggert@twinsun.com>
62722
62723         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
62724         problem with the QNX 4.25 shell, which doesn't propagate exit
62725         status of failed commands inside shell assignments.
62726
62727 1999-11-17  Jim Meyering  <meyering@ascend.com>
62728
62729         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
62730
62731 1999-11-07  Jim Meyering  <meyering@ascend.com>
62732
62733         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
62734
62735 1999-11-06  Jim Meyering  <meyering@ascend.com>
62736
62737         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
62738         * m4/jm-macros.m4 (jm_MACROS): Use it here.
62739
62740 1999-11-05  Jim Meyering  <meyering@ascend.com>
62741
62742         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
62743         configure.in of textutils, fileutils, and sh-utils into this one
62744         (shared between those packages) file.
62745         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
62746         AC_STRUCT_ST_BLKSIZE.
62747
62748 1999-11-03  Jim Meyering  <meyering@ascend.com>
62749
62750         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
62751         of AC_CHECK_TYPE checks includes unistd.h.
62752         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
62753         Suggestion from Akim Demaille.
62754
62755 1999-10-30  Jim Meyering  <meyering@ascend.com>
62756
62757         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
62758         m4-quoted string.
62759         * m4/ls-mntd-fs.m4: Likewise.
62760         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
62761         * m4/jm-winsz1.m4: Likewise.
62762
62763         * m4/const.m4: Remove file, since the fix made it into the experimental
62764         version of autoconf.
62765         * m4/mktime.m4: Likewise.
62766
62767         * m4/check-type.m4: Remove file, now that the latest version of
62768         AC_CHECK_TYPE takes a third arg to specify additional #includes.
62769
62770         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
62771         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
62772         AC_CHECK_TYPE.
62773
62774 1999-10-04  Jim Meyering  <meyering@ascend.com>
62775
62776         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
62777
62778 1999-09-22  Paul Eggert  <eggert@twinsun.com>
62779
62780         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
62781         2.95.1 bug with HP-UX 10.20.
62782
62783 1999-09-17  Jim Meyering  <meyering@ascend.com>
62784
62785         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
62786         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
62787         due to missing strdup (against sh-utils-2.0).
62788
62789 1999-08-29  Jim Meyering  <meyering@ascend.com>
62790
62791         * m4/jm-macros.m4: Require jm_BISON.
62792         * m4/bison.m4: New file.
62793
62794 1999-08-17  Paul Eggert  <eggert@twinsun.com>
62795
62796         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
62797         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
62798
62799 1999-08-05  Jim Meyering  <meyering@ascend.com>
62800
62801         * m4/getline.m4: Rename test file from conftestdata to conftest.data
62802         to avoid conflicts with `conftest' on 8+3 filesystems.
62803         Suggestion from Eli Zaretskii.
62804
62805 1999-08-04  Jim Meyering  <meyering@ascend.com>
62806
62807         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
62808         fileutils and sh-utils (textutils's getline test was inadequate).
62809         (AM_FUNC_GETLINE): Run this test.
62810         (AC_CHECK_FUNCS): Check for getdelim.
62811         Reported by Bob Proulx.
62812
62813 1999-08-02  Jim Meyering  <meyering@ascend.com>
62814
62815         * m4/jm-macros.m4: Add a comment.
62816
62817 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62818
62819         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
62820         <inttypes.h> defines strtoumax as a macro (and not as a
62821         function).
62822
62823 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62824
62825         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
62826         that we can shift, multiply and divide unsigned long long
62827         values; Ultrix cc can't do it.
62828
62829 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62830
62831         * m4/mktime.m4: New file, which is a preview of what should appear
62832         in the next public autoconf release.
62833
62834 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62835
62836         * m4/lfs.m4: Remove this file.
62837         * m4/largefile.m4: New file.  It contains the old contents of
62838         lfs.m4, except that all names with prefix AC_LFS have been
62839         changed to use the prefix AC_SYS_LARGEFILE instead, to be
62840         compatible with future autoconf versions.  Also, some minor m4
62841         quoting problems have been fixed.
62842
62843 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62844
62845         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
62846         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
62847         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
62848         and simplify the shell code.
62849
62850 1999-08-01  Jim Meyering  <meyering@ascend.com>
62851
62852         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
62853         m4.
62854
62855 1999-07-20  Jim Meyering  <meyering@ascend.com>
62856
62857         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
62858
62859 1999-07-15  Jim Meyering  <meyering@ascend.com>
62860
62861         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
62862
62863 1999-05-22  Jim Meyering  <meyering@ascend.com>
62864
62865         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
62866
62867 1999-05-20  Jim Meyering  <meyering@ascend.com>
62868
62869         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
62870         Add a colon after each `then' in case $4 is empty.
62871
62872 1999-05-16  Jim Meyering  <meyering@ascend.com>
62873
62874         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
62875
62876 1999-05-10  Jim Meyering  <meyering@ascend.com>
62877
62878         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
62879
62880         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
62881         AC_FUNC_MKTIME.
62882
62883 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
62884
62885         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
62886
62887 1999-05-04  Paul Eggert  <eggert@twinsun.com>
62888
62889         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
62890         not CPPFLAGS, so that linking works correctly in IRIX.
62891
62892 1999-04-30  Paul Eggert  <eggert@twinsun.com>
62893
62894         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
62895
62896 1999-04-20  Paul Eggert  <eggert@twinsun.com>
62897
62898         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
62899         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
62900         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
62901         jm_AC_TYPE_UNSIGNED_LONG_LONG.
62902         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
62903
62904         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
62905
62906 1999-04-20  Jim Meyering  <meyering@ascend.com>
62907
62908         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
62909         AC_REPLACE xstroull if necessary.  From Paul Eggert.
62910         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
62911
62912 1999-04-18  Jim Meyering  <meyering@ascend.com>
62913
62914         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
62915         * m4/jm-macros.m4: Use it.
62916
62917 1999-04-06  Jim Meyering  <meyering@ascend.com>
62918
62919         * m4/strftime.m4: Remove test for %f.
62920
62921 1999-03-29  Jim Meyering  <meyering@ascend.com>
62922
62923         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
62924         superset of the AC_TYPE_* checks in the textutils, fileutils,
62925         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
62926         AC_TYPE_PID_T.
62927
62928 1999-03-28  Jim Meyering  <meyering@ascend.com>
62929
62930         * m4/jm-macros.m4: Define GNU_PACKAGE here.
62931         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
62932         replaced e.g., in the *.sh files of the sh-utils.
62933
62934 1999-03-20  Jim Meyering  <meyering@ascend.com>
62935
62936         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
62937         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
62938         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
62939
62940 1999-03-19  Jim Meyering  <meyering@ascend.com>
62941
62942         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
62943
62944 1999-03-12  Jim Meyering  <meyering@ascend.com>
62945
62946         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
62947
62948 1999-03-07  Jim Meyering  <meyering@ascend.com>
62949
62950         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
62951         declared.
62952
62953 1999-02-17  Jim Meyering  <meyering@ascend.com>
62954
62955         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
62956         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
62957
62958 1999-02-07  Jim Meyering  <meyering@ascend.com>
62959
62960         * m4/group-member.m4: New file -- extracted from sh-utils'
62961         configure.in.
62962
62963         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
62964         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
62965
62966 1999-02-06  Jim Meyering  <meyering@ascend.com>
62967
62968         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
62969         * m4/fnmatch.m4: Likewise.
62970         * m4/getgroups.m4: Likewise.
62971         * m4/lstat.m4: Likewise.
62972         * m4/malloc.m4: Likewise.
62973         * m4/putenv.m4: Likewise.
62974         * m4/realloc.m4: Likewise.
62975         * m4/regex.m4: Likewise.
62976         * m4/stat.m4: Likewise.
62977         * m4/strftime.m4: Likewise.
62978         Suggestion from Alain Magloire.
62979
62980         * m4/chown.m4: Use `.$ac_objext', not `.o'.
62981         * m4/fnmatch.m4: Likewise.
62982         * m4/getgroups.m4: Likewise.
62983         * m4/getline.m4: Likewise.
62984         * m4/lstat.m4: Likewise.
62985         * m4/malloc.m4: Likewise.
62986         * m4/memcmp.m4: Likewise.
62987         * m4/putenv.m4: Likewise.
62988         * m4/realloc.m4: Likewise.
62989         * m4/regex.m4: Likewise.
62990         * m4/stat.m4: Likewise.
62991         * m4/strftime.m4: Likewise.
62992         Suggestion from Alain Magloire.
62993
62994         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
62995         an argument.
62996
62997         * m4/regex.m4: Add a run-time Test for proper operation of
62998         re_compile_pattern.
62999
63000 1999-01-31  Jim Meyering  <meyering@ascend.com>
63001
63002         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
63003
63004 1999-01-30  Jim Meyering  <meyering@ascend.com>
63005
63006         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
63007
63008         * m4/jm-mktime.m4: Make this a wrapper around the official
63009         AM_FUNC_MKTIME rather than my private copy, now that the official one
63010         is up to date.
63011         * m4/mktime.m4: Remove file.
63012
63013         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
63014         * m4/uptime.m4: Likewise.
63015         * m4/uintmax_t.m4: Likewise.
63016
63017 1999-01-28  Jim Meyering  <meyering@ascend.com>
63018
63019         * m4/jm-macros.m4: Use jm_AFS.
63020         * m4/afs.m4: New file (from fileutils' configure.in).
63021
63022         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
63023         * m4/chown.m4: Likewise.
63024         * m4/d-ino.m4: Likewise.
63025         * m4/d-type.m4: Likewise.
63026         * m4/fnmatch.m4: Likewise.
63027         * m4/getgroups.m4: Likewise.
63028         * m4/gettext.m4: Likewise.
63029         * m4/jm-mktime.m4: Likewise.
63030         * m4/jm-winsz2.m4: Likewise.
63031         * m4/lcmessage.m4: Likewise.
63032         * m4/ls-mntd-fs.m4: Likewise.
63033         * m4/malloc.m4: Likewise.
63034         * m4/memcmp.m4: Likewise.
63035         * m4/putenv.m4: Likewise.
63036         * m4/realloc.m4: Likewise.
63037         * m4/st_mtim.m4: Likewise.
63038         * m4/strftime.m4: Likewise.
63039
63040 1999-01-16  Jim Meyering  <meyering@ascend.com>
63041
63042         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
63043         (ARGMATCH_DIE_DECL): Define.
63044
63045 1999-01-12  Jim Meyering  <meyering@ascend.com>
63046
63047         * m4/Makefile.am.in: Rewrite to avoid using fmt.
63048         Reported by Lars Hecking.
63049
63050 1999-01-10  Jim Meyering  <meyering@ascend.com>
63051
63052         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
63053         gross kludge.
63054         * m4/inttypes_h.m4: Likewise.
63055         * m4/lstat.m4: Likewise.
63056         * m4/malloc.m4: Likewise.
63057         * m4/readdir.m4: Likewise.
63058         * m4/realloc.m4: Likewise.
63059         * m4/st_dm_mode.m4: Likewise.
63060         * m4/stat.m4: Likewise.
63061         * m4/utimbuf.m4: Likewise.
63062         * m4/utimes.m4: Likewise.
63063
63064         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
63065         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
63066         comments in config.h.in are meaningful.
63067
63068         * m4/jm-macros.m4: Require autoconf-2.13 here.
63069
63070         * m4/regex.m4: By default, don't use the included regex.c on systems
63071         with glibc 2.  Suggestion from Uli Drepper.
63072
63073 1999-01-02  Jim Meyering  <meyering@ascend.com>
63074
63075         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
63076
63077 1998-12-18  Jim Meyering  <meyering@ascend.com>
63078
63079         * m4/Makefile.am.in (Makefile.am): Simplify rule.
63080         Based on a suggestion from Lars Hecking.
63081
63082 1998-11-16  Paul Eggert  <eggert@twinsun.com>
63083
63084         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
63085
63086 1998-11-16  Jim Meyering  <meyering@ascend.com>
63087
63088         * m4/lfs.m4: Double-quote the `uname...` expression.
63089
63090 1998-11-14  Jim Meyering  <meyering@ascend.com>
63091
63092         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
63093         * m4/stat.m4: Likewise.
63094
63095 1998-11-03  Jim Meyering  <meyering@ascend.com>
63096
63097         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
63098         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
63099
63100 1998-10-18  Jim Meyering  <meyering@ascend.com>
63101
63102         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
63103
63104 1998-10-17  Jim Meyering  <meyering@ascend.com>
63105
63106         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
63107         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
63108         calls for those previously hard-coded headers.  Instead, take a new
63109         parameter.
63110         (jm_CHECK_DECLARATIONS): Reflect interface change.
63111         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
63112         (jm_CHECK_DECL_LOCALTIME_R): New macro.
63113
63114         * m4/mktime.m4: Test for spring-forward gap before long-running test.
63115
63116 1998-10-14  Jim Meyering  <meyering@ascend.com>
63117
63118         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
63119         instead of "TZ=America/Vancouver".  From Paul Eggert.
63120
63121 1998-10-11  Jim Meyering  <meyering@ascend.com>
63122
63123         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
63124         This adds a test for a recently added compatibility fix for mktime.c.
63125         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
63126
63127 1998-09-27  Jim Meyering  <meyering@ascend.com>
63128
63129         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
63130
63131         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
63132         ../configure.in, including a change from Gordon Matzigkeit to allow
63133         cross-compiling for the Hurd.
63134
63135         * m4/glibc.m4: New file/macro to test for the GNU C Library
63136         versions 1 and 2.  From Gordon Matzigkeit.
63137         Indent.
63138
63139 1998-09-21  Jim Meyering  <meyering@ascend.com>
63140
63141         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
63142
63143 1998-08-18  Paul Eggert  <eggert@twinsun.com>
63144
63145         Port nanosecond-resolution times to UnixWare 2.1.2 and
63146         pedantic Solaris 2.6.
63147
63148         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
63149         AC_STRUCT_ST_MTIM.
63150         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
63151         Generate name of ns member, instead of just 1 or undef.
63152         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
63153
63154 1998-08-15  Jim Meyering  <meyering@ascend.com>
63155
63156         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
63157         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
63158         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
63159         instead of jm_TYPE_SSIZE_T.
63160
63161 1998-08-12  Jim Meyering  <meyering@ascend.com>
63162
63163         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
63164
63165 1998-08-02  Jim Meyering  <meyering@ascend.com>
63166
63167         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
63168         in acconfig.h manually.
63169
63170 1998-07-31  Paul Eggert  <eggert@twinsun.com>
63171
63172         * m4/st_mtim.m4: New file.
63173
63174 1998-07-28  Jim Meyering  <meyering@ascend.com>
63175
63176         * m4/utimes.m4: Undef stat.
63177
63178 1998-07-25  Jim Meyering  <meyering@ascend.com>
63179
63180         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
63181         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
63182
63183 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
63184
63185         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
63186         uid and gid actually remain unchanged.
63187
63188 1998-07-07  Jim Meyering  <meyering@ascend.com>
63189
63190         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
63191
63192 1998-07-04  Jim Meyering  <meyering@ascend.com>
63193
63194         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
63195         to prove that this macro can be used in packages without regex.c.
63196
63197 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
63198
63199         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
63200         is to be used.
63201
63202 1998-07-03  Jim Meyering  <meyering@ascend.com>
63203
63204         * m4/gettext.m4: Add -lintl if it's found to be necessary.
63205
63206         * m4/gettext.m4: New file -- from gettext-0.10.35.
63207         * m4/lcmessage.m4: Likewise.
63208         * m4/progtest.m4: Likewise.
63209
63210         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
63211         * m4/jm-macros.m4: Require the new macro.
63212
63213 1998-06-29  Jim Meyering  <meyering@ascend.com>
63214
63215         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
63216         for the definition of NGROUPS (used in a system header included
63217         by sys/mount.h).
63218
63219 1998-06-28  Jim Meyering  <meyering@ascend.com>
63220
63221         * m4/ls-mntd-fs.m4: New file.
63222         * m4/fstypename.m4: New file.
63223
63224         * m4/jm-macros.m4: Require the new macro.
63225         * m4/jm-glibc-io.m4: New file.
63226
63227 1998-05-19  Jim Meyering  <meyering@ascend.com>
63228
63229         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
63230         * m4/lchown.m4: New file.
63231
63232         * m4/Makefile.am.in: New file.
63233         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
63234
63235 1998-05-14  Jim Meyering  <meyering@ascend.com>
63236
63237         * m4/Makefile.am (EXTRA_DIST): Add them.
63238         * m4/jm-macros.m4: New file.
63239         * m4/utimbuf.m4: New file.
63240
63241 1998-05-12  Jim Meyering  <meyering@ascend.com>
63242
63243         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
63244
63245 1998-05-11  Jim Meyering  <meyering@ascend.com>
63246
63247         * m4/isc-posix.m4: New file.
63248
63249 1998-05-10  Jim Meyering  <meyering@ascend.com>
63250
63251         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
63252
63253 1998-05-09  Jim Meyering  <meyering@ascend.com>
63254
63255         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
63256         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
63257         with automake.
63258
63259         * m4/ssize_t.m4: New file.
63260         * m4/mktime.m4: Remove file -- the new automake has this now.
63261
63262 1998-04-26  Jim Meyering  <meyering@ascend.com>
63263
63264         * m4/assert.m4: New file.
63265         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
63266
63267 1998-04-05  Jim Meyering  <meyering@ascend.com>
63268
63269         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
63270         (jm_PREREQ): Use it here.
63271
63272 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
63273
63274         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
63275         in acconfig.h.
63276
63277 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
63278
63279         * m4/prereq.m4: New file.
63280         * m4/error.m4: New file.
63281         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
63282
63283 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
63284
63285         * m4/getline.m4: Don't set am_cv_func_working_getline before the
63286         cache-check for the same variable -- that defeated the purpose of
63287         the test; the test program was never run.  This was a problem only
63288         on systems with losing getline functions -- HP-UX 10.20 is one.
63289         Reported by Bjorn Helgaas.
63290
63291 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
63292
63293         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
63294
63295 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
63296
63297         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
63298
63299         * m4/const.m4: New file.  Use an initializer in this declaration
63300         typedef int charset[2]; const charset x;
63301         Reported by Bob Glickstein.
63302
63303 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
63304
63305         * m4/chown.m4: Fix reversed types on -1 args to chown.
63306         From Kaveh Ghazi.
63307
63308 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
63309
63310         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
63311         Add lseek and memchr.
63312
63313         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
63314         T.E.Dickey <dickey@clark.net> said that some older preprocessors
63315         have a 20-character limit on names.
63316
63317 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
63318
63319         * m4/inttypes_h.m4: New file.
63320         * m4/uintmax_t.m4: New file.
63321         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
63322
63323
63324         -----
63325
63326         Local Variables:
63327         coding: utf-8
63328         End:
63329
63330         Copyright (C) 1997-2010 Free Software Foundation, Inc.
63331
63332         Copying and distribution of this file, with or without
63333         modification, are permitted provided the copyright notice
63334         and this notice are preserved.