Fix test-dirent link error.
[pspp] / ChangeLog
1 2010-03-07  Bruno Haible  <bruno@clisp.org>
2
3         Fix test-dirent link error.
4         * modules/dirent-tests (Makefile.am): Define test_dirent_LDADD.
5
6 2010-03-07  Bruno Haible  <bruno@clisp.org>
7
8         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
9         among default module list.
10
11 2010-03-07  Bruno Haible  <bruno@clisp.org>
12
13         Fix link error on platforms with GNU libiconv.
14         * modules/unistr/u8-strcoll-tests (Makefile): Define
15         test_u8_strcoll_LDADD.
16         * modules/unistr/u16-strcoll-tests (Makefile): Define
17         test_u16_strcoll_LDADD.
18         * modules/unistr/u32-strcoll-tests (Makefile): Define
19         test_u32_strcoll_LDADD.
20
21 2010-03-07  Bruno Haible  <bruno@clisp.org>
22
23         Use POSIX declarations for socket functions.
24         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
25         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
26         rpl_sendto): Change declaration to match POSIX.
27         * lib/connect.c (rpl_connect): Likewise.
28         * lib/accept.c (rpl_accept): Likewise.
29         * lib/bind.c (rpl_bind): Likewise.
30         * lib/getpeername.c (rpl_getpeername): Likewise.
31         * lib/getsockname.c (rpl_getsockname): Likewise.
32         * lib/recv.c (rpl_recv): Likewise.
33         * lib/send.c (rpl_send): Likewise.
34         * lib/recvfrom.c (rpl_recvfrom): Likewise.
35         * lib/sendto.c (rpl_sendto): Likewise.
36
37 2010-03-06  Bruno Haible  <bruno@clisp.org>
38
39         Clarify access, euidaccess, faccessat.
40         * doc/posix-functions/faccessat.texi: Mention security problem under
41         "Other problems", not "Portability problems".
42         * doc/posix-functions/access.texi: Likewise. Mention a related security
43         problem.
44         * doc/glibc-functions/euidaccess.texi: Mention security problems.
45         * lib/euidaccess.c: Add comments about platforms.
46         * lib/unistd.in.h (access, euidaccess): Add warnings.
47
48 2010-03-07  Bruno Haible  <bruno@clisp.org>
49
50         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
51         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
52         (POSIX_SPAWN_SETSCHEDULER): Likewise.
53         (POSIX_SPAWN_USEVFORK): Define in a way that works when
54         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
55         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
56         declare when POSIX_SPAWN_SETSCHEDULER is zero.
57         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
58         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
59         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
60         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
61         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
62         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
63         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
64         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
65         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
66         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
67         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
68         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
69         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
70         Likewise.
71         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
72         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
73         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
74         Likewise.
75         * tests/test-spawn.c (main): Make it work when
76         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
77
78 2010-03-07  Bruno Haible  <bruno@clisp.org>
79
80         Fix incorrect Makefile.am generation in German locale.
81         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
82         Execute sed command with character range in C locale.
83
84 2010-03-06  Bruno Haible  <bruno@clisp.org>
85
86         Tests for module 'iconv-h'.
87         * modules/iconv-h-tests: New file.
88         * tests/test-iconv-h.c: New file.
89
90         New module 'iconv-h'.
91         * modules/iconv-h: New file.
92         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
93         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
94         (configure.ac): Remove gl_ICONV_H.
95         (Makefile.am): Remove rule for iconv.h.
96
97 2010-03-06  Bruno Haible  <bruno@clisp.org>
98
99         More consistent naming of *.m4 files.
100         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
101         * modules/wctype (Files): Update.
102
103         More consistent naming of *.m4 files.
104         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
105         * modules/wchar (Files): Update.
106
107 2010-03-06  Jim Meyering  <meyering@redhat.com>
108
109         euidaccess: relax license to LGPLv2+
110         * modules/euidaccess (License): Relax to LGPLv2+.
111
112 2010-03-06  Bruno Haible  <bruno@clisp.org>
113
114         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
115         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
116         (Makefile.am): Augment lib_SOURCES instead.
117
118 2010-03-04  Jim Meyering  <meyering@redhat.com>
119
120         utime: remove obsolete module
121         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
122         unnecessary for years, and has been marked as obsolete for 10 months.
123         * modules/utime: Remove file.
124         * lib/utime.c: Remove file.
125         * m4/utime.m4: Remove file.
126         * m4/utimes-null.m4: Remove file.
127         * doc/posix-functions/utime.texi (utime): Remove reference to
128         the module.  Move the sole "fixed by gnulib" item into the
129         "problems not fixed by Gnulib" list.
130         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
131
132 2010-03-05  Simon Josefsson  <simon@josefsson.org>
133
134         * modules/exit (License): Relax license to LGPLv2+.
135         (Status): Mark as obsolete.
136         * NEWS: Mention deprecated 'exit' module.
137         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
138         of now obsolete 'exit'.
139
140 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
141
142         fts-lgpl: remove unused module
143         * modules/fts-lgpl: Remove.
144         * MODULES.html.sh (func_all_modules): Adjust.
145         * check-module (find_included_lib_files): Adjust.
146         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
147
148 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
149
150         copy-acl: enhance Solaris ACL error handling
151         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
152         * lib/set-mode-acl.c (qset_acl): Likewise.
153
154 2010-03-02  Bruno Haible  <bruno@clisp.org>
155
156         spawn: Don't override the system defined values on FreeBSD 8.
157         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
158         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
159         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
160         if HAVE_POSIX_SPAWN is 1.
161         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
162
163 2010-03-01  Bruno Haible  <bruno@clisp.org>
164
165         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
166         regarding Automake.
167
168 2010-02-25  Bruno Haible  <bruno@clisp.org>
169
170         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
171         * gnulib-tool: Define 'echo' as a function only before the ksh alias
172         setting, not afterwards.
173         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
174
175 2010-02-24  Eric Blake  <eblake@redhat.com>
176
177         bootstrap, git-version-gen: use timestamp
178         * build-aux/git-version-gen (scriptversion): Force UTC.
179         * build-aux/bootstrap (scriptversion): New variable.
180
181         bootstrap: allow older git
182         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
183         older than 1.6.4.  Requested by the libvirt project.
184
185 2010-02-23  Eric Blake  <eblake@redhat.com>
186
187         warn-on-use: work with old autoconf
188         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
189         AS_VAR semantics of autoconf 2.60.
190         Reported by Bruno Haible.
191
192         bootstrap: improve some comments
193         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
194         clarification comments.
195
196         gettimeofday: provide correct function
197         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
198         when replacement is declared, otherwise provide gettimeofday.
199         Reported by Michael Goffioul.
200
201 2010-02-23  Jim Meyering  <meyering@redhat.com>
202
203         lib-ignore: relax license to "unlimited", not LGPLv2+
204         * modules/lib-ignore (License): Relax to "unlimited".
205
206 2010-02-23  Jim Meyering  <meyering@redhat.com>
207
208         lib-ignore: relax license to LGPLv2+
209         * modules/lib-ignore (License): Relax to LGPLv2+.
210
211 2010-02-22  Eric Blake  <eblake@redhat.com>
212
213         lseek: avoid bash 3.2 broken pipe bug
214         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
215         warning from bash 3.2.
216         Reported by Ben Pfaff, with analysis from Bruno Haible.
217
218         bootstrap: support non-FSF copyright holder
219         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
220         bootstrap.conf override of COPYRIGHT_HOLDER.
221         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
222
223         bootstrap: interoperate with gettext 0.14.1
224         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
225
226         bootstrap: allow for alternate submodule location
227         * build-aux/bootstrap (gnulib_path): New variable; use instead of
228         hardcoding submodule location.
229         (gnulib_mk): Allow direct use of Makefile.am.
230
231         bootstrap: use GNULIB_SRCDIR to reduce disk usage
232         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
233         rather than reconfiguring where the submodule points.
234
235         gettimeofday: restore support for platforms that lack function
236         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
237         replacement if function is missing.
238         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
239         * modules/sys_time (Makefile.am): Substitute it.
240         * lib/sys_time.in.h (gettimeofday): Check it.
241         Reported by Michael Goffioul.
242
243 2010-02-21  Bruno Haible  <bruno@clisp.org>
244
245         * lib/stdio.in.h (obstack_printf): Fix typo.
246
247 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
248
249         vc-list-files: use bzr ls's -R option
250         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
251         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
252
253 2010-02-21  Jim Meyering  <meyering@redhat.com>
254
255         init.sh: fix EXEEXT shims to work also for names like test-prog
256         * tests/init.sh: Re-exec a better shell, when needed.
257         If the current shell lacks support for posix $(...), an init.sh-using
258         test will now try to find a shell that supports that.  If EXEEXT is
259         nonempty, we also require support for hyphen-in-alias-name and shell
260         substitutions like ${var#glob}.  Failure to find such a shell results
261         in a skipped test.
262
263 2010-02-21  Bruno Haible  <bruno@clisp.org>
264
265         Really work around around "broken pipe" error message from bash 3.2.
266         * gnulib-tool (func_reset_sigpipe): Remove function.
267         (echo): In bash 3.2, define to a function that uses printf.
268         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
269
270 2010-02-20  Bruno Haible  <bruno@clisp.org>
271
272         Restore support for automake 1.9.6 with autoconf 2.61.
273         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
274         Reported by James Youngman <jay@gnu.org>.
275
276 2010-02-20  Bruno Haible  <bruno@clisp.org>
277
278         Improve *printf warning condition.
279         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
280         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
281         and the function is overridden due to SIGPIPE emulation.
282
283 2010-02-20  Bruno Haible  <bruno@clisp.org>
284
285         * lib/stdio.in.h: Tweak comments.
286
287 2010-02-19  Bruno Haible  <bruno@clisp.org>
288
289         Make it easier to find modules. New gnulib-tool option '--find'.
290         * gnulib-tool: New option --find.
291         (func_usage): Document it.
292         (func_sanitize_modulelist): New function, extracted from
293         func_all_modules.
294         (func_all_modules): Invoke it.
295         * doc/gnulib-tool.texi (Which modules?): New node.
296
297 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
298
299         * lib/sys_select.in.h: Provide select replacement even if
300         sys/select.h exists on a system, for Interix.
301
302 2010-02-18  Jim Meyering  <meyering@redhat.com>
303
304         init.sh: don't use $(...) just yet
305         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
306         to accommodate e.g., Solaris' /bin/sh.
307
308 2010-02-17  Bruno Haible  <bruno@clisp.org>
309
310         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
311         Reported by Ludovic Courtès <ludo@gnu.org>.
312
313 2010-02-16  Simon Josefsson  <simon@josefsson.org>
314
315         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
316         linking with -lintl.
317
318 2010-02-17  Simon Josefsson  <simon@josefsson.org>
319
320         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
321         if not provided by the system's netdb.h.  Reported by
322         ludo@gnu.org (Ludovic Courtès).
323
324 2010-02-15  Jim Meyering  <meyering@redhat.com>
325
326         init.sh: improve portability and efficiency
327         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
328         "dummy" in a for loop.
329         Use '!', not '^' to select the complement of a character set used
330         in a "case" statement.
331         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
332         Suggestions from Eric Blake.
333
334         init.sh: automatically accommodate programs with the .exe suffix
335         Automatically arrange for an invocation of "prog" to execute the
336         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
337         may use the simpler "prog", yet still work when built on a system
338         that requires specifying the added suffix.
339         Do this by constructing a function named "prog" that invokes
340         "prog.exe" for each .exe file in selected directories.
341         * tests/init.sh (find_exe_basenames_): New function.
342         (create_exe_shim_functions_): New function.
343         (path_prepend_): Use it.
344
345         maint.mk: mark syntax-check sc_*.m rules as .PHONY
346         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
347         "make -t syntax-check" doesn't create a ton of sc_*.m files.
348
349 2010-02-14  Jim Meyering  <meyering@redhat.com>
350
351         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
352         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
353         (sc_prohibit_hash_pjw_without_use): New rule.
354
355         maint.mk: allow the default upload destination dir to be overridden
356         * top/maint.mk (upload_dest_dir_): Define with a default that
357         preserves the status quo.
358         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
359         Reported by Peter Simons.
360
361         maint.mk: prohibit inclusion of "hash.h" without_use
362         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
363
364 2010-02-10  Jim Meyering  <meyering@redhat.com>
365
366         maint.mk: prohibit inclusion of "ignore-value.h" without_use
367         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
368
369 2010-02-09  Eric Blake  <ebb9@byu.net>
370         and Bruno Haible  <bruno@clisp.org>
371
372         obstack-printf-posix: ensure declaration
373         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
374         extracted from gl_FUNC_OBSTACK_PRINTF.
375         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
376         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
377         Likewise.
378         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
379         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
380         0.
381
382 2010-02-08  Bruno Haible  <bruno@clisp.org>
383
384         gnulib-tool: Fix typo in 2010-02-07 commit.
385         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
386         Reported by Eric Blake.
387
388 2010-02-07  Bruno Haible  <bruno@clisp.org>
389
390         gnulib-tool: Fix up caching patches.
391         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
392         option --no-cache. Use associative arrays when supported by the shell.
393         (sed_comments): New variable.
394         (modcache): Renamed from do_cache.
395         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
396         abbreviate unnecessarily.
397         (have_associative): New variable.
398         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
399         way also for ksh and zsh.
400         (func_init_sed_convert_to_cache_statements): New function, extracted
401         from func_cache_lookup_module. Add support for associative arrays.
402         Don't set the c_MODULE_cached variable here. Ignore all lines before
403         the first field header. Remove only the final newline, not all trailing
404         newlines. Support empty fields correctly. Limit the use of 'eval' to
405         assignments.
406         (func_get_description, func_get_status, func_get_notice,
407         func_get_applicability, func_get_filelist, func_get_dependencies,
408         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
409         func_get_automake_snippet, func_get_include_directive,
410         func_get_link_directive, func_get_license, func_get_maintainer):
411         Update documentation. List the unoptimized code first. Add support for
412         associative arrays. Limit the use of 'eval' to assignments.
413         (func_get_applicability): Undo stylistic pessimisations.
414         (func_get_automake_snippet, func_get_include_directive): Reduce code
415         duplication.
416         (func_modules_transitive_closure, func_modules_add_dummy,
417         func_modules_notice, func_modules_to_filelist, func_add_file,
418         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
419         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
420         func_create_testdir, func_create_megatestdir): Update documentation.
421
422 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
423
424         * gnulib-tool (func_cache_lookup_module): Store the module name
425         belonging to the cache variable; error out if two different
426         module names map to the same cache variable name.
427
428 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
429
430         gnulib-tool: Make caching optional.
431         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
432         Update matching short versions of --no-changelog.
433         (func_usage): Update.
434         (sed_extract_cache_prog): Renamed from ...
435         (sed_extract_prog): ... this; revert to old extraction script.
436         (func_get_description, func_get_status)
437         (func_get_notice, func_get_applicability, func_get_filelist)
438         (func_get_dependencies, func_get_autoconf_early_snippet)
439         (func_get_autoconf_snippet, func_get_automake_snippet)
440         (func_get_include_directive, func_get_link_directive)
441         (func_get_license, func_get_maintainer): If $do_cache is false,
442         use old, non-caching extraction scripts.
443         Suggestion by Bruno Haible.
444
445 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
446
447         gnulib-tool: cache module metainformation.
448         * gnulib-tool (sed_extract_prog): Match newline before each
449         header, and rewrite header to a shell variable suffix.
450         (func_cache_var, func_cache_lookup_module): New functions,
451         to turn a module name into a cache variable prefix, and to
452         look up and cache module metainformation.
453         (func_get_description, func_get_status)
454         (func_get_notice, func_get_applicability, func_get_filelist)
455         (func_get_dependencies, func_get_autoconf_early_snippet)
456         (func_get_autoconf_snippet, func_get_automake_snippet)
457         (func_get_include_directive, func_get_link_directive)
458         (func_get_license, func_get_maintainer): Use
459         func_cache_lookup_module.
460
461 2010-02-07  Bruno Haible  <bruno@clisp.org>
462
463         fnctl: Fix missing dependency.
464         * modules/fcntl (Depends-on): Add getdtablesize.
465         Reported by John W. Eaton <jwe@gnu.org>.
466
467 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
468
469         Argp: fix recognition of short alias options.
470
471         * lib/argp-parse.c (convert_options): Fix improper use of
472         `|' between character values.
473         * tests/test-argp.c (group1_option): New alias option
474         --read (-r).
475         (group1_parser): Special handling for 'r'.
476         (test15): New test case.
477         (test_fun): Add test15.
478         * tests/test-argp-2.sh: Update expected --help and --usage
479         outputs.
480
481 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
482
483         * tests/test-argp.c: Fix indentation.
484
485 2010-02-04  Eric Blake  <ebb9@byu.net>
486
487         gettimeofday: expose type of second argument
488         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
489         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
490         * tests/test-gettimeofday.c: Use it to silence warning.
491         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
492         the issue.
493
494 2010-02-03  Jim Meyering  <meyering@redhat.com>
495
496         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
497         * lib/regcomp.c (TYPE_SIGNED): Define.
498         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
499
500         regcomp.c: avoid a new -Wshadow warning
501         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
502
503 2010-02-01  Jim Meyering  <meyering@redhat.com>
504
505         removing useless parentheses in cpp #define directives
506         For motivation, see commit c0221df4, "define STREQ(a,b)
507         consistently, removing useless parentheses"
508         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
509         * lib/mountlist.c (MNT_IGNORE): Likewise.
510         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
511
512 2010-02-01  Eric Blake  <ebb9@byu.net>
513
514         sys_time: use link-warning
515         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
516         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
517         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
518         * modules/sys_time (Depends-on): Add warn-on-use.
519         (Makefile.am): Always build replacement.
520         (configure.ac): Update substitutions.
521         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
522         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
523         bother with SYS_TIME_H.
524         * modules/gettimeofday (configure.ac): Declare indicator.
525         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
526         in use.
527
528         closein-tests: silence compiler warning
529         * tests/test-closein.c (main): Ignore fread result.
530         * modules/closein-tests (Depends-on): Add ignore-value.
531
532         tests: silence warning about system return
533         * tests/test-areadlink-with-size.c (main): Ignore system result.
534         * tests/test-areadlink.c (main): Likewise.
535         * tests/test-areadlinkat-with-size.c (main): Likewise.
536         * tests/test-areadlinkat.c (main): Likewise.
537         * tests/test-canonicalize-lgpl.c (main): Likewise.
538         * tests/test-canonicalize.c (main): Likewise.
539         * tests/test-chown.c (main): Likewise.
540         * tests/test-fchownat.c (main): Likewise.
541         * tests/test-fdutimensat.c (main): Likewise.
542         * tests/test-fstatat.c (main): Likewise.
543         * tests/test-futimens.c (main): Likewise.
544         * tests/test-lchown.c (main): Likewise.
545         * tests/test-link.c (main): Likewise.
546         * tests/test-linkat.c (main): Likewise.
547         * tests/test-lstat.c (main): Likewise.
548         * tests/test-mkdir.c (main): Likewise.
549         * tests/test-mkdirat.c (main): Likewise.
550         * tests/test-mkfifo.c (main): Likewise.
551         * tests/test-mkfifoat.c (main): Likewise.
552         * tests/test-mknod.c (main): Likewise.
553         * tests/test-readlink.c (main): Likewise.
554         * tests/test-remove.c (main): Likewise.
555         * tests/test-rename.c (main): Likewise.
556         * tests/test-renameat.c (main): Likewise.
557         * tests/test-rmdir.c (main): Likewise.
558         * tests/test-symlink.c (main): Likewise.
559         * tests/test-symlinkat.c (main): Likewise.
560         * tests/test-unlink.c (main): Likewise.
561         * tests/test-unlinkat.c (main): Likewise.
562         * tests/test-utimens.c (main): Likewise.
563         * tests/test-utimensat.c (main): Likewise.
564         * modules/areadlink-tests (Depends-on): Add ignore-value.
565         * modules/areadlink-with-size-tests (Depends-on): Likewise.
566         * modules/areadlinkat-tests (Depends-on): Likewise.
567         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
568         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
569         * modules/canonicalize-tests (Depends-on): Likewise.
570         * modules/chown-tests (Depends-on): Likewise.
571         * modules/fdutimensat-tests (Depends-on): Likewise.
572         * modules/futimens-tests (Depends-on): Likewise.
573         * modules/lchown-tests (Depends-on): Likewise.
574         * modules/link-tests (Depends-on): Likewise.
575         * modules/linkat-tests (Depends-on): Likewise.
576         * modules/lstat-tests (Depends-on): Likewise.
577         * modules/mkdir-tests (Depends-on): Likewise.
578         * modules/mkfifo-tests (Depends-on): Likewise.
579         * modules/mkfifoat-tests (Depends-on): Likewise.
580         * modules/mknod-tests (Depends-on): Likewise.
581         * modules/openat-tests (Depends-on): Likewise.
582         * modules/readlink-tests (Depends-on): Likewise.
583         * modules/remove-tests (Depends-on): Likewise.
584         * modules/rename-tests (Depends-on): Likewise.
585         * modules/renameat-tests (Depends-on): Likewise.
586         * modules/rmdir-tests (Depends-on): Likewise.
587         * modules/symlink-tests (Depends-on): Likewise.
588         * modules/symlinkat-tests (Depends-on): Likewise.
589         * modules/unlink-tests (Depends-on): Likewise.
590         * modules/utimens-tests (Depends-on): Likewise.
591         * modules/utimensat-tests (Depends-on): Likewise.
592
593 2010-01-31  Bruno Haible  <bruno@clisp.org>
594
595         Perform the same test for many <math.h> functions.
596         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
597         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
598         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
599         of gl_MATHFUNC.
600         * modules/acos (configure.ac): Likewise.
601         * modules/asin (configure.ac): Likewise.
602         * modules/atan (configure.ac): Likewise.
603         * modules/atan2 (configure.ac): Likewise.
604         * modules/cbrt (configure.ac): Likewise.
605         * modules/copysign (configure.ac): Likewise.
606         * modules/cos (configure.ac): Likewise.
607         * modules/cosh (configure.ac): Likewise.
608         * modules/erf (configure.ac): Likewise.
609         * modules/erfc (configure.ac): Likewise.
610         * modules/exp (configure.ac): Likewise.
611         * modules/fmod (configure.ac): Likewise.
612         * modules/hypot (configure.ac): Likewise.
613         * modules/j0 (configure.ac): Likewise.
614         * modules/j1 (configure.ac): Likewise.
615         * modules/jn (configure.ac): Likewise.
616         * modules/lgamma (configure.ac): Likewise.
617         * modules/log (configure.ac): Likewise.
618         * modules/log10 (configure.ac): Likewise.
619         * modules/log1p (configure.ac): Likewise.
620         * modules/pow (configure.ac): Likewise.
621         * modules/remainder (configure.ac): Likewise.
622         * modules/sin (configure.ac): Likewise.
623         * modules/sinh (configure.ac): Likewise.
624         * modules/tan (configure.ac): Likewise.
625         * modules/tanh (configure.ac): Likewise.
626         * modules/y0 (configure.ac): Likewise.
627         * modules/y1 (configure.ac): Likewise.
628         * modules/yn (configure.ac): Likewise.
629         Suggested by Paolo Bonzini.
630
631 2010-01-31  Bruno Haible  <bruno@clisp.org>
632
633         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
634
635 2010-01-31  Bruno Haible  <bruno@clisp.org>
636
637         Work around getdelim() bug on FreeBSD 8.0.
638         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
639         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
640         not work.
641         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
642         is 1.
643         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
644         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
645         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
646         a non-zero size.
647         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
648
649 2010-01-31  Bruno Haible  <bruno@clisp.org>
650
651         Work around getline() bug on FreeBSD 8.0.
652         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
653         and a non-zero size.
654         * tests/test-getline.c (main): Likewise.
655         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
656         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
657
658 2010-01-28  Eric Blake  <ebb9@byu.net>
659
660         regex: fix build failure
661         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
662         platforms.
663
664 2010-01-28  Jim Meyering  <meyering@redhat.com>
665
666         regex: do not ignore memory allocation failure
667         * lib/regex_internal.c (create_cd_newstate): Detect
668         re_node_set_init_copy failure.   Extracted from glibc commit
669         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
670
671         regex: sync more white-space changes from libc
672         * lib/regex_internal.c: White-space only changes.
673         * lib/regexec.c: Likewise.
674
675         regex: add many uses of __attribute_warn_unused_result__
676         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
677         * lib/regexec.c: Likewise.
678         Extracted from a messy glibc commit.
679
680         regcomp.c: spelling and merge-artifact from glibc
681         * lib/regcomp.c: Merge remainder of glibc's
682         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
683
684         regcomp.c: sync white-space changes from glibc
685         * lib/regcomp.c: Merge to accommodate white space
686         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
687
688         regcomp.c: do not ignore internal return values
689         * lib/regcomp.c: Do not ignore internal return values.
690         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
691         but without its white-space changes and spelling fixes.
692
693         regex_internal.h: define __attribute_warn_unused_result__
694         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
695
696         maint: add a syntax-check rule to check for vulnerable Makefile.in
697         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
698
699 2010-01-27  Jim Meyering  <meyering@redhat.com>
700
701         ncftpput-ftp: clean up spaces
702         * build-aux/ncftpput-ftp: Make Copyright line consistent.
703         Remove trailing blanks.
704
705 2010-01-27  Simon Josefsson  <simon@josefsson.org>
706
707         * build-aux/git-version-gen: Fix copyright statement.
708         * build-aux/gnupload: Likewise.
709         * tests/test-arcfour.c: Likewise.
710         * tests/test-arctwo.c: Likewise.
711         * tests/test-count-one-bits.c: Likewise.
712         * tests/test-crc.c: Likewise.
713         * tests/test-des.c: Likewise.
714         * tests/test-gc-arcfour.c: Likewise.
715         * tests/test-gc-arctwo.c: Likewise.
716         * tests/test-gc-des.c: Likewise.
717         * tests/test-gc-hmac-md5.c: Likewise.
718         * tests/test-gc-hmac-sha1.c: Likewise.
719         * tests/test-gc-md2.c: Likewise.
720         * tests/test-gc-md4.c: Likewise.
721         * tests/test-gc-md5.c: Likewise.
722         * tests/test-gc-pbkdf2-sha1.c: Likewise.
723         * tests/test-gc-rijndael.c: Likewise.
724         * tests/test-gc-sha1.c: Likewise.
725         * tests/test-gc.c: Likewise.
726         * tests/test-gethostname.c: Likewise.
727         * tests/test-gettimeofday.c: Likewise.
728         * tests/test-hash.c: Likewise.
729         * tests/test-hmac-md5.c: Likewise.
730         * tests/test-hmac-sha1.c: Likewise.
731         * tests/test-md2.c: Likewise.
732         * tests/test-md4.c: Likewise.
733         * tests/test-md5.c: Likewise.
734         * tests/test-memchr.c: Likewise.
735         * tests/test-memchr2.c: Likewise.
736         * tests/test-memcmp.c: Likewise.
737         * tests/test-memmem.c: Likewise.
738         * tests/test-memrchr.c: Likewise.
739         * tests/test-rawmemchr.c: Likewise.
740         * tests/test-read-file.c: Likewise.
741         * tests/test-rijndael.c: Likewise.
742         * tests/test-sockets.c: Likewise.
743         * tests/test-strchrnul.c: Likewise.
744         * tests/test-strstr.c: Likewise.
745         * tests/test-strtod.c: Likewise.
746         * build-aux/ncftpput-ftp: Likewise.
747
748 2010-01-26  Eric Blake  <ebb9@byu.net>
749
750         ignore-value: update recommended header name
751         * modules/ignore-value (Include): Only use <> for headers that
752         exist in glibc.
753
754 2010-01-26  Jim Meyering  <meyering@redhat.com>
755
756         test-userspec.c: avoid compiler warnings
757         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
758         and "initialization discards qualifiers..." warnings.
759         Put the first "uid" in its own scope, and make char* members "const".
760
761 2010-01-25  Bruno Haible  <bruno@clisp.org>
762
763         gnulib-tool: Make warning diagnostics consistent.
764         * gnulib-tool (func_warning): New function.
765         Use it everywhere where gnulib-tool produces output to stderr and it is
766         not a fatal error.
767
768 2010-01-25  Bruno Haible  <bruno@clisp.org>
769
770         Fix test dependencies.
771         * modules/xstrtol-tests (Depends-on): Add inttypes.
772         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
773
774 2010-01-25 Pádraig Brady <P@draigBrady.com>
775
776         syntax-check: detect incorrect boolean macro values in config.h
777         * modules/maintainer-makefile (configure.ac): Parameterize the location
778         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
779         The logic is from Eric Blake and the location indicated by Jim Meyering.
780         Note the more natural CONFIG_HEADER name is prohibited by automake
781         for backwards compatibility reasons.
782         * top/maint.mk (sc_Wundef_boolean): New rule.
783
784 2010-01-25  Jim Meyering  <meyering@redhat.com>
785
786         bootstrap: detect MacOS 10.6's shasum, too
787         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
788         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
789
790 2010-01-23  Jim Meyering  <meyering@redhat.com>
791
792         xstrtoll: new module
793         * modules/xstrtoll: New file.
794         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
795         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
796         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
797         ./configure fails if you use this module and lack "long long".
798         * modules/xstrtoll-tests: New module.
799         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
800         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
801         new init.sh-based test framework.
802
803 2010-01-24  Bruno Haible  <bruno@clisp.org>
804
805         Tests for module 'yn'.
806         * modules/yn-tests: New file.
807         * tests/test-yn.c: New file.
808
809         Tests for module 'y1'.
810         * modules/y1-tests: New file.
811         * tests/test-y1.c: New file.
812
813         Tests for module 'y0'.
814         * modules/y0-tests: New file.
815         * tests/test-y0.c: New file.
816
817         Tests for module 'tanh'.
818         * modules/tanh-tests: New file.
819         * tests/test-tanh.c: New file.
820
821         Tests for module 'tan'.
822         * modules/tan-tests: New file.
823         * tests/test-tan.c: New file.
824
825         Tests for module 'sqrt'.
826         * modules/sqrt-tests: New file.
827         * tests/test-sqrt.c: New file.
828
829         Tests for module 'sinh'.
830         * modules/sinh-tests: New file.
831         * tests/test-sinh.c: New file.
832
833         Tests for module 'sin'.
834         * modules/sin-tests: New file.
835         * tests/test-sin.c: New file.
836
837         Tests for module 'rint'.
838         * modules/rint-tests: New file.
839         * tests/test-rint.c: New file.
840
841         Tests for module 'remainder'.
842         * modules/remainder-tests: New file.
843         * tests/test-remainder.c: New file.
844
845         Tests for module 'pow'.
846         * modules/pow-tests: New file.
847         * tests/test-pow.c: New file.
848
849         Tests for module 'nextafter'.
850         * modules/nextafter-tests: New file.
851         * tests/test-nextafter.c: New file.
852
853         Tests for module 'modf'.
854         * modules/modf-tests: New file.
855         * tests/test-modf.c: New file.
856
857         Tests for module 'logb'.
858         * modules/logb-tests: New file.
859         * tests/test-logb.c: New file.
860
861         Tests for module 'log1p'.
862         * modules/log1p-tests: New file.
863         * tests/test-log1p.c: New file.
864
865         Tests for module 'log10'.
866         * modules/log10-tests: New file.
867         * tests/test-log10.c: New file.
868
869         Tests for module 'log'.
870         * modules/log-tests: New file.
871         * tests/test-log.c: New file.
872
873         Tests for module 'lgamma'.
874         * modules/lgamma-tests: New file.
875         * tests/test-lgamma.c: New file.
876
877         Tests for module 'ldexp'.
878         * modules/ldexp-tests: New file.
879         * tests/test-ldexp.c: New file.
880
881         Tests for module 'jn'.
882         * modules/jn-tests: New file.
883         * tests/test-jn.c: New file.
884
885         Tests for module 'j1'.
886         * modules/j1-tests: New file.
887         * tests/test-j1.c: New file.
888
889         Tests for module 'j0'.
890         * modules/j0-tests: New file.
891         * tests/test-j0.c: New file.
892
893         Tests for module 'hypot'.
894         * modules/hypot-tests: New file.
895         * tests/test-hypot.c: New file.
896
897         Tests for module 'fmod'.
898         * modules/fmod-tests: New file.
899         * tests/test-fmod.c: New file.
900
901         Tests for module 'fabs'.
902         * modules/fabs-tests: New file.
903         * tests/test-fabs.c: New file.
904
905         Tests for module 'exp'.
906         * modules/exp-tests: New file.
907         * tests/test-exp.c: New file.
908
909         Tests for module 'erfc'.
910         * modules/erfc-tests: New file.
911         * tests/test-erfc.c: New file.
912
913         Tests for module 'erf'.
914         * modules/erf-tests: New file.
915         * tests/test-erf.c: New file.
916
917         Tests for module 'cosh'.
918         * modules/cosh-tests: New file.
919         * tests/test-cosh.c: New file.
920
921         Tests for module 'cos'.
922         * modules/cos-tests: New file.
923         * tests/test-cos.c: New file.
924
925         Tests for module 'copysign'.
926         * modules/copysign-tests: New file.
927         * tests/test-copysign.c: New file.
928
929         Tests for module 'cbrt'.
930         * modules/cbrt-tests: New file.
931         * tests/test-cbrt.c: New file.
932
933         Tests for module 'atan2'.
934         * modules/atan2-tests: New file.
935         * tests/test-atan2.c: New file.
936
937         Tests for module 'atan'.
938         * modules/atan-tests: New file.
939         * tests/test-atan.c: New file.
940
941         Tests for module 'asin'.
942         * modules/asin-tests: New file.
943         * tests/test-asin.c: New file.
944
945         Tests for module 'acos'.
946         * modules/acos-tests: New file.
947         * tests/test-acos.c: New file.
948
949 2010-01-24  Bruno Haible  <bruno@clisp.org>
950
951         Fix tests for common <math.h> functions.
952         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
953         code snippet that references the function pointer, rather than merely
954         calling the function. Substitute the FUNC_LIBM variable.
955         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
956         * modules/acos (configure.ac): Likewise.
957         * modules/asin (configure.ac): Likewise.
958         * modules/atan (configure.ac): Likewise.
959         * modules/atan2 (configure.ac): Likewise.
960         * modules/cbrt (configure.ac): Likewise.
961         * modules/copysign (configure.ac): Likewise.
962         * modules/cos (configure.ac): Likewise.
963         * modules/cosh (configure.ac): Likewise.
964         * modules/erf (configure.ac): Likewise.
965         * modules/erfc (configure.ac): Likewise.
966         * modules/exp (configure.ac): Likewise.
967         * modules/fabs (configure.ac): Likewise.
968         * modules/fmod (configure.ac): Likewise.
969         * modules/hypot (configure.ac): Likewise.
970         * modules/j0 (configure.ac): Likewise.
971         * modules/j1 (configure.ac): Likewise.
972         * modules/jn (configure.ac): Likewise.
973         * modules/ldexp (configure.ac): Likewise.
974         * modules/lgamma (configure.ac): Likewise.
975         * modules/log (configure.ac): Likewise.
976         * modules/log10 (configure.ac): Likewise.
977         * modules/log1p (configure.ac): Likewise.
978         * modules/logb (configure.ac): Likewise.
979         * modules/modf (configure.ac): Likewise.
980         * modules/nextafter (configure.ac): Likewise.
981         * modules/pow (configure.ac): Likewise.
982         * modules/remainder (configure.ac): Likewise.
983         * modules/rint (configure.ac): Likewise.
984         * modules/sin (configure.ac): Likewise.
985         * modules/sinh (configure.ac): Likewise.
986         * modules/tan (configure.ac): Likewise.
987         * modules/tanh (configure.ac): Likewise.
988         * modules/y0 (configure.ac): Likewise.
989         * modules/y1 (configure.ac): Likewise.
990         * modules/yn (configure.ac): Likewise.
991
992 2010-01-24  Bruno Haible  <bruno@clisp.org>
993
994         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
995         * tests/test-acosl.c (x): New variable.
996         (main): Store argument in x and fetch it from x.
997         * tests/test-asinl.c (x): New variable.
998         (main): Store argument in x and fetch it from x.
999         * tests/test-atanl.c (x): New variable.
1000         (main): Store argument in x and fetch it from x.
1001         * tests/test-cosl.c (x): New variable.
1002         (main): Store argument in x and fetch it from x.
1003         * tests/test-expl.c (x): New variable.
1004         (main): Store argument in x and fetch it from x.
1005         * tests/test-logl.c (x): New variable.
1006         (main): Store argument in x and fetch it from x.
1007         * tests/test-sinl.c (x): New variable.
1008         (main): Store argument in x and fetch it from x.
1009         * tests/test-sqrtl.c (x): New variable.
1010         (main): Store argument in x and fetch it from x.
1011         * tests/test-tanl.c (x): New variable.
1012         (main): Store argument in x and fetch it from x.
1013
1014 2010-01-24  Bruno Haible  <bruno@clisp.org>
1015
1016         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
1017         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
1018         assignments to the initial TESTS_ENVIRONMENT.
1019         * doc/gnulib.texi (Unit test modules): Document it.
1020         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
1021         TESTS_ENVIRONMENT.
1022         * modules/btowc-tests (Makefile.am): Likewise.
1023         * modules/c-stack-tests (Makefile.am): Likewise.
1024         * modules/c-strcase-tests (Makefile.am): Likewise.
1025         * modules/copy-file-tests (Makefile.am): Likewise.
1026         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
1027         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
1028         * modules/mbrtowc-tests (Makefile.am): Likewise.
1029         * modules/mbscasecmp-tests (Makefile.am): Likewise.
1030         * modules/mbscasestr-tests (Makefile.am): Likewise.
1031         * modules/mbschr-tests (Makefile.am): Likewise.
1032         * modules/mbscspn-tests (Makefile.am): Likewise.
1033         * modules/mbsinit-tests (Makefile.am): Likewise.
1034         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
1035         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
1036         * modules/mbspbrk-tests (Makefile.am): Likewise.
1037         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
1038         * modules/mbsrchr-tests (Makefile.am): Likewise.
1039         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
1040         * modules/mbsspn-tests (Makefile.am): Likewise.
1041         * modules/mbsstr-tests (Makefile.am): Likewise.
1042         * modules/nl_langinfo-tests (Makefile.am): Likewise.
1043         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
1044         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
1045         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
1046         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
1047         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
1048         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
1049         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
1050         * modules/wcrtomb-tests (Makefile.am): Likewise.
1051         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
1052         * modules/wcsrtombs-tests (Makefile.am): Likewise.
1053         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
1054         assignments from TESTS_ENVIRONMENT.
1055         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
1056         augmentation.
1057         * modules/argp-version-etc-tests (Makefile.am): Likewise.
1058         * modules/atexit-tests (Makefile.am): Likewise.
1059         * modules/binary-io-tests (Makefile.am): Likewise.
1060         * modules/closein-tests (Makefile.am): Likewise.
1061         * modules/dprintf-posix-tests (Makefile.am): Likewise.
1062         * modules/exclude-tests (Makefile.am): Likewise.
1063         * modules/fflush-tests (Makefile.am): Likewise.
1064         * modules/fpending-tests (Makefile.am): Likewise.
1065         * modules/fprintf-posix-tests (Makefile.am): Likewise.
1066         * modules/freadahead-tests (Makefile.am): Likewise.
1067         * modules/freadptr-tests (Makefile.am): Likewise.
1068         * modules/freadseek-tests (Makefile.am): Likewise.
1069         * modules/fseek-tests (Makefile.am): Likewise.
1070         * modules/fseeko-tests (Makefile.am): Likewise.
1071         * modules/ftell-tests (Makefile.am): Likewise.
1072         * modules/ftello-tests (Makefile.am): Likewise.
1073         * modules/idpriv-drop-tests (Makefile.am): Likewise.
1074         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
1075         * modules/lseek-tests (Makefile.am): Likewise.
1076         * modules/parse-duration-tests (Makefile.am): Likewise.
1077         * modules/perror-tests (Makefile.am): Likewise.
1078         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
1079         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
1080         * modules/pipe-tests (Makefile.am): Likewise.
1081         * modules/pread-tests (Makefile.am): Likewise.
1082         * modules/printf-posix-tests (Makefile.am): Likewise.
1083         * modules/select-tests (Makefile.am): Likewise.
1084         * modules/sigpipe-tests (Makefile.am): Likewise.
1085         * modules/tsearch-tests (Makefile.am): Likewise.
1086         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
1087         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
1088         * modules/uniname/uniname-tests (Makefile.am): Likewise.
1089         * modules/uniwidth/width-tests (Makefile.am): Likewise.
1090         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
1091         * modules/version-etc-tests (Makefile.am): Likewise.
1092         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
1093         * modules/vprintf-posix-tests (Makefile.am): Likewise.
1094         * modules/xalloc-die-tests (Makefile.am): Likewise.
1095         * modules/xprintf-posix-tests (Makefile.am): Likewise.
1096         * modules/xstrtoimax-tests (Makefile.am): Likewise.
1097         * modules/xstrtol-tests (Makefile.am): Likewise.
1098         * modules/xstrtoumax-tests (Makefile.am): Likewise.
1099         * modules/yesno-tests (Makefile.am): Likewise.
1100         Suggested by Jim Meyering.
1101
1102 2010-01-24  Bruno Haible  <bruno@clisp.org>
1103
1104         More documentation.
1105         * doc/gnulib.texi (Writing modules): New chapter.
1106         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
1107         the new chapter.
1108
1109 2010-01-24  Jim Meyering  <meyering@redhat.com>
1110
1111         maint.mk: do not prepend "./" after filtering
1112         * top/maint.mk (_prepend_srcdir_prefix): New variable
1113         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
1114         "./" when $(srcdir) is ".".
1115
1116         define STREQ(a,b) consistently, removing useless parentheses
1117         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
1118         since the only risk is that "a" or "b" contains an unparenthesized
1119         comma, but if either did that, STREQ would have 3 or more arguments.
1120         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
1121         * lib/fts.c (STREQ): Remove unnecessary parentheses.
1122         * lib/hash-triple.c (STREQ): Likewise.
1123         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
1124         * lib/getugroups.c (STREQ): Likewise.
1125
1126 2010-01-23  Jim Meyering  <meyering@redhat.com>
1127
1128         maint.mk: fix syntax-check in a non-srcdir build directory
1129         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
1130         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
1131
1132 2010-01-22  Jim Meyering  <meyering@redhat.com>
1133
1134         userspec: add unit tests
1135         * tests/test-userspec.c: New file.
1136         * modules/userspec-tests: Likewise.
1137
1138 2010-01-21  Jim Meyering  <meyering@redhat.com>
1139
1140         maint.mk: handle source file names containing "." robustly
1141         * top/maint.mk (_dot_escaped_srcdir): Define.
1142         (VC_LIST): Use it in LHS of sed substitution.
1143
1144 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
1145
1146         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
1147         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
1148         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
1149         from a non-srcdir build.
1150
1151 2010-01-20  Eric Blake  <ebb9@byu.net>
1152
1153         warn-on-use: use instead of link-warning
1154         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
1155         * modules/unistd (Depends-on, Makefile.am): Likewise.
1156         * modules/arpa_inet (Depends-on): Replace link-warning with
1157         warn-on-use.
1158         (Makefile.am): Update rules accordingly.
1159         * modules/ctype (Depends-on, Makefile.am): Likewise.
1160         * modules/dirent (Depends-on, Makefile.am): Likewise.
1161         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
1162         * modules/inttypes (Depends-on, Makefile.am): Likewise.
1163         * modules/langinfo (Depends-on, Makefile.am): Likewise.
1164         * modules/locale (Depends-on, Makefile.am): Likewise.
1165         * modules/math (Depends-on, Makefile.am): Likewise.
1166         * modules/search (Depends-on, Makefile.am): Likewise.
1167         * modules/signal (Depends-on, Makefile.am): Likewise.
1168         * modules/spawn (Depends-on, Makefile.am): Likewise.
1169         * modules/stdlib (Depends-on, Makefile.am): Likewise.
1170         * modules/string (Depends-on, Makefile.am): Likewise.
1171         * modules/strings (Depends-on, Makefile.am): Likewise.
1172         * modules/sys_file (Depends-on, Makefile.am): Likewise.
1173         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
1174         * modules/sys_select (Depends-on, Makefile.am): Likewise.
1175         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
1176         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
1177         * modules/sys_times (Depends-on, Makefile.am): Likewise.
1178         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
1179         * modules/wchar (Depends-on, Makefile.am): Likewise.
1180         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
1181         should be poisoned.
1182         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
1183         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
1184         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
1185         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1186         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1187         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
1188         * m4/math_h.m4 (gl_MATH_H): Likewise.
1189         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1190         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1191         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1192         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
1193         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
1194         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
1195         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1196         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
1197         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
1198         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1199         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1200         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
1201         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1202         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1203         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1204         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
1205         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
1206         GL_LINK_WARNING.
1207         * lib/ctype.in.h: Likewise.
1208         * lib/dirent.in.h: Likewise.
1209         * lib/fcntl.in.h: Likewise.
1210         * lib/inttypes.in.h: Likewise.
1211         * lib/langinfo.in.h: Likewise.
1212         * lib/locale.in.h: Likewise.
1213         * lib/math.in.h: Likewise.
1214         * lib/search.in.h: Likewise.
1215         * lib/signal.in.h: Likewise.
1216         * lib/spawn.in.h: Likewise.
1217         * lib/stdio.in.h: Likewise.
1218         * lib/stdlib.in.h: Likewise.
1219         * lib/string.in.h: Likewise.
1220         * lib/strings.in.h: Likewise.
1221         * lib/sys_file.in.h: Likewise.
1222         * lib/sys_ioctl.in.h: Likewise.
1223         * lib/sys_select.in.h: Likewise.
1224         * lib/sys_socket.in.h: Likewise.
1225         * lib/sys_stat.in.h: Likewise.
1226         * lib/sys_times.in.h: Likewise.
1227         * lib/sys_utsname.in.h: Likewise.
1228         * lib/unistd.in.h: Likewise.
1229         * lib/wchar.in.h: Likewise.
1230
1231 2010-01-20  Bruno Haible  <bruno@clisp.org>
1232
1233         Avoid duplicate -lm.
1234         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
1235         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
1236         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
1237         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
1238         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
1239         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
1240         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
1241         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
1242         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
1243         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
1244         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
1245         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1246         Reported by Paolo Bonzini.
1247
1248 2010-01-19  Bruno Haible  <bruno@clisp.org>
1249
1250         langinfo, nl_langinfo: Relicense under LGPLv2+.
1251         * modules/langinfo (License): Change to LGPLv2+.
1252         * modules/nl_langinfo (License): Likewise.
1253         Patch by David Lutterkort <lutter@redhat.com>.
1254
1255 2010-01-19  Bruno Haible  <bruno@clisp.org>
1256
1257         Avoid compilation error with cc on OSF/1 5.1.
1258         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
1259         statement, not before.
1260         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1261
1262 2010-01-18  Bruno Haible  <bruno@clisp.org>
1263
1264         Avoid a link error due to the __printf__ symbol.
1265         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
1266         and 2.6.x.
1267         (__format__, __printf__): Remove definitions.
1268         * lib/argp-fmtstream.h: Likewise.
1269         * lib/argp.h: Likewise.
1270         * lib/error.h: Likewise.
1271         * lib/vasnprintf.h: Likewise.
1272         * lib/xprintf.h: Likewise.
1273         * lib/xvasprintf.h: Likewise.
1274         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1275
1276 2010-01-18  Bruno Haible  <bruno@clisp.org>
1277
1278         Tests for module 'tanl'.
1279         * modules/tanl-tests: New file.
1280         * tests/test-tanl.c: New file.
1281
1282         Tests for module 'sqrtl'.
1283         * modules/sqrtl-tests: New file.
1284         * tests/test-sqrtl.c: New file.
1285
1286         Tests for module 'sinl'.
1287         * modules/sinl-tests: New file.
1288         * tests/test-sinl.c: New file.
1289
1290         Tests for module 'logl'.
1291         * modules/logl-tests: New file.
1292         * tests/test-logl.c: New file.
1293
1294         Tests for module 'expl'.
1295         * modules/expl-tests: New file.
1296         * tests/test-expl.c: New file.
1297
1298         Tests for module 'cosl'.
1299         * modules/cosl-tests: New file.
1300         * tests/test-cosl.c: New file.
1301
1302         Tests for module 'atanl'.
1303         * modules/atanl-tests: New file.
1304         * tests/test-atanl.c: New file.
1305
1306         Tests for module 'asinl'.
1307         * modules/asinl-tests: New file.
1308         * tests/test-asinl.c: New file.
1309
1310         Tests for module 'acosl'.
1311         * modules/acosl-tests: New file.
1312         * tests/test-acosl.c: New file.
1313
1314         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1315         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1316         tanl): Use the standard gnulib idiom.
1317         * lib/cosl.c: Don't include trigl.c and sincosl.c.
1318         * lib/sinl.c: Likewise.
1319         * lib/tanl.c: Don't include trigl.c.
1320         (kernel_tanl): Make static.
1321         * lib/sincosl.c: Include trigl.h first.
1322         * lib/trigl.c: Likewise.
1323         * m4/acosl.m4: New file.
1324         * m4/asinl.m4: New file.
1325         * m4/atanl.m4: New file.
1326         * m4/cosl.m4: New file.
1327         * m4/expl.m4: New file.
1328         * m4/logl.m4: New file.
1329         * m4/sinl.m4: New file.
1330         * m4/sqrtl.m4: New file.
1331         * m4/tanl.m4: New file.
1332         * m4/mathl.m4: Remove file.
1333         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
1334         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1335         Don't initialize GNULIB_MATHL.
1336         * modules/acosl: New file.
1337         * modules/asinl: New file.
1338         * modules/atanl: New file.
1339         * modules/cosl: New file.
1340         * modules/expl: New file.
1341         * modules/logl: New file.
1342         * modules/sinl: New file.
1343         * modules/sqrtl: New file.
1344         * modules/tanl: New file.
1345         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
1346         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
1347         substitute GNULIB_MATHL.
1348         * modules/mathl: Rewritten.
1349         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
1350         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
1351         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
1352         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
1353         * doc/posix-functions/expl.texi: Mention the 'expl' module.
1354         * doc/posix-functions/logl.texi: Mention the 'logl' module.
1355         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
1356         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
1357         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
1358
1359 2010-01-18  Bruno Haible  <bruno@clisp.org>
1360
1361         sqrt: Make gl_FUNC_SQRT requirable.
1362         * m4/sqrt.m4: New file.
1363         * modules/sqrt (Files): Add it.
1364         (configure.ac): Invoke gl_FUNC_SQRT.
1365
1366 2010-01-18  Bruno Haible  <bruno@clisp.org>
1367
1368         New modules for common <math.h> functions.
1369         * m4/mathfunc.m4: New file.
1370         * modules/acos: New file.
1371         * modules/asin: New file.
1372         * modules/atan: New file.
1373         * modules/atan2: New file.
1374         * modules/cbrt: New file.
1375         * modules/copysign: New file.
1376         * modules/cos: New file.
1377         * modules/cosh: New file.
1378         * modules/erf: New file.
1379         * modules/erfc: New file.
1380         * modules/exp: New file.
1381         * modules/fabs: New file.
1382         * modules/fmod: New file.
1383         * modules/hypot: New file.
1384         * modules/j0: New file.
1385         * modules/j1: New file.
1386         * modules/jn: New file.
1387         * modules/ldexp: New file.
1388         * modules/lgamma: New file.
1389         * modules/log: New file.
1390         * modules/log10: New file.
1391         * modules/log1p: New file.
1392         * modules/logb: New file.
1393         * modules/modf: New file.
1394         * modules/nextafter: New file.
1395         * modules/pow: New file.
1396         * modules/remainder: New file.
1397         * modules/rint: New file.
1398         * modules/sin: New file.
1399         * modules/sinh: New file.
1400         * modules/sqrt: New file.
1401         * modules/tan: New file.
1402         * modules/tanh: New file.
1403         * modules/y0: New file.
1404         * modules/y1: New file.
1405         * modules/yn: New file.
1406         * doc/posix-functions/acos.texi: Mention the 'acos' module.
1407         * doc/posix-functions/asin.texi: Mention the 'asin' module.
1408         * doc/posix-functions/atan.texi: Mention the 'atan' module.
1409         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
1410         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
1411         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
1412         * doc/posix-functions/cos.texi: Mention the 'cos' module.
1413         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
1414         * doc/posix-functions/erf.texi: Mention the 'erf' module.
1415         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
1416         * doc/posix-functions/exp.texi: Mention the 'exp' module.
1417         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
1418         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
1419         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
1420         * doc/posix-functions/j0.texi: Mention the 'j0' module.
1421         * doc/posix-functions/j1.texi: Mention the 'j1' module.
1422         * doc/posix-functions/jn.texi: Mention the 'jn' module.
1423         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
1424         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
1425         * doc/posix-functions/log.texi: Mention the 'log' module.
1426         * doc/posix-functions/log10.texi: Mention the 'log10' module.
1427         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
1428         * doc/posix-functions/logb.texi: Mention the 'logb' module.
1429         * doc/posix-functions/modf.texi: Mention the 'modf' module.
1430         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
1431         * doc/posix-functions/pow.texi: Mention the 'pow' module.
1432         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
1433         * doc/posix-functions/rint.texi: Mention the 'rint' module.
1434         * doc/posix-functions/sin.texi: Mention the 'sin' module.
1435         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
1436         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
1437         * doc/posix-functions/tan.texi: Mention the 'tan' module.
1438         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
1439         * doc/posix-functions/y0.texi: Mention the 'y0' module.
1440         * doc/posix-functions/y1.texi: Mention the 'y1' module.
1441         * doc/posix-functions/yn.texi: Mention the 'yn' module.
1442
1443 2010-01-18  Jim Meyering  <meyering@redhat.com>
1444
1445         ignore-value: relax license to LGPLv2+
1446         * modules/ignore-value (License): Relax to LGPLv2+.
1447
1448         getdate: don't leak when TZ contains two or more '"'s
1449         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
1450         double quote in TZ after the first one.
1451
1452         readtokens: do not leak internal token_lengths buffer
1453         * lib/readtokens.c (readtokens): Free the local, lengths,
1454         when the supplied "token_lengths" parameter is NULL.
1455
1456 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1457
1458         Fix a couple of missing LIBTHREAD link failures on AIX.
1459         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
1460         $(LIBTHREAD).
1461         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
1462
1463         Link test-poll against INET_PTON_LIB.
1464         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
1465         for inet_pton on Solaris 10.
1466
1467 2010-01-17  Bruno Haible  <bruno@clisp.org>
1468
1469         unistdio/*-sprintf: Fix typo in module description.
1470         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
1471         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
1472         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
1473         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
1474         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
1475         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
1476         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
1477         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1478
1479 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1480
1481         gnulib-tool: fix filelist for AIX, HP-UX ksh.
1482         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
1483         variables in shell case patterns, for AIX and HP-UX ksh.
1484
1485         Split large sed scripts, for HP-UX sed.
1486         * modules/stdio: Split sed scripts around 50 sed commands,
1487         to avoid HP-UX limit of 99 commands, in the near future.
1488         * modules/string: Likewise.
1489         * modules/unistd: Likewise.
1490
1491         gnulib-tool: avoid writing in the current directory.
1492         * gnulib-tool (func_emit_lib_Makefile_am)
1493         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
1494         not in the current directory, so concurrent gnulib-tool
1495         instances do not interfere.
1496
1497 2010-01-16  Jim Meyering  <meyering@redhat.com>
1498
1499         doc: update users.txt
1500         * users.txt: Add grep.
1501         (diffutils, gzip): Update URLs.
1502
1503 2010-01-12  Bruno Haible  <bruno@clisp.org>
1504
1505         posix_spawn: Avoid test failure on Cygwin.
1506         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
1507         characters.
1508         Reported by Simon Josefsson.
1509
1510 2010-01-12  Bruno Haible  <bruno@clisp.org>
1511
1512         * tests/test-cond.c (main): When skipping the test, show the reason.
1513
1514 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1515
1516         * lib/striconv.c (str_cd_iconv): Avoid if before free.
1517
1518 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1519
1520         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
1521         VC_LIST_ALWAYS_EXCLUDE_REGEX.
1522
1523 2010-01-12  Eric Blake  <ebb9@byu.net>
1524
1525         build: guarantee AS_VAR_IF
1526         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
1527         (gl_AS_VAR_IF): Move...
1528         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
1529         Reported by Simon Josefsson.
1530
1531 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1532
1533         * lib/stdio.in.h: Fix typo.
1534
1535 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1536
1537         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
1538         libgpg-error.
1539
1540 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1541
1542         * tests/test-xalloc-die.sh: Use $EXEEXT.
1543
1544 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1545             Bruno Haible  <bruno@clisp.org>
1546
1547         getlogin, getlogin_r: Avoid test failure.
1548         * tests/test-getlogin.c: Include <stdio.h>.
1549         (main): Skip the test when the function fails because stdin is not a
1550         tty.
1551         * tests/test-getlogin_r.c: Include <stdio.h>.
1552         (main): Skip the test when the function fails because stdin is not a
1553         tty.
1554
1555 2010-01-11  Eric Blake  <ebb9@byu.net>
1556
1557         tests: avoid more large file warnings
1558         * tests/test-fflush.c: Avoid warning about ftell use.
1559         * tests/test-fseek.c: Avoid warning about fseek use.
1560
1561 2010-01-10  Bruno Haible  <bruno@clisp.org>
1562
1563         nproc: Work better on Linux when /proc and /sys are not mounted.
1564         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
1565         as lower bound when, on glibc/Linux systems,
1566         sysconf (_SC_NPROCESSORS_CONF) returns 1.
1567         Suggested by Pádraig Brady <P@draigbrady.com>.
1568         Reported by Dmitry V. Levin <ldv@altlinux.org>.
1569
1570         nproc: Refactor.
1571         * lib/nproc.c (num_processors_via_affinity_mask): New function,
1572         extracted from num_processors.
1573         (num_processors): Call it.
1574
1575 2010-01-11  Jim Meyering  <meyering@redhat.com>
1576
1577         utimecmp: avoid new warning from upcoming gcc-4.5.0
1578         * lib/utimecmp.c (BILLION): Define using #define rather than an
1579         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
1580
1581 2010-01-11  Eric Blake  <ebb9@byu.net>
1582
1583         math: add portability warnings for classification macros
1584         * modules/math (Depends-on): Add warn-on-use.
1585         (Makefile.am): Provide new substitutions.
1586         * m4/math_h.m4 (gl_MATH_H): Require inline.
1587         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
1588         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
1589         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
1590         implement warnings.
1591
1592         unistd: warn on use of environ without module
1593         * modules/unistd (Depends-on): Add warn-on-use.
1594         (Makefile.am): Provide new substitutions.
1595         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
1596         * lib/unistd.in.h (environ): Wrap with a warning helper function.
1597
1598         stdio: warn on suspicious uses
1599         * modules/stdio (Depends-on): Add warn-on-use.
1600         (Makefile.am): Provide new substitutions.
1601         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
1602         fseeko.
1603         * lib/stdio.in.h (gets): Always warn on use.
1604         (fseek, ftell): Adjust when warnings are issued, and honor
1605         _GL_NO_LARGE_FILES as a way to silence the warning.
1606         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
1607         any warning about large file offsets.
1608         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
1609         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
1610         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
1611         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
1612         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
1613         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
1614         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
1615         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
1616
1617         warn-on-use: new module
1618         * modules/warn-on-use: New file.
1619         * build-aux/warn-on-use.h: Likewise.
1620         * m4/warn-on-use.m4: Likewise.
1621         * MODULES.html.sh (Support for building): Mention it.
1622
1623 2010-01-10  Bruno Haible  <bruno@clisp.org>
1624
1625         Tests for module 'unistr/u32-strdup'.
1626         * modules/unistr/u32-strdup-tests: New file.
1627         * tests/unistr/test-u32-strdup.c: New file.
1628
1629         Tests for module 'unistr/u16-strdup'.
1630         * modules/unistr/u16-strdup-tests: New file.
1631         * tests/unistr/test-u16-strdup.c: New file.
1632
1633         Tests for module 'unistr/u8-strdup'.
1634         * modules/unistr/u8-strdup-tests: New file.
1635         * tests/unistr/test-u8-strdup.c: New file.
1636         * tests/unistr/test-strdup.h: New file.
1637
1638         Tests for module 'unistr/u32-strncmp'.
1639         * modules/unistr/u32-strncmp-tests: New file.
1640         * tests/unistr/test-u32-strncmp.c: New file.
1641
1642         Tests for module 'unistr/u16-strncmp'.
1643         * modules/unistr/u16-strncmp-tests: New file.
1644         * tests/unistr/test-u16-strncmp.c: New file.
1645
1646         Tests for module 'unistr/u8-strncmp'.
1647         * modules/unistr/u8-strncmp-tests: New file.
1648         * tests/unistr/test-u8-strncmp.c: New file.
1649         * tests/unistr/test-strncmp.h: New file.
1650
1651         Tests for module 'unistr/u32-strcoll'.
1652         * modules/unistr/u32-strcoll-tests: New file.
1653         * tests/unistr/test-u32-strcoll.c: New file.
1654
1655         Tests for module 'unistr/u16-strcoll'.
1656         * modules/unistr/u16-strcoll-tests: New file.
1657         * tests/unistr/test-u16-strcoll.c: New file.
1658
1659         Tests for module 'unistr/u8-strcoll'.
1660         * modules/unistr/u8-strcoll-tests: New file.
1661         * tests/unistr/test-u8-strcoll.c: New file.
1662
1663         Tests for module 'unistr/u32-strcmp'.
1664         * modules/unistr/u32-strcmp-tests: New file.
1665         * tests/unistr/test-u32-strcmp.c: New file.
1666         * tests/unistr/test-u32-strcmp.h: New file.
1667
1668         Tests for module 'unistr/u16-strcmp'.
1669         * modules/unistr/u16-strcmp-tests: New file.
1670         * tests/unistr/test-u16-strcmp.c: New file.
1671         * tests/unistr/test-u16-strcmp.h: New file.
1672
1673         Tests for module 'unistr/u8-strcmp'.
1674         * modules/unistr/u8-strcmp-tests: New file.
1675         * tests/unistr/test-u8-strcmp.c: New file.
1676         * tests/unistr/test-u8-strcmp.h: New file.
1677         * tests/unistr/test-strcmp.h: New file.
1678
1679         Tests for module 'unistr/u32-strncat'.
1680         * modules/unistr/u32-strncat-tests: New file.
1681         * tests/unistr/test-u32-strncat.c: New file.
1682
1683         Tests for module 'unistr/u16-strncat'.
1684         * modules/unistr/u16-strncat-tests: New file.
1685         * tests/unistr/test-u16-strncat.c: New file.
1686
1687         Tests for module 'unistr/u8-strncat'.
1688         * modules/unistr/u8-strncat-tests: New file.
1689         * tests/unistr/test-u8-strncat.c: New file.
1690         * tests/unistr/test-strncat.h: New file.
1691
1692         Tests for module 'unistr/u32-strcat'.
1693         * modules/unistr/u32-strcat-tests: New file.
1694         * tests/unistr/test-u32-strcat.c: New file.
1695
1696         Tests for module 'unistr/u16-strcat'.
1697         * modules/unistr/u16-strcat-tests: New file.
1698         * tests/unistr/test-u16-strcat.c: New file.
1699
1700         Tests for module 'unistr/u8-strcat'.
1701         * modules/unistr/u8-strcat-tests: New file.
1702         * tests/unistr/test-u8-strcat.c: New file.
1703         * tests/unistr/test-strcat.h: New file.
1704
1705         Tests for module 'unistr/u32-stpncpy'.
1706         * modules/unistr/u32-stpncpy-tests: New file.
1707         * tests/unistr/test-u32-stpncpy.c: New file.
1708
1709         Tests for module 'unistr/u16-stpncpy'.
1710         * modules/unistr/u16-stpncpy-tests: New file.
1711         * tests/unistr/test-u16-stpncpy.c: New file.
1712
1713         Tests for module 'unistr/u8-stpncpy'.
1714         * modules/unistr/u8-stpncpy-tests: New file.
1715         * tests/unistr/test-u8-stpncpy.c: New file.
1716         * tests/unistr/test-stpncpy.h: New file.
1717
1718         Tests for module 'unistr/u32-strncpy'.
1719         * modules/unistr/u32-strncpy-tests: New file.
1720         * tests/unistr/test-u32-strncpy.c: New file.
1721
1722         Tests for module 'unistr/u16-strncpy'.
1723         * modules/unistr/u16-strncpy-tests: New file.
1724         * tests/unistr/test-u16-strncpy.c: New file.
1725
1726         Tests for module 'unistr/u8-strncpy'.
1727         * modules/unistr/u8-strncpy-tests: New file.
1728         * tests/unistr/test-u8-strncpy.c: New file.
1729         * tests/unistr/test-strncpy.h: New file.
1730
1731         Tests for module 'unistr/u32-stpcpy'.
1732         * modules/unistr/u32-stpcpy-tests: New file.
1733         * tests/unistr/test-u32-stpcpy.c: New file.
1734
1735         Tests for module 'unistr/u16-stpcpy'.
1736         * modules/unistr/u16-stpcpy-tests: New file.
1737         * tests/unistr/test-u16-stpcpy.c: New file.
1738
1739         Tests for module 'unistr/u8-stpcpy'.
1740         * modules/unistr/u8-stpcpy-tests: New file.
1741         * tests/unistr/test-u8-stpcpy.c: New file.
1742         * tests/unistr/test-stpcpy.h: New file.
1743
1744         Tests for module 'unistr/u32-strcpy'.
1745         * modules/unistr/u32-strcpy-tests: New file.
1746         * tests/unistr/test-u32-strcpy.c: New file.
1747
1748         Tests for module 'unistr/u16-strcpy'.
1749         * modules/unistr/u16-strcpy-tests: New file.
1750         * tests/unistr/test-u16-strcpy.c: New file.
1751
1752         Tests for module 'unistr/u8-strcpy'.
1753         * modules/unistr/u8-strcpy-tests: New file.
1754         * tests/unistr/test-u8-strcpy.c: New file.
1755         * tests/unistr/test-strcpy.h: New file.
1756
1757         Tests for module 'unistr/u32-strnlen'.
1758         * modules/unistr/u32-strnlen-tests: New file.
1759         * tests/unistr/test-u32-strnlen.c: New file.
1760
1761         Tests for module 'unistr/u16-strnlen'.
1762         * modules/unistr/u16-strnlen-tests: New file.
1763         * tests/unistr/test-u16-strnlen.c: New file.
1764
1765         Tests for module 'unistr/u8-strnlen'.
1766         * modules/unistr/u8-strnlen-tests: New file.
1767         * tests/unistr/test-u8-strnlen.c: New file.
1768         * tests/unistr/test-strnlen.h: New file.
1769
1770         Tests for module 'unistr/u32-strlen'.
1771         * modules/unistr/u32-strlen-tests: New file.
1772         * tests/unistr/test-u32-strlen.c: New file.
1773
1774         Tests for module 'unistr/u16-strlen'.
1775         * modules/unistr/u16-strlen-tests: New file.
1776         * tests/unistr/test-u16-strlen.c: New file.
1777
1778         Tests for module 'unistr/u8-strlen'.
1779         * modules/unistr/u8-strlen-tests: New file.
1780         * tests/unistr/test-u8-strlen.c: New file.
1781
1782         Tests for module 'unistr/u32-prev'.
1783         * modules/unistr/u32-prev-tests: New file.
1784         * tests/unistr/test-u32-prev.c: New file.
1785
1786         Tests for module 'unistr/u16-prev'.
1787         * modules/unistr/u16-prev-tests: New file.
1788         * tests/unistr/test-u16-prev.c: New file.
1789
1790         Tests for module 'unistr/u8-prev'.
1791         * modules/unistr/u8-prev-tests: New file.
1792         * tests/unistr/test-u8-prev.c: New file.
1793
1794         Tests for module 'unistr/u32-next'.
1795         * modules/unistr/u32-next-tests: New file.
1796         * tests/unistr/test-u32-next.c: New file.
1797
1798         Tests for module 'unistr/u16-next'.
1799         * modules/unistr/u16-next-tests: New file.
1800         * tests/unistr/test-u16-next.c: New file.
1801
1802         Tests for module 'unistr/u8-next'.
1803         * modules/unistr/u8-next-tests: New file.
1804         * tests/unistr/test-u8-next.c: New file.
1805
1806         Tests for module 'unistr/u32-strmbtouc'.
1807         * modules/unistr/u32-strmbtouc-tests: New file.
1808         * tests/unistr/test-u32-strmbtouc.c: New file.
1809
1810         Tests for module 'unistr/u16-strmbtouc'.
1811         * modules/unistr/u16-strmbtouc-tests: New file.
1812         * tests/unistr/test-u16-strmbtouc.c: New file.
1813
1814         Tests for module 'unistr/u8-strmbtouc'.
1815         * modules/unistr/u8-strmbtouc-tests: New file.
1816         * tests/unistr/test-u8-strmbtouc.c: New file.
1817
1818         Tests for module 'unistr/u32-strmblen'.
1819         * modules/unistr/u32-strmblen-tests: New file.
1820         * tests/unistr/test-u32-strmblen.c: New file.
1821
1822         Tests for module 'unistr/u16-strmblen'.
1823         * modules/unistr/u16-strmblen-tests: New file.
1824         * tests/unistr/test-u16-strmblen.c: New file.
1825
1826         Tests for module 'unistr/u8-strmblen'.
1827         * modules/unistr/u8-strmblen-tests: New file.
1828         * tests/unistr/test-u8-strmblen.c: New file.
1829
1830         Tests for module 'unistr/u32-cpy-alloc'.
1831         * modules/unistr/u32-cpy-alloc-tests: New file.
1832         * tests/unistr/test-u32-cpy-alloc.c: New file.
1833
1834         Tests for module 'unistr/u16-cpy-alloc'.
1835         * modules/unistr/u16-cpy-alloc-tests: New file.
1836         * tests/unistr/test-u16-cpy-alloc.c: New file.
1837
1838         Tests for module 'unistr/u8-cpy-alloc'.
1839         * modules/unistr/u8-cpy-alloc-tests: New file.
1840         * tests/unistr/test-u8-cpy-alloc.c: New file.
1841         * tests/unistr/test-cpy-alloc.h: New file.
1842
1843         Tests for module 'unistr/u32-mbsnlen'.
1844         * modules/unistr/u32-mbsnlen-tests: New file.
1845         * tests/unistr/test-u32-mbsnlen.c: New file.
1846
1847         Tests for module 'unistr/u16-mbsnlen'.
1848         * modules/unistr/u16-mbsnlen-tests: New file.
1849         * tests/unistr/test-u16-mbsnlen.c: New file.
1850
1851         Tests for module 'unistr/u8-mbsnlen'.
1852         * modules/unistr/u8-mbsnlen-tests: New file.
1853         * tests/unistr/test-u8-mbsnlen.c: New file.
1854
1855         Tests for module 'unistr/u32-chr'.
1856         * modules/unistr/u32-chr-tests: New file.
1857         * tests/unistr/test-u32-chr.c: New file.
1858
1859         Tests for module 'unistr/u16-chr'.
1860         * modules/unistr/u16-chr-tests: New file.
1861         * tests/unistr/test-u16-chr.c: New file.
1862
1863         Tests for module 'unistr/u8-chr'.
1864         * modules/unistr/u8-chr-tests: New file.
1865         * tests/unistr/test-u8-chr.c: New file.
1866         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
1867
1868         Tests for module 'unistr/u32-cmp2'.
1869         * modules/unistr/u32-cmp2-tests: New file.
1870         * tests/unistr/test-u32-cmp2.c: New file.
1871
1872         Tests for module 'unistr/u16-cmp2'.
1873         * modules/unistr/u16-cmp2-tests: New file.
1874         * tests/unistr/test-u16-cmp2.c: New file.
1875
1876         Tests for module 'unistr/u8-cmp2'.
1877         * modules/unistr/u8-cmp2-tests: New file.
1878         * tests/unistr/test-u8-cmp2.c: New file.
1879         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
1880
1881         Tests for module 'unistr/u32-cmp'.
1882         * modules/unistr/u32-cmp-tests: New file.
1883         * tests/unistr/test-u32-cmp.c: New file.
1884
1885         Tests for module 'unistr/u16-cmp'.
1886         * modules/unistr/u16-cmp-tests: New file.
1887         * tests/unistr/test-u16-cmp.c: New file.
1888
1889         Tests for module 'unistr/u8-cmp'.
1890         * modules/unistr/u8-cmp-tests: New file.
1891         * tests/unistr/test-u8-cmp.c: New file.
1892         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
1893
1894         Tests for module 'unistr/u32-set'.
1895         * modules/unistr/u32-set-tests: New file.
1896         * tests/unistr/test-u32-set.c: New file.
1897
1898         Tests for module 'unistr/u16-set'.
1899         * modules/unistr/u16-set-tests: New file.
1900         * tests/unistr/test-u16-set.c: New file.
1901
1902         Tests for module 'unistr/u8-set'.
1903         * modules/unistr/u8-set-tests: New file.
1904         * tests/unistr/test-u8-set.c: New file.
1905         * tests/unistr/test-set.h: New file.
1906
1907         Tests for module 'unistr/u32-move'.
1908         * modules/unistr/u32-move-tests: New file.
1909         * tests/unistr/test-u32-move.c: New file.
1910
1911         Tests for module 'unistr/u16-move'.
1912         * modules/unistr/u16-move-tests: New file.
1913         * tests/unistr/test-u16-move.c: New file.
1914
1915         Tests for module 'unistr/u8-move'.
1916         * modules/unistr/u8-move-tests: New file.
1917         * tests/unistr/test-u8-move.c: New file.
1918         * tests/unistr/test-move.h: New file.
1919
1920         Tests for module 'unistr/u32-cpy'.
1921         * modules/unistr/u32-cpy-tests: New file.
1922         * tests/unistr/test-u32-cpy.c: New file.
1923
1924         Tests for module 'unistr/u16-cpy'.
1925         * modules/unistr/u16-cpy-tests: New file.
1926         * tests/unistr/test-u16-cpy.c: New file.
1927
1928         Tests for module 'unistr/u8-cpy'.
1929         * modules/unistr/u8-cpy-tests: New file.
1930         * tests/unistr/test-u8-cpy.c: New file.
1931         * tests/unistr/test-cpy.h: New file.
1932
1933 2010-01-09  Bruno Haible  <bruno@clisp.org>
1934
1935         Tests for module 'unistr/u32-uctomb'.
1936         * modules/unistr/u32-uctomb-tests: New file.
1937         * tests/unistr/test-u32-uctomb.c: New file.
1938
1939         Tests for module 'unistr/u16-uctomb'.
1940         * modules/unistr/u16-uctomb-tests: New file.
1941         * tests/unistr/test-u16-uctomb.c: New file.
1942
1943         Tests for module 'unistr/u8-uctomb'.
1944         * modules/unistr/u8-uctomb-tests: New file.
1945         * tests/unistr/test-u8-uctomb.c: New file.
1946
1947         Tests for module 'unistr/u32-mbtoucr'.
1948         * modules/unistr/u32-mbtoucr-tests: New file.
1949         * tests/unistr/test-u32-mbtoucr.c: New file.
1950
1951         Tests for module 'unistr/u16-mbtoucr'.
1952         * modules/unistr/u16-mbtoucr-tests: New file.
1953         * tests/unistr/test-u16-mbtoucr.c: New file.
1954
1955         Tests for module 'unistr/u8-mbtoucr'.
1956         * modules/unistr/u8-mbtoucr-tests: New file.
1957         * tests/unistr/test-u8-mbtoucr.c: New file.
1958
1959         Tests for module 'unistr/u32-mbtouc'.
1960         * modules/unistr/u32-mbtouc-tests: New file.
1961         * tests/unistr/test-u32-mbtouc.c: New file.
1962
1963         Tests for module 'unistr/u16-mbtouc'.
1964         * modules/unistr/u16-mbtouc-tests: New file.
1965         * tests/unistr/test-u16-mbtouc.c: New file.
1966
1967         Tests for module 'unistr/u8-mbtouc'.
1968         * modules/unistr/u8-mbtouc-tests: New file.
1969         * tests/unistr/test-u8-mbtouc.c: New file.
1970
1971         Tests for module 'unistr/u32-mbtouc-unsafe'.
1972         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
1973         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
1974         * tests/unistr/test-u32-mbtouc.h: New file.
1975
1976         Tests for module 'unistr/u16-mbtouc-unsafe'.
1977         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
1978         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
1979         * tests/unistr/test-u16-mbtouc.h: New file.
1980
1981         Tests for module 'unistr/u8-mbtouc-unsafe'.
1982         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
1983         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
1984         * tests/unistr/test-u8-mbtouc.h: New file.
1985
1986         Tests for module 'unistr/u32-mblen'.
1987         * modules/unistr/u32-mblen-tests: New file.
1988         * tests/unistr/test-u32-mblen.c: New file.
1989
1990         Tests for module 'unistr/u16-mblen'.
1991         * modules/unistr/u16-mblen-tests: New file.
1992         * tests/unistr/test-u16-mblen.c: New file.
1993
1994         Tests for module 'unistr/u8-mblen'.
1995         * modules/unistr/u8-mblen-tests: New file.
1996         * tests/unistr/test-u8-mblen.c: New file.
1997
1998         Tests for module 'unistr/u32-to-u16'.
1999         * modules/unistr/u32-to-u16-tests: New file.
2000         * tests/unistr/test-u32-to-u16.c: New file.
2001
2002         Tests for module 'unistr/u32-to-u8'.
2003         * modules/unistr/u32-to-u8-tests: New file.
2004         * tests/unistr/test-u32-to-u8.c: New file.
2005
2006         Tests for module 'unistr/u16-to-u32'.
2007         * modules/unistr/u16-to-u32-tests: New file.
2008         * tests/unistr/test-u16-to-u32.c: New file.
2009
2010         Tests for module 'unistr/u16-to-u8'.
2011         * modules/unistr/u16-to-u8-tests: New file.
2012         * tests/unistr/test-u16-to-u8.c: New file.
2013
2014         Tests for module 'unistr/u8-to-u32'.
2015         * modules/unistr/u8-to-u32-tests: New file.
2016         * tests/unistr/test-u8-to-u32.c: New file.
2017
2018         Tests for module 'unistr/u8-to-u16'.
2019         * modules/unistr/u8-to-u16-tests: New file.
2020         * tests/unistr/test-u8-to-u16.c: New file.
2021
2022         Tests for module 'unistr/u32-check'.
2023         * modules/unistr/u32-check-tests: New file.
2024         * tests/unistr/test-u32-check.c: New file.
2025
2026         Tests for module 'unistr/u16-check'.
2027         * modules/unistr/u16-check-tests: New file.
2028         * tests/unistr/test-u16-check.c: New file.
2029
2030         Tests for module 'unistr/u8-check'.
2031         * modules/unistr/u8-check-tests: New file.
2032         * tests/unistr/test-u8-check.c: New file.
2033
2034         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
2035         (category_equals): New function.
2036         (main): Add more tests.
2037         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
2038
2039         * tests/unictype/test-bidi_byname.c (main): Add more tests.
2040
2041 2010-01-10  Bruno Haible  <bruno@clisp.org>
2042
2043         unistr/u*-strcoll: Try harder to distinguish different strings.
2044         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
2045         compare s1 and s2 to see if they are different.
2046
2047 2010-01-10  Bruno Haible  <bruno@clisp.org>
2048
2049         unistr/u*-stpncpy: Fix the return value.
2050         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
2051         description of the return value consistent with stpncpy in glibc.
2052         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
2053         written non-NUL unit.
2054
2055 2010-01-10  Bruno Haible  <bruno@clisp.org>
2056
2057         unistr/u*-next: Add missing dependencies.
2058         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
2059         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
2060         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
2061
2062 2010-01-10  Bruno Haible  <bruno@clisp.org>
2063
2064         unistr/u8-mbsnlen: Fix return value for incomplete character.
2065         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
2066         u8_mblen.
2067         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
2068         Remove unistr/u8-mblen.
2069         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
2070         u16_mblen.
2071         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
2072         Remove unistr/u16-mblen.
2073
2074 2010-01-10  Bruno Haible  <bruno@clisp.org>
2075
2076         wchar: Fix compilation error when <wchar.h> is used from coreutils.
2077         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
2078         Reported by Brian Gough <bjg@gnu.org> and
2079         Chris Clayton <chris2553@googlemail.com> via
2080         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
2081
2082 2010-01-09  Bruno Haible  <bruno@clisp.org>
2083
2084         unistr/u16-to-u32: Reject invalid input.
2085         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
2086         u16_mbtouc.
2087         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
2088         Remove unistr/u16-mbtouc.
2089
2090         unistr/u16-to-u8: Reject invalid input.
2091         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
2092         u16_mbtouc.
2093         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
2094         Remove unistr/u16-mbtouc.
2095
2096         unistr/u8-to-u32: Reject invalid input.
2097         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
2098         u8_mbtouc.
2099         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
2100         Remove unistr/u8-mbtouc.
2101
2102         unistr/u8-to-u16: Reject invalid input.
2103         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
2104         u8_mbtouc.
2105         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
2106         Remove unistr/u8-mbtouc.
2107
2108 2010-01-09  Bruno Haible  <bruno@clisp.org>
2109
2110         Tests for module 'getlogin'.
2111         * modules/getlogin-tests: New file.
2112         * tests/test-getlogin.c: New file.
2113
2114         New module 'getlogin'.
2115         * lib/unistd.in.h (getlogin): New declaration.
2116         * lib/getlogin.c: New file.
2117         * m4/getlogin.m4: New file.
2118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
2119         HAVE_GETLOGIN.
2120         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
2121         HAVE_GETLOGIN.
2122         * modules/getlogin: New file.
2123         * doc/posix-functions/getlogin.texi: Mention the new module.
2124         Reported by John W. Eaton <jwe@gnu.org>.
2125
2126 2010-01-09  Bruno Haible  <bruno@clisp.org>
2127
2128         getlogin_r: Support for native Windows.
2129         * lib/getlogin_r.c: Include <windows.h>
2130         (getlogin_r): Implement for native Windows.
2131         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
2132         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
2133         via John W. Eaton <jwe@gnu.org>.
2134
2135 2010-01-09  Bruno Haible  <bruno@clisp.org>
2136
2137         getlogin_r: Small fixes.
2138         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
2139         succeeds.
2140         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
2141         before testing whether getlogin_r is declared. No need to set
2142         HAVE_DECL_GETLOGIN_R to 1.
2143         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
2144
2145 2010-01-09  Bruno Haible  <bruno@clisp.org>
2146
2147         * lib/unistd.in.h (getlogin_r): Add comment.
2148
2149 2010-01-09  Bruno Haible  <bruno@clisp.org>
2150
2151         Tests for module 'getlogin_r'.
2152         * modules/getlogin_r-tests: New file.
2153         * tests/test-getlogin_r.c: New file.
2154
2155 2010-01-09  Jim Meyering  <meyering@redhat.com>
2156
2157         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
2158         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
2159         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
2160
2161 2010-01-08  Simon Josefsson  <simon@josefsson.org>
2162
2163         * lib/dup2.c (rpl_dup2): Improve comment.
2164
2165 2010-01-08  Eric Blake  <ebb9@byu.net>
2166
2167         maint.mk: allow packages to add makefile @@ exceptions
2168         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
2169         (sc_makefile_check): Rename...
2170         (sc_makefile_at_at_check): ...to this, and use hook.
2171
2172         dup2: work around mingw bug
2173         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
2174         Reported by Simon Josefsson.
2175
2176 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
2177
2178         glob: Fix C++ compilation.
2179         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
2180         C++.
2181
2182 2010-01-07  Bruno Haible  <bruno@clisp.org>
2183
2184         Fix indentation of wctype.in.h, broken since 2007-01-06.
2185         * lib/wctype.in.h: Fix indentation of preprocessor directives.
2186
2187 2010-01-07  Bruno Haible  <bruno@clisp.org>
2188
2189         mbslen: Avoid collision with system function.
2190         * lib/string.in.h [MirBSD]: Include <wchar.h>.
2191         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
2192         * m4/mbslen.m4: New file.
2193         * modules/mbslen (Files): Add it.
2194         (configure.ac): Invoke gl_MBSLEN.
2195         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
2196         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
2197         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
2198         via Ian Beckwith <ianb@erislabs.net>.
2199
2200 2010-01-07  Bruno Haible  <bruno@clisp.org>
2201
2202         dirent: Document the last fix.
2203         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
2204
2205 2010-01-07  Bruno Haible  <bruno@clisp.org>
2206
2207         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
2208         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
2209         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
2210         va_list are defined.
2211         * doc/posix-headers/stdio.texi: Document the bug of missing types.
2212         Reported by Eric Blake.
2213
2214 2010-01-07  Bruno Haible  <bruno@clisp.org>
2215
2216         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
2217         * modules/xlist (Depends-on): Add 'list',
2218         * modules/xoset (Depends-on): Add 'oset'.
2219         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2220
2221 2010-01-07  Bruno Haible  <bruno@clisp.org>
2222
2223         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
2224         * doc/posix-functions/strncasecmp.texi: Likewise.
2225
2226 2010-01-07  Bruno Haible  <bruno@clisp.org>
2227
2228         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
2229
2230 2010-01-07  John W. Eaton  <jwe@octave.org>
2231
2232         wctype: allow C++ use
2233         * lib/wctype.in.h: Add extern "C" block for C++.
2234
2235 2010-01-06  Eric Blake  <ebb9@byu.net>
2236
2237         maint.mk: detect incorrect GFDL usage
2238         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
2239
2240 2010-01-06  Jim Meyering  <meyering@redhat.com>
2241         and Eric Blake  <ebb9@byu.net>
2242
2243         maint.mk: ignore multi-line copyright in NEWS
2244         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
2245
2246 2010-01-06  Eric Blake  <ebb9@byu.net>
2247
2248         select: add missing dependency
2249         * modules/select-tests (Depends-on): Move sockets dependency...
2250         * modules/select (Depends-on): ...here.
2251         Reported by Ian Beckwith.
2252
2253         doc: regenerate INSTALL
2254         * doc/INSTALL: Reflect recent autoconf update.
2255         * doc/INSTALL.ISO: Likewise.
2256         * doc/INSTALL.UTF-8: Likewise.
2257
2258         pread: fix compilation on glibc
2259         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
2260         Reported by Ralf Wildenhues.
2261
2262         dirent: fix test failure
2263         * lib/dirent.in.h (includes): Guarantee ino_t.
2264         Reported by Ralf Wildenhues.
2265
2266 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
2267
2268         linkat, renameat: avoid bad free
2269         * lib/at-func2.c (at_func2): Fix typo.
2270         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
2271
2272 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2273
2274         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
2275         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
2276         to avoid failure of symlink test later.
2277
2278 2010-01-06  Eric Blake  <ebb9@byu.net>
2279
2280         stdio, unistd: guarantee ssize_t
2281         * lib/unistd.in.h (includes): Ensure that types required by POSIX
2282         2008 are exposed when needed.
2283         * lib/stdio.in.h (includes): Likewise.
2284         Reported by Ralf Wildenhues.
2285
2286 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
2287
2288         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
2289         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
2290         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
2291
2292 2010-01-06  Jim Meyering  <meyering@redhat.com>
2293
2294         readtokens: this module *does* require xalloc.h
2295         It uses only functions that were omitted by the old syntax-check rule.
2296         * lib/readtokens.c: Include "xalloc.h" once again.
2297         * modules/readtokens (Depends-on): Add xalloc.
2298         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
2299
2300 2010-01-05  Eric Blake  <ebb9@byu.net>
2301
2302         maint: support 'make announcement' from a VPATH build
2303         * top/maint.mk (announcement): Look for correct NEWS file.
2304
2305 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
2306
2307         utimens (fdutimens): ignore a negative FD, per contract
2308         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
2309         when we have a valid file descriptor.  Otherwise, using a brand
2310         new glibc (with just-patched futimens that now fails with EBADF)
2311         would cause this function to fail with ENOSYS.
2312         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
2313         See also http://bugzilla.redhat.com/552320.
2314
2315 2010-01-05  Eric Blake  <ebb9@byu.net>
2316
2317         strcase: document what it provides
2318         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
2319         gnulib module.
2320         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
2321         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
2322
2323 2010-01-05  Jim Meyering  <meyering@redhat.com>
2324
2325         maint: remove useless inclusions of "xalloc.h"
2326         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
2327         * lib/readtokens.c: Likewise.
2328         * lib/same.c: Likewise.
2329         * modules/getloadavg (Depends-on): Remove xalloc.
2330         * modules/readtokens: Likewise.
2331         * modules/same: Likewise.
2332
2333         maint.mk: include 4 more function names in alloca.h-checking regexp
2334         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
2335         regexp.  Before, we would give a false-positive (saying alloca.h
2336         is included unnecessarily) when the only uses involved omitted symbols.
2337
2338         xalloc.h: use consistent formatting
2339         * lib/xalloc.h: Move declarations to start in the first column.
2340
2341 2010-01-05  Eric Blake  <ebb9@byu.net>
2342
2343         mkdir: avoid xalloc
2344         * lib/mkdir.c (includes): Drop unused header.
2345         Reported by John W. Eaton.
2346
2347 2010-01-04  Jim Meyering  <meyering@redhat.com>
2348
2349         nl_langinfo: avoid configure-time syntax error
2350         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
2351         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
2352         the empty string.  Don't let that provoke a shell syntax error.
2353
2354         regcomp, regexec, fnmatch: avoid array bounds read error
2355         * lib/regcomp.c (build_equiv_class): From glibc:
2356         Use only the low 24 bits of a findidx return value as an index
2357         into the weights array.  Patch by Ulrich Drepper:
2358         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
2359         * lib/regexec.c (check_node_accept_bytes): Likewise.
2360         * lib/fnmatch_loop.c (FCT): Likewise.
2361
2362         regcomp: skip collseq lookup when there are no rules
2363         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
2364         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
2365
2366         regcomp: recognize ill-formed { } expressions
2367         * lib/regcomp.c (parse_dup_op): From glibc:
2368         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
2369
2370         regcomp: fix typo in comment
2371         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
2372         s/satisfy/satisfies/.
2373
2374         regcomp: sync from glibc: remove dead store
2375         * lib/regcomp.c (duplicate_node_closure): Remove useless
2376         search_duplicated_node call and dead store.
2377
2378         regcomp: sync from glibc; always use nl_langinfo
2379         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
2380         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
2381         * modules/regex (Depends-on): Add nl_langinfo.
2382
2383 2010-01-04  Eric Blake  <ebb9@byu.net>
2384
2385         fdopendir: fix configure test
2386         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
2387
2388 2010-01-01  Bruno Haible  <bruno@clisp.org>
2389
2390         wchar: Remove unused configure check.
2391         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
2392
2393 2010-01-01  Eric Blake  <ebb9@byu.net>
2394
2395         headers: make check of system header explicit
2396         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
2397         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
2398         ourselves.
2399         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2400         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2401         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
2402         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
2403         internals.
2404         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
2405         missing.
2406         Suggested by Bruno Haible.
2407
2408 2010-01-01  Jim Meyering  <meyering@redhat.com>
2409
2410         ChangeLog: tweak to eliminate unnecessary copyright line
2411         * ChangeLog: Remove a copyright line that was mistakenly updated
2412         by today's update-copyright run.  Reported by Eric Blake.
2413
2414         test-update-copyright: don't let envvar setting cause test failure
2415         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
2416
2417 2010-01-01  Bruno Haible  <bruno@clisp.org>
2418
2419         localename: Avoid gcc warning.
2420         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
2421         function if it is not used.
2422
2423 2010-01-01  Jim Meyering  <meyering@redhat.com>
2424
2425         update nearly all FSF copyright year lists to include 2010
2426         Use the same procedure as for 2009, outlined in
2427         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
2428
2429         version-etc: set COPYRIGHT_YEAR to 2010
2430         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
2431
2432 2009-12-31  Eric Blake  <ebb9@byu.net>
2433
2434         doc: correct availability of cygwin 1.5.x getopt
2435         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
2436         variables.
2437         * doc/posix-functions/opterr.texi (opterr): Likewise.
2438         * doc/posix-functions/optind.texi (optind): Likewise.
2439         * doc/posix-functions/optopt.texi (optopt): Likewise.
2440         * doc/posix-functions/tzname.texi (tzname): Likewise.
2441
2442         openat: update maintainer
2443         * modules/openat (Maintainer): Add myself.
2444
2445         utimens: avoid shadowing warning
2446         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
2447         buffers into one, to avoid shadowing, as well as avoiding a
2448         redundant stat.
2449         Reported by Jim Meyering.
2450
2451         test-dup2: avoid compiler warning
2452         * tests/test-dup2.c (is_inheritable): Only define if used.
2453
2454 2010-01-01  Bruno Haible  <bruno@clisp.org>
2455
2456         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
2457         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
2458         defined, use wctomb instead of wcrtomb.
2459
2460 2010-01-01  Bruno Haible  <bruno@clisp.org>
2461
2462         iconv: Reject native Solaris iconv.
2463         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
2464         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
2465
2466 2009-12-31  Bruno Haible  <bruno@clisp.org>
2467
2468         * tests/test-signal.c (main): Remove test of 'SIG'.
2469
2470 2009-12-31  Bruno Haible  <bruno@clisp.org>
2471
2472         spawn: Fix incomplete fix.
2473         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
2474         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
2475         warnings for GNULIB_POSIXCHECK again.
2476         Reported by Eric Blake.
2477
2478 2009-12-31  Bruno Haible  <bruno@clisp.org>
2479
2480         Avoid namespace pollution on glibc systems.
2481         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
2482         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
2483         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
2484         glibc systems.
2485
2486 2009-12-31  Bruno Haible  <bruno@clisp.org>
2487
2488         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
2489         (gl_REPLACE_WCHAR_H): Turn into a no-op.
2490         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
2491         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
2492         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
2493         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
2494         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
2495
2496 2009-12-31  Bruno Haible  <bruno@clisp.org>
2497
2498         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
2499         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
2500         afterwards.
2501
2502 2009-12-31  Bruno Haible  <bruno@clisp.org>
2503
2504         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
2505         SYS_UTSNAME_H.
2506
2507 2009-12-31  Bruno Haible  <bruno@clisp.org>
2508
2509         spawn: Fix misapplied patch.
2510         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
2511         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
2512         warnings for GNULIB_POSIXCHECK.
2513
2514 2009-12-31  Bruno Haible  <bruno@clisp.org>
2515
2516         times: Update after sys_times changed.
2517         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
2518         * modules/times (Files): Add it.
2519         (configure.ac): Invoke gl_FUNC_TIMES.
2520
2521 2009-12-31  Bruno Haible  <bruno@clisp.org>
2522
2523         Use AC_C_INLINE where necessary.
2524         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
2525         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
2526         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
2527         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
2528         * m4/mbfile.m4 (gl_MBFILE): Likewise.
2529         * m4/mbiter.m4 (gl_MBITER): Likewise.
2530         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2531         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2532         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
2533         * modules/u64 (configure.ac): Likewise.
2534
2535 2009-12-31  Bruno Haible  <bruno@clisp.org>
2536
2537         Use AC_C_INLINE instead of module 'inline' where possible.
2538         * modules/inline (Description): Clarify purpose.
2539         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
2540         * modules/count-one-bits (Depends-on): Remove inline.
2541         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
2542         * modules/openat (Depends-on): Remove inline.
2543         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
2544         instead of depending on module 'inline'.
2545         * modules/filevercmp (Depends-on, configure.ac): Likewise.
2546         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
2547         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
2548         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
2549         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
2550         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
2551         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
2552         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
2553         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
2554         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
2555         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
2556         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
2557         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
2558         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
2559         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
2560         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
2561         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
2562         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
2563         Likewise.
2564         * modules/unictype/property-ascii-hex-digit (Depends-on,
2565         configure.ac): Likewise.
2566         * modules/unictype/property-bidi-arabic-digit (Depends-on,
2567         configure.ac): Likewise.
2568         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
2569         configure.ac): Likewise.
2570         * modules/unictype/property-bidi-block-separator (Depends-on,
2571         configure.ac): Likewise.
2572         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
2573         configure.ac): Likewise.
2574         * modules/unictype/property-bidi-common-separator (Depends-on,
2575         configure.ac): Likewise.
2576         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
2577         Likewise.
2578         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
2579         configure.ac): Likewise.
2580         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
2581         configure.ac): Likewise.
2582         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
2583         configure.ac): Likewise.
2584         * modules/unictype/property-bidi-european-digit (Depends-on,
2585         configure.ac): Likewise.
2586         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
2587         configure.ac): Likewise.
2588         * modules/unictype/property-bidi-left-to-right (Depends-on,
2589         configure.ac): Likewise.
2590         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
2591         configure.ac): Likewise.
2592         * modules/unictype/property-bidi-other-neutral (Depends-on,
2593         configure.ac): Likewise.
2594         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
2595         Likewise.
2596         * modules/unictype/property-bidi-segment-separator (Depends-on,
2597         configure.ac): Likewise.
2598         * modules/unictype/property-bidi-whitespace (Depends-on,
2599         configure.ac): Likewise.
2600         * modules/unictype/property-combining (Depends-on, configure.ac):
2601         Likewise.
2602         * modules/unictype/property-composite (Depends-on, configure.ac):
2603         Likewise.
2604         * modules/unictype/property-currency-symbol (Depends-on,
2605         configure.ac): Likewise.
2606         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
2607         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
2608         Likewise.
2609         * modules/unictype/property-default-ignorable-code-point (Depends-on,
2610         configure.ac): Likewise.
2611         * modules/unictype/property-deprecated (Depends-on, configure.ac):
2612         Likewise.
2613         * modules/unictype/property-diacritic (Depends-on, configure.ac):
2614         Likewise.
2615         * modules/unictype/property-extender (Depends-on, configure.ac):
2616         Likewise.
2617         * modules/unictype/property-format-control (Depends-on, configure.ac):
2618         Likewise.
2619         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
2620         Likewise.
2621         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
2622         Likewise.
2623         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
2624         Likewise.
2625         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
2626         Likewise.
2627         * modules/unictype/property-hyphen (Depends-on, configure.ac):
2628         Likewise.
2629         * modules/unictype/property-id-continue (Depends-on, configure.ac):
2630         Likewise.
2631         * modules/unictype/property-id-start (Depends-on, configure.ac):
2632         Likewise.
2633         * modules/unictype/property-ideographic (Depends-on, configure.ac):
2634         Likewise.
2635         * modules/unictype/property-ids-binary-operator (Depends-on,
2636         configure.ac): Likewise.
2637         * modules/unictype/property-ids-trinary-operator (Depends-on,
2638         configure.ac): Likewise.
2639         * modules/unictype/property-ignorable-control (Depends-on,
2640         configure.ac): Likewise.
2641         * modules/unictype/property-iso-control (Depends-on, configure.ac):
2642         Likewise.
2643         * modules/unictype/property-join-control (Depends-on, configure.ac):
2644         Likewise.
2645         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
2646         Likewise.
2647         * modules/unictype/property-line-separator (Depends-on, configure.ac):
2648         Likewise.
2649         * modules/unictype/property-logical-order-exception (Depends-on,
2650         configure.ac): Likewise.
2651         * modules/unictype/property-lowercase (Depends-on, configure.ac):
2652         Likewise.
2653         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
2654         * modules/unictype/property-non-break (Depends-on, configure.ac):
2655         Likewise.
2656         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
2657         Likewise.
2658         * modules/unictype/property-numeric (Depends-on, configure.ac):
2659         Likewise.
2660         * modules/unictype/property-other-alphabetic (Depends-on,
2661         configure.ac): Likewise.
2662         * modules/unictype/property-other-default-ignorable-code-point
2663         (Depends-on, configure.ac): Likewise.
2664         * modules/unictype/property-other-grapheme-extend (Depends-on,
2665         configure.ac): Likewise.
2666         * modules/unictype/property-other-id-continue (Depends-on,
2667         configure.ac): Likewise.
2668         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
2669         Likewise.
2670         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
2671         Likewise.
2672         * modules/unictype/property-other-math (Depends-on, configure.ac):
2673         Likewise.
2674         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
2675         Likewise.
2676         * modules/unictype/property-paired-punctuation (Depends-on,
2677         configure.ac): Likewise.
2678         * modules/unictype/property-paragraph-separator (Depends-on,
2679         configure.ac): Likewise.
2680         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
2681         Likewise.
2682         * modules/unictype/property-pattern-white-space (Depends-on,
2683         configure.ac): Likewise.
2684         * modules/unictype/property-private-use (Depends-on, configure.ac):
2685         Likewise.
2686         * modules/unictype/property-punctuation (Depends-on, configure.ac):
2687         Likewise.
2688         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
2689         Likewise.
2690         * modules/unictype/property-radical (Depends-on, configure.ac):
2691         Likewise.
2692         * modules/unictype/property-sentence-terminal (Depends-on,
2693         configure.ac): Likewise.
2694         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
2695         Likewise.
2696         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
2697         * modules/unictype/property-terminal-punctuation (Depends-on,
2698         configure.ac): Likewise.
2699         * modules/unictype/property-titlecase (Depends-on, configure.ac):
2700         Likewise.
2701         * modules/unictype/property-unassigned-code-value (Depends-on,
2702         configure.ac): Likewise.
2703         * modules/unictype/property-unified-ideograph (Depends-on,
2704         configure.ac): Likewise.
2705         * modules/unictype/property-uppercase (Depends-on, configure.ac):
2706         Likewise.
2707         * modules/unictype/property-variation-selector (Depends-on,
2708         configure.ac): Likewise.
2709         * modules/unictype/property-white-space (Depends-on, configure.ac):
2710         Likewise.
2711         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
2712         Likewise.
2713         * modules/unictype/property-xid-start (Depends-on, configure.ac):
2714         Likewise.
2715         * modules/unictype/property-zero-width (Depends-on, configure.ac):
2716         Likewise.
2717         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
2718         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
2719         Likewise.
2720
2721 2009-12-31  Bruno Haible  <bruno@clisp.org>
2722
2723         Remove unnecessary AC_C_INLINE invocation.
2724         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
2725         since 2009-08-21.
2726
2727 2009-12-31  Jim Meyering  <meyering@redhat.com>
2728
2729         maint.mk: don't require explicit gpg_key_ID in cfg.mk
2730         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
2731         With this change, we can all remove the gpg_key_ID = ... definition
2732         from our respective cfg.mk files.
2733
2734         maint.mk: create announcement template in ~/, not in /tmp
2735         * top/maint.mk (emit_upload_commands): Adjust.
2736         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
2737         Remove temporary file, .ci-msg.
2738
2739 2009-12-31  Eric Blake  <ebb9@byu.net>
2740
2741         link-warning: always build headers with link warnings
2742         * modules/arpa_inet (Makefile.am): Always build replacement
2743         header.
2744         * modules/ctype (Makefile.am): Likewise.
2745         * modules/dirent (Makefile.am): Likewise.
2746         * modules/inttypes (Makefile.am): Likewise.
2747         * modules/langinfo (Makefile.am): Likewise.
2748         * modules/locale (Makefile.am): Likewise.
2749         * modules/spawn (Makefile.am): Likewise.
2750         * modules/sys_file (Makefile.am): Likewise.
2751         * modules/sys_ioctl (Makefile.am): Likewise.
2752         * modules/sys_select (Makefile.am): Likewise.
2753         * modules/sys_socket (Makefile.am): Likewise.
2754         * modules/sys_times (Makefile.am): Likewise.
2755         * modules/sys_utsname (Makefile.am): Likewise.
2756         * modules/sys_wait (Makefile.am): Likewise.
2757         * modules/wchar (Makefile.am): Likewise.
2758         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
2759         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
2760         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
2761         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
2762         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
2763         Likewise.
2764         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2765         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2766         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
2767         Likewise.
2768         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
2769         Likewise.
2770         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
2771         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
2772         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
2773         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2774         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2775         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
2776         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
2777         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
2778         (gl_WCHAR_H_DEFAULTS): Likewise.
2779
2780 2009-12-31  Eric Blake  <ebb9@byu.net>
2781
2782         signal, spawn: use link warnings
2783         * lib/signal.in.h (sigset_t): Make unconditional.
2784         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
2785         (sigpending, sigprocmask, sigaction): Add link warnings.
2786         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
2787         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
2788         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
2789         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
2790         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
2791         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
2792         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
2793         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
2794         (posix_spawn_file_actions_destroy)
2795         (posix_spawn_file_actions_addopen)
2796         (posix_spawn_file_actions_addclose)
2797         (posix_spawwn_file_actions_adddup2): Likewise.
2798         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
2799         * tests/test-signal.c (main): Enhance test.
2800
2801         spawn: improve wrapper support
2802         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
2803         (gl_SPAWN_H_DEFAULTS): New defaults.
2804         * modules/spawn (Makefile.am): Substitute them.
2805         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
2806         Only declare if missing or broken.
2807
2808         sys_times, sys_utsname: use include_next
2809         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
2810         header.
2811         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
2812         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
2813         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
2814         * modules/sys_times (Depends-on): Add include_next.
2815         (Makefile.am): Substitute additional values.
2816         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
2817         * lib/sys_times.in.h (includes): Include native header, if
2818         available.
2819         * lib/sys_utsname.in.h (includes): Likewise.
2820         * tests/test-sys_times.c (main): Enhance test.
2821
2822         fdutimensat: revert prior patch
2823         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
2824         utimens.h.
2825         Reported by Bruno Haible.
2826
2827 2009-12-30  Eric Blake  <ebb9@byu.net>
2828
2829         sys_wait: drop link-warning dependency
2830         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
2831         link-warning efforts.
2832         * lib/sys_wait.in.h: Likewise.
2833
2834         fdutimensat: remove bogus dependency
2835         * modules/fdutimensat (Depends-on): Drop inline.
2836
2837         unistd: fix typo
2838         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
2839
2840 2009-12-30  Bruno Haible  <bruno@clisp.org>
2841
2842         Fix compilation error with Solaris cc.
2843         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
2844         * lib/unicase/u16-is-invariant.c: Likewise.
2845         * lib/unicase/u32-is-invariant.c: Likewise.
2846         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
2847
2848 2009-12-30  Bruno Haible  <bruno@clisp.org>
2849
2850         Fix test crash.
2851         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
2852         locales.
2853         Reported by Simon Josefsson <simon@josefsson.org>.
2854
2855 2009-12-30  Bruno Haible  <bruno@clisp.org>
2856
2857         Fix compilation error on most platforms.
2858         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
2859         Reported by Simon Josefsson <simon@josefsson.org>
2860         and Nelson H. F. Beebe <beebe@math.utah.edu>.
2861
2862 2009-12-30  Eric Blake  <ebb9@byu.net>
2863
2864         futimens, utimensat: work around ntfs-3g bug
2865         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
2866         a ctime bug is present, and expand workaround to cover ntfs-3g.
2867         * lib/utimens.c (fdutimens, lutimens): Likewise.
2868         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
2869         (validate_timespec): Adjust return value.
2870         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
2871         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2872         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
2873
2874 2009-12-29  Eric Blake  <ebb9@byu.net>
2875
2876         link-warning: make usage consistent
2877         * modules/ctype (Depends-on): Add link-warning.
2878         (Makefile.am): Update rules accordingly.
2879         * modules/langinfo (Depends-on, Makefile.am): Likewise.
2880         * modules/locale (Depends-on, Makefile.am): Likewise.
2881         * modules/sys_file (Makefile.am): Likewise.
2882         * modules/getopt-posix (Makefile.am): Delete unused link warning
2883         efforts.
2884         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
2885         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
2886         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
2887         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
2888
2889         stdio: remove unused variables
2890         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
2891         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
2892         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2893
2894         tests: test more substitute headers
2895         * modules/ctype-tests: New file.
2896         * modules/dirent-tests: Likewise.
2897         * modules/spawn-tests: Likewise.
2898         * modules/sys_file-tests: Likewise.
2899         * modules/sys_ioctl-tests: Likewise.
2900         * modules/sys_wait-tests: Likewise.
2901         * tests/test-ctype.c: Likewise.
2902         * tests/test-dirent.c: Likewise.
2903         * tests/test-spawn.c: Likewise.
2904         * tests/test-sys_file.c: Likewise.
2905         * tests/test-sys_ioctl.c: Likewise.
2906         * tests/test-sys_wait.c: Likewise.
2907         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
2908         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
2909         whether or not flock is in use.
2910
2911         tests: remove License section from module
2912         * modules/arpa_inet-tests: Remove unneeded section.
2913         * modules/byteswap-tests: Likewise.
2914         * modules/ceilf-tests: Likewise.
2915         * modules/ceill-tests: Likewise.
2916         * modules/crypto/des-tests: Likewise.
2917         * modules/crypto/gc-arcfour-tests: Likewise.
2918         * modules/crypto/gc-arctwo-tests: Likewise.
2919         * modules/crypto/gc-des-tests: Likewise.
2920         * modules/crypto/gc-hmac-md5-tests: Likewise.
2921         * modules/crypto/gc-hmac-sha1-tests: Likewise.
2922         * modules/crypto/gc-md2-tests: Likewise.
2923         * modules/crypto/gc-md4-tests: Likewise.
2924         * modules/crypto/gc-md5-tests: Likewise.
2925         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
2926         * modules/crypto/gc-rijndael-tests: Likewise.
2927         * modules/crypto/gc-sha1-tests: Likewise.
2928         * modules/crypto/gc-tests: Likewise.
2929         * modules/crypto/md2-tests: Likewise.
2930         * modules/crypto/md4-tests: Likewise.
2931         * modules/fcntl-h-tests: Likewise.
2932         * modules/floorf-tests: Likewise.
2933         * modules/floorl-tests: Likewise.
2934         * modules/frexp-nolibm-tests: Likewise.
2935         * modules/frexp-tests: Likewise.
2936         * modules/frexpl-nolibm-tests: Likewise.
2937         * modules/frexpl-tests: Likewise.
2938         * modules/getaddrinfo-tests: Likewise.
2939         * modules/inttypes-tests: Likewise.
2940         * modules/isfinite-tests: Likewise.
2941         * modules/isinf-tests: Likewise.
2942         * modules/ldexpl-tests: Likewise.
2943         * modules/locale-tests: Likewise.
2944         * modules/math-tests: Likewise.
2945         * modules/netdb-tests: Likewise.
2946         * modules/netinet_in-tests: Likewise.
2947         * modules/printf-frexp-tests: Likewise.
2948         * modules/printf-frexpl-tests: Likewise.
2949         * modules/priv-set-tests: Likewise.
2950         * modules/random_r-tests: Likewise.
2951         * modules/round-tests: Likewise.
2952         * modules/roundf-tests: Likewise.
2953         * modules/roundl-tests: Likewise.
2954         * modules/search-tests: Likewise.
2955         * modules/select-tests: Likewise.
2956         * modules/signal-tests: Likewise.
2957         * modules/stdbool-tests: Likewise.
2958         * modules/stddef-tests: Likewise.
2959         * modules/stdint-tests: Likewise.
2960         * modules/stdio-tests: Likewise.
2961         * modules/stdlib-tests: Likewise.
2962         * modules/string-tests: Likewise.
2963         * modules/strings-tests: Likewise.
2964         * modules/sys_select-tests: Likewise.
2965         * modules/sys_socket-tests: Likewise.
2966         * modules/sys_stat-tests: Likewise.
2967         * modules/sys_time-tests: Likewise.
2968         * modules/sys_utsname-tests: Likewise.
2969         * modules/sysexits-tests: Likewise.
2970         * modules/time-tests: Likewise.
2971         * modules/trunc-tests: Likewise.
2972         * modules/truncf-tests: Likewise.
2973         * modules/truncl-tests: Likewise.
2974         * modules/tsearch-tests: Likewise.
2975         * modules/unistd-tests: Likewise.
2976         * modules/wchar-tests: Likewise.
2977         * modules/wctype-tests: Likewise.
2978
2979         tests: fix license on several tests
2980         * tests/test-des.c: Update to GPLv3+.
2981         * tests/test-flock.c: Likewise.
2982         * tests/test-fsync.c: Likewise.
2983         * tests/test-futimens.h: Likewise.
2984         * tests/test-gc-arcfour.c: Likewise.
2985         * tests/test-gc-arctwo.c: Likewise.
2986         * tests/test-gc-des.c: Likewise.
2987         * tests/test-gc-hmac-md5.c: Likewise.
2988         * tests/test-gc-hmac-sha1.c: Likewise.
2989         * tests/test-gc-md2.c: Likewise.
2990         * tests/test-gc-md4.c: Likewise.
2991         * tests/test-gc-md5.c: Likewise.
2992         * tests/test-gc-pbkdf2-sha1.c: Likewise.
2993         * tests/test-gc-rijndael.c: Likewise.
2994         * tests/test-gc-sha1.c: Likewise.
2995         * tests/test-gc.c: Likewise.
2996         * tests/test-getcwd.c: Likewise.
2997         * tests/test-link.c: Likewise.
2998         * tests/test-link.h: Likewise.
2999         * tests/test-lutimens.h: Likewise.
3000         * tests/test-md2.c: Likewise.
3001         * tests/test-md4.c: Likewise.
3002         * tests/test-mkdir.h: Likewise.
3003         * tests/test-rename.c: Likewise.
3004         * tests/test-rename.h: Likewise.
3005         * tests/test-safe-alloc.c: Likewise.
3006         * tests/test-utimens-common.h: Likewise.
3007         * tests/test-utimens.h: Likewise.
3008
3009         maint: sync license texts
3010         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
3011         * doc/gpl-3.0.texi: Revert copyright year update.
3012         * doc/lgpl-3.0.texi: Likewise.
3013
3014 2009-12-29  Jim Meyering  <meyering@redhat.com>
3015
3016         update nearly all FSF copyright year lists to include 2009
3017         The files named by the following are exempted:
3018             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
3019               test -f "$dst" && { echo "$dst"; continue; }
3020               test -d "$dst" || continue
3021               echo "$dst"/$(basename "$src")
3022             done > exempt
3023             git ls-files tests/unictype >> exempt
3024         In the remaining files, convert to all-interval notation if
3025         - there is already at least one year interval like 2000-2003
3026         - the file is maintained by me
3027         - the file is in lib/uni*/, where that style already prevails
3028         Otherwise, use update-copyright's default.
3029
3030 2009-12-29  Simon Josefsson  <simon@josefsson.org>
3031         and Eric Blake  <ebb9@byu.net>
3032
3033         tests: don't require debug system() to pass
3034         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
3035         * tests/test-rmdir.h (test_rmdir_func): Likewise.
3036         * tests/test-unlink.h (test_unlink_func): Likewise.
3037         * tests/test-fstatat.c (main): ...into callers.
3038         * tests/test-lstat.c (main): Likewise.
3039         * tests/test-rmdir.c (main): Likewise.
3040         * tests/test-unlink.c (main): Likewise.
3041         * tests/test-unlinkat.c (main): Likewise.
3042         * tests/test-areadlink-with-size.c (main): Don't require a
3043         debug-only system call to pass, aiding cross-testing to mingw.
3044         * tests/test-areadlink.c (main): Likewise.
3045         * tests/test-areadlinkat-with-size.c (main): Likewise.
3046         * tests/test-areadlinkat.c (main): Likewise.
3047         * tests/test-canonicalize-lgpl.c (main): Likewise.
3048         * tests/test-canonicalize.c (main): Likewise.
3049         * tests/test-chown.c (main): Likewise.
3050         * tests/test-fchownat.c (main): Likewise.
3051         * tests/test-lchown.c (main): Likewise.
3052         * tests/test-fdutimensat.c (main): Likewise.
3053         * tests/test-futimens.c (main): Likewise.
3054         * tests/test-link.c (main): Likewise.
3055         * tests/test-linkat.c (main): Likewise.
3056         * tests/test-mkdir.c (main): Likewise.
3057         * tests/test-mkdirat.c (main): Likewise.
3058         * tests/test-mkfifo.c (main): Likewise.
3059         * tests/test-mkfifoat.c (main): Likewise.
3060         * tests/test-mknod.c (main): Likewise.
3061         * tests/test-readlink.c (main): Likewise.
3062         * tests/test-remove.c (main): Likewise.
3063         * tests/test-rename.c (main): Likewise.
3064         * tests/test-renameat.c (main): Likewise.
3065         * tests/test-symlink.c (main): Likewise.
3066         * tests/test-symlinkat.c (main): Likewise.
3067         * tests/test-utimens.c (main): Likewise.
3068         * tests/test-utimensat.c (main): Likewise.
3069
3070 2009-12-29  Simon Josefsson  <simon@josefsson.org>
3071
3072         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
3073         on $(UNUSED_PARAMETER_H) to avoid build failure.
3074
3075 2009-12-28  Jim Meyering  <meyering@redhat.com>
3076
3077         update-copyright: you may specify a max. line length other than 72
3078         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3079
3080         maint: use consistent FSF copyright line syntax
3081         * lib/posixtm.c: Add missing comma in FSF copyright line.
3082         * lib/posixtm.h: Likewise.
3083         * lib/getugroups.c: Add missing ", Inc.".
3084
3085         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
3086         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
3087         FSF copyright line.  Remove trailing blanks.
3088
3089 2009-12-28  Eric Blake  <ebb9@byu.net>
3090
3091         test-dup2: reduce dependencies
3092         * modules/cloexec (Configure.ac): Set witness.
3093         * modules/dup2-tests (Depends-on): Drop cloexec.
3094         * tests/test-dup2.c (main): Skip portion of test if cloexec module
3095         not present.
3096         Suggested by Bruno Haible.
3097
3098 2009-12-26  Bruno Haible  <bruno@clisp.org>
3099
3100         Remove an unneeded dependency.
3101         * modules/fseterr (Depends-on): Remove dup2.
3102
3103 2009-12-26  Eric Blake  <ebb9@byu.net>
3104
3105         tests: use macros.h in more places
3106         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
3107         (ASSERT_STREAM): Provide default of stderr.
3108         * tests/test-dirent-safer.c: Include macros.h, using alternate
3109         stream for assertions.
3110         * tests/test-dup-safer.c: Likewise.
3111         * tests/test-freopen-safer.c: Likewise.
3112         * tests/test-getopt.c: Likewise.
3113         * tests/test-openat-safer.c: Likewise.
3114         * tests/test-pipe.c: Likewise.
3115         * tests/test-popen-safer.c: Likewise.
3116         * modules/dirent-safer-tests (Files): Include macros.h.
3117         * modules/unistd-safer-tests (Files): Likewise.
3118         * modules/freopen-safer-tests (Files): Likewise.
3119         * modules/getopt-posix-tests (Files): Likewise.
3120         * modules/openat-safer-tests (Files): Likewise.
3121         * modules/pipe-tests (Files): Likewise.
3122
3123 2009-12-26  Bruno Haible  <bruno@clisp.org>
3124
3125         javacomp: Portability fix.
3126         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
3127         that it also works on Solaris.
3128
3129 2009-12-26  Bruno Haible  <bruno@clisp.org>
3130
3131         localename: Fix storage allocation of gl_locale_name_thread's result.
3132         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
3133         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
3134         all platforms that have 'uselocale'.
3135         (gl_locale_name_thread_unsafe): New function, extracted from
3136         gl_locale_name_thread.
3137         (gl_locale_name_thread): Call struniq on all platforms that have
3138         'uselocale'.
3139         * tests/test-localename.c (test_locale_name_thread): Check that the
3140         resulting strings are permanently allocated.
3141         * modules/localename-tests (Depends-on): Add strdup.
3142
3143 2009-12-26  Bruno Haible  <bruno@clisp.org>
3144
3145         * tests/test-localename.c (categories): Fill in the strings.
3146
3147 2009-12-26  Jim Meyering  <meyering@redhat.com>
3148
3149         isdir: complete the removal of m4/isdir.m4
3150         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
3151
3152         isdir: clean up, since at least grep still uses it
3153         * lib/isdir.c: Include "isdir.h".
3154         (S_ISDIR): Remove now-unneeded definition.
3155         * modules/isdir (Files): Add lib/isdir.h.
3156         * lib/isdir.h: New file, with declaration.
3157         * m4/isdir.m4: Remove file -- unneeded.
3158
3159 2009-12-25  Bruno Haible  <bruno@clisp.org>
3160
3161         selinux-h: Make generated .h files standalone.
3162         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
3163         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
3164         * lib/se-selinux.in.h: Likewise.
3165         * modules/selinux-h (Depends-on): Add unused-parameter.
3166         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
3167         selinux/selinux.h and selinux/context.h.
3168         Suggested by Eric Blake.
3169
3170 2009-12-25  Bruno Haible  <bruno@clisp.org>
3171
3172         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
3173         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
3174         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
3175         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
3176         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
3177
3178 2009-12-24  Bruno Haible  <bruno@clisp.org>
3179
3180         openat: Fix warning.
3181         * lib/openat-proc.c: Include <unistd.h>.
3182
3183 2009-12-24  Bruno Haible  <bruno@clisp.org>
3184
3185         New module 'unused-parameter'.
3186         * build-aux/unused-parameter.h: New file, extracted from earlier
3187         gnulib-common.m4.
3188         * modules/unused-parameter: New file.
3189         * lib/unistr.h: Include unused-parameter.h.
3190         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
3191         _GL_UNUSED.
3192         * modules/unistr/base (Depends-on): Add unused-parameter.
3193
3194 2009-12-24  Bruno Haible  <bruno@clisp.org>
3195
3196         Add missing dependencies to 'extensions' module.
3197         * m4/extensions.m4: Add comment.
3198         * modules/accept4 (Depends-on): Add extensions.
3199         * modules/dup3 (Depends-on): Likewise.
3200         * modules/fcntl (Depends-on): Likewise.
3201         * modules/futimens (Depends-on): Likewise.
3202         * modules/mknod (Depends-on): Likewise.
3203         * modules/pipe2 (Depends-on): Likewise.
3204         * modules/stat-time (Depends-on): Likewise.
3205         * modules/strcasestr-simple (Depends-on): Likewise.
3206         * modules/strsignal (Depends-on): Likewise.
3207         * modules/utimensat (Depends-on): Likewise.
3208         * modules/localcharset (Depends-on): Likewise. Needed because of
3209         gl_FCNTL_O_FLAGS.
3210         * modules/wcrtomb (Depends-on): Likewise. Needed because of
3211         AC_TYPE_MBSTATE_T.
3212         * modules/wcsnrtombs (Depends-on): Likewise.
3213         * modules/wcsrtombs (Depends-on): Likewise.
3214
3215 2009-12-24  Bruno Haible  <bruno@clisp.org>
3216
3217         binary-io: Avoid gcc warning due to SET_BINARY.
3218         * lib/binary-io.h (SET_BINARY): Cast the result to void.
3219         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
3220
3221 2009-12-24  Bruno Haible  <bruno@clisp.org>
3222
3223         Avoid future namespace pollution on glibc systems.
3224         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
3225         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
3226         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
3227         glibc systems.
3228
3229 2009-12-24  Bruno Haible  <bruno@clisp.org>
3230
3231         Refactor common macros used in tests.
3232         * tests/macros.h: New file.
3233         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
3234         and/or <stdlib.h>, if appropriate.
3235         (ASSERT, SIZEOF): Remove macros.
3236         * tests/test-areadlink-with-size.c: Likewise.
3237         * tests/test-areadlinkat.c: Likewise.
3238         * tests/test-areadlinkat-with-size.c: Likewise.
3239         * tests/test-argmatch.c: Likewise.
3240         * tests/test-argv-iter.c: Likewise.
3241         * tests/test-array-mergesort.c: Likewise.
3242         * tests/test-array_list.c: Likewise.
3243         * tests/test-array_oset.c: Likewise.
3244         * tests/test-avltree_list.c: Likewise.
3245         * tests/test-avltree_oset.c: Likewise.
3246         * tests/test-avltreehash_list.c: Likewise.
3247         * tests/test-base64.c: Likewise.
3248         * tests/test-binary-io.c: Likewise.
3249         * tests/test-bitrotate.c: Likewise.
3250         * tests/test-btowc.c: Likewise.
3251         * tests/test-byteswap.c: Likewise.
3252         * tests/test-c-ctype.c: Likewise.
3253         * tests/test-c-stack.c: Likewise.
3254         * tests/test-c-strcasecmp.c: Likewise.
3255         * tests/test-c-strcasestr.c: Likewise.
3256         * tests/test-c-strncasecmp.c: Likewise.
3257         * tests/test-c-strstr.c: Likewise.
3258         * tests/test-canonicalize-lgpl.c: Likewise.
3259         * tests/test-canonicalize.c: Likewise.
3260         * tests/test-carray_list.c: Likewise.
3261         * tests/test-ceilf1.c: Likewise.
3262         * tests/test-ceilf2.c: Likewise.
3263         * tests/test-ceill.c: Likewise.
3264         * tests/test-chown.c: Likewise.
3265         * tests/test-cloexec.c: Likewise.
3266         * tests/test-copy-acl.c: Likewise.
3267         * tests/test-copy-file.c: Likewise.
3268         * tests/test-count-one-bits.c: Likewise.
3269         * tests/test-dprintf-posix.c: Likewise.
3270         * tests/test-dup2.c: Likewise.
3271         * tests/test-dup3.c: Likewise.
3272         * tests/test-duplocale.c: Likewise.
3273         * tests/test-fbufmode.c: Likewise.
3274         * tests/test-fchdir.c: Likewise.
3275         * tests/test-fchownat.c: Likewise.
3276         * tests/test-fcntl-safer.c: Likewise.
3277         * tests/test-fcntl.c: Likewise.
3278         * tests/test-fdopendir.c: Likewise.
3279         * tests/test-fdutimensat.c: Likewise.
3280         * tests/test-fflush2.c: Likewise.
3281         * tests/test-file-has-acl.c: Likewise.
3282         * tests/test-filevercmp.c: Likewise.
3283         * tests/test-flock.c: Likewise.
3284         * tests/test-floorf1.c: Likewise.
3285         * tests/test-floorf2.c: Likewise.
3286         * tests/test-floorl.c: Likewise.
3287         * tests/test-fnmatch.c: Likewise.
3288         * tests/test-fopen.h: Likewise.
3289         * tests/test-fpending.c: Likewise.
3290         * tests/test-fprintf-posix.c: Likewise.
3291         * tests/test-fpurge.c: Likewise.
3292         * tests/test-freadable.c: Likewise.
3293         * tests/test-freadahead.c: Likewise.
3294         * tests/test-freading.c: Likewise.
3295         * tests/test-freadptr.c: Likewise.
3296         * tests/test-freadptr2.c: Likewise.
3297         * tests/test-freadseek.c: Likewise.
3298         * tests/test-freopen.c: Likewise.
3299         * tests/test-frexp.c: Likewise.
3300         * tests/test-frexpl.c: Likewise.
3301         * tests/test-fseek.c: Likewise.
3302         * tests/test-fseeko.c: Likewise.
3303         * tests/test-fstatat.c: Likewise.
3304         * tests/test-fstrcmp.c: Likewise.
3305         * tests/test-fsync.c: Likewise.
3306         * tests/test-ftell.c: Likewise.
3307         * tests/test-ftello.c: Likewise.
3308         * tests/test-func.c: Likewise.
3309         * tests/test-futimens.c: Likewise.
3310         * tests/test-fwritable.c: Likewise.
3311         * tests/test-fwriting.c: Likewise.
3312         * tests/test-getcwd.c: Likewise.
3313         * tests/test-getdate.c: Likewise.
3314         * tests/test-getdelim.c: Likewise.
3315         * tests/test-getdtablesize.c: Likewise.
3316         * tests/test-getgroups.c: Likewise.
3317         * tests/test-getline.c: Likewise.
3318         * tests/test-getndelim2.c: Likewise.
3319         * tests/test-glob.c: Likewise.
3320         * tests/test-hash.c: Likewise.
3321         * tests/test-i-ring.c: Likewise.
3322         * tests/test-iconv-utf.c: Likewise.
3323         * tests/test-iconv.c: Likewise.
3324         * tests/test-idpriv-drop.c: Likewise.
3325         * tests/test-idpriv-droptemp.c: Likewise.
3326         * tests/test-inet_ntop.c: Likewise.
3327         * tests/test-inet_pton.c: Likewise.
3328         * tests/test-isblank.c: Likewise.
3329         * tests/test-isfinite.c: Likewise.
3330         * tests/test-isinf.c: Likewise.
3331         * tests/test-isnan.c: Likewise.
3332         * tests/test-isnand.h: Likewise.
3333         * tests/test-isnanf.h: Likewise.
3334         * tests/test-isnanl.h: Likewise.
3335         * tests/test-lchown.c: Likewise.
3336         * tests/test-ldexpl.c: Likewise.
3337         * tests/test-link.c: Likewise.
3338         * tests/test-linkat.c: Likewise.
3339         * tests/test-linked_list.c: Likewise.
3340         * tests/test-linkedhash_list.c: Likewise.
3341         * tests/test-localename.c: Likewise.
3342         * tests/test-lseek.c: Likewise.
3343         * tests/test-lstat.c: Likewise.
3344         * tests/test-mbmemcasecmp.c: Likewise.
3345         * tests/test-mbmemcasecoll.c: Likewise.
3346         * tests/test-mbrtowc.c: Likewise.
3347         * tests/test-mbscasecmp.c: Likewise.
3348         * tests/test-mbscasestr1.c: Likewise.
3349         * tests/test-mbscasestr2.c: Likewise.
3350         * tests/test-mbscasestr3.c: Likewise.
3351         * tests/test-mbscasestr4.c: Likewise.
3352         * tests/test-mbschr.c: Likewise.
3353         * tests/test-mbscspn.c: Likewise.
3354         * tests/test-mbsinit.c: Likewise.
3355         * tests/test-mbsncasecmp.c: Likewise.
3356         * tests/test-mbsnrtowcs.c: Likewise.
3357         * tests/test-mbspbrk.c: Likewise.
3358         * tests/test-mbspcasecmp.c: Likewise.
3359         * tests/test-mbsrchr.c: Likewise.
3360         * tests/test-mbsrtowcs.c: Likewise.
3361         * tests/test-mbsspn.c: Likewise.
3362         * tests/test-mbsstr1.c: Likewise.
3363         * tests/test-mbsstr2.c: Likewise.
3364         * tests/test-mbsstr3.c: Likewise.
3365         * tests/test-memchr.c: Likewise.
3366         * tests/test-memchr2.c: Likewise.
3367         * tests/test-memcmp.c: Likewise.
3368         * tests/test-memmem.c: Likewise.
3369         * tests/test-memrchr.c: Likewise.
3370         * tests/test-mkdir.c: Likewise.
3371         * tests/test-mkdirat.c: Likewise.
3372         * tests/test-mkfifo.c: Likewise.
3373         * tests/test-mkfifoat.c: Likewise.
3374         * tests/test-mknod.c: Likewise.
3375         * tests/test-nanosleep.c: Likewise.
3376         * tests/test-nl_langinfo.c: Likewise.
3377         * tests/test-obstack-printf.c: Likewise.
3378         * tests/test-open.c: Likewise.
3379         * tests/test-openat.c: Likewise.
3380         * tests/test-pipe-filter-gi1.c: Likewise.
3381         * tests/test-pipe-filter-gi2-main.c: Likewise.
3382         * tests/test-pipe-filter-ii1.c: Likewise.
3383         * tests/test-pipe-filter-ii2-main.c: Likewise.
3384         * tests/test-pipe2.c: Likewise.
3385         * tests/test-popen.h: Likewise.
3386         * tests/test-posixtm.c: Likewise.
3387         * tests/test-pread.c: Likewise.
3388         * tests/test-printf-frexp.c: Likewise.
3389         * tests/test-printf-frexpl.c: Likewise.
3390         * tests/test-printf-posix.c: Likewise.
3391         * tests/test-priv-set.c: Likewise.
3392         * tests/test-quotearg.c: Likewise.
3393         * tests/test-random_r.c: Likewise.
3394         * tests/test-rawmemchr.c: Likewise.
3395         * tests/test-rbtree_list.c: Likewise.
3396         * tests/test-rbtree_oset.c: Likewise.
3397         * tests/test-rbtreehash_list.c: Likewise.
3398         * tests/test-readlink.c: Likewise.
3399         * tests/test-remove.c: Likewise.
3400         * tests/test-rename.c: Likewise.
3401         * tests/test-renameat.c: Likewise.
3402         * tests/test-rmdir.c: Likewise.
3403         * tests/test-round1.c: Likewise.
3404         * tests/test-roundf1.c: Likewise.
3405         * tests/test-roundl.c: Likewise.
3406         * tests/test-safe-alloc.c: Likewise.
3407         * tests/test-sameacls.c: Likewise.
3408         * tests/test-set-mode-acl.c: Likewise.
3409         * tests/test-setenv.c: Likewise.
3410         * tests/test-sigaction.c: Likewise.
3411         * tests/test-signbit.c: Likewise.
3412         * tests/test-sleep.c: Likewise.
3413         * tests/test-snprintf-posix.c: Likewise.
3414         * tests/test-snprintf.c: Likewise.
3415         * tests/test-sprintf-posix.c: Likewise.
3416         * tests/test-stat-time.c: Likewise.
3417         * tests/test-stat.c: Likewise.
3418         * tests/test-strcasestr.c: Likewise.
3419         * tests/test-strchrnul.c: Likewise.
3420         * tests/test-strerror.c: Likewise.
3421         * tests/test-striconv.c: Likewise.
3422         * tests/test-striconveh.c: Likewise.
3423         * tests/test-striconveha.c: Likewise.
3424         * tests/test-strsignal.c: Likewise.
3425         * tests/test-strstr.c: Likewise.
3426         * tests/test-strtod.c: Likewise.
3427         * tests/test-strverscmp.c: Likewise.
3428         * tests/test-symlink.c: Likewise.
3429         * tests/test-symlinkat.c: Likewise.
3430         * tests/test-trunc1.c: Likewise.
3431         * tests/test-trunc2.c: Likewise.
3432         * tests/test-truncf1.c: Likewise.
3433         * tests/test-truncf2.c: Likewise.
3434         * tests/test-truncl.c: Likewise.
3435         * tests/test-uname.c: Likewise.
3436         * tests/test-unlink.c: Likewise.
3437         * tests/test-unlinkat.c: Likewise.
3438         * tests/test-unsetenv.c: Likewise.
3439         * tests/test-usleep.c: Likewise.
3440         * tests/test-utimens.c: Likewise.
3441         * tests/test-utimensat.c: Likewise.
3442         * tests/test-vasnprintf-posix.c: Likewise.
3443         * tests/test-vasnprintf-posix2.c: Likewise.
3444         * tests/test-vasnprintf.c: Likewise.
3445         * tests/test-vasprintf-posix.c: Likewise.
3446         * tests/test-vasprintf.c: Likewise.
3447         * tests/test-vdprintf-posix.c: Likewise.
3448         * tests/test-vfprintf-posix.c: Likewise.
3449         * tests/test-vprintf-posix.c: Likewise.
3450         * tests/test-vsnprintf-posix.c: Likewise.
3451         * tests/test-vsnprintf.c: Likewise.
3452         * tests/test-vsprintf-posix.c: Likewise.
3453         * tests/test-wcrtomb.c: Likewise.
3454         * tests/test-wcsnrtombs.c: Likewise.
3455         * tests/test-wcsrtombs.c: Likewise.
3456         * tests/test-wctype.c: Likewise.
3457         * tests/test-wcwidth.c: Likewise.
3458         * tests/test-xfprintf-posix.c: Likewise.
3459         * tests/test-xmemdup0.c: Likewise.
3460         * tests/test-xprintf-posix.c: Likewise.
3461         * tests/test-xvasprintf.c: Likewise.
3462         * tests/unicase/test-locale-language.c: Likewise.
3463         * tests/unicase/test-mapping-part1.h: Likewise.
3464         * tests/unicase/test-predicate-part1.h: Likewise.
3465         * tests/unicase/test-u8-casecmp.c: Likewise.
3466         * tests/unicase/test-u8-casecoll.c: Likewise.
3467         * tests/unicase/test-u8-casefold.c: Likewise.
3468         * tests/unicase/test-u8-is-cased.c: Likewise.
3469         * tests/unicase/test-u8-is-casefolded.c: Likewise.
3470         * tests/unicase/test-u8-is-lowercase.c: Likewise.
3471         * tests/unicase/test-u8-is-titlecase.c: Likewise.
3472         * tests/unicase/test-u8-is-uppercase.c: Likewise.
3473         * tests/unicase/test-u8-tolower.c: Likewise.
3474         * tests/unicase/test-u8-totitle.c: Likewise.
3475         * tests/unicase/test-u8-toupper.c: Likewise.
3476         * tests/unicase/test-u16-casecmp.c: Likewise.
3477         * tests/unicase/test-u16-casecoll.c: Likewise.
3478         * tests/unicase/test-u16-casefold.c: Likewise.
3479         * tests/unicase/test-u16-is-cased.c: Likewise.
3480         * tests/unicase/test-u16-is-casefolded.c: Likewise.
3481         * tests/unicase/test-u16-is-lowercase.c: Likewise.
3482         * tests/unicase/test-u16-is-titlecase.c: Likewise.
3483         * tests/unicase/test-u16-is-uppercase.c: Likewise.
3484         * tests/unicase/test-u16-tolower.c: Likewise.
3485         * tests/unicase/test-u16-totitle.c: Likewise.
3486         * tests/unicase/test-u16-toupper.c: Likewise.
3487         * tests/unicase/test-u32-casecmp.c: Likewise.
3488         * tests/unicase/test-u32-casecoll.c: Likewise.
3489         * tests/unicase/test-u32-casefold.c: Likewise.
3490         * tests/unicase/test-u32-is-cased.c: Likewise.
3491         * tests/unicase/test-u32-is-casefolded.c: Likewise.
3492         * tests/unicase/test-u32-is-lowercase.c: Likewise.
3493         * tests/unicase/test-u32-is-titlecase.c: Likewise.
3494         * tests/unicase/test-u32-is-uppercase.c: Likewise.
3495         * tests/unicase/test-u32-tolower.c: Likewise.
3496         * tests/unicase/test-u32-totitle.c: Likewise.
3497         * tests/unicase/test-u32-toupper.c: Likewise.
3498         * tests/unicase/test-ulc-casecmp.c: Likewise.
3499         * tests/unicase/test-ulc-casecoll.c: Likewise.
3500         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
3501         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
3502         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
3503         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
3504         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
3505         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
3506         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
3507         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
3508         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
3509         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
3510         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
3511         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
3512         * tests/unictype/test-bidi_byname.c: Likewise.
3513         * tests/unictype/test-bidi_name.c: Likewise.
3514         * tests/unictype/test-bidi_of.c: Likewise.
3515         * tests/unictype/test-bidi_test.c: Likewise.
3516         * tests/unictype/test-block_list.c: Likewise.
3517         * tests/unictype/test-block_of.c: Likewise.
3518         * tests/unictype/test-block_test.c: Likewise.
3519         * tests/unictype/test-categ_and.c: Likewise.
3520         * tests/unictype/test-categ_and_not.c: Likewise.
3521         * tests/unictype/test-categ_byname.c: Likewise.
3522         * tests/unictype/test-categ_name.c: Likewise.
3523         * tests/unictype/test-categ_none.c: Likewise.
3524         * tests/unictype/test-categ_of.c: Likewise.
3525         * tests/unictype/test-categ_or.c: Likewise.
3526         * tests/unictype/test-categ_test_withtable.c: Likewise.
3527         * tests/unictype/test-combining.c: Likewise.
3528         * tests/unictype/test-decdigit.c: Likewise.
3529         * tests/unictype/test-digit.c: Likewise.
3530         * tests/unictype/test-mirror.c: Likewise.
3531         * tests/unictype/test-numeric.c: Likewise.
3532         * tests/unictype/test-pr_byname.c: Likewise.
3533         * tests/unictype/test-pr_test.c: Likewise.
3534         * tests/unictype/test-predicate-part1.h: Likewise.
3535         * tests/unictype/test-scripts.c: Likewise.
3536         * tests/unictype/test-sy_c_ident.c: Likewise.
3537         * tests/unictype/test-sy_java_ident.c: Likewise.
3538         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
3539         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
3540         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
3541         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
3542         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
3543         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
3544         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
3545         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
3546         * tests/uninorm/test-canonical-decomposition.c: Likewise.
3547         * tests/uninorm/test-compat-decomposition.c: Likewise.
3548         * tests/uninorm/test-composition.c: Likewise.
3549         * tests/uninorm/test-decomposing-form.c: Likewise.
3550         * tests/uninorm/test-decomposition.c: Likewise.
3551         * tests/uninorm/test-u8-nfc.c: Likewise.
3552         * tests/uninorm/test-u8-nfd.c: Likewise.
3553         * tests/uninorm/test-u8-nfkc.c: Likewise.
3554         * tests/uninorm/test-u8-nfkd.c: Likewise.
3555         * tests/uninorm/test-u8-normcmp.c: Likewise.
3556         * tests/uninorm/test-u8-normcoll.c: Likewise.
3557         * tests/uninorm/test-u16-nfc.c: Likewise.
3558         * tests/uninorm/test-u16-nfd.c: Likewise.
3559         * tests/uninorm/test-u16-nfkc.c: Likewise.
3560         * tests/uninorm/test-u16-nfkd.c: Likewise.
3561         * tests/uninorm/test-u16-normcmp.c: Likewise.
3562         * tests/uninorm/test-u16-normcoll.c: Likewise.
3563         * tests/uninorm/test-u32-nfc.c: Likewise.
3564         * tests/uninorm/test-u32-nfd.c: Likewise.
3565         * tests/uninorm/test-u32-nfkc.c: Likewise.
3566         * tests/uninorm/test-u32-nfkd.c: Likewise.
3567         * tests/uninorm/test-u32-normalize-big.c: Likewise.
3568         * tests/uninorm/test-u32-normcmp.c: Likewise.
3569         * tests/uninorm/test-u32-normcoll.c: Likewise.
3570         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
3571         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
3572         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
3573         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
3574         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
3575         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
3576         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
3577         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
3578         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
3579         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
3580         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
3581         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
3582         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
3583         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
3584         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
3585         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
3586         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
3587         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
3588         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
3589         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
3590         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
3591         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
3592         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
3593         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
3594         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
3595         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
3596         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
3597         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
3598         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
3599         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
3600         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
3601         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
3602         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
3603         * tests/uniwidth/test-u8-strwidth.c: Likewise.
3604         * tests/uniwidth/test-u8-width.c: Likewise.
3605         * tests/uniwidth/test-u16-strwidth.c: Likewise.
3606         * tests/uniwidth/test-u16-width.c: Likewise.
3607         * tests/uniwidth/test-u32-strwidth.c: Likewise.
3608         * tests/uniwidth/test-u32-width.c: Likewise.
3609         * tests/uniwidth/test-uc_width.c: Likewise.
3610         * tests/uniwidth/test-uc_width2.c: Likewise.
3611         * modules/acl-tests (Files): Add tests/macros.h.
3612         * modules/areadlink-tests (Files): Likewise.
3613         * modules/areadlink-with-size-tests (Files): Likewise.
3614         * modules/areadlinkat-tests (Files): Likewise.
3615         * modules/areadlinkat-with-size-tests (Files): Likewise.
3616         * modules/argmatch-tests (Files): Likewise.
3617         * modules/argv-iter-tests (Files): Likewise.
3618         * modules/array-list-tests (Files): Likewise.
3619         * modules/array-mergesort-tests (Files): Likewise.
3620         * modules/array-oset-tests (Files): Likewise.
3621         * modules/avltree-list-tests (Files): Likewise.
3622         * modules/avltree-oset-tests (Files): Likewise.
3623         * modules/avltreehash-list-tests (Files): Likewise.
3624         * modules/base64-tests (Files): Likewise.
3625         * modules/binary-io-tests (Files): Likewise.
3626         * modules/bitrotate-tests (Files): Likewise.
3627         * modules/btowc-tests (Files): Likewise.
3628         * modules/byteswap-tests (Files): Likewise.
3629         * modules/c-ctype-tests (Files): Likewise.
3630         * modules/c-stack-tests (Files): Likewise.
3631         * modules/c-strcase-tests (Files): Likewise.
3632         * modules/c-strcasestr-tests (Files): Likewise.
3633         * modules/c-strstr-tests (Files): Likewise.
3634         * modules/canonicalize-lgpl-tests (Files): Likewise.
3635         * modules/canonicalize-tests (Files): Likewise.
3636         * modules/carray-list-tests (Files): Likewise.
3637         * modules/ceilf-tests (Files): Likewise.
3638         * modules/ceill-tests (Files): Likewise.
3639         * modules/chown-tests (Files): Likewise.
3640         * modules/cloexec-tests (Files): Likewise.
3641         * modules/copy-file-tests (Files): Likewise.
3642         * modules/count-one-bits-tests (Files): Likewise.
3643         * modules/dprintf-posix-tests (Files): Likewise.
3644         * modules/dup2-tests (Files): Likewise.
3645         * modules/dup3-tests (Files): Likewise.
3646         * modules/duplocale-tests (Files): Likewise.
3647         * modules/fbufmode-tests (Files): Likewise.
3648         * modules/fchdir-tests (Files): Likewise.
3649         * modules/fcntl-safer-tests (Files): Likewise.
3650         * modules/fcntl-tests (Files): Likewise.
3651         * modules/fdopendir-tests (Files): Likewise.
3652         * modules/fdutimensat-tests (Files): Likewise.
3653         * modules/fflush-tests (Files): Likewise.
3654         * modules/filevercmp-tests (Files): Likewise.
3655         * modules/flock-tests (Files): Likewise.
3656         * modules/floorf-tests (Files): Likewise.
3657         * modules/floorl-tests (Files): Likewise.
3658         * modules/fnmatch-tests (Files): Likewise.
3659         * modules/fopen-safer-tests (Files): Likewise.
3660         * modules/fopen-tests (Files): Likewise.
3661         * modules/fpending-tests (Files): Likewise.
3662         * modules/fprintf-posix-tests (Files): Likewise.
3663         * modules/fpurge-tests (Files): Likewise.
3664         * modules/freadable-tests (Files): Likewise.
3665         * modules/freadahead-tests (Files): Likewise.
3666         * modules/freading-tests (Files): Likewise.
3667         * modules/freadptr-tests (Files): Likewise.
3668         * modules/freadseek-tests (Files): Likewise.
3669         * modules/freopen-tests (Files): Likewise.
3670         * modules/frexp-nolibm-tests (Files): Likewise.
3671         * modules/frexp-tests (Files): Likewise.
3672         * modules/frexpl-nolibm-tests (Files): Likewise.
3673         * modules/frexpl-tests (Files): Likewise.
3674         * modules/fseek-tests (Files): Likewise.
3675         * modules/fseeko-tests (Files): Likewise.
3676         * modules/fstrcmp-tests (Files): Likewise.
3677         * modules/fsync-tests (Files): Likewise.
3678         * modules/ftell-tests (Files): Likewise.
3679         * modules/ftello-tests (Files): Likewise.
3680         * modules/func-tests (Files): Likewise.
3681         * modules/futimens-tests (Files): Likewise.
3682         * modules/fwritable-tests (Files): Likewise.
3683         * modules/fwriting-tests (Files): Likewise.
3684         * modules/getcwd-tests (Files): Likewise.
3685         * modules/getdate-tests (Files): Likewise.
3686         * modules/getdelim-tests (Files): Likewise.
3687         * modules/getdtablesize-tests (Files): Likewise.
3688         * modules/getgroups-tests (Files): Likewise.
3689         * modules/getline-tests (Files): Likewise.
3690         * modules/getndelim2-tests (Files): Likewise.
3691         * modules/glob-tests (Files): Likewise.
3692         * modules/hash-tests (Files): Likewise.
3693         * modules/i-ring-tests (Files): Likewise.
3694         * modules/iconv-tests (Files): Likewise.
3695         * modules/iconv_open-utf-tests (Files): Likewise.
3696         * modules/idpriv-drop-tests (Files): Likewise.
3697         * modules/idpriv-droptemp-tests (Files): Likewise.
3698         * modules/inet_ntop-tests (Files): Likewise.
3699         * modules/inet_pton-tests (Files): Likewise.
3700         * modules/isblank-tests (Files): Likewise.
3701         * modules/isfinite-tests (Files): Likewise.
3702         * modules/isinf-tests (Files): Likewise.
3703         * modules/isnan-tests (Files): Likewise.
3704         * modules/isnand-nolibm-tests (Files): Likewise.
3705         * modules/isnand-tests (Files): Likewise.
3706         * modules/isnanf-nolibm-tests (Files): Likewise.
3707         * modules/isnanf-tests (Files): Likewise.
3708         * modules/isnanl-nolibm-tests (Files): Likewise.
3709         * modules/isnanl-tests (Files): Likewise.
3710         * modules/lchown-tests (Files): Likewise.
3711         * modules/ldexpl-tests (Files): Likewise.
3712         * modules/link-tests (Files): Likewise.
3713         * modules/linkat-tests (Files): Likewise.
3714         * modules/linked-list-tests (Files): Likewise.
3715         * modules/linkedhash-list-tests (Files): Likewise.
3716         * modules/localename-tests (Files): Likewise.
3717         * modules/lseek-tests (Files): Likewise.
3718         * modules/lstat-tests (Files): Likewise.
3719         * modules/mbmemcasecmp-tests (Files): Likewise.
3720         * modules/mbmemcasecoll-tests (Files): Likewise.
3721         * modules/mbrtowc-tests (Files): Likewise.
3722         * modules/mbscasecmp-tests (Files): Likewise.
3723         * modules/mbscasestr-tests (Files): Likewise.
3724         * modules/mbschr-tests (Files): Likewise.
3725         * modules/mbscspn-tests (Files): Likewise.
3726         * modules/mbsinit-tests (Files): Likewise.
3727         * modules/mbsncasecmp-tests (Files): Likewise.
3728         * modules/mbsnrtowcs-tests (Files): Likewise.
3729         * modules/mbspbrk-tests (Files): Likewise.
3730         * modules/mbspcasecmp-tests (Files): Likewise.
3731         * modules/mbsrchr-tests (Files): Likewise.
3732         * modules/mbsrtowcs-tests (Files): Likewise.
3733         * modules/mbsspn-tests (Files): Likewise.
3734         * modules/mbsstr-tests (Files): Likewise.
3735         * modules/memchr-tests (Files): Likewise.
3736         * modules/memchr2-tests (Files): Likewise.
3737         * modules/memcmp-tests (Files): Likewise.
3738         * modules/memmem-tests (Files): Likewise.
3739         * modules/memrchr-tests (Files): Likewise.
3740         * modules/mkdir-tests (Files): Likewise.
3741         * modules/mkfifo-tests (Files): Likewise.
3742         * modules/mkfifoat-tests (Files): Likewise.
3743         * modules/mknod-tests (Files): Likewise.
3744         * modules/nanosleep-tests (Files): Likewise.
3745         * modules/nl_langinfo-tests (Files): Likewise.
3746         * modules/obstack-printf-tests (Files): Likewise.
3747         * modules/open-tests (Files): Likewise.
3748         * modules/openat-tests (Files): Likewise.
3749         * modules/pipe-filter-gi-tests (Files): Likewise.
3750         * modules/pipe-filter-ii-tests (Files): Likewise.
3751         * modules/pipe2-tests (Files): Likewise.
3752         * modules/popen-safer-tests (Files): Likewise.
3753         * modules/popen-tests (Files): Likewise.
3754         * modules/posixtm-tests (Files): Likewise.
3755         * modules/pread-tests (Files): Likewise.
3756         * modules/printf-frexp-tests (Files): Likewise.
3757         * modules/printf-frexpl-tests (Files): Likewise.
3758         * modules/printf-posix-tests (Files): Likewise.
3759         * modules/priv-set-tests (Files): Likewise.
3760         * modules/quotearg-tests (Files): Likewise.
3761         * modules/random_r-tests (Files): Likewise.
3762         * modules/rawmemchr-tests (Files): Likewise.
3763         * modules/rbtree-list-tests (Files): Likewise.
3764         * modules/rbtree-oset-tests (Files): Likewise.
3765         * modules/rbtreehash-list-tests (Files): Likewise.
3766         * modules/readlink-tests (Files): Likewise.
3767         * modules/remove-tests (Files): Likewise.
3768         * modules/rename-tests (Files): Likewise.
3769         * modules/renameat-tests (Files): Likewise.
3770         * modules/rmdir-tests (Files): Likewise.
3771         * modules/round-tests (Files): Likewise.
3772         * modules/roundf-tests (Files): Likewise.
3773         * modules/roundl-tests (Files): Likewise.
3774         * modules/safe-alloc-tests (Files): Likewise.
3775         * modules/setenv-tests (Files): Likewise.
3776         * modules/sigaction-tests (Files): Likewise.
3777         * modules/signbit-tests (Files): Likewise.
3778         * modules/sleep-tests (Files): Likewise.
3779         * modules/snprintf-posix-tests (Files): Likewise.
3780         * modules/snprintf-tests (Files): Likewise.
3781         * modules/sprintf-posix-tests (Files): Likewise.
3782         * modules/stat-tests (Files): Likewise.
3783         * modules/stat-time-tests (Files): Likewise.
3784         * modules/strcasestr-tests (Files): Likewise.
3785         * modules/strchrnul-tests (Files): Likewise.
3786         * modules/strerror-tests (Files): Likewise.
3787         * modules/striconv-tests (Files): Likewise.
3788         * modules/striconveh-tests (Files): Likewise.
3789         * modules/striconveha-tests (Files): Likewise.
3790         * modules/strsignal-tests (Files): Likewise.
3791         * modules/strstr-tests (Files): Likewise.
3792         * modules/strtod-tests (Files): Likewise.
3793         * modules/strverscmp-tests (Files): Likewise.
3794         * modules/symlink-tests (Files): Likewise.
3795         * modules/symlinkat-tests (Files): Likewise.
3796         * modules/trunc-tests (Files): Likewise.
3797         * modules/truncf-tests (Files): Likewise.
3798         * modules/truncl-tests (Files): Likewise.
3799         * modules/uname-tests (Files): Likewise.
3800         * modules/unicase/cased-tests (Files): Likewise.
3801         * modules/unicase/ignorable-tests (Files): Likewise.
3802         * modules/unicase/locale-language-tests (Files): Likewise.
3803         * modules/unicase/tolower-tests (Files): Likewise.
3804         * modules/unicase/totitle-tests (Files): Likewise.
3805         * modules/unicase/toupper-tests (Files): Likewise.
3806         * modules/unicase/u8-casecmp-tests (Files): Likewise.
3807         * modules/unicase/u8-casecoll-tests (Files): Likewise.
3808         * modules/unicase/u8-casefold-tests (Files): Likewise.
3809         * modules/unicase/u8-is-cased-tests (Files): Likewise.
3810         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
3811         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
3812         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
3813         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
3814         * modules/unicase/u8-tolower-tests (Files): Likewise.
3815         * modules/unicase/u8-totitle-tests (Files): Likewise.
3816         * modules/unicase/u8-toupper-tests (Files): Likewise.
3817         * modules/unicase/u16-casecmp-tests (Files): Likewise.
3818         * modules/unicase/u16-casecoll-tests (Files): Likewise.
3819         * modules/unicase/u16-casefold-tests (Files): Likewise.
3820         * modules/unicase/u16-is-cased-tests (Files): Likewise.
3821         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
3822         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
3823         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
3824         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
3825         * modules/unicase/u16-tolower-tests (Files): Likewise.
3826         * modules/unicase/u16-totitle-tests (Files): Likewise.
3827         * modules/unicase/u16-toupper-tests (Files): Likewise.
3828         * modules/unicase/u32-casecmp-tests (Files): Likewise.
3829         * modules/unicase/u32-casecoll-tests (Files): Likewise.
3830         * modules/unicase/u32-casefold-tests (Files): Likewise.
3831         * modules/unicase/u32-is-cased-tests (Files): Likewise.
3832         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
3833         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
3834         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
3835         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
3836         * modules/unicase/u32-tolower-tests (Files): Likewise.
3837         * modules/unicase/u32-totitle-tests (Files): Likewise.
3838         * modules/unicase/u32-toupper-tests (Files): Likewise.
3839         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
3840         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
3841         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
3842         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
3843         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
3844         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
3845         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
3846         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
3847         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
3848         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
3849         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
3850         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
3851         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
3852         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
3853         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
3854         * modules/unictype/bidicategory-name-tests (Files): Likewise.
3855         * modules/unictype/bidicategory-of-tests (Files): Likewise.
3856         * modules/unictype/bidicategory-test-tests (Files): Likewise.
3857         * modules/unictype/block-list-tests (Files): Likewise.
3858         * modules/unictype/block-of-tests (Files): Likewise.
3859         * modules/unictype/block-test-tests (Files): Likewise.
3860         * modules/unictype/category-C-tests (Files): Likewise.
3861         * modules/unictype/category-Cc-tests (Files): Likewise.
3862         * modules/unictype/category-Cf-tests (Files): Likewise.
3863         * modules/unictype/category-Cn-tests (Files): Likewise.
3864         * modules/unictype/category-Co-tests (Files): Likewise.
3865         * modules/unictype/category-Cs-tests (Files): Likewise.
3866         * modules/unictype/category-L-tests (Files): Likewise.
3867         * modules/unictype/category-Ll-tests (Files): Likewise.
3868         * modules/unictype/category-Lm-tests (Files): Likewise.
3869         * modules/unictype/category-Lo-tests (Files): Likewise.
3870         * modules/unictype/category-Lt-tests (Files): Likewise.
3871         * modules/unictype/category-Lu-tests (Files): Likewise.
3872         * modules/unictype/category-M-tests (Files): Likewise.
3873         * modules/unictype/category-Mc-tests (Files): Likewise.
3874         * modules/unictype/category-Me-tests (Files): Likewise.
3875         * modules/unictype/category-Mn-tests (Files): Likewise.
3876         * modules/unictype/category-N-tests (Files): Likewise.
3877         * modules/unictype/category-Nd-tests (Files): Likewise.
3878         * modules/unictype/category-Nl-tests (Files): Likewise.
3879         * modules/unictype/category-No-tests (Files): Likewise.
3880         * modules/unictype/category-P-tests (Files): Likewise.
3881         * modules/unictype/category-Pc-tests (Files): Likewise.
3882         * modules/unictype/category-Pd-tests (Files): Likewise.
3883         * modules/unictype/category-Pe-tests (Files): Likewise.
3884         * modules/unictype/category-Pf-tests (Files): Likewise.
3885         * modules/unictype/category-Pi-tests (Files): Likewise.
3886         * modules/unictype/category-Po-tests (Files): Likewise.
3887         * modules/unictype/category-Ps-tests (Files): Likewise.
3888         * modules/unictype/category-S-tests (Files): Likewise.
3889         * modules/unictype/category-Sc-tests (Files): Likewise.
3890         * modules/unictype/category-Sk-tests (Files): Likewise.
3891         * modules/unictype/category-Sm-tests (Files): Likewise.
3892         * modules/unictype/category-So-tests (Files): Likewise.
3893         * modules/unictype/category-Z-tests (Files): Likewise.
3894         * modules/unictype/category-Zl-tests (Files): Likewise.
3895         * modules/unictype/category-Zp-tests (Files): Likewise.
3896         * modules/unictype/category-Zs-tests (Files): Likewise.
3897         * modules/unictype/category-and-not-tests (Files): Likewise.
3898         * modules/unictype/category-and-tests (Files): Likewise.
3899         * modules/unictype/category-byname-tests (Files): Likewise.
3900         * modules/unictype/category-name-tests (Files): Likewise.
3901         * modules/unictype/category-none-tests (Files): Likewise.
3902         * modules/unictype/category-of-tests (Files): Likewise.
3903         * modules/unictype/category-or-tests (Files): Likewise.
3904         * modules/unictype/category-test-withtable-tests (Files): Likewise.
3905         * modules/unictype/combining-class-tests (Files): Likewise.
3906         * modules/unictype/ctype-alnum-tests (Files): Likewise.
3907         * modules/unictype/ctype-alpha-tests (Files): Likewise.
3908         * modules/unictype/ctype-blank-tests (Files): Likewise.
3909         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
3910         * modules/unictype/ctype-digit-tests (Files): Likewise.
3911         * modules/unictype/ctype-graph-tests (Files): Likewise.
3912         * modules/unictype/ctype-lower-tests (Files): Likewise.
3913         * modules/unictype/ctype-print-tests (Files): Likewise.
3914         * modules/unictype/ctype-punct-tests (Files): Likewise.
3915         * modules/unictype/ctype-space-tests (Files): Likewise.
3916         * modules/unictype/ctype-upper-tests (Files): Likewise.
3917         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
3918         * modules/unictype/decimal-digit-tests (Files): Likewise.
3919         * modules/unictype/digit-tests (Files): Likewise.
3920         * modules/unictype/mirror-tests (Files): Likewise.
3921         * modules/unictype/numeric-tests (Files): Likewise.
3922         * modules/unictype/property-alphabetic-tests (Files): Likewise.
3923         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
3924         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
3925         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
3926         Likewise.
3927         * modules/unictype/property-bidi-block-separator-tests (Files):
3928         Likewise.
3929         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
3930         Likewise.
3931         * modules/unictype/property-bidi-common-separator-tests (Files):
3932         Likewise.
3933         * modules/unictype/property-bidi-control-tests (Files): Likewise.
3934         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
3935         Likewise.
3936         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
3937         Likewise.
3938         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
3939         Likewise.
3940         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
3941         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
3942         Likewise.
3943         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
3944         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
3945         Likewise.
3946         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
3947         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
3948         * modules/unictype/property-bidi-segment-separator-tests (Files):
3949         Likewise.
3950         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
3951         * modules/unictype/property-byname-tests (Files): Likewise.
3952         * modules/unictype/property-combining-tests (Files): Likewise.
3953         * modules/unictype/property-composite-tests (Files): Likewise.
3954         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
3955         * modules/unictype/property-dash-tests (Files): Likewise.
3956         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
3957         * modules/unictype/property-default-ignorable-code-point-tests (Files):
3958         Likewise.
3959         * modules/unictype/property-deprecated-tests (Files): Likewise.
3960         * modules/unictype/property-diacritic-tests (Files): Likewise.
3961         * modules/unictype/property-extender-tests (Files): Likewise.
3962         * modules/unictype/property-format-control-tests (Files): Likewise.
3963         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
3964         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
3965         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
3966         * modules/unictype/property-hex-digit-tests (Files): Likewise.
3967         * modules/unictype/property-hyphen-tests (Files): Likewise.
3968         * modules/unictype/property-id-continue-tests (Files): Likewise.
3969         * modules/unictype/property-id-start-tests (Files): Likewise.
3970         * modules/unictype/property-ideographic-tests (Files): Likewise.
3971         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
3972         * modules/unictype/property-ids-trinary-operator-tests (Files):
3973         Likewise.
3974         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
3975         * modules/unictype/property-iso-control-tests (Files): Likewise.
3976         * modules/unictype/property-join-control-tests (Files): Likewise.
3977         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
3978         * modules/unictype/property-line-separator-tests (Files): Likewise.
3979         * modules/unictype/property-logical-order-exception-tests (Files):
3980         Likewise.
3981         * modules/unictype/property-lowercase-tests (Files): Likewise.
3982         * modules/unictype/property-math-tests (Files): Likewise.
3983         * modules/unictype/property-non-break-tests (Files): Likewise.
3984         * modules/unictype/property-not-a-character-tests (Files): Likewise.
3985         * modules/unictype/property-numeric-tests (Files): Likewise.
3986         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
3987         * modules/unictype/property-other-default-ignorable-code-point-tests
3988         (Files): Likewise.
3989         * modules/unictype/property-other-grapheme-extend-tests (Files):
3990         Likewise.
3991         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
3992         * modules/unictype/property-other-id-start-tests (Files): Likewise.
3993         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
3994         * modules/unictype/property-other-math-tests (Files): Likewise.
3995         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
3996         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
3997         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
3998         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
3999         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
4000         * modules/unictype/property-private-use-tests (Files): Likewise.
4001         * modules/unictype/property-punctuation-tests (Files): Likewise.
4002         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
4003         * modules/unictype/property-radical-tests (Files): Likewise.
4004         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
4005         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
4006         * modules/unictype/property-space-tests (Files): Likewise.
4007         * modules/unictype/property-terminal-punctuation-tests (Files):
4008         Likewise.
4009         * modules/unictype/property-test-tests (Files): Likewise.
4010         * modules/unictype/property-titlecase-tests (Files): Likewise.
4011         * modules/unictype/property-unassigned-code-value-tests (Files):
4012         Likewise.
4013         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
4014         * modules/unictype/property-uppercase-tests (Files): Likewise.
4015         * modules/unictype/property-variation-selector-tests (Files): Likewise.
4016         * modules/unictype/property-white-space-tests (Files): Likewise.
4017         * modules/unictype/property-xid-continue-tests (Files): Likewise.
4018         * modules/unictype/property-xid-start-tests (Files): Likewise.
4019         * modules/unictype/property-zero-width-tests (Files): Likewise.
4020         * modules/unictype/scripts-tests (Files): Likewise.
4021         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
4022         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
4023         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
4024         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
4025         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
4026         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
4027         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
4028         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
4029         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
4030         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
4031         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
4032         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
4033         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
4034         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
4035         * modules/uninorm/composition-tests (Files): Likewise.
4036         * modules/uninorm/decomposing-form-tests (Files): Likewise.
4037         * modules/uninorm/decomposition-tests (Files): Likewise.
4038         * modules/uninorm/filter-tests (Files): Likewise.
4039         * modules/uninorm/nfc-tests (Files): Likewise.
4040         * modules/uninorm/nfd-tests (Files): Likewise.
4041         * modules/uninorm/nfkc-tests (Files): Likewise.
4042         * modules/uninorm/nfkd-tests (Files): Likewise.
4043         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
4044         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
4045         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
4046         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
4047         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
4048         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
4049         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
4050         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
4051         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
4052         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
4053         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
4054         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
4055         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
4056         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
4057         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
4058         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
4059         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
4060         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
4061         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
4062         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
4063         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
4064         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
4065         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
4066         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
4067         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
4068         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
4069         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
4070         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
4071         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
4072         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
4073         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
4074         * modules/uniwidth/u8-width-tests (Files): Likewise.
4075         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
4076         * modules/uniwidth/u16-width-tests (Files): Likewise.
4077         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
4078         * modules/uniwidth/u32-width-tests (Files): Likewise.
4079         * modules/uniwidth/width-tests (Files): Likewise.
4080         * modules/unlink-tests (Files): Likewise.
4081         * modules/unsetenv-tests (Files): Likewise.
4082         * modules/usleep-tests (Files): Likewise.
4083         * modules/utimens-tests (Files): Likewise.
4084         * modules/utimensat-tests (Files): Likewise.
4085         * modules/vasnprintf-posix-tests (Files): Likewise.
4086         * modules/vasnprintf-tests (Files): Likewise.
4087         * modules/vasprintf-posix-tests (Files): Likewise.
4088         * modules/vasprintf-tests (Files): Likewise.
4089         * modules/vdprintf-posix-tests (Files): Likewise.
4090         * modules/vfprintf-posix-tests (Files): Likewise.
4091         * modules/vprintf-posix-tests (Files): Likewise.
4092         * modules/vsnprintf-posix-tests (Files): Likewise.
4093         * modules/vsnprintf-tests (Files): Likewise.
4094         * modules/vsprintf-posix-tests (Files): Likewise.
4095         * modules/wcrtomb-tests (Files): Likewise.
4096         * modules/wcsnrtombs-tests (Files): Likewise.
4097         * modules/wcsrtombs-tests (Files): Likewise.
4098         * modules/wctype-tests (Files): Likewise.
4099         * modules/wcwidth-tests (Files): Likewise.
4100         * modules/xmemdup0-tests (Files): Likewise.
4101         * modules/xprintf-posix-tests (Files): Likewise.
4102         * modules/xvasprintf-tests (Files): Likewise.
4103
4104 2009-12-24  Eric Blake  <ebb9@byu.net>
4105
4106         test-nanosleep: fix typo
4107         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
4108         patch.
4109         Reported by Bruno Haible.
4110
4111 2009-12-24  Bruno Haible  <bruno@clisp.org>
4112
4113         Reduce namespace pollution on glibc systems.
4114         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
4115         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
4116         systems.
4117         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
4118         <getopt.h> on glibc systems.
4119         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
4120         systems.
4121         * lib/fcntl.c: Include <unistd.h> here instead.
4122
4123 2009-12-24  Bruno Haible  <bruno@clisp.org>
4124
4125         * lib/stdlib.in.h (includes): Fix typo in today's commit.
4126
4127 2009-12-24  Eric Blake  <ebb9@byu.net>
4128
4129         tests: add signature checks
4130         * tests/signature.h (SIGNATURE_CHECK): New file.
4131         * modules/atexit-tests (Files): Use it.
4132         * modules/btowc-tests (Files): Likewise.
4133         * modules/canonicalize-lgpl-tests (Files): Likewise.
4134         * modules/ceilf-tests (Files): Likewise.
4135         * modules/ceill-tests (Files): Likewise.
4136         * modules/chown-tests (Files): Likewise.
4137         * modules/dprintf-posix-tests (Files): Likewise.
4138         * modules/dup2-tests (Files): Likewise.
4139         * modules/dup3-tests (Files): Likewise.
4140         * modules/duplocale-tests (Files): Likewise.
4141         * modules/fchdir-tests (Files): Likewise.
4142         * modules/fcntl-tests (Files): Likewise.
4143         * modules/fdopendir-tests (Files): Likewise.
4144         * modules/fflush-tests (Files): Likewise.
4145         * modules/flock-tests (Files): Likewise.
4146         * modules/floorf-tests (Files): Likewise.
4147         * modules/floorl-tests (Files): Likewise.
4148         * modules/fnmatch-tests (Files): Likewise.
4149         * modules/fopen-tests (Files): Likewise.
4150         * modules/fprintf-posix-tests (Files): Likewise.
4151         * modules/freopen-tests (Files): Likewise.
4152         * modules/frexp-nolibm-tests (Files): Likewise.
4153         * modules/frexp-tests (Files): Likewise.
4154         * modules/frexpl-nolibm-tests (Files): Likewise.
4155         * modules/frexpl-tests (Files): Likewise.
4156         * modules/fseek-tests (Files): Likewise.
4157         * modules/fseeko-tests (Files): Likewise.
4158         * modules/fsync-tests (Files): Likewise.
4159         * modules/ftell-tests (Files): Likewise.
4160         * modules/ftello-tests (Files): Likewise.
4161         * modules/futimens-tests (Files): Likewise.
4162         * modules/getaddrinfo-tests (Files): Likewise.
4163         * modules/getcwd-tests (Files): Likewise.
4164         * modules/getdelim-tests (Files): Likewise.
4165         * modules/getdtablesize-tests (Files): Likewise.
4166         * modules/getgroups-tests (Files): Likewise.
4167         * modules/gethostname-tests (Files): Likewise.
4168         * modules/getline-tests (Files): Likewise.
4169         * modules/getopt-posix-tests (Files): Likewise.
4170         * modules/gettimeofday-tests (Files): Likewise.
4171         * modules/glob-tests (Files): Likewise.
4172         * modules/iconv-tests (Files): Likewise.
4173         * modules/inet_ntop-tests (Files): Likewise.
4174         * modules/inet_pton-tests (Files): Likewise.
4175         * modules/isblank-tests (Files): Likewise.
4176         * modules/lchown-tests (Files): Likewise.
4177         * modules/ldexpl-tests (Files): Likewise.
4178         * modules/link-tests (Files): Likewise.
4179         * modules/linkat-tests (Files): Likewise.
4180         * modules/lseek-tests (Files): Likewise.
4181         * modules/lstat-tests (Files): Likewise.
4182         * modules/mbrtowc-tests (Files): Likewise.
4183         * modules/mbsinit-tests (Files): Likewise.
4184         * modules/mbsnrtowcs-tests (Files): Likewise.
4185         * modules/mbsrtowcs-tests (Files): Likewise.
4186         * modules/memchr-tests (Files): Likewise.
4187         * modules/memcmp-tests (Files): Likewise.
4188         * modules/memmem-tests (Files): Likewise.
4189         * modules/memrchr-tests (Files): Likewise.
4190         * modules/mkdir-tests (Files): Likewise.
4191         * modules/mkfifo-tests (Files): Likewise.
4192         * modules/mkfifoat-tests (Files): Likewise.
4193         * modules/mknod-tests (Files): Likewise.
4194         * modules/nanosleep-tests (Files): Likewise.
4195         * modules/nl_langinfo-tests (Files): Likewise.
4196         * modules/obstack-printf-tests (Files): Likewise.
4197         * modules/open-tests (Files): Likewise.
4198         * modules/openat-tests (Files): Likewise.
4199         * modules/perror-tests (Files): Likewise.
4200         * modules/pipe2-tests (Files): Likewise.
4201         * modules/poll-tests (Files): Likewise.
4202         * modules/popen-tests (Files): Likewise.
4203         * modules/posix_spawn-tests (Files): Likewise.
4204         * modules/posix_spawnp-tests (Files): Likewise.
4205         * modules/pread-tests (Files): Likewise.
4206         * modules/printf-posix-tests (Files): Likewise.
4207         * modules/pty-tests (Files): Likewise.
4208         * modules/random_r-tests (Files): Likewise.
4209         * modules/rawmemchr-tests (Files): Likewise.
4210         * modules/readlink-tests (Files): Likewise.
4211         * modules/remove-tests (Files): Likewise.
4212         * modules/rename-tests (Files): Likewise.
4213         * modules/renameat-tests (Files): Likewise.
4214         * modules/rmdir-tests (Files): Likewise.
4215         * modules/round-tests (Files): Likewise.
4216         * modules/roundf-tests (Files): Likewise.
4217         * modules/roundl-tests (Files): Likewise.
4218         * modules/select-tests (Files): Likewise.
4219         * modules/setenv-tests (Files): Likewise.
4220         * modules/sigaction-tests (Files): Likewise.
4221         * modules/sleep-tests (Files): Likewise.
4222         * modules/snprintf-posix-tests (Files): Likewise.
4223         * modules/snprintf-tests (Files): Likewise.
4224         * modules/sprintf-posix-tests (Files): Likewise.
4225         * modules/stat-tests (Files): Likewise.
4226         * modules/strcasestr-tests (Files): Likewise.
4227         * modules/strchrnul-tests (Files): Likewise.
4228         * modules/strerror-tests (Files): Likewise.
4229         * modules/strsignal-tests (Files): Likewise.
4230         * modules/strstr-tests (Files): Likewise.
4231         * modules/strtod-tests (Files): Likewise.
4232         * modules/strverscmp-tests (Files): Likewise.
4233         * modules/symlink-tests (Files): Likewise.
4234         * modules/symlinkat-tests (Files): Likewise.
4235         * modules/times-tests (Files): Likewise.
4236         * modules/trunc-tests (Files): Likewise.
4237         * modules/truncf-tests (Files): Likewise.
4238         * modules/truncl-tests (Files): Likewise.
4239         * modules/tsearch-tests (Files): Likewise.
4240         * modules/uname-tests (Files): Likewise.
4241         * modules/unlink-tests (Files): Likewise.
4242         * modules/unsetenv-tests (Files): Likewise.
4243         * modules/usleep-tests (Files): Likewise.
4244         * modules/utimensat-tests (Files): Likewise.
4245         * modules/vasprintf-tests (Files): Likewise.
4246         * modules/vdprintf-posix-tests (Files): Likewise.
4247         * modules/vfprintf-posix-tests (Files): Likewise.
4248         * modules/vprintf-posix-tests (Files): Likewise.
4249         * modules/vsnprintf-posix-tests (Files): Likewise.
4250         * modules/vsnprintf-tests (Files): Likewise.
4251         * modules/vsprintf-posix-tests (Files): Likewise.
4252         * modules/wcrtomb-tests (Files): Likewise.
4253         * modules/wcsnrtombs-tests (Files): Likewise.
4254         * modules/wcsrtombs-tests (Files): Likewise.
4255         * modules/wcwidth-tests (Files): Likewise.
4256         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
4257         * tests/test-isinf.c (isinf): Likewise.
4258         * tests/test-isnan.c (isnan): Likewise.
4259         * tests/test-signbit.c (signbit): Likewise.
4260         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
4261         declaration, either as macro or with correct signature.
4262         (select): Ensure function under test is declared with correct
4263         signature in correct header.
4264         * tests/test-atexit.c (atexit): Likewise.
4265         * tests/test-btowc.c (btowc): Likewise.
4266         * tests/test-canonicalize-lgpl.c (realpath)
4267         (canonicalize_file_name): Likewise.
4268         * tests/test-ceilf1.c (ceilf): Likewise.
4269         * tests/test-ceill.c (ceill): Likewise.
4270         * tests/test-chown.c (chown): Likewise.
4271         * tests/test-dprintf-posix.c (dprintf): Likewise.
4272         * tests/test-dup2.c (dup2): Likewise.
4273         * tests/test-dup3.c (dup3): Likewise.
4274         * tests/test-duplocale.c (duplocale): Likewise.
4275         * tests/test-fchdir.c (fchdir): Likewise.
4276         * tests/test-fchownat.c (fchownat): Likewise.
4277         * tests/test-fcntl.c (fcntl): Likewise.
4278         * tests/test-fdopendir.c (fdopendir): Likewise.
4279         * tests/test-fflush.c (fflush): Likewise.
4280         * tests/test-flock.c (flock): Likewise.
4281         * tests/test-floorf1.c (floorf): Likewise.
4282         * tests/test-floorl.c (floorl): Likewise.
4283         * tests/test-fnmatch.c (fnmatch): Likewise.
4284         * tests/test-fopen.c (fopen): Likewise.
4285         * tests/test-fprintf-posix.c (fprintf): Likewise.
4286         * tests/test-freopen.c (freopen): Likewise.
4287         * tests/test-frexp.c (frexp): Likewise.
4288         * tests/test-frexpl.c (frexpl): Likewise.
4289         * tests/test-fseek.c (fseek): Likewise.
4290         * tests/test-fseeko.c (fseeko): Likewise.
4291         * tests/test-fstatat.c (fstatat): Likewise.
4292         * tests/test-fsync.c (fsync): Likewise.
4293         * tests/test-ftell.c (ftell): Likewise.
4294         * tests/test-ftello.c (ftello): Likewise.
4295         * tests/test-futimens.c (futimens): Likewise.
4296         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
4297         (gai_strerror): Likewise.
4298         * tests/test-getcwd.c (getcwd): Likewise.
4299         * tests/test-getdelim.c (getdelim): Likewise.
4300         * tests/test-getdtablesize.c (getdtablesize): Likewise.
4301         * tests/test-getgroups.c (getgroups): Likewise.
4302         * tests/test-gethostname.c (gethostname): Likewise.
4303         * tests/test-getline.c (getline): Likewise.
4304         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
4305         Likewise.
4306         * tests/test-gettimeofday.c (gettimeofday): Likewise.
4307         * tests/test-glob.c (glob, globfree): Likewise.
4308         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
4309         * tests/test-inet_ntop.c (inet_ntop): Likewise.
4310         * tests/test-inet_pton.c (inet_pton): Likewise.
4311         * tests/test-isblank.c (isblank): Likewise.
4312         * tests/test-lchown.c (lchown): Likewise.
4313         * tests/test-ldexpl.c (ldexpl): Likewise.
4314         * tests/test-link.c (link): Likewise.
4315         * tests/test-linkat.c (linkat): Likewise.
4316         * tests/test-lseek.c (lseek): Likewise.
4317         * tests/test-lstat.c (lstat): Likewise.
4318         * tests/test-mbrtowc.c (mbrtowc): Likewise.
4319         * tests/test-mbsinit.c (mbsinit): Likewise.
4320         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
4321         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
4322         * tests/test-memchr.c (memchr): Likewise.
4323         * tests/test-memcmp.c (memcmp): Likewise.
4324         * tests/test-memmem.c (memmem): Likewise.
4325         * tests/test-memrchr.c (memrchr): Likewise.
4326         * tests/test-mkdir.c (mkdir): Likewise.
4327         * tests/test-mkdirat.c (mkdirat): Likewise.
4328         * tests/test-mkfifo.c (mkfifo): Likewise.
4329         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
4330         * tests/test-mknod.c (mknod): Likewise.
4331         * tests/test-nanosleep.c (nanosleep): Likewise.
4332         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
4333         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
4334         Likewise.
4335         * tests/test-open.c (open): Likewise.
4336         * tests/test-openat.c (openat): Likewise.
4337         * tests/test-perror.c (perror): Likewise.
4338         * tests/test-pipe2.c (pipe2): Likewise.
4339         * tests/test-poll.c (poll): Likewise.
4340         * tests/test-popen.c (popen, pclose): Likewise.
4341         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
4342         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
4343         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
4344         (posix_spawn_file_actions_destroy)
4345         (posix_spawn_file_actions_addclose)
4346         (posix_spawn_file_actions_addopen)
4347         (posix_spawn_file_actions_adddup2): Likewise.
4348         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
4349         * tests/test-pread.c (pread): Likewise.
4350         * tests/test-printf-posix.c (printf): Likewise.
4351         * tests/test-pty.c (openpty, forkpty): Likewise.
4352         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
4353         (random_r): Likewise.
4354         * tests/test-rawmemchr.c (rawmemchr): Likewise.
4355         * tests/test-readlink.c (readlink): Likewise.
4356         * tests/test-remove.c (remove): Likewise.
4357         * tests/test-rename.c (rename): Likewise.
4358         * tests/test-renameat.c (renameat): Likewise.
4359         * tests/test-rmdir.c (rmdir): Likewise.
4360         * tests/test-round1.c (round): Likewise.
4361         * tests/test-roundf1.c (roundf): Likewise.
4362         * tests/test-roundl.c (roundl): Likewise.
4363         * tests/test-setenv.c (setenv): Likewise.
4364         * tests/test-sigaction.c (sigaction): Likewise.
4365         * tests/test-sleep.c (sleep): Likewise.
4366         * tests/test-snprintf.c (snprintf): Likewise.
4367         * tests/test-sprintf-posix.c (sprintf): Likewise.
4368         * tests/test-stat.c (stat): Likewise.
4369         * tests/test-stpncpy.c (stpncpy): Likewise.
4370         * tests/test-strcasestr.c (strcasestr): Likewise.
4371         * tests/test-strchrnul.c (strchrnul): Likewise.
4372         * tests/test-strerror.c (strerror): Likewise.
4373         * tests/test-strsignal.c (strsignal): Likewise.
4374         * tests/test-strstr.c (strstr): Likewise.
4375         * tests/test-strtod.c (strtod): Likewise.
4376         * tests/test-strverscmp.c (strverscmp): Likewise.
4377         * tests/test-symlink.c (symlink): Likewise.
4378         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
4379         * tests/test-times.c (times): Likewise.
4380         * tests/test-trunc1.c (trunc): Likewise.
4381         * tests/test-truncf1.c (truncf): Likewise.
4382         * tests/test-truncl.c (truncl): Likewise.
4383         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
4384         Likewise.
4385         * tests/test-uname.c (uname): Likewise.
4386         * tests/test-unlink.c (unlink): Likewise.
4387         * tests/test-unlinkat.c (unlinkat): Likewise.
4388         * tests/test-unsetenv.c (unsetenv): Likewise.
4389         * tests/test-usleep.c (usleep): Likewise.
4390         * tests/test-utimensat.c (utimensat): Likewise.
4391         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
4392         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
4393         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
4394         * tests/test-vprintf-posix.c (vprintf): Likewise.
4395         * tests/test-vsnprintf.c (vsnprintf): Likewise.
4396         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
4397         * tests/test-wcrtomb.c (wcrtomb): Likewise.
4398         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
4399         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
4400         * tests/test-wcwidth.c (wcwidth): Likewise.
4401
4402         build: pull in conditional headers during GNULIB_POSIXCHECK
4403         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
4404         definitions from any conditionally-included headers.
4405         * lib/stdlib.in.h (includes): Likewise.
4406         * lib/unistd.in.h (includes): Likewise.
4407
4408 2009-12-24  Bruno Haible  <bruno@clisp.org>
4409
4410         * tests/test-argv-iter.c: Include header file being tested immediately
4411         after config.h.
4412         * tests/test-base64.c: Likewise.
4413         * tests/test-flock.c: Likewise.
4414         * tests/test-fsync.c: Likewise.
4415         * tests/test-getdate.c: Likewise.
4416         * tests/test-getndelim2.c: Likewise.
4417         * tests/test-isfinite.c: Likewise.
4418         * tests/test-isinf.c: Likewise.
4419         * tests/test-strerror.c: Likewise.
4420         * tests/test-strsignal.c: Likewise.
4421
4422 2009-12-23  Eric Blake  <ebb9@byu.net>
4423
4424         unistd: work around cygwin bug
4425         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
4426         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
4427         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
4428
4429 2009-12-23  Bruno Haible  <bruno@clisp.org>
4430
4431         localename: More tests.
4432         * tests/test-localename.c (SIZEOF): New macro.
4433         (categories): New variable.
4434         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
4435         test_locale_name_default): Add test w.r.t. thread locale.
4436         (test_locale_name_thread): New function.
4437         (main): Invoke it.
4438
4439         localename: Make aware of thread locale.
4440         * lib/localename.h (gl_locale_name_thread): New declaration.
4441         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
4442         behaviour with respect to thread locale.
4443         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
4444         <langinfo.h>, glthread/lock.h.
4445         (SIZE_BITS): New macro.
4446         (string_hash): New function.
4447         (struct hash_node): New type.
4448         (HASH_TABLE_SIZE): New macro.
4449         (struniq_hash_table, struniq_lock): New variables.
4450         (struniq): New function.
4451         (gl_locale_name_thread): New function.
4452         (gl_locale_name): Invoke it.
4453         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
4454         * modules/localename (Depends-on): Add lock.
4455         Reported by Mike Gran <spk121@yahoo.com>.
4456
4457 2009-12-23  Eric Blake  <ebb9@byu.net>
4458
4459         va-args: new module
4460         * modules/va-args: New file.
4461         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
4462         * MODULES.html.sh (Core language properties): Mention it.
4463
4464         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
4465         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
4466         named alias for __attribute__((__unused__)).
4467         * lib/chown.c: Update client.
4468         * lib/fchmodat.c: Likewise.
4469         * lib/fts.c: Likewise.
4470         * lib/getdate.y: Likewise.
4471         * lib/getgroups.c: Likewise.
4472         * lib/getopt.c: Likewise.
4473         * lib/getugroups.c: Likewise.
4474         * lib/mkdir.c: Likewise.
4475         * lib/mkfifo.c: Likewise.
4476         * lib/mkfifoat.c: Likewise.
4477         * lib/mknod.c: Likewise.
4478         * lib/mknodat.c: Likewise.
4479         * lib/readlink.c: Likewise.
4480         * lib/se-context.in.h: Likewise.
4481         * lib/se-selinux.in.h: Likewise.
4482         * lib/sockets.c: Likewise.
4483         * lib/symlink.c: Likewise.
4484         * lib/symlinkat.c: Likewise.
4485         * lib/unicodeio.c: Likewise.
4486         * lib/unistr.h: Likewise.
4487         * tests/test-areadlink.c: Likewise.
4488         * tests/test-areadlinkat.c: Likewise.
4489         * tests/test-filenamecat.c: Likewise.
4490         * tests/test-fseeko.c: Likewise.
4491         * tests/test-ftello.c: Likewise.
4492         * tests/test-getdate.c: Likewise.
4493         * tests/test-getgroups.c: Likewise.
4494         * tests/test-gethostname.c: Likewise.
4495         * tests/test-quotearg.c: Likewise.
4496         * tests/test-version-etc.c: Likewise.
4497         * tests/test-xalloc-die.c: Likewise.
4498         * tests/test-xfprintf-posix.c: Likewise.
4499         * tests/test-xprintf-posix.c: Likewise.
4500         * tests/test-xvasprintf.c: Likewise.
4501
4502         tests: avoid compiler warnings
4503         * tests/test-fcntl.c (main): Delete unused parameters.
4504         * tests/test-freopen-safer.c (main): Likewise.
4505         * tests/test-xalloc-die.c (main): Mark unused parameters.
4506         * tests/test-fseeko.c (main): Likewise.
4507         * tests/test-ftello.c (main): Likewise.
4508         * tests/test-nanosleep.c (main): Avoid declaration warning.
4509         * tests/test-sleep.c (main): Likewise.
4510         * tests/test-unsetenv.c (main): Silence warning about string
4511         literal.
4512         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
4513
4514 2009-12-23  Bruno Haible  <bruno@clisp.org>
4515
4516         * tests/test-localename.c (test_locale_name): New function, extracted
4517         from main. Also test mixed situations.
4518         (test_locale_name_posix, test_locale_name_environ,
4519         test_locale_name_default): New functions.
4520         (main): Invoke them all.
4521         * modules/localename-tests (configure.ac): Test for newlocale.
4522
4523 2009-12-23  Bruno Haible  <bruno@clisp.org>
4524
4525         unistd: Ensure getcwd gets declared before being overridden.
4526         * lib/unistd.in.h: Conditionally include <io.h>.
4527
4528 2009-12-22  Bruno Haible  <bruno@clisp.org>
4529
4530         wchar: Diagnose broken combination of glibc and gcc versions and flags.
4531         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
4532         (gl_WCHAR_H): Invoke it.
4533         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
4534         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
4535         Reported by Karl Berry <karl@freefriends.org>.
4536
4537 2009-12-22  Eric Blake  <ebb9@byu.net>
4538
4539         math, unistd: avoid redundant includes
4540         * lib/math.in.h (isnan): No need to re-include <math.h>.
4541         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
4542
4543         getsubopt: work around cygwin bug
4544         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
4545         avoid conflicting with system getsubopt.
4546         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
4547         bug.
4548
4549         getopt: synchronize from glibc
4550         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
4551         parameter order.  Adjust all callers.
4552         (_getopt_internal_r, main): Adjust quoting in error messages.
4553         Drop considerations for outdated POSIX 1003.2 error message.
4554         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
4555         callers.
4556         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
4557
4558         test-getopt: test stderr behavior
4559         * modules/getopt-posix-tests (Depends-on): Add dup2.
4560         * tests/test-getopt.c (ASSERT): Avoid stderr.
4561         (main): Move stderr to a temporary file.
4562         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
4563         Instead, add parameter to inform caller if output occurred.
4564         (test_getopt): Adjust all existing tests to expect silence, and
4565         add new tests of leading ":".
4566         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
4567         glibc shortcomings with leading "-:" or "+:" in optstring.
4568         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4569         Likewise.
4570         * doc/posix-functions/getopt.texi (getopt): Likewise.
4571
4572         test-getopt: enhance test
4573         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
4574         supports optind=0.
4575         * tests/test-getopt.c (OPTIND_MIN): Move...
4576         * tests/test-getopt.h (OPTIND_MIN): ...here.
4577         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
4578         Require that optind=0 works, since modern BSD supports it in
4579         addition to optreset, and since coreutils expects it.
4580         (test_getopt_long_only): New test.
4581         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
4582         glibc shortcomings with 'W;', and enforcement of optind=0.
4583         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4584         Likewise.
4585
4586 2009-12-21  Bruno Haible  <bruno@clisp.org>
4587
4588         localename: Improvements for MacOS X and Cygwin.
4589         * lib/localename.h (gl_locale_name_environ): New declaration.
4590         * lib/localename.c (gl_locale_name_environ): New function, extracted from
4591         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
4592         (gl_locale_name_posix): Invoke it.
4593         (gl_locale_name_default): Add comments. Use Windows native API also on
4594         Cygwin.
4595
4596 2009-12-21  Bruno Haible  <bruno@clisp.org>
4597
4598         Update list of Win32 locale ids.
4599         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
4600         (LANG_SAMI): Renamed from LANG_SAAMI.
4601         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
4602         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
4603         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
4604         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
4605         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
4606         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
4607         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
4608         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
4609         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
4610         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
4611         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
4612         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
4613         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
4614         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
4615         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
4616         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
4617         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
4618         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
4619         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
4620         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
4621         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
4622         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
4623         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
4624         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
4625         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
4626         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
4627         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
4628         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
4629         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
4630         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
4631         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
4632         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
4633         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
4634         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
4635         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
4636         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
4637         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
4638         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
4639         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
4640         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
4641         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
4642         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
4643         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
4644         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
4645         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
4646         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
4647         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
4648         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
4649         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
4650         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
4651         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
4652         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
4653         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
4654         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
4655         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
4656         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
4657         Add more languages and countries for Sami, Sorbian. Add more countries
4658         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
4659         for Pashto. Change country for Syriac, Tswana.
4660
4661 2009-12-21  Eric Blake  <ebb9@byu.net>
4662
4663         test-utimens: avoid spurious failure
4664         * tests/test-chown.h (nap): Factor...
4665         * tests/nap.h: ...into new file.
4666         * tests/test-lchown.h (nap): Avoid duplication.
4667         * tests/test-utimens-common.h (nap): Use shared implementation,
4668         necessary on file systems with 1-second resolution.
4669         * modules/chown-tests (Files): Include new file.
4670         * modules/fdutimensat-tests (Files): Likewise.
4671         * modules/futimens-tests (Files): Likewise.
4672         * modules/lchown-tests (Files): Likewise.
4673         * modules/openat-tests (Files): Likewise.
4674         * modules/utimens-tests (Files): Likewise.
4675         * modules/utimensat-tests (Files): Likewise.
4676
4677 2009-12-19  Eric Blake  <ebb9@byu.net>
4678
4679         futimens, utimensat: work around Linux bug
4680         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
4681         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4682         * lib/utimensat.c (rpl_utimensat): Work around it.
4683         * lib/futimens.c (rpl_futimens): Adjust comment.
4684
4685         utimens: work around Linux ctime bug
4686         * lib/utimens.c (detect_ctime_bug): New helper function.
4687         (update_timespec): Differentiate between workaround needed for
4688         this bug vs. what is needed for systems that lack utimensat.
4689         (fdutimens, lutimens): Work around bug.
4690
4691         utimens: check for ctime update
4692         * tests/test-utimens-common.h (check_ctime): Define.
4693         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
4694         * tests/test-futimens.h (test_futimens): Likewise.
4695         * tests/test-lutimens.h (test_lutimens): Likewise.
4696         * doc/posix-functions/futimens.texi (futimens): Document the bug.
4697         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
4698
4699 2009-12-19  Bruno Haible  <bruno@clisp.org>
4700
4701         dprintf-posix: Check against memory leak fixed on 2009-12-15.
4702         * tests/test-dprintf-posix2.sh: New file.
4703         * tests/test-dprintf-posix2.c: New file.
4704         * modules/dprintf-posix-tests (Files): Add them.
4705         (configure.ac): Check for getrlimit and setrlimit.
4706         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
4707
4708 2009-12-19  Bruno Haible  <bruno@clisp.org>
4709
4710         fprintf-posix: Check against memory leak fixed on 2009-12-15.
4711         * tests/test-fprintf-posix3.sh: New file.
4712         * tests/test-fprintf-posix3.c: New file.
4713         * modules/fprintf-posix-tests (Files): Add them.
4714         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
4715
4716 2009-12-19  Eric Blake  <ebb9@byu.net>
4717
4718         dirfd: fix prototype
4719         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
4720         * lib/dirfd.c (dirfd): Likewise.
4721
4722         canonicalize: reduce memory usage
4723         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
4724         allocation to size.
4725         Reported by Solar Designer <solar@openwall.com>.
4726
4727 2009-12-19  Bruno Haible  <bruno@clisp.org>
4728
4729         New module attribute 'Applicability'.
4730         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
4731         * gnulib-tool: New option --extract-applicability.
4732         (func_usage): Document it.
4733         (sed_extract_prog): Recognize it.
4734         (func_get_applicability): New function.
4735         (func_import): Generalize handling of 'link-warning' module.
4736         * modules/link-warning (Applicability): New section.
4737         * modules/arg-nonnull (Applicability): New section.
4738         Repoted by Simon Josefsson <simon@josefsson.org>.
4739
4740 2009-12-19  Bruno Haible  <bruno@clisp.org>
4741
4742         fflush: tweak
4743         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
4744         * lib/fseeko.c (rpl_fseeko): Likewise.
4745
4746 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
4747
4748         * lib/gl_list.h: Fix typo in comment.
4749
4750 2009-12-16  Eric Blake  <ebb9@byu.net>
4751
4752         fcntl: use to simplify other modules
4753         * modules/cloexec (Depends-on): Add fcntl.
4754         * modules/fchdir (Depends-on): Likewise.
4755         * modules/fd-safer-flag (Depends-on): Likewise.
4756         * modules/unistd-safer (Depends-on): Likewise.
4757         * modules/dup3 (configure.ac): Set module indicator.
4758         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
4759         missing.
4760         * lib/fchdir.c (_gl_register_dup): Fix comment.
4761         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
4762         * lib/dup-safer.c (dup_safer): Likewise.
4763         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
4764         * lib/dup3.c (dup3): Likewise.
4765         * tests/test-fchdir.c (main): Enhance test.
4766         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
4767
4768         fcntl: port portions of fcntl to mingw
4769         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
4770         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
4771         replacement for mingw.
4772         * modules/fcntl (Description): Update.
4773         (Depends-on): Add dup2.
4774         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
4775         * modules/fcntl-h (Makefile.am): Substitute it.
4776         * lib/fcntl.in.h (fcntl): Update declaration.
4777         (F_DUPFD, F_GETFD): New macros, when needed.
4778         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
4779         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
4780         * tests/test-fcntl.c (check_flags, main): Enhance test for items
4781         we now guarantee.
4782
4783         fcntl: work around cygwin bug in F_DUPFD
4784         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
4785         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
4786         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
4787         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
4788         * doc/posix-functions/fcntl.texi (fcntl): Document it.
4789
4790         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
4791         * modules/fcntl (Files): List new files.
4792         (configure.ac): Run a test.
4793         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
4794         * lib/fcntl.c (rpl_fcntl): Likewise.
4795         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
4796         (gl_FCNTL_H): Always replace fcntl.h.
4797         * modules/fcntl-h (Makefile.am): Substitute witnesses.
4798         * lib/fcntl.in.h (fcntl): Declare replacement.
4799         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
4800         needed, plus a witness.
4801         * doc/posix-functions/fcntl.texi (fcntl): Document this.
4802         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
4803         * tests/test-fcntl.c: New file.
4804         * modules/fcntl-tests: Likewise.
4805
4806         binary-io: avoid potential compilation warning
4807         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
4808         directives.
4809
4810         fflush: avoid compilation error on NetBSD
4811         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
4812         between off_t and fpos_t, since the latter is sometimes a struct.
4813         * lib/fseeko.c (rpl_fseeko): Likewise.
4814         Reported by Alexander Nasonov <alnsn@yandex.ru>.
4815
4816 2009-12-15  Eric Blake  <ebb9@byu.net>
4817
4818         fcntl-h, stdio, sys_ioctl: fix declarations
4819         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
4820         function must not take arguments.
4821         * lib/sys_ioctl.in.h (ioctl): Likewise.
4822         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
4823         (open): Add a link warning.
4824
4825 2009-12-15  Jim Meyering  <meyering@redhat.com>
4826
4827         areadlink, areadlink-with-size: relax license to LGPLv2+
4828         * modules/areadlink (License): Relax to LGPLv2+.
4829         * modules/areadlink-with-size (License): Likewise.
4830
4831 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
4832             Bruno Haible  <bruno@clisp.org>
4833
4834         *printf: Fix memory leak.
4835         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
4836         * lib/vfprintf.c (vfprintf): Likewise.
4837         * lib/dprintf.c (dprintf): Likewise.
4838         * lib/vdprintf.c (vdprintf): Likewise.
4839
4840 2009-12-14  Eric Blake  <ebb9@byu.net>
4841
4842         accept4: adjust module dependencies
4843         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
4844
4845         utimens: one more try at avoiding compiler warning
4846         * lib/utimens.c (lutimens): Lower scope of result.
4847
4848 2009-12-13  Bruno Haible  <bruno@clisp.org>
4849
4850         Move the malloc checking from module 'list' to new module 'xlist'.
4851         * modules/xlist: New file.
4852         * lib/gl_xlist.h: New file.
4853         * lib/gl_xlist.c: New file.
4854         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
4855         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
4856         gl_list_add_last, gl_list_add_before, gl_list_add_after,
4857         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
4858         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
4859         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
4860         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
4861         gl_sortedlist_nx_add): New declarations.
4862         (struct gl_list_implementation): Rename and change methods accordingly.
4863         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
4864         (gl_list_nx_create): Renamed from gl_list_create.
4865         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
4866         (gl_list_nx_set_at): Renamed from gl_list_set_at.
4867         (gl_list_nx_add_first): Renamed from gl_list_add_first.
4868         (gl_list_nx_add_last): Renamed from gl_list_add_last.
4869         (gl_list_nx_add_before): Renamed from gl_list_add_before.
4870         (gl_list_nx_add_after): Renamed from gl_list_add_after.
4871         (gl_list_nx_add_at): Renamed from gl_list_add_at.
4872         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
4873         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
4874         gl_list_create_empty.
4875         (gl_list_nx_create): Renamed from gl_list_create.
4876         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
4877         (gl_list_nx_set_at): Renamed from gl_list_set_at.
4878         (gl_list_nx_add_first): Renamed from gl_list_add_first.
4879         (gl_list_nx_add_last): Renamed from gl_list_add_last.
4880         (gl_list_nx_add_before): Renamed from gl_list_add_before.
4881         (gl_list_nx_add_after): Renamed from gl_list_add_after.
4882         (gl_list_nx_add_at): Renamed from gl_list_add_at.
4883         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
4884         * lib/gl_array_list.c: Don't include xalloc.h.
4885         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
4886         NULL upon out-of-memory.
4887         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
4888         out-of-memory.
4889         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
4890         Change return type to 'int'.
4891         (gl_array_nx_set_at): Renamed from gl_array_set_at.
4892         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
4893         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
4894         upon out-of-memory.
4895         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
4896         upon out-of-memory.
4897         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
4898         upon out-of-memory.
4899         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
4900         upon out-of-memory.
4901         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
4902         out-of-memory.
4903         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
4904         Update.
4905         (gl_array_list_implementation): Update.
4906         * lib/gl_carray_list.c: Don't include xalloc.h.
4907         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
4908         Return NULL upon out-of-memory.
4909         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
4910         out-of-memory.
4911         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
4912         Change return type to 'int'.
4913         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
4914         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
4915         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
4916         upon out-of-memory.
4917         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
4918         upon out-of-memory.
4919         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
4920         out-of-memory.
4921         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
4922         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
4923         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
4924         Update.
4925         (gl_carray_list_implementation): Update.
4926         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
4927         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
4928         gl_linked_create_empty. Return NULL upon out-of-memory.
4929         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
4930         out-of-memory.
4931         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
4932         Change return type to 'int'. Return -1 upon out-of-memory.
4933         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
4934         out-of-memory.
4935         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
4936         upon out-of-memory.
4937         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
4938         upon out-of-memory.
4939         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
4940         NULL upon out-of-memory.
4941         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
4942         upon out-of-memory.
4943         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
4944         out-of-memory.
4945         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
4946         Update.
4947         * lib/gl_linked_list.c: Don't include xalloc.h.
4948         (gl_linked_list_implementation): Update.
4949         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
4950         (add_to_bucket): Change return type to 'int'.
4951         (gl_linkedhash_list_implementation): Update.
4952         * lib/gl_anytree_list1.h (free_subtree): New function.
4953         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
4954         gl_tree_create_empty. Return NULL upon out-of-memory.
4955         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
4956         Change return type to 'int'. Return -1 upon out-of-memory.
4957         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
4958         out-of-memory.
4959         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
4960         (gl_tree_remove_node): New function, moved here from
4961         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
4962         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
4963         Update.
4964         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
4965         malloc, not xmalloc. Return NULL upon out-of-memory.
4966         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
4967         out-of-memory.
4968         (gl_tree_remove_node_from_tree): New function, extracted from
4969         gl_tree_remove_node.
4970         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
4971         upon out-of-memory.
4972         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
4973         out-of-memory.
4974         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
4975         upon out-of-memory.
4976         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
4977         upon out-of-memory.
4978         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
4979         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
4980         not xmalloc. Return NULL upon out-of-memory.
4981         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
4982         out-of-memory.
4983         (gl_tree_remove_node_from_tree): New function, extracted from
4984         gl_tree_remove_node.
4985         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
4986         upon out-of-memory.
4987         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
4988         out-of-memory.
4989         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
4990         upon out-of-memory.
4991         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
4992         upon out-of-memory.
4993         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
4994         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
4995         gl_anytree_list1.h before gl_anyavltree_list2.h.
4996         (gl_avltree_list_implementation): Update.
4997         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
4998         gl_anytree_list1.h before gl_anyavltree_list2.h.
4999         (gl_rbtree_list_implementation): Update.
5000         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
5001         Change return type to 'int'. Return -1 upon out-of-memory. Use
5002         __builtin_expect.
5003         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
5004         (gl_avltreehash_list_implementation): Update.
5005         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
5006         (gl_rbtreehash_list_implementation): Update.
5007         * modules/array-list (Depends-on): Remove xalloc.
5008         * modules/carray-list (Depends-on): Likewise.
5009         * modules/linked-list (Depends-on): Likewise.
5010         * modules/linkedhash-list (Depends-on): Likewise.
5011         * modules/avltree-list (Depends-on): Likewise.
5012         * modules/rbtree-list (Depends-on): Likewise.
5013         * modules/avltreehash-list (Depends-on): Likewise.
5014         * modules/rbtreehash-list (Depends-on): Likewise.
5015
5016         * modules/xsublist: New file.
5017         * lib/gl_xsublist.h: New file.
5018         * lib/gl_xsublist.c: New file.
5019         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
5020         (gl_sublist_nx_create): New declaration.
5021         * lib/gl_sublist.c: Don't include xalloc.h.
5022         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
5023         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
5024         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
5025         Change return type to 'int'. Return -1 upon out-of-memory.
5026         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
5027         upon out-of-memory.
5028         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
5029         NULL upon out-of-memory.
5030         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
5031         upon out-of-memory.
5032         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
5033         NULL upon out-of-memory.
5034         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
5035         NULL upon out-of-memory.
5036         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
5037         upon out-of-memory.
5038         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
5039         (gl_sublist_list_implementation): Update.
5040         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
5041         upon out-of-memory.
5042         * modules/sublist (Depends-on): Remove xalloc.
5043
5044         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
5045         * tests/test-carray_list.c: Likewise.
5046         * tests/test-linked_list.c: Likewise.
5047         * tests/test-linkedhash_list.c: Likewise.
5048         * tests/test-avltree_list.c: Likewise.
5049         * tests/test-rbtree_list.c: Likewise.
5050         * tests/test-avltreehash_list.c: Likewise.
5051         * tests/test-rbtreehash_list.c: Likewise.
5052         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
5053         * modules/carray-list-tests (Makefile.am): Likewise.
5054         * modules/linked-list-tests (Makefile.am): Likewise.
5055         * modules/linkedhash-list-tests (Makefile.am): Likewise.
5056         * modules/avltree-list-tests (Makefile.am): Likewise.
5057         * modules/rbtree-list-tests (Makefile.am): Likewise.
5058         * modules/avltreehash-list-tests (Makefile.am): Likewise.
5059         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
5060
5061         * NEWS: Mention the changes.
5062
5063         * lib/clean-temp.c: Include gl_xlist.h.
5064         * modules/clean-temp (Depends-on): Add xlist.
5065
5066         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
5067         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
5068
5069         * tests/test-array_oset.c: Include gl_xlist.h.
5070         * modules/array-oset-tests (Depends-on): Add xlist.
5071
5072         Reported by José E. Marchesi <jemarch@gnu.org>.
5073
5074 2009-12-13  Bruno Haible  <bruno@clisp.org>
5075
5076         Move the malloc checking from module 'oset' to new module 'xoset'.
5077         * modules/xoset: New file.
5078         * lib/gl_xoset.h: New file.
5079         * lib/gl_xoset.c: New file.
5080         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
5081         declarations.
5082         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
5083         (struct gl_oset_implementation): Rename and change methods accordingly.
5084         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
5085         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5086         'int'. Mark as __warn_unused_result__.
5087         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
5088         gl_oset_create_empty.
5089         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5090         'int'.
5091         * lib/gl_array_oset.c: Don't include xalloc.h.
5092         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
5093         malloc, not xmalloc.
5094         (grow): Change return type to 'int'. Don't call xalloc_die.
5095         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
5096         to 'int'.
5097         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
5098         'int'.
5099         (gl_array_oset_implementation): Update.
5100         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
5101         gl_tree_create_empty.
5102         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
5103         'int'.
5104         * lib/gl_avltree_oset.c: Don't include xalloc.h.
5105         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5106         xmalloc.
5107         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5108         not xmalloc.
5109         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5110         xmalloc.
5111         (gl_avltree_oset_implementation): Update.
5112         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
5113         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5114         xmalloc.
5115         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5116         not xmalloc.
5117         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5118         xmalloc.
5119         (gl_rbtree_oset_implementation): Update.
5120         * modules/array-oset (Depends-on): Remove xalloc.
5121         * modules/avltree-oset (Depends-on): Likewise.
5122         * modules/rbtree-oset (Depends-on): Likewise.
5123         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
5124         * tests/test-avltree_oset.c: Likewise.
5125         * tests/test-rbtree_oset.c: Likewise.
5126         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
5127         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
5128         * modules/rbtree-oset-tests (Makefile.am): Likewise.
5129         * NEWS: Mention the change.
5130
5131 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
5132
5133         maint.mk: allow a project to override release-prep commands
5134         * top/maint.mk (alpha, beta, stable): Move release-preparatory
5135         commands into a new rule.
5136         (release-prep): New rule.
5137         (release-prep-hook): New overridable variable.
5138
5139 2009-12-13  Bruno Haible  <bruno@clisp.org>
5140
5141         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
5142
5143 2009-12-13  Jim Meyering  <meyering@redhat.com>
5144
5145         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
5146         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
5147
5148 2009-12-12  Bruno Haible  <bruno@clisp.org>
5149
5150         duplocale: Tweak.
5151         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
5152
5153 2009-12-12  Karl Berry  <karl@gnu.org>
5154
5155         * config/srclist.txt (strtoll.c): tab changes, no more sync.
5156
5157 2009-12-12  Bruno Haible  <bruno@clisp.org>
5158
5159         * m4/po.m4: Undo incorrect untabification.
5160
5161 2009-12-12  Bruno Haible  <bruno@clisp.org>
5162
5163         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
5164         * modules/c-strtod (Depends-on): Add locale.
5165         * modules/c-strtold (Depends-on): Likewise.
5166
5167 2009-12-12  Bruno Haible  <bruno@clisp.org>
5168
5169         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
5170
5171 2009-12-11  Eric Blake  <ebb9@byu.net>
5172
5173         setenv: relax requirement in light of POSIX ruling
5174         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
5175         not NULL.
5176         * tests/test-setenv.c (main): Relax test.
5177         * tests/test-unsetenv.c (main): Likewise.
5178         * doc/posix-functions/setenv.texi (setenv): Document this.
5179         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
5180
5181 2009-12-11  Bruno Haible  <bruno@clisp.org>
5182
5183         New module 'fd-safer-flag'.
5184         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
5185         * lib/dup-safer.c (dup_safer_flag): Remove function.
5186         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
5187         * lib/fd-safer.c (fd_safer_flag): Remove function.
5188         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
5189         * modules/cloexec (configure.ac): Drop indicator macro.
5190         * modules/fd-safer-flag: New file.
5191         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
5192         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
5193         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
5194
5195 2009-12-11  Bruno Haible  <bruno@clisp.org>
5196
5197         Tests for module 'nl_langinfo'.
5198         * modules/nl_langinfo-tests: New file.
5199         * tests/test-nl_langinfo.sh: New file.
5200         * tests/test-nl_langinfo.c: New file.
5201
5202         New module 'nl_langinfo'.
5203         * lib/nl_langinfo.c: New file.
5204         * m4/nl_langinfo.m4: New file.
5205         * modules/nl_langinfo: New file.
5206         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
5207
5208 2009-12-11  Bruno Haible  <bruno@clisp.org>
5209
5210         Tests for module 'langinfo'.
5211         * modules/langinfo-tests: New file.
5212         * tests/test-langinfo.c: New file.
5213
5214         New module 'langinfo'.
5215         * lib/langinfo.in.h: New file.
5216         * m4/langinfo_h.m4: New file.
5217         * modules/langinfo: New file.
5218         * doc/posix-headers/langinfo.texi: Mention the new module.
5219
5220 2009-12-11  Bruno Haible  <bruno@clisp.org>
5221
5222         * lib/config.charset: Untabify.
5223
5224 2009-12-11  Bruno Haible  <bruno@clisp.org>
5225
5226         * modules/unistd-safer (configure.ac): Drop indicator macro.
5227
5228 2009-12-11  Bruno Haible  <bruno@clisp.org>
5229
5230         Move pipe2-safer code to its own file.
5231         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
5232         * lib/pipe-safer.c (pipe2_safer): Remove function.
5233         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
5234         (Makefile.am): Add it to lib_SOURCES.
5235
5236 2009-12-10  Bruno Haible  <bruno@clisp.org>
5237
5238         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
5239
5240 2009-12-10  Bruno Haible  <bruno@clisp.org>
5241
5242         Declare which arguments expect non-NULL values, for GCC and clang.
5243         * build-aux/arg-nonnull.h: New file.
5244         * modules/arg-nonnull: New file.
5245         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
5246         (inet_ntop, inet_pton): Use it.
5247         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
5248         (closedir, dirfd, opendir, scandir, alphasort): Use it.
5249         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
5250         (open, openat): Use it.
5251         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
5252         (fnmatch): Use it.
5253         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
5254         (getopt, getopt_long, getopt_long_only): Use it.
5255         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
5256         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
5257         Use it.
5258         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
5259         (iconv_open): Use it.
5260         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
5261         (strtoimax, strtoumax): Use it.
5262         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
5263         (duplocale): Use it.
5264         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
5265         (frexp, frexpl): Use it.
5266         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
5267         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
5268         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
5269         (tsearch, tfind, tdelete, twalk): Use it.
5270         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
5271         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
5272         sigpending): Use it.
5273         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
5274         (posix_spawn, posix_spawnp, posix_spawnattr_init,
5275         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
5276         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
5277         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
5278         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
5279         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
5280         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
5281         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
5282         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
5283         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
5284         Use it.
5285         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
5286         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
5287         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
5288         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
5289         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
5290         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
5291         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
5292         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
5293         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
5294         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
5295         strtoull, unsetenv): Use it.
5296         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
5297         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
5298         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
5299         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
5300         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
5301         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
5302         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
5303         (strcasecmp, strncasecmp): Use it.
5304         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
5305         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
5306         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
5307         rpl_setsockopt): Use it.
5308         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
5309         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
5310         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
5311         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
5312         (gettimeofday): Use it.
5313         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
5314         (times): Use it.
5315         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
5316         (uname): Use it.
5317         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
5318         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
5319         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
5320         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
5321         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
5322         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
5323         unlinkat, write): Use it.
5324         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
5325         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
5326         * lib/argv-iter.h: Include arg-nonnull.h.
5327         (_ATTRIBUTE_NONNULL_): Remove macro.
5328         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
5329         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
5330         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
5331         optimization.
5332         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
5333         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
5334         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
5335         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
5336         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
5337         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
5338         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
5339         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
5340         * modules/arpa_inet (Depends-on): Add arg-nonnull.
5341         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
5342         * modules/dirent (Depends-on): Add arg-nonnull.
5343         (Makefile.am): Insert arg-nonnull.h into dirent.h.
5344         * modules/fcntl-h (Depends-on): Add arg-nonnull.
5345         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
5346         * modules/fnmatch (Depends-on): Add arg-nonnull.
5347         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
5348         * modules/getopt-posix (Depends-on): Add arg-nonnull.
5349         (Makefile.am): Insert arg-nonnull.h into getopt.h.
5350         * modules/glob (Depends-on): Add arg-nonnull.
5351         (Makefile.am): Insert arg-nonnull.h into glob.h.
5352         * modules/iconv_open (Depends-on): Add arg-nonnull.
5353         (Makefile.am): Insert arg-nonnull.h into iconv.h.
5354         * modules/inttypes (Depends-on): Add arg-nonnull.
5355         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
5356         * modules/locale (Depends-on): Add arg-nonnull.
5357         (Makefile.am): Insert arg-nonnull.h into locale.h.
5358         * modules/math (Depends-on): Add arg-nonnull.
5359         (Makefile.am): Insert arg-nonnull.h into math.h.
5360         * modules/netdb (Depends-on): Add arg-nonnull.
5361         (Makefile.am): Insert arg-nonnull.h into netdb.h.
5362         * modules/search (Depends-on): Add arg-nonnull.
5363         (Makefile.am): Insert arg-nonnull.h into search.h.
5364         * modules/signal (Depends-on): Add arg-nonnull.
5365         (Makefile.am): Insert arg-nonnull.h into signal.h.
5366         * modules/spawn (Depends-on): Add arg-nonnull.
5367         (Makefile.am): Insert arg-nonnull.h into spawn.h.
5368         * modules/stdio (Depends-on): Add arg-nonnull.
5369         (Makefile.am): Insert arg-nonnull.h into stdio.h.
5370         * modules/stdlib (Depends-on): Add arg-nonnull.
5371         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
5372         * modules/string (Depends-on): Add arg-nonnull.
5373         (Makefile.am): Insert arg-nonnull.h into string.h.
5374         * modules/strings (Depends-on): Add arg-nonnull.
5375         (Makefile.am): Insert arg-nonnull.h into strings.h.
5376         * modules/sys_socket (Depends-on): Add arg-nonnull.
5377         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
5378         * modules/sys_stat (Depends-on): Add arg-nonnull.
5379         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
5380         * modules/sys_time (Depends-on): Add arg-nonnull.
5381         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
5382         * modules/sys_times (Depends-on): Add arg-nonnull.
5383         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
5384         * modules/sys_utsname (Depends-on): Add arg-nonnull.
5385         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
5386         * modules/time (Depends-on): Add arg-nonnull.
5387         (Makefile.am): Insert arg-nonnull.h into time.h.
5388         * modules/unistd (Depends-on): Add arg-nonnull.
5389         (Makefile.am): Insert arg-nonnull.h into unistd.h.
5390         * modules/wchar (Depends-on): Add arg-nonnull.
5391         (Makefile.am): Insert arg-nonnull.h into wchar.h.
5392         * modules/argv-iter (Depends-on): Add arg-nonnull.
5393         * tests/test-canonicalize.c (null_ptr): New function.
5394         (main): Use it.
5395         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
5396         (main): Use it.
5397         * tests/test-memmem.c (null_ptr): New function.
5398         (main): Use it.
5399         Reported by Jim Meyering.
5400
5401 2009-12-10  Bruno Haible  <bruno@clisp.org>
5402
5403         Use spaces for indentation, not tabs.
5404         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
5405         * m4/*.m4: Untabify.
5406         * build-aux/*.h: Untabify.
5407         * tests/**/*.[hc]: Untabify.
5408         * README: New section "Indent with spaces, not TABs", based on
5409         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
5410         * NEWS: Mention the change.
5411
5412 2009-12-10  Bruno Haible  <bruno@clisp.org>
5413
5414         pty test: Fix link error.
5415         * modules/pty-tests (Makefile.am): Add the default LDADD value to
5416         test_pty_LDADD.
5417
5418 2009-12-07  Simon Josefsson  <simon@josefsson.org>
5419
5420         * modules/pty: New file.
5421         * modules/pty-tests: New file.
5422         * m4/pty.m4: New file.
5423         * tests/test-pty.c: New file.
5424         * doc/glibc-headers/pty.texi: Modified.
5425         * doc/glibc-functions/forkpty.texi: Modified.
5426         * doc/glibc-functions/openpty.texi: Modified.
5427
5428 2009-12-10  Bruno Haible  <bruno@clisp.org>
5429
5430         Avoid syntax error in C++ mode.
5431         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
5432
5433 2009-12-10  Bruno Haible  <bruno@clisp.org>
5434
5435         Use sed with option -e.
5436         * gnulib-tool (func_version, func_emit_copyright_notice,
5437         func_emit_initmacro_end, func_import, func_create_testdir): Pass
5438         option -e to sed.
5439         * modules/link-warning (Makefile.am): Likewise.
5440
5441 2009-12-10  Jim Meyering  <meyering@redhat.com>
5442
5443         mgetgroups: do not write bytes beyond end of malloc'd buffer
5444         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
5445         username, we call getgroups with a one-element-shorter buffer,
5446         but still told it the length was original, max_n_groups.
5447
5448 2009-12-09  Eric Blake  <ebb9@byu.net>
5449
5450         cloexec: relax license
5451         * modules/cloexec (Maintainer): Add myself.
5452         (License): Use LGPL, not GPL.
5453
5454         link-warning: optimize generation
5455         * modules/link-warning (Makefile.am): Reduce process usage.
5456
5457 2009-12-09  Bruno Haible  <bruno@clisp.org>
5458
5459         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
5460         workaround was added on 2009-11-17.
5461
5462 2009-12-09  Jim Meyering  <meyering@redhat.com>
5463             Bruno Haible  <bruno@clisp.org>
5464
5465         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
5466         * modules/link-warning (Makefile.am): Make the comment-removing sed
5467         command more robust in the face of bootstrap-prepended comment lines.
5468
5469 2009-12-09  Bruno Haible  <bruno@clisp.org>
5470
5471         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
5472         most one group.
5473
5474 2009-12-09  Simon Josefsson <simon@josefsson.org>
5475             Bruno Haible  <bruno@clisp.org>
5476
5477         * build-aux/link-warning.h: Add copyright notice.
5478         * modules/link-warning (Makefile.am): Generate link-warning.h from
5479         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
5480         * NEWS: Mention change in link-warning module.
5481         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
5482         * modules/dirent (Makefile.am): Add dependency to dirent.h.
5483         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
5484         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
5485         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
5486         * modules/math (Makefile.am): Add dependency to math.h.
5487         * modules/search (Makefile.am): Add dependency to search.h.
5488         * modules/signal (Makefile.am): Add dependency to signal.h.
5489         * modules/spawn (Makefile.am): Add dependency to spawn.h.
5490         * modules/stdio (Makefile.am): Add dependency to stdio.h.
5491         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
5492         * modules/string (Makefile.am): Add dependency to string.h.
5493         * modules/strings (Makefile.am): Add dependency to strings.h.
5494         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
5495         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
5496         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
5497         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
5498         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
5499         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
5500         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
5501         * modules/unistd (Makefile.am): Add dependency to unistd.h.
5502         * modules/wchar (Makefile.am): Add dependency to wchar.h.
5503
5504 2009-12-09  Bruno Haible  <bruno@clisp.org>
5505
5506         fchdir: Optimize away rpl_fstat when possible.
5507         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
5508         REPLACE_OPEN_DIRECTORY.
5509         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
5510
5511 2009-12-09  Bruno Haible  <bruno@clisp.org>
5512
5513         * lib/fchdir.c: Update comment.
5514
5515 2009-12-09  Bruno Haible  <bruno@clisp.org>
5516
5517         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
5518
5519 2009-12-08  Eric Blake  <ebb9@byu.net>
5520
5521         fchdir: avoid memory leak on re-registration.
5522         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
5523
5524 2009-12-08  Jim Meyering  <meyering@redhat.com>
5525
5526         init.sh: avoid Solaris 10 /bin/sh portability problem
5527         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
5528         sourced script:
5529           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
5530           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
5531           bar
5532         tests/init.sh relied on that, accepting a --set-path=DIR argument,
5533         and two tests used that idiom.
5534         * tests/init.sh: Update suggested usage comments.
5535         (path_prepend_): New function, to be used in place
5536         of the --src-path=DIR option.
5537         (setup_): Move PATH-prepending code into path_prepend_.
5538         * tests/test-pread.sh: Adapt to new usage.
5539         * tests/test-xalloc-die.sh: Likewise.
5540
5541 2009-12-08  Simon Josefsson  <simon@josefsson.org>
5542
5543         * doc/gnulib.texi (Glibc pty.h): Add.
5544         * doc/glibc-functions/forkpty.texi: Add.
5545         * doc/glibc-functions/openpty.texi: Add.
5546         Suggested by Bruno Haible.
5547
5548 2009-12-08  Eric Blake  <ebb9@byu.net>
5549
5550         fchdir: fix logic bugs
5551         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
5552         * tests/test-fchdir.c (main): Enhance test.
5553         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
5554         is in use.
5555
5556         dup2: fix logic bugs
5557         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
5558         REPLACE_DUP2 to decide when rpl_dup2 is needed.
5559         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
5560         exists.
5561         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
5562
5563 2009-12-07  Eric Blake  <ebb9@byu.net>
5564
5565         unlink: fix m4 detection
5566         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
5567
5568         unistd-safer: add unit test
5569         * modules/unistd-safer-tests: New file.
5570         * tests/test-dup-safer.c: Likewise.
5571         * tests/test-cloexec.c (setmode): Avoid compiler warning.
5572         * tests/test-dup2.c (setmode): Likewise.
5573         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
5574
5575         cloexec: preserve text vs. binary across dup_cloexec
5576         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
5577         mode.
5578         * modules/dup2-tests (Depends-on): Add binary-io.
5579         * modules/cloexec-tests (Depends-on): Likewise.
5580         * tests/test-dup2.c (setmode, is_mode): New helpers.
5581         (main): Add tests that translation mode is preserved.
5582         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
5583         Reported by Bruno Haible.
5584
5585         mgetgroups: reduce duplicate listings
5586         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
5587         resulting array.
5588         * tests/test-chown.h (test_chown): Simplify client.
5589         * tests/test-lchown.h (test_lchown): Likewise.
5590
5591 2009-12-06  Bruno Haible  <bruno@clisp.org>
5592
5593         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
5594         value.
5595
5596 2009-12-06  Bruno Haible  <bruno@clisp.org>
5597
5598         * lib/progname.c: Include stdio.h, stdlib.h.
5599         (set_program_name): Reject a NULL argument.
5600
5601 2009-12-05  Eric Blake  <ebb9@byu.net>
5602
5603         pipe2-safer: new module
5604         * modules/pipe2-safer: New file.
5605         * lib/unistd-safer.h (pipe2_safer): New prototype.
5606         * lib/unistd--.h (pipe2): New wrapper.
5607         * lib/pipe-safer.c (pipe2_safer): New function.
5608         * modules/pipe (Depends-on): Add pipe2-safer.
5609         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
5610
5611         stdlib-safer: preserve cloexec flag for mkostemp[s]
5612         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
5613         fd_safer_flag.
5614
5615         unistd-safer: allow preservation of cloexec status via flag
5616         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
5617         prototypes.
5618         * lib/dup-safer.c (dup_safer_flag): New function.
5619         * lib/fd-safer.c (fd_safer_flag): Likewise.
5620         * modules/cloexec (configure.ac): Set witness.
5621
5622         test-dup2: enhance test
5623         * modules/dup2-tests (Depends-on): Add cloexec.
5624         * tests/test-dup2.c (main): Enhance test.
5625
5626         cloexec: add dup_cloexec
5627         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
5628         header and comments.
5629         * lib/cloexec.c (set_cloexec_flag): Add comments.
5630         (dup_cloexec): New function, with mingw implementation borrowed
5631         from...
5632         * lib/w32spawn.h (dup_noinherit): ...here.
5633         * modules/execute (Depends-on): Add cloexec.
5634         * modules/pipe (Depends-on): Likewise.
5635         * modules/cloexec (Depends-on): Add dup2.
5636         * modules/cloexec-tests (Files): New file.
5637         * tests/test-cloexec.c: Likewise.
5638
5639         test-xalloc-die: fix test for mingw
5640         * modules/xalloc-die-tests (Files): Add tests/init.sh.
5641         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
5642         directory and .exe suffix off argv[0] output.
5643
5644         test-fseeko: fix test for mingw
5645         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
5646         than undefining fseek, so test will pass on mingw.
5647
5648 2009-12-05  Bruno Haible  <bruno@clisp.org>
5649
5650         * lib/progname.h (set_program_name): Clarify specification.
5651         * lib/progname.c (set_program_name): Likewise.
5652         Reported by Jim Meyering.
5653
5654 2009-12-05  Jim Meyering  <meyering@redhat.com>
5655
5656         maint.mk: backslash-escape parens in default regexp
5657         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
5658         backslash-escape the literal parentheses.
5659
5660         maint.mk: news-date-check: use grep -E
5661         * top/maint.mk (today): Define a Make variable, not a...
5662         (news-date-check): ...shell variable.
5663         (news-date-regexp): Use the Make variable.
5664         Use grep's -E option.  Change the failing diagnostic to mention
5665         the variable, $(news-date-regexp).
5666
5667 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
5668
5669         maintainer-makefile: allow customization of NEWS entry format
5670         * top/maint.mk (news-date-regexp): New overridable variable.
5671         (news-date-check): Use it.
5672
5673 2009-12-04  Eric Blake  <ebb9@byu.net>
5674
5675         mgetgroups: add xgetgroups, and avoid ENOSYS failures
5676         * lib/mgetgroups.h (xgetgroups): New prototype.
5677         * lib/mgetgroups.c (xgetgroups): New wrapper.
5678         (mgetgroups): Handle ENOSYS.
5679         * modules/mgetgroups (Depends-on): Add realloc.
5680         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
5681
5682         mgetgroups: avoid argument promotion issues with -1
5683         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
5684         for invalid gid_t.
5685         * tests/test-chown.h (getegid, test_chown): Likewise.
5686         * tests/test-lchown.h (getegid, test_lchown): Likewise.
5687
5688 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
5689
5690         exclude: Fix header file problems.
5691         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
5692
5693 2009-12-01  Jim Meyering  <meyering@redhat.com>
5694
5695         fts: fts_open: do not let an empty string cause immediate failure
5696         This is required in support of GNU rm, for which the command
5697         "rm A '' B" must process and remove both A and B, in spite of
5698         the empty string argument.
5699         * lib/fts.c (fts_open): Do not let the presence of an empty string
5700         cause fts_open to fail immediately.  Most fts-using tools must be
5701         able to process all arguments, in order, and can be expected to
5702         diagnose such arguments themselves.
5703
5704 2009-11-30  Eric Blake  <ebb9@byu.net>
5705
5706         utimens: fix compilation error
5707         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
5708         Declare variable at right scope.
5709
5710 2009-11-29  Jim Meyering  <meyering@redhat.com>
5711
5712         bootstrap: handle perl-5.11's changed --version output
5713         * build-aux/bootstrap (get_version): Handle perl separately,
5714         since perl-5.11's --version output is different.
5715
5716 2009-11-28  Jim Meyering  <meyering@redhat.com>
5717
5718         userspec: depend on the inttostr module, too
5719         * modules/userspec (Depends-on): Add inttostr.
5720
5721         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
5722         * lib/userspec.c (parse_with_separator): Do not accept a user ID
5723         number of MAXUID when it evaluates to (uid_t) -1.
5724         Likewise for group ID.  Reported by Matt McCutchen in
5725         <http://savannah.gnu.org/bugs/?28113>
5726
5727         userspec: reformat to use spaces, not TABs
5728         * lib/userspec.c: Expand TABs to spaces.
5729         Add Emacs' "indent-tabs-mode: nil" hint.
5730
5731 2009-11-27  Eric Blake  <ebb9@byu.net>
5732
5733         getopt-gnu: flush out another BSD bug
5734         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
5735         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
5736         flush out BSD bug.
5737         * tests/test-getopt.h (test_getopt): End lists with NULL.
5738         * tests/test-getopt_long.h (test_getopt_long): Likewise.
5739         (test_getopt_long_posix): Enhance test.
5740         * modules/getopt-posix-tests (Depends-on): Add stdbool.
5741         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
5742         getopt-gnu.
5743         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5744         Likewise.
5745
5746 2009-11-27  Simon Josefsson  <simon@josefsson.org>
5747
5748         * modules/idpriv-droptemp-tests (Notice): Fix text.
5749
5750 2009-11-27  Jim Meyering  <meyering@redhat.com>
5751
5752         test-xalloc-die: avoid spurious failure due to libtool argv difference
5753         In a libtool-enabled project, this test would fail due to a difference
5754         in the emitted program name, e.g.,
5755         -test-xalloc-die: memory exhausted
5756         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
5757         Use program to avoid that.
5758         * modules/xalloc-die-tests (Depends-on): Add progname.
5759         * tests/test-xalloc-die.c: Include progname.h".
5760         (program_name): Remove decl.
5761         (main): Call set_program_name.
5762         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
5763
5764 2009-11-26  Richard Jones  <rjones@redhat.com>
5765
5766         w32sock: leave win32 error in place.
5767         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
5768
5769 2009-11-26  Eric Blake  <ebb9@byu.net>
5770
5771         init.sh: suggest to use skip_ and fail_ functions in comments
5772         * tests/init.sh: Add a sentence.
5773
5774 2009-11-25  Bruno Haible  <bruno@clisp.org>
5775
5776         init.sh: add documentation in comments
5777         * tests/init.sh: Add some developer and user documentation.
5778
5779 2009-11-26  Jim Meyering  <meyering@redhat.com>
5780
5781         init.sh: accommodate even those who specify bogus srcdir manually
5782         * tests/init.sh: Normally, srcdir is guaranteed by automake and
5783         configure-time tests to be sanitized, so that there is no need to
5784         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
5785         (with no double quotes) suffices.  However, since tests may be
5786         invoked manually, and since you may explicitly set srcdir to the
5787         name of a directory containing spaces, do quote its uses here.
5788         * tests/test-pread.sh: Likewise.
5789         Suggested by Bruno Haible.
5790
5791         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
5792         * tests/test-pread.sh: Write no data into the pipe, because
5793         test-pread actually reads none.  This avoids a diagnostic,
5794         "bash: echo: write error: Broken pipe", that arises in the unusual
5795         event something is ignoring SIGPIPE, and might be interpreted
5796         as some sort of failure.  Reported by Bruno Haible.
5797
5798 2009-11-25  Jim Meyering  <meyering@redhat.com>
5799
5800         test-pread: cover failure with ESPIPE and EINVAL
5801         * tests/test-pread.c (main): Test for failure, too.
5802         * tests/test-pread.sh: Invoke with stdin on a pipe.
5803         Suggested by Eric Blake.
5804
5805         pread: improvement and fix
5806         * modules/pread (Depends-on): Depend on lseek, for portability to
5807         e.g., mingw.  Suggested by Eric Blake.
5808         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
5809
5810         unistd.in.h: correct declaration of pread
5811         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
5812         Reported by Richard W.M. Jones.
5813
5814         test-pread.sh: distribute the test script
5815         * modules/pread-tests (Files): Include test-pread.sh.
5816
5817         test-pread.sh: clean up
5818         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
5819         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
5820         That is unnecessary, since it's always ".".
5821         Suggestion from Eric Blake.
5822
5823         test-pread.sh: make executable
5824         * tests/test-pread.sh: Set executable bit.
5825         Reported by Eric Blake.
5826
5827         correct typo in test-pread.sh
5828         * tests/test-pread.sh: Add #! line.
5829
5830         test pread
5831         * tests/test-pread.c: New file.
5832         * tests/test-pread.sh: Likewise.
5833         * modules/pread-tests: Likewise.
5834
5835         pread: new module
5836         * modules/pread: New file.
5837         * lib/unistd.in.h (pread): Define/declare.
5838         * lib/pread.c (pread): New file.
5839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
5840         * modules/unistd (Makefile.am): Substitute witnesses.
5841         * doc/posix-functions/pread.texi (pread): Update.
5842         * MODULES.html.sh: Add pread.
5843
5844 2009-11-25  Jim Meyering  <meyering@redhat.com>
5845
5846         tests/init.sh: new file to be used via most *.sh tests
5847         * tests/init.sh: New file.
5848
5849 2009-11-25  Eric Blake  <ebb9@byu.net>
5850
5851         utimens: work around older Linux failure with symlinks
5852         * lib/utimens.c (lutimensat_works_really): New variable.
5853         (fdutimens, lutimens): Use it to manage kernels that support
5854         nanosecond times on files, but not on symlinks.
5855         Reported by OndÅ™ej Vašík.
5856
5857         utimes: fix configure grammar
5858         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
5859
5860 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
5861
5862         regex: Fix fastmap for multibyte character ranges.
5863         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
5864         characters when a multibyte character range is included.
5865
5866 2009-11-22  Andy Wingo  <wingo@pobox.com>
5867
5868         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
5869         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
5870
5871 2009-11-24  Bruno Haible  <bruno@clisp.org>
5872
5873         doc: Most *_l functions exist in MacOS X 10.5.
5874         * doc/posix-functions/duplocale.texi: Update platforms list.
5875         * doc/posix-functions/freelocale.texi: Likewise.
5876         * doc/posix-functions/newlocale.texi: Likewise.
5877         * doc/posix-functions/uselocale.texi: Likewise.
5878         * doc/posix-functions/isalnum_l.texi: Likewise.
5879         * doc/posix-functions/isalpha_l.texi: Likewise.
5880         * doc/posix-functions/isblank_l.texi: Likewise.
5881         * doc/posix-functions/iscntrl_l.texi: Likewise.
5882         * doc/posix-functions/isdigit_l.texi: Likewise.
5883         * doc/posix-functions/isgraph_l.texi: Likewise.
5884         * doc/posix-functions/islower_l.texi: Likewise.
5885         * doc/posix-functions/isprint_l.texi: Likewise.
5886         * doc/posix-functions/ispunct_l.texi: Likewise.
5887         * doc/posix-functions/isspace_l.texi: Likewise.
5888         * doc/posix-functions/isupper_l.texi: Likewise.
5889         * doc/posix-functions/iswalnum_l.texi: Likewise.
5890         * doc/posix-functions/iswalpha_l.texi: Likewise.
5891         * doc/posix-functions/iswblank_l.texi: Likewise.
5892         * doc/posix-functions/iswcntrl_l.texi: Likewise.
5893         * doc/posix-functions/iswctype_l.texi: Likewise.
5894         * doc/posix-functions/iswdigit_l.texi: Likewise.
5895         * doc/posix-functions/iswgraph_l.texi: Likewise.
5896         * doc/posix-functions/iswlower_l.texi: Likewise.
5897         * doc/posix-functions/iswprint_l.texi: Likewise.
5898         * doc/posix-functions/iswpunct_l.texi: Likewise.
5899         * doc/posix-functions/iswspace_l.texi: Likewise.
5900         * doc/posix-functions/iswupper_l.texi: Likewise.
5901         * doc/posix-functions/iswxdigit_l.texi: Likewise.
5902         * doc/posix-functions/isxdigit_l.texi: Likewise.
5903         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
5904         * doc/posix-functions/strcasecmp_l.texi: Likewise.
5905         * doc/posix-functions/strcoll_l.texi: Likewise.
5906         * doc/posix-functions/strfmon_l.texi: Likewise.
5907         * doc/posix-functions/strftime_l.texi: Likewise.
5908         * doc/posix-functions/strncasecmp_l.texi: Likewise.
5909         * doc/posix-functions/strxfrm_l.texi: Likewise.
5910         * doc/posix-functions/tolower_l.texi: Likewise.
5911         * doc/posix-functions/toupper_l.texi: Likewise.
5912         * doc/posix-functions/towctrans_l.texi: Likewise.
5913         * doc/posix-functions/towlower_l.texi: Likewise.
5914         * doc/posix-functions/towupper_l.texi: Likewise.
5915         * doc/posix-functions/wcscoll_l.texi: Likewise.
5916         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
5917         * doc/posix-functions/wctrans_l.texi: Likewise.
5918         * doc/posix-functions/wctype_l.texi: Likewise.
5919         * doc/glibc-functions/strptime_l.texi: Likewise.
5920         * doc/glibc-functions/strtod_l.texi: Likewise.
5921         * doc/glibc-functions/strtof_l.texi: Likewise.
5922         * doc/glibc-functions/strtol_l.texi: Likewise.
5923         * doc/glibc-functions/strtold_l.texi: Likewise.
5924         * doc/glibc-functions/strtoll_l.texi: Likewise.
5925         * doc/glibc-functions/strtoul_l.texi: Likewise.
5926         * doc/glibc-functions/strtoull_l.texi: Likewise.
5927         * doc/glibc-functions/wcsftime_l.texi: Likewise.
5928         * doc/glibc-functions/wcstod_l.texi: Likewise.
5929         * doc/glibc-functions/wcstof_l.texi: Likewise.
5930         * doc/glibc-functions/wcstol_l.texi: Likewise.
5931         * doc/glibc-functions/wcstold_l.texi: Likewise.
5932         * doc/glibc-functions/wcstoll_l.texi: Likewise.
5933         * doc/glibc-functions/wcstoul_l.texi: Likewise.
5934         * doc/glibc-functions/wcstoull_l.texi: Likewise.
5935
5936 2009-11-24  Bruno Haible  <bruno@clisp.org>
5937
5938         duplocale: Fix logic bug.
5939         * lib/duplocale.c: Don't include <langinfo.h>.
5940         (_NL_LOCALE_NAME): Remove macro.
5941         (rpl_duplocale): Use setlocale instead of nl_langinfo.
5942         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
5943
5944 2009-11-23  Jim Meyering  <meyering@redhat.com>
5945
5946         test-update-copyright: don't hard-code /usr/bin/perl
5947         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
5948         perl to print the current year.  Gilles Espinasse reported that
5949         the replaced use of perl was hard-coded as /usr/bin/perl.
5950
5951 2009-11-23  Bruno Haible  <bruno@clisp.org>
5952
5953         duplocale: Add support for glibc 2.3.x.
5954         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
5955
5956 2009-11-22  Bruno Haible  <bruno@clisp.org>
5957
5958         vasnprintf: Tiny optimization.
5959         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
5960         MacOS X.
5961
5962 2009-11-22  Bruno Haible  <bruno@clisp.org>
5963
5964         Tests for module 'duplocale'.
5965         * modules/duplocale-tests: New file.
5966         * tests/test-duplocale.c: New file.
5967
5968         New module 'duplocale'.
5969         * m4/duplocale.m4: New file.
5970         * lib/locale.in.h (duplocale): New declaration.
5971         * lib/duplocale.c: New file.
5972         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
5973         gl_LOCALE_H_DEFAULTS): New macros.
5974         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
5975         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
5976         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
5977         REPLACE_DUPLOCALE.
5978         * modules/duplocale: New file.
5979         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
5980
5981 2009-11-22  Bruno Haible  <bruno@clisp.org>
5982
5983         * modules/locale-tests (configure.ac): Test for newlocale function.
5984         * tests/test-locale.c: When the system has extended locale functions,
5985         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
5986
5987         locale: Make locale_t available when possible.
5988         * lib/locale.in.h: Include <xlocale.h> when it exists.
5989         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
5990         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
5991         * modules/locale (Depends-on): Add extensions.
5992         (Makefile.am): Also substitute HAVE_XLOCALE_H.
5993         * doc/posix-headers/locale.texi: Document the problem with locale_t.
5994
5995 2009-11-22  Bruno Haible  <bruno@clisp.org>
5996
5997         Add comments.
5998         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
5999         invocation.
6000         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
6001         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6002         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6003
6004 2009-11-22  Bruno Haible  <bruno@clisp.org>
6005
6006         error: account for the possibility of freopen (stdout).
6007         * lib/error.c: Include <unistd.h>.
6008         (flush_stdout): New function, extracted from error and error_at_line.
6009         Determine stdout's fd dynamically.
6010         (error, error_at_line): Invoke flush_stdout.
6011         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
6012         * modules/error (Depends-on): Add unistd.
6013
6014 2009-11-22  Bruno Haible  <bruno@clisp.org>
6015
6016         diffseq: Add comment.
6017         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
6018
6019 2009-11-22  Jim Meyering  <meyering@redhat.com>
6020
6021         c-stack: avoid defining an unused static function
6022         * lib/c-stack.c (find_stack_direction): Do not define this function
6023         when it will not be used.
6024
6025         diffseq: avoid spurious gcc warnings
6026         * lib/diffseq.h (IF_LINT2): Define.
6027         (compareseq): Use it to initialize two members of "part".
6028         This avoids two used-uninitialized warnings.
6029
6030 2009-11-21  Jim Meyering  <meyering@redhat.com>
6031
6032         c-stack: avoid "ignoring return value of `write'" warning
6033         * lib/c-stack.c: Include "ignore-value.h".
6034         (die): Explicitly ignore each write return value.
6035         * modules/c-stack (Depends-on): Add ignore-value.
6036
6037 2009-11-21  Bruno Haible  <bruno@clisp.org>
6038
6039         diffseq: reduce scope of variable 'best'.
6040         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
6041         variable, earlier used for two different purposes.
6042
6043 2009-11-21  Jim Meyering  <meyering@redhat.com>
6044
6045         diffseq: remove useless assignment to "best"
6046         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
6047         assignment.  At that point "best" is already guaranteed to be zero.
6048
6049 2009-11-20  Eric Blake  <ebb9@byu.net>
6050
6051         build: mention ftp redirector in release announcements
6052         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
6053         values that used to come from cfg.mk; mention FTP redirect URL.
6054         * build-aux/announce-gen: Mention the mirror list.
6055         Suggested by Karl Berry.
6056
6057         nanosleep: improve port to mingw
6058         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
6059         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
6060         LIB_NANOSLEEP, but only when needed.
6061         * modules/select (Link): Document LIBSOCKET.
6062         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
6063         enough.
6064
6065         nanosleep: work around cygwin bug
6066         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
6067         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
6068         bug.
6069         (getnow): Delete, not needed.
6070         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
6071         LIB_CLOCK_GETTIME.
6072         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
6073         clock-time, gettime.
6074         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
6075         bug.
6076         * modules/nanosleep-tests: New test.
6077         * tests/test-nanosleep.c: New file.
6078
6079         sleep: work around cygwin bug
6080         * lib/sleep.c (rpl_sleep): Work around the bug.
6081         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
6082         (gl_PREREQ_SLEEP): Delete unused macro.
6083         * modules/sleep (Depends-on): Add verify.
6084         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6085         * modules/unistd (Makefile.am): Substitute witness.
6086         * lib/unistd.in.h (sleep): Update prototype.
6087         * doc/posix-functions/sleep.texi (sleep): Document the bug.
6088         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
6089         * modules/sleep-tests (Depends-on): Check for alarm.
6090
6091 2009-11-20  Jim Meyering  <meyering@redhat.com>
6092
6093         maint.mk: improve sc_prohibit_magic_number_exit
6094         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
6095         so it does not match uses like System.exit(1).
6096         Add comments showing how to correct all offenders.
6097
6098 2009-11-19  Eric Blake  <ebb9@byu.net>
6099
6100         xalloc-die-tests: add missing library
6101         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
6102
6103         test-xvasprintf: silence compiler warnings
6104         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
6105         empty string from gcc.
6106
6107 2009-11-19  Jim Meyering  <meyering@redhat.com>
6108
6109         xfreopen: new module, from coreutils
6110         * modules/xfreopen: New module.
6111         * lib/xfreopen.c: New file.
6112         * lib/xfreopen.h: New file.
6113         * MODULES.html.sh (File stream based Input/Output"): Add it.
6114
6115 2009-11-19  Eric Blake  <ebb9@byu.net>
6116
6117         manywarnings: depend on warnings
6118         * modules/manywarnings (Depends-on): Add warnings.
6119
6120         build: avoid compiler warnings
6121         * lib/select.c (rpl_select): Delete unused variable.
6122         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
6123
6124 2009-11-18  Eric Blake  <ebb9@byu.net>
6125
6126         tests: avoid false negative with --with-packager
6127         * tests/test-version-etc.sh: Discard packager information.
6128         * tests/test-argp-version-etc-1.sh: Likewise.
6129         Reported by Mike Frysinger.
6130
6131         utimens: fix regression on Solaris
6132         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
6133         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
6134         can only change fd timestamps via futimesat.  Instead, use an
6135         additional witness macro to avoid BSD bug.
6136         Reported by Jim Meyering.
6137
6138 2009-11-17  Eric Blake  <ebb9@byu.net>
6139
6140         usleep: use it to simplify tests
6141         * modules/stat-time-tests (Depends-on): Add usleep.
6142         (configure.ac): Drop usleep check.
6143         * modules/chown-tests (Depends-on, configure.ac): Likewise.
6144         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
6145         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
6146         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
6147         * modules/openat-tests (Depends-on, configure.ac): Likewise.
6148         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
6149         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
6150         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
6151         Likewise.
6152         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
6153         * tests/test-lchown.h (nap): Likewise.
6154         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
6155         * tests/test-stat-time.c (nap): Likewise.
6156         * tests/test-utimens-common.h (nap): Update comments.
6157
6158         usleep: new module
6159         * modules/usleep: New file.
6160         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
6161         * lib/usleep.c (usleep): Likewise.
6162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
6163         * modules/unistd (Makefile.am): Substitute witnesses.
6164         * lib/unistd.in.h (usleep): Add declaration.
6165         * doc/pastposix-functions/usleep.texi (usleep): Document this.
6166         * MODULES.html.sh (Date and time): Likewise.
6167         * modules/usleep-tests (Depends-on): New test.
6168         * tests/test-usleep.c: New file.
6169
6170         chown: work around OpenBSD bug
6171         * lib/chown.c (rpl_chown): Work around the bug.
6172         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
6173         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
6174         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
6175         * modules/chown (Depends-on): Add stdbool.
6176         * modules/lchown (Depends-on): Likewise.
6177         * doc/posix-functions/chown.texi (chown): Document the bug.
6178         * doc/posix-functions/lchown.texi (lchown): Likewise.
6179         * tests/test-lchown.h (test_chown): Relax test.
6180
6181         mkstemp: avoid conflict with C++ keyword template
6182         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
6183         * lib/mkostemp.c (mkostemp): Likewise.
6184         * lib/mkostemps.c (mkostemps): Likewise.
6185         * lib/mkstemp.c (mkstemp): Likewise.
6186         * lib/mkstemps.c (mkstemps): Likewise.
6187
6188         xalloc-die-tests: optimize
6189         * tests/test-xalloc-die.sh: Reduce number of processes.
6190
6191 2009-11-17  Simon Josefsson  <simon@josefsson.org>
6192
6193         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
6194         patch from ludo@gnu.org (Ludovic Courtès).
6195
6196 2009-11-17  Jim Meyering  <meyering@redhat.com>
6197
6198         version-etc: use proper license string
6199         * modules/version-etc (License): Use LGPL, not LGPLv3+.
6200         * modules/version-etc-fsf: Likewise.
6201
6202 2009-11-17  Simon Josefsson  <simon@josefsson.org>
6203
6204         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
6205         printed to stdout.  Deal with EOL differences.
6206
6207 2009-11-17  Eric Blake  <ebb9@byu.net>
6208
6209         unsetenv: work around Solaris bug
6210         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
6211         * lib/unsetenv.c (rpl_unsetenv): Work around it.
6212         Reported by Jim Meyering.
6213
6214         vasnprintf: avoid compiler warnings
6215         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
6216         variables.
6217         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
6218
6219 2009-11-17  Simon Josefsson  <simon@josefsson.org>
6220
6221         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
6222         settings since xalloc-die is no longer the self test,
6223         xalloc-die.sh is.
6224
6225 2009-11-17  Jim Meyering  <meyering@redhat.com>
6226
6227         test-xalloc-die.sh: make the code agree with the commit log
6228         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
6229         at the end, just in case you happen to have a test-xalloc-die
6230         program in some other PATH directory.
6231
6232         test-xalloc-die.sh: fix a portability bug
6233         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
6234         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
6235         Otherwise, argv[0] (as often seen in diagnostics) would be too
6236         system-dependent, sometimes with, and sometimes without the leading "./".
6237
6238         version-etc-fsf: relax license to LGPLv3+
6239         * modules/version-etc-fsf (License): Relax license.
6240
6241 2009-11-16  Eric Blake  <ebb9@byu.net>
6242
6243         xalloc-die-tests: avoid printing null pointer
6244         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
6245         shell script.
6246         * tests/test-xalloc-die.c (program_name): Declare.
6247         * tests/test-xalloc-die.sh (tmpfiles): New file.
6248
6249         setenv, unsetenv: work around various bugs
6250         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
6251         (setenv) [HAVE_SETENV]: Work around bugs.
6252         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
6253         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
6254         for bugs.
6255         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
6256         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
6257         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
6258         * modules/stdlib (Makefile.am): Update substitutions.
6259         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
6260         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
6261         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6262         * modules/setenv-tests: New test.
6263         * modules/unsetenv-tests: Likewise.
6264         * tests/test-setenv.c: New file.
6265         * tests/test-unsetenv.c: Likewise.
6266
6267 2009-11-16  Jim Meyering  <meyering@redhat.com>
6268
6269         version-etc: relax license to LGPLv3+
6270         * modules/version-etc (License): Relax license.
6271
6272         better AC_REQUIRE expanded-before-required-warning avoidance
6273         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
6274         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
6275         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
6276         which is no longer needed.
6277
6278 2009-11-16  Eric Blake  <ebb9@byu.net>
6279
6280         test-freading: clean up temporary file
6281         * tests/test-freading.c (main): Remove file on success, and use
6282         ASSERT more liberally.
6283         Reported by Jim Meyering.
6284
6285 2009-11-16  Jim Meyering  <meyering@redhat.com>
6286
6287         avoid new AC_REQUIRE expanded-before-required warnings
6288         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
6289         merely using it.
6290         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
6291         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
6292
6293 2009-11-15  Simon Josefsson  <simon@josefsson.org>
6294
6295         * tests/test-xalloc-die.c: New file.
6296         * modules/xalloc-die-tests: New file.
6297         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
6298         XFAIL_TESTS so it can be appended by modules.
6299
6300 2009-11-15  Simon Josefsson  <simon@josefsson.org>
6301
6302         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
6303         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
6304
6305 2009-11-14  Eric Blake  <ebb9@byu.net>
6306
6307         fnmatch: avoid compiler warning
6308         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
6309         to silence compiler warning about mismatch signedness in ?:.
6310         Reported by Robert Millan.
6311
6312         intprops: add double-inclusion guard
6313         * lib/intprops.h: Allow idempotent includes.
6314         Suggested by Bruce Korb.
6315
6316         openat: detect Solaris fchownat bug
6317         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
6318         penalizing glibc chownat when only lchownat is broken.
6319         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
6320         trailing slash bugs.
6321         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
6322         * modules/openat-tests (Files): Include more files.
6323         (Depends-on): Add mgetgroups, sleep, stat-time.
6324         (configure.ac): Add additional checks.
6325         (Makefile.am): Build new test.
6326         * tests/test-fchownat.c: New file.
6327
6328         lchown: detect Solaris and FreeBSD bug
6329         * lib/lchown.c (rpl_lchown): Work around bug.
6330         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
6331         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6332         * modules/unistd (Makefile.am): Populate it.
6333         * lib/unistd.in.h (lchown): Update declaration.
6334         * doc/posix-functions/lchown.texi (lchown): Document the bug.
6335         * modules/lchown-tests: New file.
6336         * tests/test-lchown.h (test_lchown): Likewise.
6337         * tests/test-lchown.c (main): Likewise.
6338
6339         chown: detect Solaris and FreeBSD bug
6340         * lib/chown.c (rpl_chown): Work around bug.
6341         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
6342         (gl_PREREQ_CHOWN): Delete.
6343         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6344         * modules/unistd (Makefile.am): Populate it.
6345         * lib/unistd.in.h (chown): Update declaration.
6346         * lib/lchown.c (chown): Update client.
6347         * modules/lchown (Depends-on): Add lstat.
6348         * doc/posix-functions/chown.texi (chown): Document the bug.
6349         * doc/posix-functions/getgroups.texi (getgroups): Document
6350         getgroups pitfall.
6351         * modules/chown-tests: New file.
6352         * tests/test-chown.h (test_chown): Likewise.
6353         * tests/test-chown.c (main): Likewise.
6354
6355 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
6356
6357         gnulib-tool: correctly detect absence of m4 directories
6358         * gnulib-tool: Avoid extra newline on data passed to wc -l.
6359
6360 2009-11-14  Jim Meyering  <meyering@redhat.com>
6361
6362         maint.mk: Prohibit inclusion of "xalloc.h" without use.
6363         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
6364
6365 2009-11-14  John W. Eaton  <jwe@gnu.org>
6366
6367         strftime.h: wrap funtion declaration in extern "C" block
6368         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
6369
6370 2009-11-13  Eric Blake  <ebb9@byu.net>
6371
6372         getgroups: avoid compiler warning
6373         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
6374
6375         getgroups: work around FreeBSD bug
6376         * lib/getgroups.c (rpl_getgroups): Work around the bug.
6377         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
6378         * doc/posix-functions/getgroups.texi (getgroups): Document it.
6379         * tests/test-getgroups.c (main): Fix buffer overrun.
6380
6381         getgroups: avoid compilation failure
6382         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
6383         * modules/getgroups (Depends-on): Add stdint.
6384
6385 2009-11-13  Jim Meyering  <meyering@redhat.com>
6386
6387         test-getgroups: avoid compilation failure
6388         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
6389
6390 2009-11-13  Eric Blake  <ebb9@byu.net>
6391
6392         mgetgroups: new module, taken from coreutils
6393         * modules/mgetgroups: New file.
6394         * lib/mgetgroups.h: Likewise.
6395         * lib/mgetgroups.c (mgetgroups): Likewise.
6396         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
6397         * MODULES.html.sh (Users and groups): Mention it.
6398
6399         getgroups: don't expose GETGROUPS_T to user
6400         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
6401         an element at a time if GETGROUPS_T is wrong size.
6402         * lib/getugroups.h (getugroups): Change signature.
6403         * lib/unistd.in.h (getgroups): Likewise.
6404         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
6405         signature needs fixing.
6406         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
6407         AC_TYPE_GETGROUPS.
6408         * modules/group-member (Depends-on): Add getgroups.
6409         * lib/group-member.c (group_info, get_group_info): Use gid_t.
6410         (group_member): Rely on getgroups replacement.
6411         * lib/getugroups.c (getugroups): Use gid_t.
6412         * tests/test-getgroups.c (main): Likewise.
6413         * NEWS: Mention the signature change.
6414         * doc/posix-functions/getgroups.texi (getgroups): Mention the
6415         problem with signature.
6416         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
6417         GETGROUPS_T is still useful for setgroups.
6418
6419         getgroups, getugroups: provide stubs for mingw
6420         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
6421         * lib/getugroups.c (getugroups): Likewise.
6422         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
6423         function.  Modernize replacement scheme.
6424         (gl_PREREQ_GETGROUPS): Delete.
6425         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
6426         * modules/getgroups (configure.ac): Declare witness.
6427         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6428         * modules/unistd (Depends-on): Substitute witness.
6429         * lib/unistd.in.h (getgroups): Declare replacement.
6430
6431         getgroups: avoid calling exit
6432         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
6433         drop xalloc.
6434         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
6435         dependencies.
6436         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
6437         exiting, in the rare case of malloc failure.
6438
6439         getgroups: fix logic error
6440         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
6441         has more than 20 groups.
6442         * modules/getgroups-tests: New test.
6443         * tests/test-getgroups.c: New file.
6444
6445 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6446
6447         * tests/test-base64.c: Improve.
6448
6449 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6450
6451         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
6452         Blake <ebb9@byu.net>.
6453
6454 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6455
6456         * tests/test-xvasprintf.c: Add %s%s related checks.
6457
6458 2009-11-12  Eric Blake  <ebb9@byu.net>
6459
6460         version-etc: match standards.texi style
6461         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
6462         and use <> only for URLs.
6463
6464 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
6465
6466         fts: do not fail on a submount during traversal
6467         * lib/fts.c (fts_build): Read the stat info again after opening
6468         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
6469         Original report at http://bugzilla.redhat.com/501848.
6470
6471 2009-11-12  Jim Meyering  <meyering@redhat.com>
6472
6473         bootstrap: sync from coreutils
6474         * build-aux/bootstrap (bootstrap_epilogue): New function.
6475         Use git_modules_config in one more place.  This make bootstrap's
6476         --gnulib-srcdir option more useful for testing.
6477
6478         bootstrap: generalize autoheader check
6479         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
6480         AC_CONFIG_HEADERS.
6481
6482 2009-11-11  Eric Blake  <ebb9@byu.net>
6483
6484         mkfifoat: use new modules for Solaris and BSD bugs
6485         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
6486         * lib/mkfifoat.c (mknodat): Split...
6487         * lib/mknodat.c (mknodat): ...into new file.
6488         * modules/mkfifoat (Files): Ship new file.
6489         (Depends-on): Add mkfifo, mknod.
6490         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
6491         (Depends-on): Add symlink.
6492         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
6493         redundant with test_mkfifo.h.
6494         (do_mkfifoat, do_mknodat): New helpers.
6495
6496         mknod: new module
6497         * modules/mknod: New file.
6498         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
6499         * lib/mknod.c (mknod): Likewise.
6500         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
6501         defaults.
6502         * modules/sys_stat (Makefile.am): Substitute them.
6503         * lib/sys_stat.in.h (mknod): Declare replacement.
6504         * MODULES.html.sh (Support for systems lacking POSIX:2008):
6505         Document it.
6506         * doc/posix-functions/mknod.texi (mknod): Likewise.
6507         * modules/mknod-tests: New test.
6508         * tests/test-mknod.c: Likewise.
6509
6510         mkfifo: new module
6511         * modules/mkfifo: New file.
6512         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
6513         * lib/mkfifo.c (mkfifo): Likewise.
6514         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
6515         defaults.
6516         * modules/sys_stat (Makefile.am): Substitute them.
6517         * lib/sys_stat.in.h (mkfifo): Declare replacement.
6518         * MODULES.html.sh (Support for systems lacking POSIX:2008):
6519         Document it.
6520         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
6521         * modules/mkfifo-tests: New test.
6522         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
6523         from test-mkfifoat.c.
6524         * tests/test-mkfifo.c: New file.
6525
6526         readlink: detect FreeBSD bug
6527         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
6528         slash on symlink.
6529         * doc/posix-functions/readlink.texi (readlink): Document the bug.
6530         * tests/test-readlink.h (test_readlink): Enhance test.
6531
6532         symlink: detect FreeBSD bug
6533         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
6534         slash on symlink.
6535         * doc/posix-functions/symlink.texi (symlink): Document the bug.
6536         * tests/test-symlink.h (test_symlink): Enhance test.
6537
6538 2009-11-10  Eric Blake  <ebb9@byu.net>
6539
6540         link: detect FreeBSD bug
6541         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
6542         symlink.
6543         * doc/posix-functions/link.texi (link): Document the bug.
6544         * tests/test-link.h (test_link): Enhance test.
6545         * tests/test-linkat.c (main): Update caller.
6546
6547         unlink, remove: detect FreeBSD bug
6548         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
6549         slash on symlink.
6550         * doc/posix-functions/unlink.texi (unlink): Document the bug.
6551         * doc/posix-functions/remove.texi (remove): Likewise.
6552         * tests/test-unlink.h (test_unlink): Enhance test.
6553         * tests/test-remove.c (main): Likewise.
6554
6555 2009-11-09  Eric Blake  <ebb9@byu.net>
6556
6557         rename: detect FreeBSD bug
6558         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
6559         slash on symlink.
6560         * modules/renameat-tests (Depends-on): Add filenamecat.
6561         * tests/test-rename.h (test_rename): Allow one more errno.
6562         * tests/test-renameat.c (main): Likewise.
6563         * doc/posix-functions/rename.texi (rename): Document the bug.
6564
6565         open: detect FreeBSD bug
6566         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
6567         symlink.
6568         * doc/posix-functions/open.texi (open): Document the bug.
6569         * doc/posix-functions/utimes.texi (utimes): Likewise.
6570         * tests/test-open.h (test_open): Add parameters, and test symlink
6571         handling.
6572         * tests/test-open.c (main): Adjust caller.
6573         * tests/test-fcntl-safer.c (main): Likewise.
6574         * modules/open-tests (Depends-on): Add stdbool, symlink.
6575         * modules/fcntl-safer-tests (Depends-on): Likewise.
6576         * tests/test-openat.c (main): Add test-open tests.
6577
6578         stat: detect FreeBSD bug
6579         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
6580         symlink.
6581         * doc/posix-functions/stat.texi (stat): Document the bug.
6582         * tests/test-stat.h (test_stat_func): Add argument.
6583         * tests/test-stat.c (main): Adjust caller.
6584         * tests/test-fstatat.c (main): Likewise.
6585         * modules/stat-tests (Depends-on): Add stdbool, symlink.
6586         Reported by Jim Meyering.
6587
6588 2009-11-09  James Youngman  <jay@gnu.org>
6589
6590         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
6591         * lib/strftime.c: Correct placement of #include "ignore-value.h".
6592
6593 2009-11-08  Jim Meyering  <meyering@redhat.com>
6594
6595         utimens: remove invalid futimesat call
6596         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
6597         It used the file descriptor of the target file as the DIR_FD
6598         parameter and NULL as the file name.  That caused failure with
6599         errno == EFAULT on FreeBSD-8.0-rc2
6600
6601 2009-11-07  Eric Blake  <ebb9@byu.net>
6602
6603         fflush, freadseek: use fseeko, not fseek
6604         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
6605         (clear_ungetc_buffer): Avoid potential problems on large files.
6606         * lib/freadseek.c (freadseek): Likewise.
6607         * modules/freadseek (Depends-on): Add fseeko.
6608         * modules/fseek (configure.ac): Set a witness.
6609         * tests/test-fflush.c (main): Use fseeko.
6610         * tests/test-fpurge.c (fseek): Disable link warning.
6611         * tests/test-freadable.c (fseek): Likewise.
6612         * tests/test-freading.c (fseek): Likewise.
6613         * tests/test-fseeko.c (fseek): Likewise.
6614         * tests/test-ftell.c (fseek): Likewise.
6615         * tests/test-ftello.c (fseek): Likewise.
6616         * tests/test-fwritable.c (fseek): Likewise.
6617         * tests/test-fwriting.c (fseek): Likewise.
6618
6619 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6620
6621         * modules/memchr (Depends-on): Drop getpagesize dependency.
6622
6623 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6624
6625         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
6626         Reported by Ludovic Courtès.
6627         * build-aux/pmccabe2html: Improve example usage.
6628         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
6629
6630 2009-11-06  Jim Meyering  <meyering@redhat.com>
6631
6632         do-release-commit-and-tag: New module.
6633         Automate the release-commit and tag process.
6634         * build-aux/do-release-commit-and-tag: New script, from coreutils.
6635         * modules/do-release-commit-and-tag: New file.
6636         * MODULES.html.sh (Support for maintaining and releasing): Add it.
6637
6638 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6639
6640         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
6641         because test-select.c uses inet_pton.
6642
6643 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6644
6645         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
6646         GETADDRINFO_LIB.  Bump serial number.
6647         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
6648         Suggested by Eric Blake <ebb9@byu.net>.
6649
6650 2009-11-05  Eric Blake  <ebb9@byu.net>
6651
6652         strtod: detect darwin bug
6653         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
6654         Reported by Leo Davis.
6655
6656         freopen-safer: new module
6657         * modules/freopen-safer: New module.
6658         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
6659         * lib/freopen-safer.c (freopen_safer): New file.
6660         * lib/stdio-safer.h (freopen_safer): New declaration.
6661         * lib/stdio--.h (freopen): New override.
6662         * MODULES.html.sh (File stream based Input/Output): Mention it.
6663         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
6664         freopen-safer module.
6665         * doc/posix-functions/stderr.texi (stderr): Likewise.
6666         * doc/posix-functions/stdin.texi (stdin): Likewise.
6667         * doc/posix-functions/stdout.texi (stdout): Likewise.
6668         * modules/freopen-safer-tests: New test.
6669         * tests/test-reopen-safer.c: New file.
6670
6671 2009-11-05  Jim Meyering  <meyering@redhat.com>
6672
6673         maint.mk: Prohibit inclusion of "close-stream.h" without use.
6674         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
6675
6676 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6677
6678         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
6679
6680 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6681
6682         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
6683
6684 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6685
6686         Fix link error.
6687         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
6688         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
6689
6690 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6691
6692         * tests/test-func.c: Also test value of __func__.
6693
6694 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6695
6696         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
6697         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
6698
6699 2009-11-05  Bruno Haible  <bruno@clisp.org>
6700
6701         Fix link error.
6702         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
6703         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
6704         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
6705
6706 2009-11-05  Bruno Haible  <bruno@clisp.org>
6707
6708         Tests for module 'inet_pton'.
6709         * modules/inet_pton-tests: New file.
6710         * tests/test-inet_pton.c: New file.
6711
6712 2009-11-05  Bruno Haible  <bruno@clisp.org>
6713
6714         Tests for module 'inet_ntop'.
6715         * modules/inet_ntop-tests: New file.
6716         * tests/test-inet_ntop.c: New file.
6717
6718 2009-11-04  Eric Blake  <ebb9@byu.net>
6719
6720         stdlib-safer: wrap all mkstemp variants
6721         * modules/mkostemp (configure.ac): Set witness.
6722         * modules/mkostemps (configure.ac): Likewise.
6723         * modules/mkstemps (configure.ac): Likewise.
6724         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
6725         (mkstemps_safer): Wrap more functions.
6726         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
6727         wrapping.
6728         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
6729         (mkstemps_safer): Implement the wrappers.
6730
6731         mkstemps, mkostemps: new modules
6732         * modules/mkostemps: New module.
6733         * modules/mkstemps: Likewise.
6734         * lib/mkostemps.c (mkostemps): New file.
6735         * lib/mkstemps.c (mkstemps): Likewise.
6736         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
6737         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
6738         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
6739         * modules/stdlib (Makefile.am): Substitute them.
6740         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
6741         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
6742         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
6743         * doc/gnulib.texi (Glibc stdlib.h): Include them.
6744         * MODULES.html.sh (File system functions): Mention them.
6745
6746         tempname: resync from glibc
6747         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
6748         same values for __GT_FILE as glibc.  Abort even when assertions
6749         are disabled.
6750         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
6751         match its value otherwise.  Allow idempotent inclusion.
6752         * lib/mkdtemp.c (mkdtemp): Adjust caller.
6753         * lib/mkostemp.c (mkostemp): Likewise.
6754         * lib/mkstemp.c (mkstemp): Likewise.
6755         * lib/tmpfile.c (tmpfile): Likewise.
6756         * NEWS: Document this.
6757
6758         utimens: fix use of futimens on older Linux
6759         * lib/utimens.c (fdutimens): Use updated, rather than original,
6760         timespec to avoid bug in older Linux kernel.
6761         Reported by Simon Josefsson.
6762
6763 2009-11-04  Bruno Haible  <bruno@clisp.org>
6764
6765         Make num_processors more flexible and consistent.
6766         * lib/nproc.h (enum nproc_query): New type.
6767         (num_processors): Add a 'query' argument.
6768         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
6769         (num_processors): Add a 'query' argument. Test the value of the
6770         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
6771         mingw, count the number of CPUs available for the current process.
6772         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
6773         Check for sched_getaffinity and sched_getaffinity_np.
6774         * modules/nproc (Depends-on): Add c-ctype, extensions.
6775         * NEWS: Mention the change.
6776
6777 2009-11-03  Bruno Haible  <bruno@clisp.org>
6778
6779         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
6780
6781 2009-11-03  Jim Meyering  <meyering@redhat.com>
6782
6783         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
6784         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
6785         if it is defined.
6786
6787 2009-11-02  Eric Blake  <ebb9@byu.net>
6788
6789         mktime, timegm: share common declaration
6790         * lib/mktime-internal.h: New file.
6791         * lib/mktime.c: Use it rather than open-coding a declaration.
6792         * lib/timegm.c: Likewise.
6793         * modules/mktime (Files): Ship it.
6794         * modules/timegm (Files): Likewise.
6795         Suggested by Bruno Haible.
6796
6797         test-update-copyright: update test to match script changes
6798         * tests/test-update-copyright.sh: Avoid hard-coding perl
6799         location.  Don't update *.bak created by earlier runs.
6800
6801 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
6802             Simon Josefsson  <simon@josefsson.org>
6803             Bruno Haible  <bruno@clisp.org>
6804
6805         Fix link error on Solaris 8.
6806         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
6807         also in libnsl. Define also INET_PTON_LIB.
6808         * modules/inet_pton (Link): New section.
6809
6810 2009-11-02  Simon Josefsson  <simon@josefsson.org>
6811             Bruno Haible  <bruno@clisp.org>
6812
6813         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
6814         * modules/inet_ntop (Link): New section.
6815         Reported by Boyan Kasarov <bkasarov@gmail.com>.
6816
6817 2009-11-02  Eric Blake  <ebb9@byu.net>
6818
6819         maint: avoid compiler warnings in m4 macros
6820         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
6821         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
6822
6823 2009-11-02  Simon Josefsson  <simon@josefsson.org>
6824
6825         * m4/pmccabe2html.m4: Remove file.
6826         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
6827         function.  Change maintainer.
6828         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
6829         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
6830         Courtès).
6831
6832 2009-10-31  Eric Blake  <ebb9@byu.net>
6833
6834         fseeko: fix m4 regression
6835         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
6836         regression from 2009-10-27.
6837         Reported by Ralf Wildenhues.
6838
6839 2009-10-31  Jim Meyering  <meyering@redhat.com>
6840
6841         inttostr: aesthetics and improved (compile-time) safety
6842         Define inttype_is_signed rather than inttype_is_unsigned,
6843         since the sole use is via "#if inttype_is_signed".
6844         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
6845         inttype_is_unsigned.
6846         * lib/offtostr.c (inttype_is_signed): Likewise.
6847         * lib/uinttostr.c (inttype_is_signed): Likewise.
6848         * lib/umaxtostr.c (inttype_is_signed): Likewise.
6849         * lib/inttostr.c (inttostr): Use verify to cross-check the
6850         inttype_is_signed value and the signedness of the actual type.
6851         * modules/inttostr (Depends-on): Add verify.
6852
6853 2009-10-30  Eric Blake  <ebb9@byu.net>
6854
6855         build: avoid compiler warnings
6856         * lib/fchmodat.c (lchmod): Mark unused variables.
6857         * lib/getopt.c (_getopt_initialize): Likewise.
6858         * lib/mktime.c (__mktime_internal): Provide prototype.
6859         * lib/inttostr.c (inttostr): Avoid compiler warning even with
6860         older gcc that do not understand #pragma GCC diagnostic.
6861         * lib/uinttostr.c (inttype_is_unsigned): Define.
6862         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
6863
6864 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
6865
6866         stat: fix compilation on AIX
6867         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
6868         only see struct stat64.
6869
6870 2009-10-30  Eric Blake  <ebb9@byu.net>
6871
6872         exclude: make more robust
6873         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
6874         rather than masking a coding bug.
6875         Suggested by Bruno Haible.
6876
6877 2009-10-30  Jim Meyering  <meyering@redhat.com>
6878
6879         perl scripts: remove #!/usr/bin/perl in favor of more portable...
6880         Rather than putting #!/usr/bin/perl on the first line,
6881         start with a variant of what's recommended by "man perlrun" that
6882         invokes the first "perl" program from your shell's search path.
6883         * build-aux/gitlog-to-changelog: Replace #!... as above.
6884         Add a "Local Variables" perl mode setting.
6885         Prompted by a patch from Ludovic Courtès.
6886         Improved by Eric Blake.
6887         * build-aux/useless-if-before-free: Likewise.
6888         * build-aux/announce-gen: Likewise.
6889         * build-aux/update-copyright: Likewise.
6890
6891 2009-10-29  Eric Blake  <ebb9@byu.net>
6892
6893         filenamecat-lgpl: adjust clients
6894         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
6895         filenamecat.
6896         * modules/renameat (Depends-on): Likewise.
6897
6898         filenamecat: split into filenamecat-lgpl
6899         * modules/filenamecat-lgpl: New module.
6900         * modules/filenamecat (Files): Move library-safe files into
6901         filenamecat-lgpl.
6902         (Depends-on): Add filenamecat-lgpl.
6903         (configure.ac): Declare witness.
6904         * lib/filenamecat.h (file_name_concat): Only declare when using
6905         GPL module.
6906         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
6907         Move...
6908         * lib/filenamecat-lgpl.c: ...into new file.
6909         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
6910         (gl_FILE_NAME_CONCAT): Use it.
6911         * MODULES.html.sh (File system functions): Mention new module.
6912
6913         argp: avoid memory leak
6914         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
6915         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
6916         base_name, since the latter malloc()s and can call exit().
6917         Leak introduced 2006-07-03.
6918
6919         dirname-lgpl: adjust clients that don't need full dirname
6920         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
6921         * modules/filenamecat (Depends-on): Likewise.
6922         * modules/linkat (Depends-on): Likewise.
6923         * modules/mkancesdirs (Depends-on): Likewise.
6924         * modules/mkdir (Depends-on): Likewise.
6925         * modules/openat (Depends-on): Likewise.
6926         * modules/savewd (Depends-on): Likewise.
6927         * modules/rename (Depends-on): Likewise.
6928         (License): Relax license.
6929         * modules/mkdir-tests (Depends-on): Drop progname.
6930         (Makefile.am): Delete unneeded LDADD.
6931         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
6932
6933         dirname: split into dirname-lgpl
6934         * modules/dirname-lgpl: New module.
6935         * modules/dirname (Files): Move library-safe files into
6936         dirname-lgpl.
6937         (Depends-on): Add dirname-lgpl.
6938         (configure.ac): Declare witness.
6939         * modules/double-slash-root (License): Relax license.
6940         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
6941         module.
6942         * lib/dirname.c (dir_len, mdir_name): Move...
6943         * lib/dirname-lgpl.c: ...into new file.
6944         * lib/basename.c (last_component, base_len): Move...
6945         * lib/basename-lgpl.c: ...into new file.
6946         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
6947         (gl_DIRNAME): Use it.
6948         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
6949         Mention new module.
6950         * modules/dirname-tests (Depends-on): Add progname.
6951         * tests/test-dirname.c (program_name): Delete.
6952
6953         mkdir: make safe for libraries
6954         * modules/mkdir (Depends-on): Drop xalloc.
6955         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
6956         exit.
6957
6958         tests: avoid some compiler warnings
6959         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
6960         literals.
6961         * tests/test-memchr.c (main): Avoid type mismatch.
6962         * tests/test-arpa_inet.c (main): Avoid unused parameters.
6963         * tests/test-base64.c (main): Likewise.
6964         * tests/test-getdelim.c (main): Likewise.
6965         * tests/test-gethostname.c (main): Likewise.
6966         * tests/test-getline.c (main): Likewise.
6967         * tests/test-netinet_in.c (main): Likewise.
6968         * tests/test-select.c (open_server_socket, main): Likewise.
6969         * tests/test-select-stdin.c (main): Likewise.
6970         * tests/test-sockets.c (main): Likewise.
6971         * tests/test-strsignal.c (main): Likewise.
6972         * tests/test-sys_select.c (main): Likewise.
6973         * tests/test-sys_socket.c (main): Likewise.
6974         * tests/test-u64.c (main): Likewise.
6975         * tests/test-xfprintf-posix.c (main): Likewise.
6976         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
6977
6978         sockets: avoid compiler warning
6979         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
6980
6981         maint: detect usage(1) and other suspicious exits
6982         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
6983
6984 2009-10-29  Jim Meyering  <meyering@redhat.com>
6985
6986         timespec: long-to-int truncation could make timespec_cmp malfunction
6987         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
6988         a multiple of 2^32 nanoseconds as no difference.
6989
6990 2009-10-28  Jim Meyering  <meyering@redhat.com>
6991
6992         fprintftime: wrap macro code argument in "do {...} while(0)"
6993         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
6994         cpy macro must be a statement that can be followed by a semicolon.
6995         Now that the else clause contains a comment and is hence longer
6996         than one line, I require curly braces.  That in turn requires
6997         that we wrap this code block in the standard do...while(0).
6998
6999         fprintftime: remove stray semicolon from previous change
7000         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
7001
7002         fprintftime: avoid a warning about ignored fwrite return value
7003         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
7004         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
7005         that is unsafe.
7006         * modules/fprintftime (Depends-on): Add ignore-value.
7007
7008         exclude: avoid an unwarranted warning
7009         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
7010
7011 2009-10-27  Eric Blake  <ebb9@byu.net>
7012
7013         fseek: avoid compilation failure when fflush is replaced
7014         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
7015         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
7016         module is in use.
7017         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
7018         module is not in use; since REPLACE_FSEEK worked otherwise.
7019         (GNULIB_FTELLO): Likewise for ftell.
7020         Reported by Ian Beckwith and others.
7021
7022 2009-10-27  Bruno Haible  <bruno@clisp.org>
7023
7024         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
7025         Reported by Jim Meyering.
7026
7027 2009-10-27  Jim Meyering  <jim@meyering.net>
7028             Bruno Haible  <bruno@clisp.org>
7029
7030         Avoid warning despite dropping the return value of fwrite.
7031         * lib/unicodeio.c: Include ignore-value.h.
7032         (fwrite_success_callback): Explicitly ignore fwrite's return value.
7033         * modules/unicodeio (Depends-on): Add ignore-value.
7034
7035 2009-10-26  Eric Blake  <ebb9@byu.net>
7036
7037         areadlinkat: fix fallback path
7038         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
7039         pointer and zero.
7040
7041 2009-10-22  Pádraig Brady  <P@draigBrady.com>
7042
7043         Use a better IO block size for modern systems
7044         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
7045         * lib/md2.c: Likewise.
7046         * lib/md4.c: Likewise.
7047         * lib/md5.c: Likewise.
7048         * lib/sha1.c: Likewise.
7049         * lib/sha256.c: Likewise.
7050         * lib/sha512.c: Likewise.
7051
7052 2009-10-22  Eric Blake  <ebb9@byu.net>
7053
7054         tests: avoid several compiler warnings
7055         * tests/test-getcwd.c (main): Avoid buffer underflow.
7056         * tests/test-getdate.c (main): String literals are not safe with
7057         putenv, so use setenv.  Declare unused argument.
7058         * modules/getdate-tests (Depends-on): Add setenv.
7059         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
7060         problems with string literals in char *.
7061         * tests/test-hash.c (main): Avoid shadowing declaration.
7062         (insert_new): Treat string literals as char const *.
7063         * tests/test-getopt.h (test_getopt): Likewise.
7064         (getopt_loop): Alter types to minimize casting elsewhere.
7065         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
7066         (test_getopt_long_posix): Likewise.
7067         (do_getopt_long): Add wrapper to minimize casting.
7068         * tests/test-atexit.c (clear_temp_file): Use void.
7069         * tests/test-areadlink-with-size.c (main): Declare unused
7070         arguments.
7071         * tests/test-areadlink.c (main): Likewise.
7072         * tests/test-areadlinkat-with-size.c (main): Likewise.
7073         * tests/test-areadlinkat.c (main): Likewise.
7074         * tests/test-canonicalize-lgpl.c (main): Likewise.
7075         * tests/test-canonicalize.c (main): Likewise.
7076         * tests/test-dirent-safer.c (main): Likewise.
7077         * tests/test-dirname.c (main): Likewise.
7078         * tests/test-dup2.c (main): Likewise.
7079         * tests/test-fchdir.c (main): Likewise.
7080         * tests/test-fcntl-h.c (main): Likewise.
7081         * tests/test-fcntl-safer.c (main): Likewise.
7082         * tests/test-fdopendir.c (main): Likewise.
7083         * tests/test-fdutimensat.c (main): Likewise.
7084         * tests/test-fflush.c (main): Likewise.
7085         * tests/test-filenamecat.c (main): Likewise.
7086         * tests/test-filevercmp.c (main): Likewise.
7087         * tests/test-fopen-safer.c (main): Likewise.
7088         * tests/test-fopen.c (main): Likewise.
7089         * tests/test-fpending.c (main): Likewise.
7090         * tests/test-fpurge.c (main): Likewise.
7091         * tests/test-freading.c (main): Likewise.
7092         * tests/test-fstatat.c (main): Likewise.
7093         * tests/test-fsync.c (main): Likewise.
7094         * tests/test-futimens.c (main): Likewise.
7095         * tests/test-getndelim2.c (main): Likewise.
7096         * tests/test-gettimeofday.c (main): Likewise.
7097         * tests/test-getopt.c (main): Likewise.
7098         * tests/test-i-ring.c (main): Likewise.
7099         * tests/test-inttypes.c (main): Likewise.
7100         * tests/test-link.c (main): Likewise.
7101         * tests/test-lstat.c (main): Likewise.
7102         * tests/test-math.c (main): Likewise.
7103         * tests/test-md5.c (main): Likewise.
7104         * tests/test-memchr2.c (main): Likewise.
7105         * tests/test-memrchr.c (main): Likewise.
7106         * tests/test-mkdir.c (main): Likewise.
7107         * tests/test-mkdirat.c (main): Likewise.
7108         * tests/test-mkfifoat.c (main): Likewise.
7109         * tests/test-open.c (main): Likewise.
7110         * tests/test-openat-safer.c (main): Likewise.
7111         * tests/test-openat.c (main): Likewise.
7112         * tests/test-quotearg.c (main): Likewise.
7113         * tests/test-rawmemchr.c (main): Likewise.
7114         * tests/test-readlink.c (main): Likewise.
7115         * tests/test-remove.c (main): Likewise.
7116         * tests/test-rename.c (main): Likewise.
7117         * tests/test-renameat.c (main): Likewise.
7118         * tests/test-rmdir.c (main): Likewise.
7119         * tests/test-sha1.c (main): Likewise.
7120         * tests/test-signal.c (main): Likewise.
7121         * tests/test-sigaction.c (main): Likewise.
7122         * tests/test-stat.c (main): Likewise.
7123         * tests/test-stat-time.c (main): Likewise.
7124         * tests/test-stddef.c (main): Likewise.
7125         * tests/test-stdint.c (main): Likewise.
7126         * tests/test-stdio.c (main): Likewise.
7127         * tests/test-stdlib.c (main): Likewise.
7128         * tests/test-strchrnul.c (main): Likewise.
7129         * tests/test-strerror.c (main): Likewise.
7130         * tests/test-string.c (main): Likewise.
7131         * tests/test-strtod.c (main): Likewise.
7132         * tests/test-strverscmp.c (main): Likewise.
7133         * tests/test-symlink.c (main): Likewise.
7134         * tests/test-symlinkat.c (main): Likewise.
7135         * tests/test-sys_stat.c (main): Likewise.
7136         * tests/test-sys_time.c (main): Likewise.
7137         * tests/test-time.c (main): Likewise.
7138         * tests/test-unistd.c (main): Likewise.
7139         * tests/test-unlink.c (main): Likewise.
7140         * tests/test-unlinkat.c (main): Likewise.
7141         * tests/test-utimens.c (main): Likewise.
7142         * tests/test-utimensat.c (main): Likewise.
7143         * tests/test-version-etc.c (main): Likewise.
7144         * tests/test-wchar.c (main): Likewise.
7145         * tests/test-wctype.c (main): Likewise.
7146         * tests/test-xprintf-posix.c (main): Likewise.
7147         * tests/test-posixtm.c (main): Likewise.
7148         (STREQ): Delete unused macro.
7149         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
7150         shadowed variables.
7151         * tests/test-memchr.c (main): Likewise.
7152
7153 2009-10-21  Eric Blake  <ebb9@byu.net>
7154
7155         areadlinkat: avoid failure on older glibc
7156         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
7157         rather than mis-comparing 0 against FUNC_RESULT of char*.
7158
7159 2009-10-21  Bruno Haible  <bruno@clisp.org>
7160
7161         * modules/stpncpy (License): Relicense under LGPLv2+.
7162         Reported by David Lutterkort <lutter@redhat.com>.
7163
7164 2009-10-20  Eric Blake  <ebb9@byu.net>
7165
7166         utimensat: work around Solaris 9 bug
7167         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
7168         has trailing slash bugs.
7169         * tests/test-lutimens.h (test_lutimens): Enhance test.
7170         * tests/test-utimens.h (test_utimens): Likewise.
7171         * doc/posix-functions/utime.texi (utime): Enhance documentation.
7172         * doc/posix-functions/utimes.texi (utimes): Likewise.
7173         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7174         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
7175         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
7176         * doc/posix-functions/futimens.texi (futimens): Likewise.
7177
7178         fdutimensat: new module
7179         * modules/fdutimensat: New file.
7180         * lib/fdutimensat.c (fdutimensat): Likewise.
7181         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
7182         * MODULES.html.sh (File system functions): Mention module.
7183         * modules/fdutimensat-tests: New test.
7184         * tests/test-fdutimensat.c: Likewise.
7185
7186         doc: regenerate INSTALL
7187         * doc/INSTALL: Reflect recent autoconf update.
7188         * doc/INSTALL.ISO: Likewise.
7189         * doc/INSTALL.UTF-8: Likewise.
7190
7191 2009-10-20  Pádraig Brady  <P@draigBrady.com>
7192
7193         acl: warn if ACL support is not detected
7194         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
7195
7196 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
7197
7198         * lib/nproc.h: Add extern "C" block for C++.
7199
7200 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
7201             Bruno Haible  <bruno@clisp.org>
7202
7203         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
7204         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
7205         * doc/posix-functions/isalpha.texi: Likewise.
7206         * doc/posix-functions/isblank.texi: Likewise.
7207         * doc/posix-functions/iscntrl.texi: Likewise.
7208         * doc/posix-functions/isdigit.texi: Likewise.
7209         * doc/posix-functions/isgraph.texi: Likewise.
7210         * doc/posix-functions/islower.texi: Likewise.
7211         * doc/posix-functions/isprint.texi: Likewise.
7212         * doc/posix-functions/ispunct.texi: Likewise.
7213         * doc/posix-functions/isspace.texi: Likewise.
7214         * doc/posix-functions/isupper.texi: Likewise.
7215         * doc/posix-functions/isxdigit.texi: Likewise.
7216
7217 2009-10-18  Bruno Haible  <bruno@clisp.org>
7218
7219         Tests for module 'isblank'.
7220         * modules/isblank-tests: New file.
7221         * tests/test-isblank.c: New file.
7222
7223         New module 'isblank'.
7224         * lib/isblank.c: New file.
7225         * m4/isblank.m4: New file.
7226         * modules/isblank: New file.
7227         * doc/posix-functions/isblank.texi: Mention the new module.
7228
7229 2009-10-18  Bruno Haible  <bruno@clisp.org>
7230
7231         New module 'ctype'.
7232         * lib/ctype.in.h: New file.
7233         * m4/ctype.m4: New file.
7234         * modules/ctype: New file.
7235         * doc/posix-headers/ctype.texi: Mention the new module.
7236
7237 2009-10-18  Jim Meyering  <meyering@redhat.com>
7238
7239         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
7240         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
7241         right after its initialization, rather than farther down.
7242         Keeping these in close proximity makes it easier to ensure
7243         that each such variable is initialized.  E.g.,
7244
7245             LIB_CLOCK_GETTIME=
7246             AC_SUBST([LIB_CLOCK_GETTIME])
7247
7248         This change also increments these serial numbers.
7249         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
7250         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7251         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7252
7253 2009-10-18  Bruno Haible  <bruno@clisp.org>
7254
7255         Don't let environment variables perturb build.
7256         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
7257         (gl_PREREQ_GETHRXTIME): ... not here.
7258
7259 2009-10-18  Bruno Haible  <bruno@clisp.org>
7260
7261         Avoid symlink attack in localcharset module.
7262         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
7263         (O_NOFOLLOW): Define fallback.
7264         (get_charset_aliases): Don't open the file if it is a symbolic link.
7265         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
7266         gl_FCNTL_H.
7267         (gl_FCNTL_H): Require it.
7268         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
7269         * modules/localcharset (Files): Add m4/fcntl_h.m4.
7270         Reported by Fergal Glynn <fglynn@veracode.com>.
7271
7272 2009-10-18  Bruno Haible  <bruno@clisp.org>
7273
7274         Implement nproc for mingw.
7275         * lib/nproc.c: Include <windows.h>
7276         (num_processors): On native Windows platforms, try GetSystemInfo.
7277
7278 2009-10-18  Bruno Haible  <bruno@clisp.org>
7279
7280         Implement nproc for IRIX.
7281         * lib/nproc.c: Include <sys/sysmp.h>.
7282         (num_processors): On IRIX systems, try sysmp.
7283         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
7284
7285 2009-10-18  Bruno Haible  <bruno@clisp.org>
7286
7287         Implement nproc for HP-UX.
7288         * lib/nproc.c: Include <sys/pstat.h>
7289         (num_processors): On HP-UX systems, try pstat_getdynamic.
7290         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
7291         pstat_getdynamic.
7292
7293 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
7294             Bruno Haible  <bruno@clisp.org>
7295
7296         Implement nproc for NetBSD, OpenBSD.
7297         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
7298         (ARRAY_SIZE): New macro.
7299         (num_processors): On BSD systems, try sysctl of HW_NCPU.
7300         * m4/nproc.m4: New file.
7301         * modules/nproc (Files): Add m4/nproc.m4.
7302         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
7303         (Makefile.am): Instead, augment lib_SOURCES.
7304
7305 2009-10-18  Bruno Haible  <bruno@clisp.org>
7306
7307         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
7308         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
7309         sys/param.h.
7310
7311 2009-10-16  Eric Blake  <ebb9@byu.net>
7312
7313         utimensat: new module
7314         * modules/utimensat: New file.
7315         * lib/utimensat.c (utimensat): Likewise.
7316         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7317         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
7318         so we can work around Linux bugs.
7319         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7320         * modules/sys_stat (Makefile.am): Substitute them.
7321         * lib/sys_stat.in.h (utimensat): Declare it.
7322         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7323         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7324         * modules/utimensat-tests: New test.
7325         * tests/test-utimensat.c: Likewise.
7326
7327         utimens: let lutimens work on non-symlinks
7328         * lib/utimens.c (lutimens): Fall back to utimens rather than
7329         failing with ENOSYS, when file is not a symlink.
7330         (utimens): Reduce redirection.
7331         * tests/test-lutimens.h (test_lutimens): Update test to cover
7332         non-symlinks.
7333         * tests/test-utimens.h (test_utimens): Update test to cover
7334         symlinks.
7335         * tests/test-utimens.c (main): Update caller.
7336
7337         utimens: cache whether utimensat syscall works
7338         * lib/utimens.c (utimensat_works_really): New cache variable.
7339         (fdutimens, lutimens): Use it to avoid failing syscall.
7340
7341         test-stat-time, test-utimens: improve portability
7342         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
7343         ext4 on alpha, and for cygwin.
7344         * tests/test-utimens-common.h: New file.
7345         (nap): Factor delays into single function.
7346         * tests/test-lutimens.h (test_lutimens): Use new header.
7347         * tests/test-futimens.h (test_futimens): Likewise.
7348         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
7349         timestamps to occur from same machine, as was done previously for
7350         test_utimens.
7351         * modules/utimens-tests (Files): Ship new file.
7352         * modules/futimens-tests (Files): Likewise.
7353         Reported in part by Jim Meyering.
7354
7355         sys_stat: sort replacement declarations
7356         * lib/sys_stat.in.h: Sort declarations.
7357         * lib/futimens.c (futimens): Fix typo.
7358
7359 2009-10-15  Jim Meyering  <meyering@redhat.com>
7360
7361         don't let environment settings perturb build
7362         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
7363         could cause a configure-time and/or build-time malfunction.
7364         Typically, a configure-time function-in-library test is performed
7365         via code like this:
7366
7367           LIB_VAR=
7368           AC_SUBST([LIB_VAR])
7369           prefix_saved_LIBS=$LIBS
7370             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
7371                        [test "$ac_cv_search_FUNC" = "none required" ||
7372                         LIB_VAR=$ac_cv_search_FUNC])
7373           LIBS=$prefix_saved_LIBS
7374
7375         However, in each of the files affected by this change, the LIB_VAR=
7376         initialization was omitted.  Thus, when set in the environment, its
7377         value would propagate into generated Makefiles when FUNC is not found
7378         in LIB_NAME.
7379         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
7380         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7381         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7382
7383 2009-10-14  Eric Blake  <ebb9@byu.net>
7384
7385         fchdir: avoid infinite recursion in mingw
7386         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
7387         recursing.
7388
7389         test-stat-time: port to mingw
7390         * tests/test-stat-time.c (force_unlink): Return a value.
7391         (test_ctime) [W32]: Fix compilation error.
7392         (nap): Don't call usleep with too large an argument.  Use
7393         force_unlink.
7394         * doc/pastposix-functions/usleep.texi (usleep): Document the
7395         portability issue.
7396
7397 2009-10-13  Jim Meyering  <meyering@redhat.com>
7398
7399         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
7400         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
7401         * modules/pipe-filter-ii: Likewise.
7402         * modules/sys_socket-tests: Likewise.
7403         * modules/tsearch-tests: Likewise.
7404         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
7405         (check): Depend on it.
7406
7407 2009-10-12  Eric Blake  <ebb9@byu.net>
7408
7409         utimens-tests: port to NFS file systems
7410         * tests/test-utimens.h (test_utimens): Refactor utimecmp
7411         comparisons to avoid spurious failures from timestamp drift
7412         between NFS machines.
7413
7414 2009-10-12  Eric Blake  <ebb9@byu.net>
7415
7416         stat-time-tests: minor cleanups
7417         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
7418         * tests/test-stat-time.c (nap): Separate assignment from call.
7419         Suggested by Paolo Bonzini and Bruno Haible.
7420
7421         sys_stat: guarantee struct timespec
7422         * lib/sys_stat.in.h (includes): Always include <time.h>
7423         * modules/sys_stat (Depends-on): Add time.
7424         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
7425         mode_t permission values.
7426         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
7427         get at subsecond timestamps.
7428
7429 2009-10-10  Eric Blake  <ebb9@byu.net>
7430
7431         futimens: new module
7432         * modules/futimens: New file.
7433         * lib/futimens.c (futimens): Likewise.
7434         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
7435         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
7436         we can work around Linux bugs.
7437         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7438         * modules/sys_stat (Makefile.am): Substitute them.
7439         * lib/sys_stat.in.h (futimens): Declare it.
7440         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7441         * doc/posix-functions/futimens.texi (futimens): Likewise.
7442         * modules/futimens-tests: New test.
7443         * tests/test-futimens.c: Likewise.
7444
7445         utimens: introduce fdutimens
7446         * lib/utimens.h (fdutimens): New prototype.
7447         * lib/utimens.c (gl_futimens): Move guts...
7448         (fdutimens): ...to new interface.
7449         * tests/test-utimens.c (do_fdutimens): Use it.
7450
7451         utimens: add UTIME_NOW and UTIME_OMIT support
7452         * lib/utimens.c (validate_timespec, update_timespec): New helper
7453         functions.
7454         (gl_futimens, lutimens): Use them.
7455         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
7456         stdbool, sys_stat.
7457         (Link): Mention resulting library dependency.
7458         * modules/utimecmp (Link): Likewise.
7459         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
7460         (Makefile.am): Pick up library dependency.
7461         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
7462         definition.
7463         * tests/test-sys_stat.c: Test the definitions.
7464         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
7465         * NEWS: Document library dependency.
7466
7467         utimecmp: support symlink timestamps
7468         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
7469         hashing when possible.  Use pathconf when available.
7470         (SYSCALL_RESOLUTION): Recognize tighter resolution.
7471         * modules/utimecmp (Depends-on): Add lstat.
7472
7473         utimens: add lutimens interface
7474         * lib/utimens.c (lutimens): New function.
7475         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
7476         * lib/utimens.h (lutimens): Declare new interface.
7477         * tests/test-utimens.c (main): Enhance test.
7478         * tests/test-lutimens.h (test_lutimens): New file.
7479         * modules/utimens-tests (Files): Distribute it.
7480         (Depends-on): Add symlink.
7481         (configure.ac): Check for usleep.
7482
7483         utimens: validate futimens usage
7484         * lib/utimens.c (gl_futimens): Require valid fd up front, using
7485         fewer syscalls on failure later on.  Avoid compiler warning on
7486         mingw.
7487         * modules/utimens (Depends-on): Add dup2.
7488
7489         utimens: add test
7490         * modules/utimens-tests: New test.
7491         * tests/test-utimens.h: New file.
7492         * tests/test-futimens.h: Likewise.
7493         * tests/test-utimens.c: Likewise.
7494
7495         doc: mention timestamp portability issues
7496         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
7497         instead.
7498         * doc/posix-functions/utime.texi (utime): Likewise.
7499         * doc/posix-functions/utimes.texi (utimes): Likewise.
7500         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
7501         instead.
7502         * doc/posix-functions/futimens.texi (futimens): Mention utimens
7503         module.
7504         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7505         Mention weakness with symlink timestamps.
7506         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
7507         to utimensat/futimens instead.
7508         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
7509
7510         test-dup2: enhance test
7511         * tests/test-dup2.c (main): Also check AT_FDCWD.
7512
7513         test-stat-time: avoid more spurious failures
7514         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
7515         xfs; and avoid race if the two timestamps cross quantization edge.
7516
7517         relocatable: prefer 'file system' over 'filesystem'
7518         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
7519         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
7520         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
7521         * doc/relocatable.texi (Enabling Relocatability): Likewise.
7522         * lib/relocatable.c (compute_curr_prefix): Likewise.
7523
7524 2009-10-10  Jim Meyering  <meyering@redhat.com>
7525
7526         stat-time-tests: check for the usleep function
7527         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
7528
7529 2009-10-10  Bruno Haible  <bruno@clisp.org>
7530
7531         * modules/xnanosleep: Put the Link section after the Include section.
7532
7533 2009-10-09  Eric Blake  <ebb9@byu.net>
7534
7535         dup2: work around FreeBSD 6.1 bug
7536         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
7537         * doc/posix-functions/dup2.texi (dup2): Document it.
7538         Reported by Nelson H. F. Beebe and Jim Meyering.
7539
7540         test-stat-time: port to buggy NFS clients
7541         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
7542         (test_ctime): Also skip test if mtime and ctime are skewed.
7543
7544         maint: prefer 'file system' over 'filesystem'
7545         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
7546         * doc/posix-functions/lstat.texi (lstat): Likewise.
7547         * lib/file-has-acl.c (file_has_acl): Likewise.
7548         * lib/fwriteerror.c [TEST]: Likewise.
7549         * tests/test-areadlink.h (test_areadlink): Likewise.
7550         * tests/test-areadlinkat-with-size.c (main): Likewise.
7551         * tests/test-areadlinkat.c (main): Likewise.
7552         * tests/test-canonicalize-lgpl.c (main): Likewise.
7553         * tests/test-canonicalize.c (main): Likewise.
7554         * tests/test-fstatat.c (main): Likewise.
7555         * tests/test-linkat.c (main): Likewise.
7556         * tests/test-lstat.h (test_lstat_func): Likewise.
7557         * tests/test-mkdir.h (test_mkdir): Likewise.
7558         * tests/test-readlink.h (test_readlink): Likewise.
7559         * tests/test-remove.c (main): Likewise.
7560         * tests/test-rename.h (test_rename): Likewise.
7561         * tests/test-renameat.c (main): Likewise.
7562         * tests/test-rmdir.h (test_rmdir_func): Likewise.
7563         * tests/test-symlink.h (test_symlink): Likewise.
7564         * tests/test-symlinkat.c (main): Likewise.
7565         * tests/test-unlink.h (test_unlink_func): Likewise.
7566         * tests/test-unlinkat.c (main): Likewise.
7567
7568         maint: make realtime library usage explicit
7569         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
7570         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
7571         * modules/settime (Link): Likewise.
7572         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
7573
7574         test-stat-time: speed up execution
7575         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
7576         warning on mingw.
7577         (nap): New helper function.
7578         (prepare_test): Use it to reduce sleep time.
7579         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
7580         execution.
7581         * modules/stat-time-tests (configure.ac): Check for usleep.
7582
7583 2009-10-09  Jim Meyering  <meyering@redhat.com>
7584
7585         selinux-h: always use getfilecon wrappers
7586         * lib/getfilecon.c: New file.
7587         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
7588         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
7589         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
7590         (fgetfilecon): Provide a stub.
7591         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
7592         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
7593         file unconditionally.
7594         When <selinux/selinux.h> is found, arrange to use wrappers.
7595         * modules/selinux-h (Files): Add getfilecon.c.
7596         (Makefile.am): Substitute include-next-related bits
7597         into the now-always-generated selinux/selinux.h file.
7598         * doc/glibc-functions/lgetfilecon.texi: New file.
7599         * doc/glibc-functions/fgetfilecon.texi: New file.
7600         * doc/glibc-functions/getfilecon.texi: New file.
7601         * doc/glibc-functions/getfilecon-desc.texi: New file.
7602         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
7603         which to pull in the new files.
7604         * MODULES.html.sh (Misc): Add selinux-h.
7605
7606 2009-10-08  Jim Meyering  <meyering@redhat.com>
7607
7608         unistd: fix comment typo
7609         * lib/unistd.in.h (euidaccess): Fix a comment typo.
7610
7611 2009-10-08  Eric Blake  <ebb9@byu.net>
7612
7613         areadlink: use SIZE_MAX consistently
7614         * modules/areadlink (Depends-on): Add stdint.
7615         * modules/areadlink-with-size (Depends-on): Likewise.
7616         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
7617         gives NULL; drop sys/types, since unistd gives size_t; and add
7618         stdint for SIZE_MAX.
7619         (SIZE_MAX): Rely on headers.
7620         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
7621         and add stdint.
7622         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
7623         (SIZE_MAX): Likewise.
7624         (INITIAL_BUF_SIZE): Turn into enum.
7625         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
7626
7627 2009-10-08  Jim Meyering  <meyering@redhat.com>
7628
7629         areadlinkat: avoid compilation failure
7630         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
7631         Fix typo in comment.
7632
7633 2009-10-07  Eric Blake  <ebb9@byu.net>
7634
7635         areadlinkat-with-size: new module
7636         * modules/areadlinkat-with-size: New module.
7637         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
7638         * lib/areadlink.h (areadlinkat): Declare it.
7639         * MODULES.html.sh (File system functions): Mention it.
7640         * modules/areadlinkat-with-size-tests: New test.
7641         * tests/test-areadlinkat-with-size.c: New file.
7642
7643         xreadlinkat: new module
7644         * modules/xreadlinkat: New module.
7645         * lib/xreadlinkat.c (xreadlinkat): New file.
7646         * lib/xreadlink.h (xreadlinkat): Declare it.
7647         * MODULES.html.sh (File system functions): Mention it.
7648
7649         areadlinkat: new module
7650         * lib/at-func.c (FUNC_FAIL): New define.
7651         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
7652         * modules/areadlinkat: New module.
7653         * lib/linkat.c (areadlinkat): Move...
7654         * lib/areadlinkat.c (areadlinkat): ...to new file.
7655         * lib/areadlink.h (areadlinkat): Declare it.
7656         * modules/linkat (Depends-on): Add areadlinkat.
7657         * MODULES.html.sh (File system functions): Mention it.
7658         * modules/areadlinkat-tests: New test.
7659         * tests/test-areadlinkat.c: New file.
7660
7661         areadlink, areadlink-with-size: add tests
7662         * modules/areadlink-tests: New test.
7663         * modules/areadlink-with-size-tests: Likewise.
7664         * tests/test-areadlink.h: New file.
7665         * tests/test-areadlink.c: Likewise.
7666         * tests/test-areadlink-with-size.c: Likewise.
7667
7668         maint: minor cleanups
7669         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
7670         _UNUSED_PARAMETER_ instead.
7671         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
7672         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
7673         * modules/linkat-tests (Files): Distribute test-link.h.
7674
7675         openat, utimens: whitespace cleanup
7676         * lib/openat.c: Prefer space throughout, rather than mix of 8
7677         spaces vs. tabs.
7678         * lib/at-func.c: Likewise.
7679         * lib/utimens.c: Likewise.
7680
7681         openat: avoid using wrong fd
7682         * lib/openat.c (openat_permissive): Reject user's fd if saving the
7683         working directory chooses same fd.
7684         * lib/at-func.c (AT_FUNC_NAME): Likewise.
7685
7686         mkdir, mkdirat: fix cygwin 1.5.x bug
7687         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
7688         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
7689         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
7690         bug.
7691         (gl_PREREQ_MKDIR): Delete unused macro.
7692         * modules/mkdir (Files): Track file rename.
7693         (configure.ac): Update macro name.
7694         * modules/openat (Depends-on): Add mkdir.
7695         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
7696
7697         mkdir, mkdirat: add tests
7698         * modules/mkdir-tests: New test.
7699         * tests/test-mkdir.h: New file.
7700         * tests/test-mkdir.c: Likewise.
7701         * tests/test-mkdirat.c: Likewise.
7702         * modules/openat-tests (Files): Add new files.
7703         (Makefile.am): Run new test.
7704
7705 2009-10-06  Eric Blake  <ebb9@byu.net>
7706
7707         doc: tweak *at function documentation
7708         * doc/posix-functions/faccessat.texi (faccessat): Mention
7709         known issue with replacement.
7710         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
7711         * doc/posix-functions/linkat.texi (linkat): Likewise.
7712         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
7713         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
7714         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7715         * doc/posix-functions/renameat.texi (renameat): Likewise.
7716         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
7717
7718         openat: fix GNU/Hurd bug in unlinkat
7719         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
7720         broken.
7721         * doc/posix-functions/unlink.texi (unlink): Document this.
7722         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
7723
7724         fdopendir: fix GNU/Hurd bug
7725         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
7726         allowing non-directory fds.
7727         * lib/fdopendir.c (rpl_fdopendir): Work around it.
7728         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
7729         * modules/dirent (Makefile.am): Substitute it.
7730         * lib/dirent.in.h (fdopendir): Declare replacement.
7731         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
7732         * tests/test-fdopendir.c (main): Test something other than
7733         /dev/null, since on Hurd that behaves like a directory.
7734
7735         test-symlink: port to GNU/Hurd
7736         * tests/test-symlink.h (test_symlink): Relax expected errno.
7737
7738         doc: tweak more cygwin information
7739         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
7740         now compatible with glibc.
7741         * doc/posix-functions/getopt.texi (getopt): Likewise.
7742
7743         getopt-gnu: add another test
7744         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
7745         guarantee behavior relied on by m4.
7746         * tests/test-getopt.c (main): Use it.
7747         * modules/getopt-posix-tests (Depends-on): Add setenv.
7748         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
7749
7750         getopt: fix compilation on darwin
7751         * lib/getopt.in.h (includes): Leave breadcrumbs during system
7752         include.
7753         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
7754         Reported by Ludovic Courtès.
7755
7756 2009-10-06  Bruno Haible  <bruno@clisp.org>
7757
7758         * modules/size_max (Description): Discourage its use.
7759         Reported by Simon Josefsson.
7760
7761 2009-10-06  Jim Meyering  <meyering@redhat.com>
7762
7763         linkat: avoid compilation failure
7764         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
7765
7766 2009-10-05  Eric Blake  <ebb9@byu.net>
7767
7768         linkat: support Linux 2.6.17
7769         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
7770         linkat on Linux, but allow cache variable override.
7771         * lib/linkat.c (rpl_linkat): Define override.
7772         * modules/linkat (Depends-on): Add symlinkat.
7773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
7774         * modules/unistd (Makefile.am): Substitute it.
7775         * lib/unistd.in.h (linkat): Declare replacement.
7776         Reported by Pádraig Brady.
7777
7778         quotearg: port test to systems with C.UTF-8 locale
7779         * tests/test-quotearg.c (struct result_strings): Add another
7780         member, differentiating between C.ASCII and C.UTF-8 handling.
7781         (compare_strings): Add parameter.
7782         (main): Adjust all callers.
7783
7784         getopt: avoid clash with FreeBSD _getopt_internal
7785         * lib/getopt.in.h (_getopt_internal): Override the name.
7786         * lib/getopt_int.h (includes): Pick up any overrides.
7787         Reported by Reuben Thomas.
7788
7789         hash: allow C89 compilation
7790         * lib/hash.c (check_tuning): Move declaration before statement.
7791         Reported by Reuben Thomas.
7792
7793 2009-10-05  Karl Berry  <karl@gnu.org>
7794
7795         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
7796
7797 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
7798             Bruno Haible  <bruno@clisp.org>
7799
7800         * lib/uname.c (uname): Use a table-driven algorithm to compute
7801         Windows NT versions.
7802
7803 2009-10-04  Bruno Haible  <bruno@clisp.org>
7804
7805         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
7806         program_invocation_short_name.
7807         * modules/progname (configure.ac): Test for presence of
7808         program_invocation_short_name.
7809         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
7810
7811 2009-10-04  Bruno Haible  <bruno@clisp.org>
7812
7813         * lib/progname.c (set_program_name): Fix comment.
7814         Reported by Jim Meyering.
7815
7816 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
7817             Bruno Haible  <bruno@clisp.org>
7818
7819         * lib/uname.c: Include <string.h>.
7820         (uname): Do only one call to GetVersionEx in the common case.
7821
7822 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
7823             Bruno Haible  <bruno@clisp.org>
7824
7825         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
7826         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
7827         (uname): Add support for Windows CE and various non-x86 CPU types.
7828
7829 2009-10-03  Bruno Haible  <bruno@clisp.org>
7830
7831         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
7832         invocation to tests/configure.ac.
7833         Reported by Ian Beckwith <ianb@erislabs.net>.
7834
7835 2009-10-02  Eric Blake  <ebb9@byu.net>
7836
7837         fchdir: avoid compiler warning
7838         * lib/fchdir.c (canonicalize_file_name)
7839         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
7840
7841         test-open: support mingw errno values
7842         * tests/test-open.h (test_open): Relax test.
7843         * tests/test-fopen.h (test_fopen): Likewise.
7844         * tests/test-openat-safer.c (main): Likewise.
7845
7846         open: fix opening directory on mingw
7847         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
7848
7849         test-open: on GNU/Hurd, /dev/null is a directory
7850         * tests/test-fopen.h (main): Rename...
7851         (test_fopen): ...to this.  Use a guaranteed non-directory when
7852         confirming open behavior on trailing slash.
7853         * tests/test-openat-safer.c (main): Likewise.
7854         * tests/test-open.h (main): Likewise....
7855         (test_open): ...to this.
7856         * tests/test-fopen.c (main): Adjust caller.
7857         * tests/test-fopen-safer.c (main): Likewise.
7858         * tests/test-open.c (main): Likewise.
7859         * tests/test-fcntl-safer.c (main): Likewise.
7860         Reported by Samuel Thibault.
7861
7862         rename, fchdir: don't ignore chdir failure
7863         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
7864         * lib/rename.c (rpl_rename) [W32]: Likewise.
7865         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
7866         an empty destination directory if source cannot be renamed,
7867         although there is still possibility for failure.
7868         * doc/posix-functions/rename.texi (rename): Document the race.
7869         Reported by Jim Meyering.
7870
7871         maint: cleanup whitespace in recent commits
7872         * lib/rename.c (rpl_rename): Remove tabs.
7873         * tests/test-link.h (test_link): Likewise.
7874         * lib/fchdir.c (get_name): Likewise.
7875         Reported by Jim Meyering.
7876
7877 2009-10-02  Ben Pfaff  <blp@gnu.org>
7878
7879         relocatable-prog-wrapper: Add missing dependency on
7880         double-slash-root.
7881         * modules/relocatable-prog-wrapper: Add dependency.
7882         Reported by Ian Beckwith <ianb@erislabs.net>.
7883
7884 2009-10-02  Eric Blake  <ebb9@byu.net>
7885
7886         renameat: fix Solaris bugs
7887         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
7888         needed fixing.
7889         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
7890         * modules/stdio (Makefile.am): Substitute it.
7891         * lib/stdio.in.h (renameat): Declare replacement.
7892         * lib/renameat.c (rpl_renameat): Implement fix.
7893
7894         renameat: new module
7895         * modules/renameat: New file.
7896         * lib/renameat.c (renameat): Likewise.
7897         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
7898         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
7899         * modules/stdio (Makefile.am): Substitute them.
7900         * lib/stdio.in.h (renameat): Declare it.
7901         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7902         * doc/posix-functions/renameat.texi (renameat): Likewise.
7903         * modules/renameat-tests: New test.
7904         * tests/test-renameat.c: Likewise.
7905
7906         rename: fix mingw bugs
7907         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
7908         directory overwrite bugs.
7909
7910         rename: fix another cygwin 1.5 bug
7911         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
7912         checks.
7913         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
7914         unnecessary cygwin workarounds.  Also work around bug with moving
7915         full directory onto an empty one.
7916         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
7917
7918         rename-dest-slash: merge into rename module
7919         * modules/rename-dest-slash (Status): Mark obsolete.
7920         (Depends-on): Add rename.
7921         (Files): Let rename do it all.
7922         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
7923         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
7924         * m4/rename-dest-slash.m4: ...so this file can be deleted.
7925         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
7926         * lib/rename.c (rpl_rename): Update comments.
7927
7928         rename: fix cygwin 1.5.x bugs
7929         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
7930         * lib/rename.c (rpl_rename): Work around them.
7931         * modules/rename (Depends-on): Add same-inode.
7932
7933         rename: fix Solaris 10 bug
7934         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
7935         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
7936         was the only bug.
7937
7938         rename: fix Solaris 9 bug
7939         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
7940         on non-directory.  Avoid calling exit.
7941         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
7942         strdup.
7943         * modules/rename-tests (Depends-on): Drop lstat.
7944         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
7945         (gl_PREREQ_RENAME): Delete unused macro.
7946
7947         rename-dest-slash: fix NetBSD bug
7948         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
7949         links.
7950         * modules/rename-dest-slash (Depends-on): Add same-inode.
7951
7952         rename-tests: new test, exposes several platform bugs
7953         * modules/rename-tests: New file.
7954         * tests/test-rename.h: Likewise.
7955         * tests/test-rename.c: Likewise.
7956         * doc/posix-functions/rename.texi (rename): Improve documentation,
7957         including bugs that will eventually be fixed in gnulib.
7958
7959 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
7960
7961         * lib/uname.c: Include <stdlib.h>
7962         (uname): Assume version info is available.
7963
7964 2009-10-02  Jim Meyering  <meyering@redhat.com>
7965
7966         gnu-web-doc-update: correct --help output
7967         * build-aux/gnu-web-doc-update: Make --help output relevant.
7968
7969         gnu-web-doc-update: add standard options
7970         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
7971
7972         gnu-web-doc-update: New module.
7973         Use this script to automatically update the on-line web documentation
7974         for your GNU project at http://www.gnu.org/software/$pkg/manual/
7975         * modules/gnu-web-doc-update: New file, from coreutils.
7976         * build-aux/gnu-web-doc-update: New script.
7977
7978 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
7979
7980         link: LoadLibrary is not needed.
7981         * lib/link.c: Use GetModuleHandle.
7982
7983 2009-10-01  Eric Blake  <ebb9@byu.net>
7984
7985         getopt: bump serial number
7986         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
7987         change.
7988
7989         tests: tighten link, rmdir, and remove tests
7990         * tests/test-link.h (includes): No need to use <config.h> here.
7991         Clean up if directory hard link was created, otherwise test for
7992         trailing '.'.
7993         * tests/test-linkat.c (main): Simplify.
7994         * tests/test-remove.c (main): Enhance test for trailing '.'.
7995         * tests/test-rmdir.h (test_rmdir_func): Likewise.
7996
7997 2009-10-01  Jim Meyering  <meyering@redhat.com>
7998
7999         maint.mk: requiring "make major" was annoying, for a "minor" release.
8000         What is intended is "stable", to contrast with alpha and beta,
8001         so require "make stable", not "make major".
8002         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
8003         (get_tool_versions): Likewise.
8004         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
8005
8006 2009-09-30  Ben Pfaff  <blp@gnu.org>
8007
8008         Fix broken build of replacement for Windows tmpfile().
8009         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
8010         flags argument added along with the 'mkostemp' module.
8011
8012 2009-09-28  Bruno Haible  <bruno@clisp.org>
8013
8014         Avoid identifier clash with POSIX function 'remove' defined as a macro.
8015         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
8016         to 'remove_elt'.
8017         (gl_list_remove): Update.
8018         * lib/gl_list.c (gl_list_remove): Update.
8019         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
8020         to 'remove_elt'.
8021         (gl_oset_remove): Update.
8022         * lib/gl_list.c (gl_oset_remove): Update.
8023         Reported by Eric Blake.
8024
8025 2009-09-28  Eric Blake  <ebb9@byu.net>
8026
8027         doc: mention yet more cygwin 1.7 status
8028         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
8029         cygwin.
8030         * doc/glibc-functions/execvpe.texi (execvpe): New file.
8031         * doc/gnulib.texi (Glibc unistd.h): Mention it.
8032
8033         argp: fix test failure
8034         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
8035         that are not upper-case.  Pass correct range to tolower.
8036
8037 2009-09-27  Jim Meyering  <meyering@redhat.com>
8038
8039         test-yesno: work around sparc-dash here-document infelicity
8040         Without this change, the literal \177 byte in a here document
8041         would make dash 0.5.5.1-3 access uninitialized memory.
8042         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
8043         Instead, use a marker, "@", and filter through tr to create the desired
8044         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
8045
8046 2009-09-27  Bruno Haible  <bruno@clisp.org>
8047
8048         Disable untested support for new flavours of ACLs on AIX.
8049         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
8050         progress.
8051         * lib/set-mode-acl.c (qset_acl): Likewise.
8052
8053 2008-12-07  Bruno Haible  <bruno@clisp.org>
8054
8055         Add support for new flavours of ACLs on AIX. (Untested.)
8056         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
8057         (file_has_acl): Add support for newer AIX.
8058         * lib/set-mode-acl.c (qset_acl): Likewise.
8059         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
8060         Rainer Tammer <tammer@tammer.net>.
8061
8062 2009-09-26  Eric Blake  <ebb9@byu.net>
8063
8064         argp: fix compilation of getopt
8065         * lib/getopt.in.h (includes): Use different guard than glibc.
8066         Reported by Sergey Poznyakoff.
8067
8068         doc: mention more cygwin 1.7 status
8069         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
8070         bug.
8071         * doc/posix-functions/execl.texi (execl): Likewise.
8072         * doc/posix-functions/execle.texi (execle): Likewise.
8073         * doc/posix-functions/execlp.texi (execlp): Likewise.
8074         * doc/posix-functions/execv.texi (execv): Likewise.
8075         * doc/posix-functions/execve.texi (execve): Likewise.
8076         * doc/posix-functions/execvp.texi (execvp): Likewise.
8077         * doc/glibc-functions/canonicalize_file_name.texi
8078         (canonicalize_file_name): Cygwin 1.7 now provides this.
8079         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
8080         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
8081         on AT_SYMLINK_NOFOLLOW.
8082
8083 2009-09-24  Eric Blake  <ebb9@byu.net>
8084
8085         test-linkat: make test more robust
8086         * tests/test-linkat.c (main): Avoid collision with EEXIST.
8087
8088         getopt: fix inclusion guards for cygwin
8089         * modules/getopt-posix (Depends-on): Add include-next.
8090         (Makefile.am): Substitute more items in replacement header.
8091         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
8092         <getopt.h>.
8093         * lib/getopt.in.h (includes): Use split inclusion guard, and
8094         prefer <getopt.h> over include <unistd.h> when one is present.
8095         (option): Also override name of 'struct option'.
8096
8097         same-inode: revert prior change; it is not yet ready
8098         * NEWS: Undo mention of this change.
8099         * lib/same-inode.h (same-inode.h): Undo tri-state change.
8100         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8101         * lib/cycle-check.c (cycle_check): Likewise.
8102         * lib/same.c (same_name): Likewise.
8103         * lib/at-func2.c (at_func2): Likewise.
8104
8105 2009-09-23  Eric Blake  <ebb9@byu.net>
8106
8107         linkat: new module
8108         * modules/linkat: New file.
8109         * lib/at-func2.c (at_func2): Likewise.
8110         * lib/linkat.c (linkat): Likewise.
8111         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8112         * lib/openat-priv.h (at_func2): Add declaration.
8113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8114         * modules/unistd (Makefile.am): Substitute them.
8115         * lib/unistd.in.h (linkat): Declare it.
8116         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8117         * doc/posix-functions/linkat.texi (linkat): Likewise.
8118         * doc/posix-functions/link.texi (link): Tweak wording.
8119         * tests/test-link.c (main): Move guts...
8120         * tests/test-link.h (test_link): ...into new file.
8121         * modules/linkat-tests: New test.
8122         * tests/test-linkat.c: Likewise.
8123         * modules/link-tests (Files): Ship new file.
8124         (Depends-on): Add stdbool.
8125
8126         dirname: add library-safe mdir_name
8127         * lib/dirname.h (mdir_name): New prototype.
8128         * lib/dirname.c (dir_name): Move guts...
8129         (mdir_name): ...to new function that avoids xalloc_die.
8130
8131         fchdir: another mingw fix
8132         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
8133         * lib/fchdir.c (get_name): New helper method; skips canonicalize
8134         on mingw (where it has not yet been ported), and make it optional
8135         elsewhere.
8136         (_gl_register_fd): Use it.
8137
8138         same-inode: make SAME_INODE tri-state, to port to mingw
8139         * NEWS: Mention this change.
8140         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
8141         st_ino always being 0.
8142         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8143         * lib/cycle-check.c (cycle_check): Likewise.
8144         * lib/same.c (same_name): Likewise.
8145
8146         lstat: avoid mingw compilation error
8147         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
8148         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
8149         lstat ourselves.
8150         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
8151         was adequate.
8152         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
8153         the checks for lstat.
8154         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
8155
8156         link: fix test failure on Solaris 9
8157         * lib/link.c (rpl_link): Don't assume link will catch bogus
8158         trailing slash on source.
8159
8160         test-symlinkat: enhance test
8161         * tests/test-readlink.c (main): Move guts...
8162         * tests/test-readlink.h (test_readlink): ...into new file.
8163         * tests/test-symlink.c (main): Move guts...
8164         * tests/test-symlink.h (test_symlink): ...into new file.
8165         * tests/test-symlinkat.c (main): Use new files for further
8166         coverage.
8167         (do_symlink, do_readlink): New helper functions.
8168         * modules/symlink-tests (Files): Ship new file.
8169         (Depends-on): Add stdbool.
8170         * modules/readlink-tests (Files): Ship new file.
8171         (Depends-on): Add stdbool.
8172         * modules/symlinkat-tests (Files): Use new files.
8173
8174 2009-09-23  Eric Blake  <ebb9@byu.net>
8175
8176         readlink: document portability issue with symlink length
8177         * doc/posix-functions/lstat.texi (lstat): Mention that some file
8178         systems have bogus st_size on symlinks, and mention the
8179         areadlink-with-size module.
8180         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8181         * doc/posix-functions/readlink.texi (readlink): Mention the
8182         areadlink module, and ERANGE failure.
8183         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8184         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
8185
8186         readlink: fix Solaris 9 bug with trailing slash
8187         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
8188         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
8189         * doc/posix-functions/readlink.texi (readlink): Document this.
8190         * modules/readlink-tests: New test.
8191         * tests/test-readlink.c: Likewise.
8192
8193         readlink: fix cygwin 1.5.x bug with return type
8194         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
8195         * lib/unistd.in.h (readlink): Use ssize_t.
8196         * lib/readlink.c (readlink): Likewise.
8197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8198         * modules/unistd (Makefile.am): Substitute it.
8199         * lib/unistd.in.h (readlink): Declare replacement.
8200         * doc/posix-functions/readlink.texi (readlink): Document this.
8201
8202         symlink: use throughout gnulib
8203         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
8204         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
8205         symlink is not used.
8206         * modules/symlinkat (Depends-on): Add symlink.
8207         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8208         * modules/canonicalize-tests (Depends-on): Likewise.
8209         * modules/lstat-tests (Depends-on): Likewise.
8210         * modules/openat-tests (Depends-on): Likewise.
8211         * modules/remove-tests (Depends-on): Likewise.
8212         * modules/rmdir-tests (Depends-on): Likewise.
8213         * modules/unlink-tests (Depends-on): Likewise.
8214         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
8215         * tests/test-canonicalize.c (symlink): Likewise.
8216         * tests/test-fstatat.c (symlink): Likewise.
8217         * tests/test-lstat.c (symlink): Likewise.
8218         * tests/test-remove.c (symlink): Likewise.
8219         * tests/test-rmdir.c (symlink): Likewise.
8220         * tests/test-unlink.c (symlink): Likewise.
8221         * tests/test-unlinkat.c (symlink): Likewise.
8222
8223         symlink: new module, for Solaris 9 bug
8224         * modules/symlink: New file.
8225         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8226         * lib/symlink.c: Likewise.
8227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8228         * modules/unistd (Makefile.am): Substitute them.
8229         * lib/unistd.in.h (symlink): Declare replacement.
8230         * MODULES.html.sh (File system functions): Mention it.
8231         * doc/posix-functions/symlink.texi (symlink): Likewise.
8232         * modules/symlink-tests: New test.
8233         * tests/test-symlink.c: Likewise.
8234
8235 2009-09-23  Bruno Haible  <bruno@clisp.org>
8236
8237         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
8238         when needed.
8239         Test case: gnulib-tool --import --with-tests atexit inttypes.
8240         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
8241
8242 2009-09-23  Bruno Haible  <bruno@clisp.org>
8243
8244         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
8245         subcommand, not in a subshell.
8246
8247 2009-09-22  Eric Blake  <ebb9@byu.net>
8248
8249         unistd: sort replacement declarations
8250         * lib/unistd.in.h: Sort declarations.
8251
8252         open, openat: minor optimization
8253         * lib/open.c (open): If open succeeded, len is non-zero.
8254         * lib/openat.c (rpl_openat): Likewise.
8255
8256         link-follow: ensure correct result
8257         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
8258         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
8259         distinguish between possible failures.
8260
8261 2009-09-21  Eric Blake  <ebb9@byu.net>
8262
8263         fts: avoid compiler warning
8264         * lib/fts.c (dirent_inode_sort_may_be_useful)
8265         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
8266
8267 2009-09-19  Bruno Haible  <bruno@clisp.org>
8268
8269         * lib/progreloc.c (canonicalize_file_name): New declaration.
8270
8271 2009-09-19  Eric Blake  <ebb9@byu.net>
8272
8273         link: fix quoting
8274         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
8275
8276         openat: fix openat bugs on Solaris 9
8277         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
8278         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
8279         * modules/openat (Depends-on): Add open.
8280         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
8281         * modules/fcntl-h (Makefile.am): Substitute it.
8282         * lib/fcntl.in.h (openat): Declare replacement.
8283         * doc/posix-functions/openat.texi (openat): Document this.
8284
8285         openat: move fstatat and unlinkat into correct files
8286         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
8287         compiled.
8288         * lib/openat.c (fstatat, unlinkat): Move...
8289         * lib/fstatat.c (fstatat): ...into correct files.
8290         * lib/unlinkat.c (unlinkat): Likewise.
8291
8292         openat: fix unlinkat bugs on Solaris 9
8293         * lib/unlinkat.c (unlinkat): New file.
8294         * modules/openat (Depends-on): Add unlink.
8295         (Files): Distribute it.
8296         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
8297         trailing slash behavior is broken.
8298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8299         * modules/unistd (Makefile.am): Substitute it.
8300         * lib/unistd.in.h (unlinkat): Declare replacement.
8301         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
8302
8303         openat: fix fstatat bugs on Solaris 9
8304         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
8305         stat.
8306         * doc/posix-functions/fstatat.texi (fstatat): Document this.
8307
8308         test-unlinkat: enhance test, to expose Solaris 9 bug
8309         * tests/test-unlink.c (main): Factor guts...
8310         * tests/test-unlink.h (test_rmdir_func): ...into new file.
8311         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
8312         * tests/test-rmdir.c (main): Adjust caller.
8313         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
8314         (unlinker): New helper function.
8315         (rmdirat): Enhance check.
8316         * modules/rmdir-tests (Depends-on): Add stdbool.
8317         * modules/unlink-tests (Depends-on): Likewise.
8318         (Files): Add test-unlink.h.
8319         * modules/openat-tests (Files): Likewise.
8320         (Depends-on): Add unlinkdir.
8321
8322         test-fstatat: new test, to expose Solaris 9 bugs
8323         * tests/test-stat.c (main): Factor guts...
8324         * tests/test-stat.h (test_stat_func): ...into new file.
8325         * tests/test-lstat.c (main): Factor guts...
8326         * tests/test-lstat.h (test_lstat_func): ...into new file.
8327         * tests/test-fstatat.c: New file.
8328         * modules/stat-tests (Files): Add test-stat.h.
8329         * modules/lstat-tests (Files): Add test-lstat.h.
8330         (Depends-on): Add stdbool.
8331         * modules/openat-tests (Depends-on): Add pathmax.
8332         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
8333         (Makefile.am): Run new test.
8334
8335         remove: new module, for mingw and Solaris 9 bugs
8336         * modules/remove: New file.
8337         * lib/remove.c: Likewise.
8338         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
8339         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8340         * modules/stdio (Makefile.am): Use them.
8341         * lib/stdio.in.h (remove): Declare replacement.
8342         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8343         * doc/posix-functions/remove.texi (remove): Likewise.
8344         * modules/remove-tests: New test.
8345         * tests/test-remove.c: Likewise.
8346
8347         unlink: new module, for Solaris 9 bug
8348         * modules/unlink: New file.
8349         * lib/unlink.c: Likewise.
8350         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8352         * modules/unistd (Makefile.am): Use them.
8353         * lib/unistd.in.h (stat): Declare replacement.
8354         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8355         * doc/posix-functions/unlink.texi (unlink): Likewise.
8356         * modules/unlink-tests: New test.
8357         * tests/test-unlink.c: Likewise.
8358
8359         lstat: fix Solaris 9 bug
8360         * lib/lstat.c (lstat): Also check for trailing slash on
8361         non-symlink, non-directories.  Use stat module to simplify logic.
8362         * doc/posix-functions/lstat.texi (lstat): Document it.
8363         * modules/lstat-tests (Depends-on): Add errno, same-inode.
8364         (configure.ac): Check for symlink.
8365         * tests/test-lstat.c (main): Add more tests.
8366
8367         stat: add as dependency to other modules
8368         * modules/chown (Depends-on): Add stat.
8369         * modules/euidaccess (Depends-on): Likewise.
8370         * modules/fchdir (Depends-on): Likewise.
8371         * modules/isdir (Depends-on): Likewise.
8372         * modules/link (Depends-on): Likewise.
8373         * modules/lstat (Depends-on): Likewise.
8374         * modules/mkdir-p (Depends-on): Likewise.
8375         * modules/modechange (Depends-on): Likewise.
8376         * modules/open (Depends-on): Likewise.
8377         * modules/readlink (Depends-on): Likewise.
8378         * modules/same (Depends-on): Likewise.
8379
8380         stat: fix Solaris 9 bug
8381         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
8382         slash.
8383         * lib/stat.c (rpl_stat): Work around it.
8384         * doc/posix-functions/stat.texi (stat): Update documentation.
8385
8386         stat: new module, for mingw bug
8387         * modules/stat: New file.
8388         * lib/stat.c: Likewise.
8389         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8390         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8391         * modules/sys_stat (Makefile.am): Use them.
8392         * lib/sys_stat.in.h (stat): Declare replacement.
8393         * lib/openat.c (fstatat): Deal with lstat and stat being function
8394         macros.
8395         * modules/openat (Depends-on): Add inline.
8396         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8397         * doc/posix-functions/stat.texi (stat): Likewise.
8398         * modules/stat-tests: New test.
8399         * tests/test-stat.c: Likewise.
8400
8401 2009-09-19  Jim Meyering  <meyering@redhat.com>
8402
8403         syntax-check: detect unnecessary inclusion of canonicalize.h
8404         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
8405
8406 2009-09-19  Eric Blake  <ebb9@byu.net>
8407
8408         canonicalize-lgpl: adjust clients to use correct header
8409         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
8410         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
8411         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
8412         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
8413         * lib/progreloc.c (includes): Likewise.
8414
8415 2009-09-19  Jim Meyering  <meyering@redhat.com>
8416
8417         test-posixtm.c: correct a comment
8418         * tests/test-posixtm.c: Correct first-line comment.
8419         Spotted by Eric Blake.
8420
8421 2009-09-16  Jim Meyering  <meyering@redhat.com>
8422
8423         posixtm-tests: make T const-correct; add a test case
8424         * tests/test-posixtm.c (T): Declare const.
8425         Add a test for -(2^31+1).
8426         Remove useless can-succeed-only-in-2002 test.
8427
8428         posixtm-tests: adjust the sole failing test
8429         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
8430         expected output matches what mktime now produces.  Cross-checked via
8431         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
8432
8433         posixtm: move #ifdef'd tests into a new module
8434         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
8435         * tests/test-posixtm.c: ... this new file.
8436         * modules/posixtm-tests: New module.
8437
8438 2009-09-19  Eric Blake  <ebb9@byu.net>
8439
8440         openat: simplify use of at-func.c
8441         * lib/at-func.c (includes): Include prerequisites here, to
8442         simplify requirements on client files.
8443         * lib/openat-priv.h: Add double-inclusion guard.
8444         * lib/faccessat.c (includes): Simplify.
8445         * lib/fchmodat.c (includes): Likewise.
8446         * lib/fchownat.c (includes): Likewise.
8447         * lib/mkdirat.c (includes): Likewise.
8448         * lib/mkfifoat.c (includes): Likewise.
8449         * lib/symlinkat.c (includes): Likewise.
8450
8451         openat: allow return of fd 0
8452         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
8453         * modules/save-cwd (Depends-on): Replace fcntl-safer with
8454         unistd-safer.
8455         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
8456         <fcntl.h>; this module does not leak fds.
8457         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
8458         must be allowed to return 0, leaving openat_safer to add the
8459         safety.
8460         (openat_permissive): Avoid writing to just-opened fd 2 if
8461         restoring the current directory fails.
8462         * lib/openat-die.c (openat_restore_fail): Add comment.
8463         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
8464         (save_cwd): Guarantee safe fd, but without use of open_safer.
8465         * tests/test-openat.c: New test.
8466         * modules/openat-tests (Files, Makefile.am): Distribute and build
8467         new file.
8468
8469         relocatable-prog-wrapper: fix build
8470         * modules/relocatable-prog-wrapper (Files): Update name of
8471         canonicalize m4 file, broken on 2009-09-17.
8472         Reported by emad hajjar <aleppos@hotmail.com>.
8473
8474 2009-09-19  Bruno Haible  <bruno@clisp.org>
8475
8476         * lib/safe-alloc.h: Use the standard header with GPL copyright.
8477         * lib/safe-alloc.c: Likewise.
8478         Reported by Ian Beckwith <ianb@erislabs.net>.
8479
8480 2009-09-18  Bruno Haible  <bruno@clisp.org>
8481
8482         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
8483         Reported by <erobles@sensacd.com.mx>.
8484
8485 2009-09-17  Eric Blake  <ebb9@byu.net>
8486
8487         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
8488         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
8489         slashes when checking if last component is missing.
8490         * tests/test-canonicalize.c (main): Test this.
8491
8492         canonicalize, canonicalize-lgpl: honor // if distinct from /
8493         * modules/canonicalize (Files): Add double-slash-root.m4.
8494         * modules/canonicalize-lgpl (Files): Likewise.
8495         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
8496         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
8497         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
8498         fallback definition.
8499         (canonicalize_filename_mode): Use it to protect //.
8500         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
8501         (__realpath): Likewise.
8502         * tests/test-canonicalize.c (main): Test this.
8503         * tests/test-canonicalize-lgpl.c (main): Likewise.
8504         * modules/canonicalize-tests (Depends-on): Add same-inode.
8505         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8506
8507         canonicalize-lgpl: fix glibc bug with trailing slash
8508         * m4/canonicalize-lgpl.m4: Move contents...
8509         * m4/canonicalize.m4: ...here.
8510         (gl_CANONICALIZE_LGPL): Factor realpath check...
8511         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
8512         glibc 2.3.5 bug, fixed 2005-04-27.
8513         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
8514         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
8515         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
8516         * modules/canonicalize-lgpl (Files): Manage file rename.
8517         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
8518         * modules/stdlib (Makefile.am): Substitute witness.
8519         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
8520         is needed.
8521         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
8522         replacement is required.
8523         * lib/canonicalize.c (canonicalize_file_name): Likewise.
8524         * doc/glibc-functions/canonicalize_file_name.texi
8525         (canonicalize_file_name): Document this.
8526         * doc/posix-functions/realpath.texi (realpath): Likewise.
8527
8528         canonicalize-lgpl: reject non-directory with trailing slash
8529         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
8530         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
8531         catches failures in glibc 2.3.5.
8532         * tests/test-canonicalize.c (main): Likewise.
8533
8534         canonicalize-lgpl: use native realpath if it works
8535         * lib/canonicalize-lgpl.c (realpath): Guard with
8536         FUNC_REALPATH_WORKS.
8537         * lib/stdlib.in.h (realpath): Make declaration optional based on
8538         HAVE_REALPATH.
8539         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
8540         native realpath works.
8541         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
8542         * modules/stdlib (Makefile.am): Substitute witness.
8543
8544         canonicalize, canonicalize-lgpl: use <stdlib.h>
8545         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
8546         (Include): Mention <stdlib.h>.
8547         (configure.ac): Mention functions we provide.
8548         * modules/canonicalize (configure.ac): Likewise.
8549         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
8550         realpath if canonicalize_file_name is missing.
8551         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
8552         * modules/stdlib (Makefile.am): Substitute witnesses.
8553         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
8554         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
8555         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
8556         * NEWS: Document this.
8557         * doc/glibc-functions/canonicalize_file_name.texi
8558         (canonicalize_file_name): Likewise.
8559         * doc/posix-functions/realpath.texi (realpath): Likewise.
8560         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
8561
8562         test-canonicalize: consolidate into single C program
8563         * tests/test-canonicalize.sh: Delete; move setup into...
8564         * tests/test-canonicalize.c (main): ...the program, making it
8565         easier to run in debugger.  Add some tests.
8566         * modules/canonicalize-tests (Files): Remove unused file.
8567         (Depends-on): Add progname.
8568         (configure.ac, Makefile.am): Simplify.
8569
8570         test-canonicalize-lgpl: consolidate into single C program
8571         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
8572         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
8573         easier to run in debugger.  Add some tests.
8574         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
8575         (configure.ac, Makefile.am): Simplify.
8576
8577         canonicalize: avoid resolvepath
8578         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
8579         unnecessary checks.
8580         * lib/canonicalize.c (includes): Simplify.
8581         (canonicalize_file_name): Drop resolvepath implementation.
8582         * modules/canonicalize (Depends-on): Drop filenamecat.
8583
8584         canonicalize: don't lose errno
8585         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
8586         over calls to free.
8587
8588         canonicalize: simplify errno handling
8589         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
8590         assignment.
8591
8592         canonicalize, canonicalize-lgpl: update module dependencies
8593         * modules/canonicalize (Depends-on): Add extensions, lstat,
8594         pathmax, stdlib.
8595         (Files): Drop pathmax.h.
8596         (configure.ac): Adjust macro name.
8597         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
8598         lstat, stdlib, sys_stat.
8599         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
8600         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
8601         extensions.
8602         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
8603         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
8604         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
8605         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
8606         declaration, if available.
8607         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
8608         we can rely on the readlink module.
8609         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
8610         (includes): Use <unistd.h> unconditionally.
8611
8612 2009-09-17  Eric Blake  <ebb9@byu.net>
8613
8614         maint: make Include sections of modules consistent
8615         * modules/alloca: Use only header name; no need to list #include.
8616         * modules/alloca-opt: Likewise.
8617         * modules/arpa_inet: Likewise.
8618         * modules/canon-host: Likewise.
8619         * modules/configmake: Likewise.
8620         * modules/dirent: Likewise.
8621         * modules/eealloc: Likewise.
8622         * modules/environ: Likewise.
8623         * modules/fchdir: Likewise.
8624         * modules/fcntl: Likewise.
8625         * modules/fcntl-h: Likewise.
8626         * modules/gethrxtime: Likewise.
8627         * modules/gettime: Likewise.
8628         * modules/ignore-value: Likewise.
8629         * modules/inet_ntop: Likewise.
8630         * modules/inet_pton: Likewise.
8631         * modules/inttypes: Likewise.
8632         * modules/isnand-nolibm: Likewise.
8633         * modules/isnanf-nolibm: Likewise.
8634         * modules/mbchar: Likewise.
8635         * modules/mbfile: Likewise.
8636         * modules/mbiter: Likewise.
8637         * modules/mbuiter: Likewise.
8638         * modules/netdb: Likewise.
8639         * modules/netinet_in: Likewise.
8640         * modules/nproc: Likewise.
8641         * modules/pagealign_alloc: Likewise.
8642         * modules/poll: Likewise.
8643         * modules/printf-frexp: Likewise.
8644         * modules/pthread: Likewise.
8645         * modules/putenv: Likewise.
8646         * modules/random_r: Likewise.
8647         * modules/relocatable-prog: Likewise.
8648         * modules/search: Likewise.
8649         * modules/select: Likewise.
8650         * modules/selinux-h: Likewise.
8651         * modules/settime: Likewise.
8652         * modules/signal: Likewise.
8653         * modules/size_max: Likewise.
8654         * modules/socklen: Likewise.
8655         * modules/ssize_t: Likewise.
8656         * modules/stdarg: Likewise.
8657         * modules/stdbool: Likewise.
8658         * modules/stddef: Likewise.
8659         * modules/stdint: Likewise.
8660         * modules/stdio: Likewise.
8661         * modules/stdlib: Likewise.
8662         * modules/string: Likewise.
8663         * modules/strings: Likewise.
8664         * modules/sys_file: Likewise.
8665         * modules/sys_ioctl: Likewise.
8666         * modules/sys_select: Likewise.
8667         * modules/sys_socket: Likewise.
8668         * modules/sys_stat: Likewise.
8669         * modules/sys_time: Likewise.
8670         * modules/sys_times: Likewise.
8671         * modules/sys_utsname: Likewise.
8672         * modules/sys_wait: Likewise.
8673         * modules/sysexits: Likewise.
8674         * modules/time: Likewise.
8675         * modules/times: Likewise.
8676         * modules/tmpfile: Likewise.
8677         * modules/trim: Likewise.
8678         * modules/unistd: Likewise.
8679         * modules/wchar: Likewise.
8680         * modules/wctype: Likewise.
8681
8682 2009-09-17  Bruno Haible  <bruno@clisp.org>
8683
8684         Make getdate.y compile on QNX and NetBSD 5 / i386.
8685         * m4/getdate.m4 (gl_GETDATE): Conditionally define
8686         TIME_T_FITS_IN_LONG_INT.
8687         * lib/getdate.y (long_time_t): New type.
8688         (relative_time): Change type of 'seconds' field to long_time_t.
8689         (get_date): Update types of local variables. Check against overflow
8690         during conversion from long_time_t to time_t.
8691         Reported by Matt Kraai <kraai@ftbfs.org>
8692         and Hasso Tepper <hasso@netbsd.org>.
8693
8694 2009-09-17  Bruno Haible  <bruno@clisp.org>
8695
8696         * modules/COPYING: Update copyright years.
8697         * modules/README: Likeiwse.
8698         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
8699         Reported by Ian Beckwith <ianb@erislabs.net>.
8700
8701 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
8702
8703         * users.txt: Update references for gnuit package.
8704
8705 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
8706
8707         * m4/getdelim.m4: Fix typo in copyright line.
8708
8709 2009-09-17  Bruno Haible  <bruno@clisp.org>
8710
8711         * lib/atoll.c: Use the standard header with GPL copyright.
8712         * lib/argz.in.h: Likewise.
8713         * lib/glob.c: Likewise.
8714         * lib/glob-libc.h: Likewise.
8715         * lib/random_r.c: Likewise.
8716         * lib/siglist.h: Likewise.
8717         * lib/strsignal.c: Likewise.
8718         Reported by Ian Beckwith <ianb@erislabs.net>.
8719
8720 2009-09-17  Eric Blake  <ebb9@byu.net>
8721
8722         rmdir: ensure correct dependency order
8723         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
8724
8725 2009-09-17  Bruno Haible  <bruno@clisp.org>
8726
8727         Disable assertion that fails on NetBSD 5 / i386.
8728         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
8729         Reported by Sam Steingold <sds@gnu.org>
8730         and Hasso Tepper <hasso@netbsd.org>.
8731
8732 2009-09-16  Eric Blake  <ebb9@byu.net>
8733
8734         unlinkdir: port to mingw
8735         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
8736         on which no one can unlink a directory.
8737
8738         stdlib: sort witness names
8739         * modules/stdlib (Makefile.am): Sort replacements.
8740         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
8741         * lib/stdlib.in.h: Likewise.
8742
8743         parse-duration-tests: avoid link failure
8744         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
8745         LIBINTL.
8746         Reported by Tom G. Christensen.
8747
8748         openat-tests: ensure unlinkat behaves like rmdir
8749         * tests/test-rmdir.c (main): Factor guts...
8750         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
8751         * modules/rmdir-tests (Files): Ship new file.
8752         * modules/openat-tests: New test.
8753         * tests/test-unlinkat.c: Likewise.
8754
8755         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
8756         * modules/rmdir-errno (Status, Notice): Now obsolete.
8757
8758         rmdir: work around cygwin 1.5.x and mingw bugs
8759         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
8760         * lib/rmdir.c (rmdir): Work around it.
8761         * modules/rmdir (Status, Notice): No longer obsolete.
8762         (Files): Add dos.m4.
8763         (Depends-on): Add unistd.
8764         (configure.ac): Set witnesses.
8765         (License): Relax to LGPLv2+.
8766         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
8767         * modules/unistd (Makefile.am): Substitute witnesses.
8768         * lib/unistd.in.h (rmdir): Declare replacement.
8769         * doc/posix-functions/rmdir.texi (rmdir): Document this.
8770         * modules/rmdir-tests: New tests.
8771         * tests/test-rmdir.c: Likewise.
8772
8773 2009-09-15  Eric Blake  <ebb9@byu.net>
8774
8775         fchdir: improve use of replacement functions
8776         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
8777         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
8778         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
8779         REPLACE_CLOSEDIR.
8780         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
8781         * modules/sys_stat (Makefile.am): Substitute correct witness.
8782         * modules/dirent (Makefile.am): Likewise.
8783         * modules/unistd (Makefile.am): Likewise.
8784         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
8785         * lib/unistd.in.h (dup): Likewise.
8786         * lib/sys_stat.in.h (fstat): Likewise.
8787
8788         maint: ignore gnulib-tool temp files
8789         * .gitignore: Ignore files created during gnulib-tool --test.
8790
8791 2009-09-13  Jim Meyering  <meyering@redhat.com>
8792
8793         posixtm: don't reject a time that specify "60" as the number of seconds
8794         * lib/posixtm.c (posixtime): The code to reject invalid dates
8795         would also reject a time specified with the .60 suffix.
8796         But POSIX allows that, in order to accommodate leap seconds.
8797         So don't reject it.
8798         (main): Adjust tests accordingly.
8799         * modules/posixtm (Depends-on): Add stpcpy.
8800
8801 2009-09-11  Jim Meyering  <meyering@redhat.com>
8802
8803         announce-gen: include [$release_type] in emitted Subject:
8804         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
8805         e.g., [stable] in the emitted Subject: line.
8806
8807 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8808
8809         Remove obsolete macros from several modules.
8810         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
8811         obsolete Autoconf macros with their modern counterparts.
8812         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
8813         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
8814         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
8815         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
8816         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
8817         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8818         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
8819         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
8820         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
8821         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
8822         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8823         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8824         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
8825         * m4/sockets.m4 (gl_SOCKETS): Likewise.
8826         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
8827         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
8828         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
8829         * m4/time_r.m4 (gl_TIME_R): Likewise.
8830         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
8831         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
8832         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
8833
8834         Fix copyright header in build-aux scripts.
8835         * build-aux/git-version-gen: Fix copyright header to match GPLv3
8836         recommendation.
8837         * build-aux/ncftpput-ftp: Likewise.
8838         * build-aux/update-copyright: Likewise.
8839
8840 2009-09-09  Eric Blake  <ebb9@byu.net>
8841
8842         test-link: allow Linux choice of errno
8843         * tests/test-link.c (main): Relax test for alternate error.
8844
8845         strndup: fix improper m4 caching
8846         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
8847         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
8848         (gl_PREREQ_STRNDUP): Delete.
8849         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
8850         * modules/string (Makefile.am): Substitute it.
8851         * lib/string.in.h (strndup): Modernize prototype.
8852
8853         getcwd: port to mingw
8854         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
8855         different from the POSIX assumptions made throughout the getcwd
8856         module; fortunately, the mingw getcwd does not need replacement.
8857         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
8858         * modules/getcwd-tests: New test.
8859         * tests/test-getcwd.c: Likewise.
8860
8861         link: fix platform bugs
8862         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
8863         * lib/link.c (link): Work around them.  Fix related mingw bug.
8864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
8865         * modules/unistd (Makefile.am): Substitute it.
8866         * lib/unistd.in.h (link): Declare replacement.
8867         * doc/posix-functions/link.texi (link): Document this.
8868         * modules/link (Depends-on): Add strdup-posix, sys_stat.
8869
8870         test-link: consolidate into single C program, test more cases
8871         * tests/test-link.sh: Delete.
8872         * tests/test-link.c: Test more error conditions.  Exposes bugs on
8873         at least Cygwin and Solaris.
8874         * modules/link-tests (Files): Remove unused file.
8875         (Depends-on): Add errno, sys_stat.
8876         (Makefile.am): Simplify.
8877
8878 2009-09-08  Bruno Haible  <bruno@clisp.org>
8879
8880         Work around towlower, towupper bug on mingw.
8881         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
8882         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
8883         * doc/posix-functions/towlower.texi: Mention the mingw bug.
8884         * doc/posix-functions/towupper.texi: Likewise.
8885         Reported by Eric Blake.
8886
8887 2009-09-08  Jim Meyering  <meyering@redhat.com>
8888
8889         build: don't try to run autoheader if we don't use it
8890         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
8891         is not used in configure.ac.
8892
8893 2009-09-08  Eric Blake  <ebb9@byu.net>
8894
8895         euidaccess: fix compilation error
8896         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
8897
8898         rawmemchr: relax license
8899         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
8900         okay.
8901         Reported by Jim Meyering.
8902
8903         mkfifoat: new module
8904         * modules/mkfifoat: New file.
8905         * lib/mkfifoat.c: Likewise.
8906         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
8907         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8908         * modules/sys_stat (Makefile.am): Use them.
8909         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
8910         * MODULES.html.sh (File system functions): Mention module.
8911         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
8912         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
8913         * modules/mkfifoat-tests: New test.
8914         * tests/test-mkfifoat.c: Likewise.
8915
8916         strchrnul: relax license
8917         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
8918         okay.
8919         Reported by Jim Meyering.
8920
8921 2009-09-08  Eric Blake  <ebb9@byu.net>
8922
8923         fstatat: fix compilation on Solaris
8924         * lib/fstatat.c (includes): Add fcntl.h.
8925         Reported by Pádraig Brady.
8926
8927 2009-09-07  Eric Blake  <ebb9@byu.net>
8928
8929         rename: modernize replacement
8930         * modules/rename (Depends-on): Add stdio.
8931         (configure.ac): Declare witness.
8932         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
8933         stdio take care of replacement.
8934         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
8935         * modules/stdio (Makefile.am): Substitute them.
8936         * lib/stdio.in.h (rename): Declare replacement.
8937         * lib/rename.c (includes): Allow cross-compilation to non-windows
8938         machines.
8939         * doc/posix-functions/rename.texi (rename): Improve
8940         documentation.
8941
8942         stdio: sort witness names
8943         * modules/stdio (Makefile.am): Sort replacements.
8944         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
8945         * lib/stdio.in.h: Likewise.
8946
8947         getcwd: minor cleanups
8948         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
8949         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
8950
8951         openat: provide more convenience names
8952         * modules/faccessat (configure.ac): Add C witness.
8953         * lib/unistd.in.h (readlinkat): Fix typo.
8954         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
8955         convenience wrappers.
8956         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
8957         wrappers in syntax checks.
8958
8959 2009-09-06  Eric Blake  <ebb9@byu.net>
8960
8961         doc: fix comments in recent patches
8962         * lib/faccessat.c: Mention correct function.
8963         * lib/fchmodat.c: Likewise.
8964         * lib/fchownat.c: Likewise.
8965         * lib/symlinkat.c: Likewise.
8966         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
8967         constants.
8968
8969         faccessat, symlinkat: continue cleanup of previous patch
8970         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
8971         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
8972         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
8973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
8974         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
8975         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
8976         set.
8977
8978 2009-09-06  Bruno Haible  <bruno@clisp.org>
8979
8980         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
8981         (fstatat): Declare if GNULIB_FSTATAT is set.
8982         (mkdirat): Declare if GNULIB_MKDIRAT is set.
8983         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
8984         (unlinkat): Declare if GNULIB_UNLINKAT is set.
8985         * modules/fcntl-h (Files): Remove m4/openat.m4.
8986         * modules/sys_stat (Files): Remove m4/openat.m4.
8987         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
8988         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
8989         * modules/unistd (Files): Remove m4/openat.m4.
8990         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
8991         GNULIB_OPENAT.
8992         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
8993         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
8994         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
8995         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
8996         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
8997         gl_OPENAT_DEFAULTS.
8998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
8999         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
9000         Don't require gl_OPENAT_DEFAULTS.
9001         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
9002         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
9003         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
9004         (gl_OPENAT_DEFAULTS): Remove macro.
9005
9006 2009-09-06  Bruno Haible  <bruno@clisp.org>
9007
9008         * modules/openat (configure.ac): Remove unneeded witness.
9009
9010 2009-09-06  Bruno Haible  <bruno@clisp.org>
9011
9012         Set errno to ENOSYS when a function is entirely unsupported.
9013         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
9014         EOPNOTSUPP.
9015         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9016         * modules/chown (Depends-on): Remove errno.
9017
9018 2009-09-06  Bruno Haible  <bruno@clisp.org>
9019
9020         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
9021
9022 2009-09-06  Bruno Haible  <bruno@clisp.org>
9023
9024         * lib/sys_stat.in.h: Fix preprocessor command indentation.
9025
9026 2009-09-06  Ben Pfaff  <blp@gnu.org>
9027             Bruno Haible  <bruno@clisp.org>
9028
9029         Work around a glibc bug in strtok_r.
9030         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
9031         Undefine if UNDEFINE_STRTOK_R is set.
9032         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
9033         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9034         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
9035         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
9036         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
9037         UNDEFINE_STRTOK_R.
9038         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
9039
9040 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
9041
9042         exclude: minor fix
9043         * lib/exclude.c: Include wctype.h
9044
9045 2009-09-06  Akim Demaille  <demaille@gostai.com>
9046
9047         bootstrap: improve error message
9048         * build-aux/bootstrap (find_tool): Upon failure, report the list
9049         of candidates.
9050         Honor the initial value of the envvar.
9051
9052 2009-09-05  Eric Blake  <ebb9@byu.net>
9053
9054         symlinkat: new module
9055         * modules/symlinkat: New file.
9056         * lib/symlinkat.c: Likewise.
9057         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
9058         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9059         * modules/unistd (Makefile.am): Use them.
9060         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
9061         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
9062         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
9063         * MODULES.html.sh (File system functions): Mention module.
9064         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9065         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9066         * modules/symlinkat-tests: New test.
9067         * tests/test-symlinkat.c: Likewise.
9068
9069         test-openat-safer: add more checks
9070         * tests/test-openat-safer.c (main): Check more code paths.
9071
9072 2009-09-05  Jim Meyering  <meyering@redhat.com>
9073
9074         syntax-check: detect unnecessary inclusion of openat.h
9075         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
9076
9077 2009-09-05  Bruno Haible  <bruno@clisp.org>
9078
9079         Support towlower, towupper.
9080         * doc/posix-functions/towlower.texi: Mention module wctype.
9081         * doc/posix-functions/towupper.texi: Likewise.
9082         * lib/wctype.in.h (towlower, towupper): New functions.
9083         * tests/test-wctype.c: Include stdio.h, stdlib.h.
9084         (ASSERT): New macro.
9085         (e): New variable.
9086         (main): Test also towlower, towupper. Test WEOF argument.
9087         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9088
9089 2009-09-05  Bruno Haible  <bruno@clisp.org>
9090
9091         Fix conversion behaviour when the input is invalid.
9092         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
9093         mark occurring in first pass of indirect conversion.
9094         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
9095         input.
9096         Found by clang's static analyzer.
9097
9098 2009-09-05  Bruno Haible  <bruno@clisp.org>
9099
9100         * tests/test-striconveh.c (main): Test indirect conversion on platforms
9101         where direct conversion is possible.
9102
9103 2009-09-04  Eric Blake  <ebb9@byu.net>
9104
9105         openat: fail with ENOENT on empty name
9106         * lib/openat-proc.c (openat_proc_name): Special-case the empty
9107         buffer.
9108
9109         link-follow: fix logic bug in prior patch
9110         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
9111         reversed sense of yes and no in prior patch.  Avoid confusing
9112         compilation failure with desired semantics.
9113
9114         link-follow: accomodate mingw and cross-compilation
9115         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
9116         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
9117         cross-compilation results to -1, to make linkat easier to
9118         implement when cross-compiling.  Trivially support mingw.
9119         * modules/link-follow (configure.ac): Call new name.
9120         * NEWS: Mention this.
9121
9122 2009-09-03  Eric Blake  <ebb9@byu.net>
9123
9124         faccessat: compile replacement
9125         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
9126         needed.
9127
9128         fts: fix compilation error
9129         * lib/fts.c (includes): Re-add "openat.h", for
9130         openat_needs_fchdir.
9131
9132         faccessat: new module
9133         * modules/faccessat: New file.
9134         * lib/faccessat.c: Likewise.
9135         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9136         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9137         * modules/unistd (Makefile.am): Use it.
9138         * lib/unistd.in.h (faccessat): Declare it.
9139         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
9140         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
9141         * MODULES.html.sh (File system functions): Mention it.
9142         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
9143         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
9144
9145         euidaccess: prefer POSIX over non-standard implementation
9146         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
9147         * lib/euidaccess.c (euidaccess): Use it if available.
9148
9149         openat: make template easier to use
9150         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
9151         AT_FUNC_F2 to be undefined.
9152         (VALIDATE_FLAG): New macro; use it to reject bad flags.
9153         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
9154         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
9155         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
9156         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
9157         Likewise.
9158         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
9159         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
9160         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
9161         Likewise.
9162
9163         openat: declare in POSIX headers
9164         * NEWS: Mention this.
9165         * modules/openat (configure.ac): Declare witnesses.
9166         (Depends-on): Add fcntl-h, sys_stat, unistd.
9167         (Include): Mention correct headers.
9168         * modules/fcntl-h (Depends-on): Add link-warning.
9169         (Files): Add openat.m4.
9170         (Makefile.am): Substitute witnesses.
9171         * modules/sys_stat (Files, Makefile.am): Likewise.
9172         * modules/unistd (Files, Makefile.am): Likewise.
9173         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
9174         (gl_OPENAT_DEFAULTS): New macro.
9175         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
9176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
9177         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
9178         (SYS_STAT_H): Remove unused variable.
9179         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
9180         * lib/fcntl--.h (includes): Remove unneeded header.
9181         * lib/openat-safer.c (includes): Likewise.
9182         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
9183         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
9184         appropriate headers.
9185         (__OPENAT_PREFIX): Delete.
9186         * lib/fcntl.in.h (openat): Provide declaration.
9187         (AT_FDCWD): Fix Solaris bug.
9188         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
9189         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
9190         * lib/fchmodat.c (includes):  Adjust to find declaration.
9191         * lib/fchownat.c (includes): Likewise.
9192         * lib/mkdirat.c (includes): Likewise.
9193         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
9194         still visible.
9195
9196 2009-09-02  Eric Blake  <ebb9@byu.net>
9197
9198         errno: use consistently
9199         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
9200         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
9201         * lib/canonicalize.c (ELOOP): Likewise.
9202         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
9203         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
9204         * lib/lchown.c (EOPNOTSUPP): Likewise.
9205         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
9206         * lib/savewd.c (ESTALE): Likewise.
9207         * lib/settime.c (ENOSYS): Likewise.
9208         * lib/utimens.c (ENOSYS): Likewise.
9209         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
9210         * lib/chdir-safer.c (ELOOP): Likewise.
9211         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
9212         * modules/c-stack (Depends-on): Add errno.
9213         * modules/canonicalize (Depends-on): Likewise.
9214         * modules/chdir-safer (Depends-on): Likewise.
9215         * modules/fdopendir (Depends-on): Likewise.
9216         * modules/inet_ntop (Depends-on): Likewise.
9217         * modules/inet_pton (Depends-on): Likewise.
9218         * modules/lchown (Depends-on): Likewise.
9219         * modules/openat (Depends-on): Likewise.
9220         * modules/savewd (Depends-on): Likewise.
9221         * modules/settime (Depends-on): Likewise.
9222         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
9223
9224         fts: avoid leaking fds
9225         * modules/fts (Depends-on): Add cloexec.
9226         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
9227         flag.
9228
9229         fts: make directory fds more robust
9230         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
9231         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
9232
9233         backupfile, chdir-long, fts, savedir: make safer
9234         * lib/backupfile.c (includes): Use "dirent--.h", since
9235         numbered_backup can write to stderr during readdir.
9236         * lib/savedir.c (includes): Likewise.
9237         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
9238         emulation can write to stderr on failure.
9239         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
9240         * lib/getcwd.c: Document why opendir_safer is unused.
9241         * lib/glob.c: Likewise.
9242         * lib/scandir.c: Likewise.
9243         * lib/openat-proc.c: Likewise, for open_safer.
9244         * modules/backupfile (Depends-on): Add dirent-safer.
9245         * modules/savedir (Depends-on): Likewise.
9246         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
9247         * modules/chdir-long (Depends-on): Add openat-safer.
9248
9249         openat-safer: new module
9250         * modules/openat-safer: New file.
9251         * lib/openat-safer.c: Likewise.
9252         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
9253         * lib/fcntl-safer.h (openat_safer): Declare.
9254         * lib/fcntl--.h (openat): Override.
9255         * MODULES.html.sh (File descriptor based I/O): Mention it.
9256         * lib/openat.h: Add double-inclusion guards.
9257         * lib/openat.c (includes): Only include "fcntl-safer.h", not
9258         "fcntl--.h", so we can implement openat.
9259         * modules/openat-safer-tests: New test.
9260         * tests/test-openat-safer.c: New file.
9261
9262         dirent-safer: new module
9263         * modules/dirent-safer: New file.
9264         * lib/dirent--.h: Likewise.
9265         * lib/dirent-safer.h: Likewise.
9266         * lib/opendir-safer.c: Likewise.
9267         * m4/dirent-safer.m4: Likewise.
9268         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
9269         * modules/dirent-safer-tests: New test.
9270         * tests/test-dirent-safer.c: New file.
9271         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
9272
9273         fdopendir: optimize on mingw
9274         * lib/unistd.in.h (_gl_directory_name): New prototype.
9275         * lib/fchdir.c (_gl_directory_name): Implement it.
9276         (fchdir): Use it to simplify implementation.
9277         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
9278         fchdir, when available, to avoid calling [f]chdir().
9279
9280         fdopendir: split into its own module
9281         * lib/openat.c (fdopendir): Move...
9282         * lib/fdopendir.c: ...into new file.
9283         * modules/fdopendir: New module.
9284         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
9285         * modules/openat (Depends-on): Add fdopendir.
9286         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
9287         fdopendir here.
9288         * modules/savedir (Depends-on): Only need fdopendir, not full
9289         openat.
9290         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
9291         * lib/openat.h (fdopendir): Drop prototype.
9292         * lib/dirent.in.h (fdopendir): Provide prototype.
9293         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
9294         * modules/dirent (Makefile.am): Substitute them.
9295         * MODULES.html.sh (File system functions): Mention it.
9296         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
9297         * modules/fdopendir-tests: New file.
9298         * tests/test-fdopendir.c: Likewise.
9299
9300         fchdir: use more consistent macro convention
9301         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
9302         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
9303         REPLACE_FCHDIR, rather than relying on config.h macros.
9304         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
9305         inside a single make-time REPLACE_FCHDIR block, rather than using
9306         the config.h FCHDIR_REPLACEMENT.
9307         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
9308         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
9309         Manage fstat replacement.
9310         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
9311         REPLACE_FCHDIR.
9312         * modules/sys_stat (Files): Add m4/unistd_h.m4.
9313         (Makefile.am): Substitute REPLACE_FCHDIR.
9314         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
9315         FCHDIR_REPLACEMENT.
9316         * lib/dup-safer.c (dup_safer): Likewise.
9317         * lib/dup2.c (rpl_dup2): Likewise.
9318         * lib/dup3.c (rpl_dup3): Likewise.
9319         * lib/open.c (rpl_open): Likewise.
9320
9321         fchdir: simplify error handling, and support dup3
9322         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
9323         stdbool, malloc-posix, realloc-posix.
9324         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
9325         (ensure_dirs_slot): Return false on allocation failure.
9326         (rpl_dup2): Delete.
9327         (_gl_register_dup): New function.
9328         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
9329         (_gl_register_fd): Close fd on allocation failure.
9330         * lib/fcntl.in.h (_gl_register_fd): Update signature.
9331         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
9332         prototype.
9333         (rpl_dup2_fchdir): Delete prototype.
9334         * lib/open.c (open): Update caller.
9335         * lib/dup2.c (dup2): Track fchdir metadata.
9336         * lib/dup3.c (dup3): Likewise.
9337         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
9338         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
9339
9340 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9341
9342         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
9343         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
9344         don't pass arguments to AC_OUTPUT.
9345
9346 2009-09-02  Bruno Haible  <bruno@clisp.org>
9347
9348         * modules/mkdtemp (License): Relicense under LGPLv2+.
9349         Reported by Paolo Bonzini.
9350
9351 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9352
9353         Replace uses of obsolete autoconf macros in Jim's modules.
9354         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
9355         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
9356         can evoke a warning from autoconf when run with -Wobsolete
9357         enabled.  They were declared obsolete for good reasons (see
9358         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
9359         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
9360         should not continue using the deprecated macros.
9361         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
9362         obsolete Autoconf macros with modern counterparts.
9363         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9364         * m4/dos.m4 (gl_AC_DOS): Likewise.
9365         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
9366         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9367         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
9368         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
9369         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
9370         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
9371         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
9372         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
9373         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
9374         Likewise.
9375         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
9376         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
9377         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
9378         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
9379         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
9380         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
9381
9382 2009-09-01  Eric Blake  <ebb9@byu.net>
9383
9384         fchdir: fix off-by-one bug in previous patch
9385         * lib/fchdir.c (rpl_fstat): Use correct bounds.
9386         (_gl_unregister_fd): Delete useless if.
9387
9388 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
9389
9390         maint.mk: sort the list of syntax-check rules
9391         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
9392         easier to get a sense of progress when the rules are run sequentially
9393         and take a long time.
9394
9395 2009-09-01  Simon Josefsson  <simon@josefsson.org>
9396
9397         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
9398         * modules/netinet_in: Likewise.
9399         * modules/sys_file: Likewise.
9400         * modules/sys_ioctl: Likewise.
9401         * modules/sys_select: Likewise.
9402         * modules/sys_socket: Likewise.
9403         * modules/sys_stat: Likewise.
9404         * modules/sys_time: Likewise.
9405         * modules/sys_times: Likewise.
9406         * modules/sys_utsname: Likewise.
9407         * modules/sys_wait: Likewise.
9408
9409 2009-09-01  Jim Meyering  <meyering@redhat.com>
9410
9411         fts: help ensure that return values are not ignored
9412         * lib/fts_.h (__GNUC_PREREQ): Define.
9413         (__attribute_warn_unused_result__): Define.
9414         (fts_children, fts_close, fts_open, fts_read): Declare with
9415         __attribute_warn_unused_result__.
9416
9417         fts: fts_close now fails also when closing a dir file descriptor fails
9418         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
9419         and propagate to caller, along with errno.
9420
9421         announce-gen: correct formatting in --help output
9422         * build-aux/announce-gen (usage): Move the one-line description in
9423         --help output "up", to where it belongs, just after Usage:.
9424
9425 2009-08-31  Eric Blake  <ebb9@byu.net>
9426
9427         fchdir: port to mingw
9428         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
9429         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
9430         opened, then use a substitute.
9431         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
9432         replacement.
9433         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
9434         (_gl_register_fd): No need to check stat if open already filters
9435         all directories.
9436         (fchdir): Fix error condition to match POSIX.
9437         * modules/fchdir (Depends-on): Add sys_stat.
9438         * doc/posix-functions/open.texi (open): Document the limitation.
9439         * modules/fchdir-tests: New file.
9440         * tests/test-fchdir.c: Likewise.
9441
9442         canonicalize: allow cross-testing from cygwin to mingw
9443         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
9444         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
9445         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
9446         Likewise.
9447         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
9448         target does not support symlinks.
9449         * tests/test-canonicalize-lgpl.sh: Likewise.
9450
9451         chown: avoid compilation warning on mingw
9452         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
9453         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
9454         mingw.
9455         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9456         * modules/chown (Depends-on): Add errno.
9457
9458 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9459
9460         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
9461         command.
9462
9463 2009-08-31  Jim Meyering  <meyering@redhat.com>
9464
9465         canonicalize: remove useless initialization
9466         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
9467         initialization of local, "end".
9468
9469 2009-08-30  Bruno Haible  <bruno@clisp.org>
9470
9471         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
9472         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
9473         ENOSYS.
9474
9475 2009-08-30  Bruno Haible  <bruno@clisp.org>
9476
9477         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
9478         /usr/xpg4/bin/tr when it exists.
9479         * tests/test-pipe-filter-gi1.sh: Likewise.
9480
9481 2009-08-30  Bruno Haible  <bruno@clisp.org>
9482
9483         Work around deficient /usr/bin/id program on Solaris.
9484         * tests/test-file-has-acl.sh (ID): New variable.
9485         * tests/test-set-mode-acl.sh (ID): Likewise.
9486         * tests/test-copy-acl.sh (ID): Likewise.
9487         * tests/test-copy-file.sh (ID): Likewise.
9488
9489 2009-08-30  Bruno Haible  <bruno@clisp.org>
9490
9491         New module 'xstriconveh'.
9492         * lib/xstriconveh.h: New file.
9493         * lib/xstriconveh.c: New file.
9494         * modules/xstriconveh: New file.
9495
9496 2009-08-30  Bruno Haible  <bruno@clisp.org>
9497
9498         Make it easier to use mem_cd_iconveh.
9499         * lib/striconveh.h (iconveh_t): New type.
9500         (iconveh_open, iconveh_close): New declarations.
9501         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
9502         with a single 'const iconveh_t *' argument.
9503         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
9504         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
9505         with a single 'const iconveh_t *' argument.
9506         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
9507         * tests/test-striconveh.c (main): Update.
9508         * NEWS: Mention the change.
9509
9510 2009-08-30  Bruno Haible  <bruno@clisp.org>
9511
9512         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
9513         problem.
9514
9515 2009-08-30  Bruno Haible  <bruno@clisp.org>
9516
9517         Work around iconv_open problem on Solaris.
9518         * lib/iconv_open-solaris.gperf: New file.
9519         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
9520         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
9521         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
9522         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
9523         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
9524         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
9525
9526 2009-08-29  Jim Meyering  <meyering@redhat.com>
9527
9528         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
9529         * top/maint.mk (cvs-check): Remove target; it was just an alias
9530         to the better-named vc-diff-check.
9531         (maintainer-distcheck): Remove rule.  It was used only from
9532         the (alpha/beta/major) target, and all of its commands but one
9533         were coreutils-specific.
9534         (vc-dist): Remove rule.
9535         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
9536         Run vc-diff-check, not vc-dist.
9537         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
9538
9539 2009-08-27  Bruno Haible  <bruno@clisp.org>
9540
9541         * tests/test-bitrotate.c (main): Remove test that uses a shift count
9542         of 0.
9543
9544 2009-08-27  Bruno Haible  <bruno@clisp.org>
9545
9546         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
9547         compilers.
9548         * doc/func.texi: Document the SunPRO C bug.
9549
9550 2009-08-27  Bruno Haible  <bruno@clisp.org>
9551
9552         Fix link error on Solaris.
9553         * tests/test-parse-duration.c (xstrdup): Remove function.
9554
9555 2009-08-26  Pádraig Brady  <P@draigbrady.com>
9556
9557         ignore-value: handle pointer types, too
9558         * lib/ignore-value.h (__attribute__): Remove definition.
9559         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
9560         of a more concise and more-often effective "(void) i" statement.
9561         (ignore_ptr): New function to suppress warnings from functions that
9562         return pointers, and to make it explicit that one function doesn't
9563         handle all cases.
9564
9565 2009-08-25  Bruno Haible  <bruno@clisp.org>
9566
9567         dup2: work around a Linux bug.
9568         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
9569         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
9570         * doc/posix-functions/dup2.texi: Mention the Linux bug.
9571         Reported by Simon Josefsson.
9572
9573 2009-08-25  Jim Meyering  <meyering@redhat.com>
9574
9575         libguestfs uses gnulib
9576         * users.txt: Add libguestfs.
9577
9578 2009-08-24  Eric Blake  <ebb9@byu.net>
9579
9580         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
9581         * lib/pipe2.c (includes): Add binary-io.h.
9582         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
9583
9584 2009-08-24  Bruno Haible  <bruno@clisp.org>
9585
9586         Tolerate declared but missing accept4 syscall.
9587         * lib/accept4.c (accept4): Invoke original accept4 function first, if
9588         available.
9589         * lib/sys_socket.in.h (accept4): If the function is already present,
9590         override it.
9591         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
9592         * modules/accept4 (Makefile.am): Compile accept4.c always.
9593         Reported by Paolo Bonzini and Eric Blake.
9594
9595 2009-08-23  Bruno Haible  <bruno@clisp.org>
9596
9597         New module 'accept4'.
9598         * lib/sys_socket.in.h (accept4): New declaration.
9599         * lib/accept4.c: New file.
9600         * m4/accept4.m4: New file.
9601         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
9602         GNULIB_ACCEPT4, HAVE_ACCEPT4.
9603         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
9604         HAVE_ACCEPT4.
9605         * modules/accept4: New file.
9606         * doc/glibc-functions/accept4.texi: Mention the new module.
9607
9608 2009-08-24  Jim Meyering  <meyering@redhat.com>
9609
9610         progname: also set global program_invocation_name, when possible
9611         Before this change, a libtool-enabled program that calls glibc's
9612         error function would report the program name as
9613         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
9614         * modules/progname (configure.ac): Check for a declaration of
9615         program_invocation_name.
9616         * lib/progname.c:  Include <errno.h>.
9617         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
9618         Set program_invocation_name.
9619
9620 2009-08-23  Bruno Haible  <bruno@clisp.org>
9621
9622         * lib/dup3.c: Include <string.h>.
9623
9624 2009-08-23  Bruno Haible  <bruno@clisp.org>
9625
9626         * lib/dup3.c (dup3): Test only once whether the system actually exists.
9627         * lib/pipe2.c (pipe2): Likewise.
9628         Suggested by Eric Blake.
9629
9630 2009-08-23  Bruno Haible  <bruno@clisp.org>
9631
9632         Tolerate declared but missing dup3 syscall.
9633         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
9634         * lib/unistd.in.h (dup3): If the function is already present,
9635         override it.
9636         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
9637         * modules/dup3 (Makefile.am): Compile dup3.c always.
9638         Reported by Paolo Bonzini.
9639
9640 2009-08-23  Bruno Haible  <bruno@clisp.org>
9641
9642         Tolerate declared but missing pipe2 syscall.
9643         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
9644         available.
9645         * lib/unistd.in.h (pipe2): If the function is already present,
9646         override it.
9647         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
9648         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
9649         Reported by Paolo Bonzini.
9650
9651 2009-08-23  Bruno Haible  <bruno@clisp.org>
9652
9653         * lib/pipe2.c (pipe2): Move #ifs inside function.
9654
9655 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
9656
9657         quotearg: document limitations of quote_these_too
9658         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
9659         those limitations are created.
9660         * lib/quotearg.h (set_char_quoting): Document that digits and
9661         letters that are special after backslash are not permitted.
9662         (quotearg_char): Cross-reference set_char_quoting documentation.
9663
9664 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
9665
9666         quotearg: implement custom_quoting_style
9667         * lib/quotearg.c: (struct quoting_options): Add left_quote and
9668         right_quote fields.
9669         (set_custom_quoting): New public function.
9670         (quotearg_buffer_restyled): Add left_quote and right_quote
9671         arguments, handle them very much like locale quoting, and update
9672         all uses.
9673         (quotearg_n_custom): New public function.
9674         (quotearg_n_custom_mem): New public function.
9675         (quotearg_custom): New public function.
9676         (quotearg_custom_mem): New public function.
9677         * lib/quotearg.h: Prototype and document new public functions.
9678         (enum quoting_style): For escape_quoting_style and
9679         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
9680         ignored even though they're otherwise like c_quoting_style.
9681         Add custom_quoting_style member and document with comparison to
9682         clocale_quoting_style.
9683         * tests/test-quotearg.c (custom_quotes): New array.
9684         (custom_results): New array.
9685         (main): Extend to test custom quoting.
9686
9687 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
9688
9689         quotearg: fix right quote escaping when it's in quote_these_too
9690         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
9691         quote, be sure to prepend only one backslash.
9692         * tests/test-quotearg.c (use_quote_double_quotes): New function.
9693         (main): Test it.
9694
9695 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
9696
9697         quotearg-tests: test escaping of embedded locale quotes
9698         * tests/test-quotearg.c (struct result_strings): Add member for
9699         new input.
9700         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
9701         (inputs): Add new input.
9702         (results_g): Add expected results.
9703         (flag_results): Likewise.
9704         (locale_results): Likewise.
9705         (compare_strings): Check those.
9706
9707 2009-08-23  Bruno Haible  <bruno@clisp.org>
9708
9709         Tests for module 'dup3'.
9710         * modules/dup3-tests: New file.
9711         * tests/test-dup3.c: New file.
9712
9713         New module 'dup3'.
9714         * lib/unistd.in.h (dup3): New declaration.
9715         * lib/dup3.c: New file.
9716         * m4/dup3.m4: New file.
9717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
9718         HAVE_DUP3.
9719         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
9720         * modules/dup3: New file.
9721         * doc/glibc-functions/dup3.texi: Mention the new module.
9722
9723 2009-08-23  Bruno Haible  <bruno@clisp.org>
9724
9725         Tweak the dup2 test.
9726         * tests/test-dup2.c (main): Create the test file empty. Verify that an
9727         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
9728         the test file is still empty. Fix argument order of lseek.
9729
9730 2009-08-23  Bruno Haible  <bruno@clisp.org>
9731
9732         Avoid test link errors when the modules getopt-gnu, gettext are used.
9733         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
9734         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9735
9736 2009-08-23  Bruno Haible  <bruno@clisp.org>
9737
9738         Fix getdtablesize() on mingw.
9739         * lib/getdtablesize.c (getdtablesize): Implement differently.
9740         * lib/unistd.in.h (getdtablesize): Improve comment.
9741
9742 2009-08-23  Bruno Haible  <bruno@clisp.org>
9743
9744         New module 'mkostemp'.
9745         Based on Ulrich Drepper's 2007-08-10 change in glibc.
9746         * lib/stdlib.in.h (mksotemp): New declaration.
9747         * lib/mkostemp.c: New file, from glibc with modifications.
9748         * lib/tempname.h (GT_FILE): Remove outdated comment.
9749         (gen_tempname): Add flags argument.
9750         * lib/tempname.c (__GT_BIGFILE): Remove macro.
9751         (__GT_FILE): Map to 1.
9752         (small_open, large_open): Remove macros.
9753         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
9754         * lib/mkstemp.c (mkstemp): Update.
9755         * lib/mkdtemp.c (mkdtemp): Likewise.
9756         * m4/mkostemp.m4: New file.
9757         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
9758         HAVE_MKOSTEMP.
9759         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
9760         HAVE_MKOSTEMP.
9761         * modules/mkostemp: New file, based on modules/mkstemp.
9762         * doc/glibc-functions/mkostemp.texi: Mention the new module.
9763         * NEWS: Mention the change.
9764
9765 2009-08-23  Bruno Haible  <bruno@clisp.org>
9766
9767         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
9768         Reported by Eric Blake.
9769
9770 2009-08-23  Bruno Haible  <bruno@clisp.org>
9771
9772         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
9773         Reported by Eric Blake.
9774
9775 2009-08-23  Bruno Haible  <bruno@clisp.org>
9776
9777         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
9778         * modules/pipe2 (Depends-on): Likewise.
9779
9780 2009-08-23  Eric Blake  <ebb9@byu.net>
9781
9782         fcntl-h: add O_TTY_INIT support
9783         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
9784         * tests/test-fcntl-h.c (o): Test it.
9785         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
9786
9787         fcntl-h: rename from fcntl, in preparation for fcntl(2)
9788         * modules/fcntl: Move <fcntl.h> header replacement...
9789         * modules/fcntl-h: ...to new name, so as not to collide with
9790         like-named function.
9791         * tests/test-fcntl.c: Rename...
9792         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
9793         * modules/fcntl-tests: Rename...
9794         * modules/fcntl-h-tests: ...to this.  Update test file name.
9795         * modules/chdir-long (Depends-on): Update clients.
9796         * modules/chdir-safer (Depends-on): Likewise.
9797         * modules/fcntl-safer (Depends-on): Likewise.
9798         * modules/fts (Depends-on): Likewise.
9799         * modules/mkancesdirs (Depends-on): Likewise.
9800         * modules/mkdir-p (Depends-on): Likewise.
9801         * modules/open (Depends-on): Likewise.
9802         * modules/savewd (Depends-on): Likewise.
9803         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
9804         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
9805
9806 2009-08-22  Bruno Haible  <bruno@clisp.org>
9807
9808         * modules/binary-io (License): Relicense under LGPL.
9809         * modules/pipe2 (License): Likewise.
9810
9811 2009-08-22  Bruno Haible  <bruno@clisp.org>
9812
9813         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
9814         return value.
9815         * lib/pipe-filter-gi.c (filter_init): Likewise.
9816         Reported by Eric Blake.
9817
9818 2009-08-22  Bruno Haible  <bruno@clisp.org>
9819
9820         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
9821         * modules/pipe (Depends-on): Add pipe2.
9822
9823 2009-08-22  Bruno Haible  <bruno@clisp.org>
9824
9825         Tests for module 'pipe2'.
9826         * modules/pipe2-tests: New file.
9827         * tests/test-pipe2.c: New file.
9828
9829         New module 'pipe2'.
9830         * lib/unistd.in.h (pipe2): New declaration.
9831         * lib/pipe2.c: New file.
9832         * m4/pipe2.m4: New file.
9833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
9834         HAVE_PIPE2.
9835         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
9836         * modules/pipe2: New file.
9837         * doc/glibc-functions/pipe2.texi: Mention the new module.
9838
9839 2009-08-22  Bruno Haible  <bruno@clisp.org>
9840
9841         Reference some new glibc functions.
9842         * doc/glibc-functions/accept4.texi: New file.
9843         * doc/glibc-functions/dup3.texi: New file.
9844         * doc/glibc-functions/mkostemp.texi: New file.
9845         * doc/glibc-functions/pipe2.texi: New file.
9846         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
9847         (Glibc sys/socket.h): Refer to accept4.
9848         (Glibc unistd.h): Refer to dup3, pipe2.
9849         Reported by Eric Blake.
9850
9851 2009-08-22  Jim Meyering  <meyering@redhat.com>
9852             Bruno Haible  <bruno@clisp.org>
9853
9854         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
9855         This makes it so packages using automake-1.11's silent-rules option
9856         can print e.g., a single "GEN    configmake.h" line, rather than
9857         the 30+ statements that perform the job.  If you want to see the
9858         actual commands, you can still run "make V=1".
9859         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
9860         so that make output is abbreviated when those variables are defined
9861         appropriately.
9862         * modules/argz: Likewise.
9863         * modules/arpa_inet: Likewise.
9864         * modules/byteswap: Likewise.
9865         * modules/configmake: Likewise.
9866         * modules/dirent: Likewise.
9867         * modules/errno: Likewise.
9868         * modules/fcntl: Likewise.
9869         * modules/float: Likewise.
9870         * modules/fnmatch: Likewise.
9871         * modules/getopt-posix: Likewise.
9872         * modules/glob: Likewise.
9873         * modules/iconv_open: Likewise.
9874         * modules/inttypes: Likewise.
9875         * modules/localcharset: Likewise.
9876         * modules/locale: Likewise.
9877         * modules/math: Likewise.
9878         * modules/netdb: Likewise.
9879         * modules/netinet_in: Likewise.
9880         * modules/poll: Likewise.
9881         * modules/posix_spawnp-tests: Likewise.
9882         * modules/sched: Likewise.
9883         * modules/search: Likewise.
9884         * modules/selinux-h: Likewise.
9885         * modules/signal: Likewise.
9886         * modules/spawn: Likewise.
9887         * modules/stdarg: Likewise.
9888         * modules/stdbool: Likewise.
9889         * modules/stddef: Likewise.
9890         * modules/stdint: Likewise.
9891         * modules/stdio: Likewise.
9892         * modules/stdlib: Likewise.
9893         * modules/string: Likewise.
9894         * modules/strings: Likewise.
9895         * modules/sys_file: Likewise.
9896         * modules/sys_ioctl: Likewise.
9897         * modules/sys_select: Likewise.
9898         * modules/sys_socket: Likewise.
9899         * modules/sys_stat: Likewise.
9900         * modules/sys_time: Likewise.
9901         * modules/sys_times: Likewise.
9902         * modules/sys_utsname: Likewise.
9903         * modules/sys_wait: Likewise.
9904         * modules/sysexits: Likewise.
9905         * modules/time: Likewise.
9906         * modules/unistd: Likewise.
9907         * modules/wchar: Likewise.
9908         * modules/wctype: Likewise.
9909
9910 2009-08-22  Jim Meyering  <meyering@redhat.com>
9911
9912         announce-gen: detect write failure
9913         * build-aux/announce-gen: Add Coda at end.
9914         Remove equivalent-but-more-verbose block at top.
9915
9916 2009-08-19  Akim Demaille  <demaille@gostai.com>
9917
9918         bootstrap: --help to stdout.
9919         * bootstrap (usage): Don't send --help to stderr.
9920         Use a here doc instead of a long string.
9921
9922 2009-08-21  Eric Blake  <ebb9@byu.net>
9923
9924         test-popen-safer: split from test-popen
9925         * tests/test-popen.c (main): Move...
9926         * tests/test-popen.h: ...into new file.
9927         * tests/test-popen-safer2.c: New file.
9928         * modules/popen-tests (Files): Add test-popen.h.
9929         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
9930         Suggested by Bruno Haible.
9931
9932         test-fcntl-safer: split from test-open
9933         * tests/test-open.c (main): Move...
9934         * tests/test-open.h: ...into new file.
9935         * tests/test-fcntl-safer.c: New file.
9936         * modules/open-tests (Files): Add test-open.h.
9937         * modules/fcntl-safer-tests: New file.
9938         Suggested by Bruno Haible.
9939
9940         test-fopen-safer: split from test-fopen
9941         * tests/test-fopen.c (main): Move...
9942         * tests/test-fopen.h: ...into new file.
9943         * tests/test-fopen-safer.c: New file.
9944         * modules/fopen-tests (Files): Add test-fopen.h.
9945         * modules/fopen-safer-tests: New file.
9946         Suggested by Bruno Haible.
9947
9948 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
9949
9950         popen-safer: test O_CLOEXEC at run-time.
9951         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
9952
9953 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
9954
9955         fcntl: move more flags to the header
9956         * lib/cloexec.c: Do not define FD_CLOEXEC here.
9957         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
9958         * lib/fcntl.in.h: Do both things here.
9959
9960 2009-08-21  Jim Meyering  <meyering@redhat.com>
9961
9962         consistently remove $@-t before redirecting to it
9963         * modules/argz: Remove $@-t and $@ before redirecting to the former.
9964         * modules/alloca-opt: Likewise.
9965         * modules/byteswap: Likewise.
9966         * modules/fnmatch: Likewise.
9967         * modules/getopt-posix: Likewise.
9968         * modules/glob: Likewise.
9969         * modules/poll: Likewise.
9970         * modules/posix_spawnp-tests: Likewise.
9971         * modules/sys_socket: Likewise.
9972         * modules/sysexits: Likewise.
9973
9974 2009-08-21  Eric Blake  <ebb9@byu.net>
9975
9976         popen: simplify access to original popen
9977         * lib/popen.c (rpl_popen): No need to worry about popen being a
9978         macro.
9979         Reported by Bruno Haible.
9980
9981 2009-08-20  Eric Blake  <ebb9@byu.net>
9982
9983         build: avoid some compiler warnings
9984         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
9985         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
9986         type.
9987         (new_exclude_segment, excluded_file_pattern_p)
9988         (excluded_file_name_p): Reduce scope.
9989         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
9990         old-style declaration.
9991
9992 2009-08-20  Simon Josefsson  <simon@josefsson.org>
9993
9994         * tests/test-exclude1.sh: Handle Windows EOL.
9995         * tests/test-exclude2.sh: Likewise.
9996         * tests/test-exclude3.sh: Likewise.
9997         * tests/test-exclude4.sh: Likewise.
9998         * tests/test-exclude5.sh: Likewise.
9999         * tests/test-exclude6.sh: Likewise.
10000         * tests/test-exclude7.sh: Likewise.
10001
10002 2009-08-19  Akim Demaille  <demaille@gostai.com>
10003
10004         bootstrap: find sha1sum when named gsha1sum.
10005         * bootstrap (find_tool): New.
10006         ($SHA1SUM): New.
10007         Use it.
10008
10009 2009-08-20  Jim Meyering  <meyering@redhat.com>
10010
10011         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
10012         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
10013         expression that converts "." in a file name to "\." in the resulting
10014         regexp.  Start with a dummy statement, so that prior shell variable
10015         definitions are expanded portably.  Reported by Simon Josefsson.
10016
10017 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
10018
10019         Fix polling for writeability of a screen buffer.
10020         * lib/poll.c: Distinguish input and screen buffers for the
10021         Win32 implementation.
10022         * lib/select.c: Likewise.
10023
10024 2009-08-19  Eric Blake  <ebb9@byu.net>
10025
10026         popen-safer: prevent popen from clobbering std descriptors
10027         * modules/popen-safer: New file.
10028         * lib/popen-safer.c: Likewise.
10029         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
10030         * lib/stdio--.h (popen): Provide override.
10031         * lib/stdio-safer.h (popen_safer): Provide declaration.
10032         * tests/test-popen.c (includes): Partially test this.
10033         * modules/popen-safer-tests: New file, for more tests.
10034         * tests/test-popen-safer.c: Likewise.
10035         * MODULES.html.sh (file stream based Input/Output): Mention it.
10036
10037         tests: test some of the *-safer modules
10038         * modules/fopen-safer (Depends-on): Add fopen.
10039         * modules/fcntl-safer (Depends-on): Add fcntl.
10040         * modules/stdlib-safer (Depends-on): Add stdlib.
10041         (configure.ac): Set indicator.
10042         * modules/unistd-safer (configure.ac): Likewise.
10043         * modules/tmpfile-safer (configure.ac): Likewise.
10044         (Depends-on): Add tmpfile.
10045         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
10046         active.
10047         * tests/test-fopen.c (includes): Test safer versions when they are
10048         in use.
10049         * tests/test-open.c (includes): Likewise.
10050
10051         popen: fix cygwin 1.5 bug when stdin closed
10052         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
10053         * modules/popen: New file.
10054         * modules/popen-tests: Likewise.
10055         * tests/test-popen.c: Likewise.
10056         * m4/popen.m4: Likewise.
10057         * lib/popen.c: Likewise.
10058         * lib/stdio.in.h (popen): New declaration.
10059         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
10060         * modules/stdio (Makefile.am): Likewise.
10061         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
10062
10063 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
10064
10065         maint.mk: give full control over update-copyright exclusions
10066         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
10067         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
10068         (update-copyright): Don't force inclusion of top-level
10069         ChangeLog.  Don't force exclusion of all COPYING files, but make
10070         them the default exclusion instead.
10071
10072 2009-08-16  Bruno Haible  <bruno@clisp.org>
10073
10074         Fix test failures on Solaris 10.
10075         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
10076         tests when Solaris iconv() is used.
10077         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
10078         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
10079         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
10080         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
10081         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
10082
10083 2009-08-16  Bruno Haible  <bruno@clisp.org>
10084
10085         Fix test failures on Solaris 10.
10086         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
10087         'tr' program and pass it as first argument.
10088         * tests/test-pipe-filter-gi1.sh: Likewise.
10089         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
10090         program as first argument.
10091         * tests/test-pipe-filter-gi1.c (main): Likewise.
10092
10093 2009-08-16  Eric Blake  <ebb9@byu.net>
10094
10095         fpurge: fix previous commits
10096         * modules/fpurge (Makefile.am): Make replacement conditional,
10097         partially reverting 2007-04-29 change; missed in previous
10098         attempt.
10099         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
10100         is missing.
10101
10102 2009-08-16  Bruno Haible  <bruno@clisp.org>
10103
10104         Clarify fpurge's effect on the file position.
10105         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
10106         * tests/test-fpurge.c (main): Make a second pass for checking the file
10107         position.
10108
10109 2009-08-16  Bruno Haible  <bruno@clisp.org>
10110
10111         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
10112         declaration of fpurge is missing.
10113         * tests/test-fpurge.c (main): Check that the file has not more contents
10114         than expected. Close the file before removing it.
10115
10116 2009-08-15  Eric Blake  <ebb9@byu.net>
10117
10118         fpurge: don't wrap working cygwin implementation
10119         * lib/fpurge.c (fpurge): Fix comment typo.
10120         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
10121         1.7 to avoid replacement.
10122         * tests/test-fpurge.c (main): Enhance test.
10123
10124 2009-08-15  Eric Blake  <ebb9@byu.net>
10125         and Jim Meyering  <meyering@redhat.com>
10126
10127         test-update-copyright: skip if perl is insufficient
10128         * tests/test-update-copyright.sh: Failure to run maintainer tool
10129         should not cause testsuite failure on cygwin 1.5.
10130
10131 2009-08-14  Eric Blake  <ebb9@byu.net>
10132
10133         doc: mention more functions added in cygwin 1.7.0
10134         * doc/posix-headers/limits.texi (limits.h): Update for recent
10135         cygwin additions.
10136         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
10137         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10138         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
10139         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
10140         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
10141
10142 2009-08-14  Eric Blake  <ebb9@byu.net>
10143
10144         maint.mk: simplify update-copyright rule
10145         * top/maint.mk (update-copyright-local): Delete, and document how
10146         to do it in cfg.mk instead.
10147         (update-copyright-exclude-regexp): Delete, and document how to do
10148         it in .x-update-copyright instead.
10149         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
10150         exclude ChangeLog.
10151
10152 2009-08-14  Bruno Haible  <bruno@clisp.org>
10153
10154         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
10155
10156 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
10157
10158         maint.mk: support update-copyright-env
10159         * top/maint.mk (update-copyright-env): Define place-holder.
10160         (update-copyright): Expand $(update-copyright-env) before
10161         invoking update-copyright.
10162
10163 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
10164
10165         update-copyright: implement forced reformatting
10166         * build-aux/update-copyright: Implement and document
10167         UPDATE_COPYRIGHT_FORCE.
10168         * tests/test-update-copyright.sh: Test it.
10169
10170 2009-08-14  Eric Blake  <ebb9@byu.net>
10171         and Bruno Haible  <bruno@clisp.org>
10172
10173         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
10174         * tests/test-locale.c: Revert previous patch related to NULL.
10175         * tests/test-stdio.c: Likewise.
10176         * tests/test-stdlib.c: Likewise.
10177         * tests/test-string.c: Likewise.
10178         * tests/test-unistd.c: Likewise.
10179         * modules/time-tests (Depends-on): Add verify.
10180         * modules/wchar-tests (Depends-on): Likewise.
10181         * tests/test-time.c: Test for NULL compliance.
10182         * tests/test-wchar.c: Likewise.
10183         * modules/locale (Depends-on): Add stddef.
10184         * modules/stdio (Depends-on): Likewise.
10185         * modules/stdlib (Depends-on): Likewise.
10186         * modules/string (Depends-on): Likewise.
10187         * modules/time (Depends-on): Likewise.
10188         * modules/unistd (Depends-on): Likewise.
10189         * modules/wchar (Depends-on): Likewise.
10190         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
10191         * lib/stdlib.in.h (includes): Likewise.
10192         * lib/string.in.h (includes): Likewise.
10193         * lib/time.in.h (includes): Likewise.
10194         * lib/unistd.in.h (includes): Likewise.
10195         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
10196         replaced.
10197         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
10198         * m4/stddef_h.m4: New file.
10199         * modules/stddef: Likewise.
10200         * lib/stddef.in.h: Likewise.
10201         * modules/stddef-tests: Likewise.
10202         * tests/test-stddef.c: Likewise.
10203         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
10204         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
10205         * doc/posix-headers/locale.texi (locale.h): Likewise.
10206         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
10207         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10208         * doc/posix-headers/string.texi (string.h): Likewise.
10209         * doc/posix-headers/time.texi (time.h): Likewise.
10210         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
10211         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
10212
10213 2009-08-14  Eric Blake  <ebb9@byu.net>
10214
10215         doc: improve git diff of texinfo files
10216         * .gitattributes: Add rule for *.texi files, with hint on how to
10217         use it.
10218         Copied from m4, and based on a report by Bruno Haible.
10219
10220 2009-08-14  Bruno Haible  <bruno@clisp.org>
10221
10222         Disable multithread support by default on Cygwin 1.5.x for real.
10223         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
10224
10225 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
10226
10227         update-copyright: much ado about intervals
10228         * build-aux/update-copyright: Implement and document
10229         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
10230         of copyright year intervals.
10231         Also, document UPDATE_COPYRIGHT_YEAR.
10232         * tests/test-update-copyright.sh: Test it.
10233
10234         update-copyright: convert 2-digit to 4-digit years
10235         * build-aux/update-copyright: Implement and document.
10236         * tests/test-update-copyright.sh: Update.
10237
10238 2009-08-14  Jim Meyering  <meyering@redhat.com>
10239
10240         test-exclude: avoid coreutils "make check" failure
10241         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
10242         just as in test-argmatch.c.
10243
10244 2009-08-13  Eric Blake  <ebb9@byu.net>
10245
10246         test-dup2: fix bad assumption
10247         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
10248         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
10249
10250         test-version-etc: fix CRLF portability issue
10251         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
10252         recognize \r.
10253         * tests/test-argp-version-etc-1.sh: Likewise.
10254
10255         getopt: update client modules
10256         * modules/argp (Depends-on): Use getopt-gnu.
10257         * modules/git-merge-changelog (Depends-on): Likewise.
10258         * modules/long-options (Depends-on): Likewise.
10259         * modules/xstrtol (Depends-on): Likewise.
10260
10261 2009-08-13  Simon Josefsson  <simon@josefsson.org>
10262
10263         * tests/test-version-etc.sh: Don't fail on different
10264         project/version.  Don't fail on CRLF differences.  Rewrite to use
10265         multiple -e instead of multiple sed forks, suggested by Eric Blake
10266         <ebb9@byu.net>.
10267         * tests/test-argp-version-etc-1.sh: Likewise.
10268
10269 2009-08-13  Simon Josefsson  <simon@josefsson.org>
10270
10271         * tests/test-version-etc.sh: Don't fail on different
10272         project/version.
10273
10274 2009-08-12  Bruno Haible  <bruno@clisp.org>
10275
10276         Tests for modules 'getopt-posix', 'getopt-gnu'.
10277         * modules/getopt-posix-tests: New file.
10278         * tests/test-getopt.c: New file.
10279         * tests/test-getopt.h: New file.
10280         * tests/test-getopt_long.h: New file.
10281
10282         New modules 'getopt-posix', 'getopt-gnu'.
10283         * modules/getopt-gnu: New file, renamed from modules/getopt.
10284         * modules/getopt-posix: New file.
10285         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
10286         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
10287         (gl_GETOPT): Remove macro.
10288         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
10289         Disable the test against BSD systems that declare optreset. Test
10290         against mingw bug. Test against lack of support of optional arguments
10291         on many platforms.
10292         * doc/glibc-headers/getopt.texi: Update module name and list of
10293         relevant platforms.
10294         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
10295         'getopt-gnu' and more portability problems.
10296         * NEWS: Mention the changes.
10297
10298 2009-08-12  Bruno Haible  <bruno@clisp.org>
10299
10300         Ensure that optarg etc. get declared by <unistd.h>.
10301         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
10302         AC_USE_SYSTEM_EXTENSIONS.
10303         * modules/getopt (Depends-on): Add 'extensions'.
10304
10305 2009-08-12  Bruno Haible  <bruno@clisp.org>
10306
10307         Avoid test link errors.
10308         * modules/pipe-filter-ii-tests (Makefile.am): Define
10309         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
10310         * modules/pipe-filter-gi-tests (Makefile.am): Define
10311         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
10312         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10313
10314 2009-08-12  Bruno Haible  <bruno@clisp.org>
10315
10316         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
10317         gl_GETOPT_SUBSTITUTE before.
10318         (gl_GETOPT): Use it.
10319         * m4/argp.m4 (gl_ARGP): Update.
10320         Reported by Sergey Poznyakoff.
10321
10322         * m4/getopt.m4: Reorder macros.
10323         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
10324         (gl_GETOPT_SUBSTITUTE): Remove macro.
10325
10326 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
10327
10328         Minor improvement in gitlog-to-changelog
10329
10330         * build-aux/gitlog-to-changelog: New option `--format' makes
10331         output format string configurable.
10332
10333 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
10334
10335         Optimize exclude: use hash tables for non-wildcard patterns.
10336
10337         * lib/exclude.c: Include hash.h and mbuiter.h
10338         (struct exclude_pattern, exclude_segment): New data types.
10339         (struct exclude): Rewrite.
10340         (fnmatch_pattern_has_wildcards): New function.
10341         (new_exclude_segment, free_exclude_segment): New functions.
10342         (excluded_file_pattern_p, excluded_file_name_p): New functions.
10343         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
10344         * lib/exclude.h (is_fnmatch_pattern): New prototype.
10345         * modules/exclude: Depend on hash and mbuiter.
10346
10347         * modules/exclude-tests: New file.
10348         * tests/test-exclude.c: New file.
10349         * tests/test-exclude1.sh: New file.
10350         * tests/test-exclude2.sh: New file.
10351         * tests/test-exclude3.sh: New file.
10352         * tests/test-exclude4.sh: New file.
10353         * tests/test-exclude5.sh: New file.
10354         * tests/test-exclude6.sh: New file.
10355         * tests/test-exclude7.sh: New file.
10356
10357 2009-08-12  Bruno Haible  <bruno@clisp.org>
10358
10359         Ensure that getopt() gets declared by <unistd.h>.
10360         * lib/unistd.in.h: Conditionally include getopt.h.
10361         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
10362         Set GNULIB_UNISTD_H_GETOPT.
10363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10364         GNULIB_UNISTD_H_GETOPT.
10365         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
10366
10367 2009-08-12  Bruno Haible  <bruno@clisp.org>
10368
10369         Clarify logic.
10370         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
10371         gl_replace_getopt instead of GETOPT_H.
10372
10373 2009-08-12  Bruno Haible  <bruno@clisp.org>
10374
10375         * m4/getopt.m4: Add comments.
10376
10377 2009-08-12  Bruno Haible  <bruno@clisp.org>
10378
10379         Disable multithread support by default on Cygwin 1.5.x.
10380         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
10381         set gl_use_threads=no if not specified otherwise.
10382
10383 2009-08-11  Bruno Haible  <bruno@clisp.org>
10384
10385         Avoid compilation error on NetBSD 5.0.
10386         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
10387         * tests/test-stdio.c: Likewise.
10388         * tests/test-stdlib.c: Likewise.
10389         * tests/test-string.c: Likewise.
10390         * tests/test-unistd.c: Likewise.
10391         Reported by Greg Troxel <gdt@ir.bbn.com>
10392         at <https://savannah.gnu.org/support/?106973>.
10393
10394 2009-08-11  Bruno Haible  <bruno@clisp.org>
10395
10396         * modules/dup2-tests (Depends-on): Remove close.
10397
10398         Undo 2009-07-19 commit.
10399         * modules/acl-tests (Depends-on): Remove close.
10400         * modules/binary-io-tests (Depends-on): Likewise.
10401         * modules/closein-tests (Depends-on): Likewise.
10402         * modules/flock-tests (Depends-on): Likewise.
10403         * modules/fsync-tests (Depends-on): Likewise.
10404         * modules/lseek-tests (Depends-on): Likewise.
10405         * modules/pipe-tests (Depends-on): Likewise.
10406         * modules/posix_spawn-tests (Depends-on): Likewise.
10407         * modules/posix_spawnp-tests (Depends-on): Likewise.
10408         * modules/stat-time-tests (Depends-on): Likewise.
10409         * modules/yesno-tests (Depends-on): Likewise.
10410
10411 2009-08-10  Bruno Haible  <bruno@clisp.org>
10412
10413         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
10414
10415 2009-08-10  Bruno Haible  <bruno@clisp.org>
10416
10417         Fix a gcc warning.
10418         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
10419
10420 2009-08-10  Bruno Haible  <bruno@clisp.org>
10421
10422         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
10423         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
10424         not only the first time.
10425         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
10426         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
10427         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
10428         is 1, not only the the first time.
10429
10430 2009-08-10  Bruno Haible  <bruno@clisp.org>
10431
10432         Make it possible to use module 'gethostname' without module 'close'.
10433         * lib/unistd.in.h (close): Evoke a link error only if
10434         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10435         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10436         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10437         * modules/unistd (Makefile.am): Substitute
10438         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10439         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
10440         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10441         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
10442         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10443         * modules/sys_ioctl (Makefile.am): Substitute
10444         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10445         * modules/socket (configure.ac): On native Windows, set
10446         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
10447         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10448         Reported by Sam Steingold <sds@gnu.org>.
10449
10450 2009-08-10  Bruno Haible  <bruno@clisp.org>
10451
10452         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
10453         * modules/ioctl (configure.ac): Likewise.
10454
10455 2009-08-10  Bruno Haible  <bruno@clisp.org>
10456
10457         Avoid collision between gnulib wrapper and libintl wrapper.
10458         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
10459         already defined in intl/printf.c.
10460         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
10461         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
10462
10463 2009-08-09  Bruno Haible  <bruno@clisp.org>
10464
10465         Make <sys/select.h> really self-contained, also on Solaris 10.
10466         * lib/sys_select.in.h: Include <string.h>.
10467         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
10468         Solaris 10 problem.
10469         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
10470         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
10471         Reported by Jim Meyering.
10472
10473 2009-08-09  Bruno Haible  <bruno@clisp.org>
10474
10475         Avoid warnings from 'aclocal' that are due to a use of macro name
10476         AM_XGETTEXT_OPTION that is not defined in automake.
10477         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
10478         automake.
10479         * modules/error (configure.ac): Likewise.
10480         * modules/propername (configure.ac): Likewise.
10481         * modules/vasprintf (configure.ac): Likewise.
10482         * modules/verror (configure.ac): Likewise.
10483         * modules/xprintf (configure.ac): Likewise.
10484         * modules/xvasprintf (configure.ac): Likewise.
10485
10486 2009-08-08  Bruno Haible  <bruno@clisp.org>
10487
10488         Avoid compilation error in C++ mode.
10489         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
10490         Reported by Sam Steingold <sds@gnu.org>.
10491
10492 2009-08-08  Bruno Haible  <bruno@clisp.org>
10493
10494         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
10495         for the various Unix platforms.
10496         * doc/posix-headers/limits.texi: Update platforms list regarding
10497         HOST_NAME_MAX.
10498         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10499
10500 2009-08-07  Jim Meyering  <meyering@redhat.com>
10501
10502         selinux-at: fix typo in a comment
10503         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
10504         Spotted by Paolo Bonzini.
10505
10506         selinux-at: remove redundant m4 code, add documentation
10507         * modules/selinux-at (configure.ac): Remove redundant code.
10508         LIB_SELINUX is already set via the dependent module, selinux-h.
10509         (Include): Add quotes around selinux-at.h.
10510         * lib/selinux-at.h: Add documentation.
10511         Reported by Bruno Haible in
10512         http://marc.info/?l=gnulib-bug&m=124958988300749
10513
10514 2009-08-07  Bruno Haible  <bruno@clisp.org>
10515
10516         Avoid link error on MacOS X 10.3 and 10.4.
10517         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
10518         on non-ELF systems.
10519         * lib/argp-pv.c (argp_program_version): Likewise.
10520         Reported by Simon Josefsson.
10521
10522 2009-08-07  Simon Josefsson  <simon@josefsson.org>
10523
10524         * tests/test-version-etc.sh: Use $EXEEXT.
10525
10526 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
10527
10528         update-copyright: update documentation to point to maint.mk
10529         * build-aux/update-copyright: Here.
10530
10531 2009-08-06  Jim Meyering  <meyering@redhat.com>
10532
10533         maint.mk: support update-copyright-local
10534         * top/maint.mk (update-copyright-local): Define place-holder.
10535         (update-copyright): Depend on $(update-copyright-local).
10536
10537 2009-08-06  Jim Meyering  <meyering@redhat.com>
10538
10539         selinux-at: new module
10540         Initially written for coreutils, this module will soon be
10541         used by findutils, too.
10542         * MODULES.html.sh [Misc]: Add selinux-at.
10543         * lib/selinux-at.h: New file, from coreutils.
10544         * lib/selinux-at.c: Likewise.
10545         * modules/selinux-at: Likewise.
10546         (License): Change from LGPL to GPL, since it depends
10547         on the GPL'd openat module.
10548
10549         doc: update README
10550         * README: Remove references to cogito.
10551         Remove cvs-repo-updating instructions from 2007.
10552         Don't imply that CVS is better if you have limited disk space.
10553
10554 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10555
10556         update-copyright: support C-style comments
10557         * build-aux/update-copyright: Implement and document.
10558         * tests/test-update-copyright.sh: Test.
10559
10560 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10561
10562         update-copyright: support omitted "(C)"
10563         * build-aux/update-copyright: Implement and document.  Also,
10564         allow variable whitespace before "(C)".
10565         * tests/test-update-copyright.sh: Test.
10566
10567 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10568
10569         update-copyright: don't trip on non-FSF copyright statements
10570         * build-aux/update-copyright: Fix so that the first correctly
10571         formatted FSF copyright statement is recognized no matter what
10572         appears before it.  Update documentation.
10573         * tests/test-update-copyright.sh: Test that.
10574
10575 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10576
10577         update-copyright: clean up code a little
10578         * build-aux/update-copyright: Append "_re" to the name of any
10579         variable holding a regular expression.
10580         Replace "old" and "new" with "stmt" in variable names.
10581         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
10582         handled correctly.
10583         Format code more consistently.
10584
10585 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10586
10587         update-copyright-tests: improve portability
10588         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
10589         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
10590
10591 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
10592
10593         update-copyright: support @copyright{} and &copy;
10594         * build-aux/update-copyright: Implement and document.
10595         * tests/test-update-copyright.sh: Test.
10596
10597 2009-08-04  Jim Meyering  <meyering@redhat.com>
10598
10599         update-copyright-tests: correctly test EOL=\r\n handling
10600         * tests/test-update-copyright.sh: Put \r at the end of some lines
10601         for the dos-eol tests.  Based on a patch by Joel E. Denny.
10602
10603         maint.mk: make update-copyright exclusion list more configurable
10604         * top/maint.mk (update-copyright): Default to excluding COPYING,
10605         but allow an override, in case someone does want to update that file.
10606
10607         maint.mk: don't update copyright date in COPYING
10608         * top/maint.mk (update-copyright): Exclude COPYING.
10609
10610         maint.mk: add a copyright-updating rule
10611         * top/maint.mk (update-copyright): New rule.
10612         Derived from coreutils/Makefile.am.
10613
10614         update-copyright: rename some variables
10615         * build-aux/update-copyright: Rename a few variables for clarity.
10616         Tweak syntax.  List Joel E. Denny as coauthor.
10617
10618 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
10619
10620         update-copyright: fix bug for 2-digit last year and add tests
10621         * build-aux/update-copyright: Fix bug.
10622         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
10623         specified.
10624         * modules/update-copyright-tests: New
10625         * tests/test-update-copyright.sh: New.
10626
10627 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
10628
10629         update-copyright: handle leading tabs in line prefix
10630         * build-aux/update-copyright: Count leading tabs as 8 spaces
10631         when computing margin.  This helps with the formatting of
10632         ChangeLogs, for example.
10633         Fix documentation a little.
10634
10635 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
10636
10637         update-copyright: support EOL=\r\n
10638         * build-aux/update-copyright: Implement that.
10639
10640 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
10641
10642         update-copyright: automatically format copyright statements
10643         * build-aux/update-copyright: Implement that.
10644         Also, be a little more predictable and safer by always failing
10645         when the full copyright format is not perfectly recognized as an
10646         unbroken whole.  Discussed at
10647         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
10648         Rewrite documentation.
10649
10650 2009-08-03  Bruno Haible  <bruno@clisp.org>
10651
10652         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
10653
10654 2009-08-02  Bruno Haible  <bruno@clisp.org>
10655
10656         Tests for module 'uname'.
10657         * modules/uname-tests: New file.
10658         * tests/test-uname.c: New file.
10659
10660         New module 'uname'.
10661         * lib/uname.c: New file.
10662         * m4/uname.m4: New file.
10663         * modules/uname: New file.
10664         * doc/posix-functions/uname.texi: Mention the new module.
10665
10666 2009-08-02  Bruno Haible  <bruno@clisp.org>
10667
10668         Tests for module 'sys_utsname'.
10669         * modules/sys_utsname-tests: New file.
10670         * tests/test-sys_utsname.c: New file.
10671
10672         New module 'sys_utsname'.
10673         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
10674         * m4/sys_utsname_h.m4: New file.
10675         * modules/sys_utsname: New file.
10676         * doc/posix-headers/sys_utsname.texi: Mention the new module.
10677
10678 2009-08-02  Bruno Haible  <bruno@clisp.org>
10679
10680         Implicitly initialize the sockets library.
10681         * lib/gethostname.c: Include sockets.h.
10682         (rpl_gethostname): Invoke gl_sockets_startup.
10683         * lib/socket.c: Include sockets.h.
10684         (rpl_socket): Invoke gl_sockets_startup.
10685         * modules/gethostname (Depends-on): Add sockets.
10686         * modules/socket (Depends-on): Likewise.
10687         * tests/test-poll.c: Don't include sockets.h.
10688         (main): Don't invoke gl_sockets_startup.
10689         * tests/test-select.c: Don't include sockets.h.
10690         (main): Don't invoke gl_sockets_startup.
10691
10692 2009-08-02  Bruno Haible  <bruno@clisp.org>
10693
10694         Allow multiple calls to gl_sockets_startup.
10695         * lib/sockets.c (initialized_sockets_version): New variable.
10696         (gl_sockets_startup): Do nothing if already called for this or a higher
10697         version.
10698         (gl_sockets_cleanup): Reset initialized_sockets_version.
10699
10700 2009-08-03  Simon Josefsson  <simon@josefsson.org>
10701
10702         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
10703         different project/version.
10704
10705 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
10706             Bruno Haible  <bruno@clisp.org>
10707
10708         Tests for module 'pipe-filter-gi'.
10709         * modules/pipe-filter-gi-tests: New file.
10710         * tests/test-pipe-filter-gi1.sh: New file.
10711         * tests/test-pipe-filter-gi1.c: New file.
10712         * tests/test-pipe-filter-gi2.sh: New file.
10713         * tests/test-pipe-filter-gi2-main.c: New file.
10714         * tests/test-pipe-filter-gi2-child.c: New file.
10715
10716         New module 'pipe-filter-gi'.
10717         * lib/pipe-filter-gi.c: New file.
10718         * modules/pipe-filter-gi: New file.
10719
10720 2009-08-02  Bruno Haible  <bruno@clisp.org>
10721             Paolo Bonzini  <bonzini@gnu.org>
10722
10723         Tests for module 'pipe-filter-ii'.
10724         * modules/pipe-filter-ii-tests: New file.
10725         * tests/test-pipe-filter-ii1.sh: New file.
10726         * tests/test-pipe-filter-ii1.c: New file.
10727         * tests/test-pipe-filter-ii2.sh: New file.
10728         * tests/test-pipe-filter-ii2-main.c: New file.
10729         * tests/test-pipe-filter-ii2-child.c: New file.
10730
10731         New module 'pipe-filter-ii'.
10732         * lib/pipe-filter.h: New file.
10733         * lib/pipe-filter-ii.c: New file.
10734         * lib/pipe-filter-aux.h: New file.
10735         * modules/pipe-filter-ii: New file.
10736
10737 2009-08-02  Simon Josefsson  <simon@josefsson.org>
10738
10739         * lib/gc-libgcrypt.c: Change copyright to FSF.
10740         * lib/gc-gnulib.c: Likewise.
10741
10742 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
10743
10744         * lib/gethostname.c: Include limits.h.
10745
10746 2009-08-02  Simon Josefsson  <simon@josefsson.org>
10747             Bruno Haible  <bruno@clisp.org>
10748
10749         Ensure HOST_NAME_MAX as part of the gethostname module.
10750         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
10751         define also HOST_NAME_MAX.
10752         * tests/test-gethostname.c: Include <limits.h>.
10753         (main): Check also HOST_NAME_MAX.
10754         * doc/posix-headers/limits.texi: Document the mingw problem.
10755
10756 2009-08-02  Bruno Haible  <bruno@clisp.org>
10757
10758         * lib/gethostname.c (gethostname): Fix handling of large len argument.
10759         Add comments.
10760
10761 2009-03-31  Simon Josefsson  <simon@josefsson.org>
10762
10763         * lib/gethostname.c: Add Windows wrapper.
10764         * m4/gethostname.m4: Look for gethostname in -lws2_32.
10765         * modules/gethostname: Depend on sys_socket & errno, for also
10766         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
10767         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
10768
10769 2009-07-31  Jim Meyering  <meyering@redhat.com>
10770
10771         getloadavg: fix symbol name in comment
10772         * lib/getloadavg.c: Correct a typo I introduced when adding
10773         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
10774         Matt Kraai spotted the problem.
10775
10776 2009-07-29  Matt Kraai  <mkraai@beckman.com>
10777
10778         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
10779         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
10780         code also if ! defined N_NAME_POINTER.
10781         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
10782         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
10783         but the n_name member is a 12-byte array.
10784
10785 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
10786
10787         update-copyright: generalize comment handling
10788         * build-aux/update-copyright: Handle copyright statements
10789         within more comment styles.
10790         Document usage.
10791         Report any file with an external copyright holder or parse failure.
10792
10793 2009-07-29  Jim Meyering  <meyering@redhat.com>
10794
10795         mktime: correct setting of REPLACE_MKTIME
10796         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
10797
10798         update-copyright: new module
10799         * modules/update-copyright: New file.
10800         * build-aux/update-copyright: New file.
10801         * MODULES.html.sh (maint+release support): Add update-copyright.
10802
10803 2009-07-27  Bruno Haible  <bruno@clisp.org>
10804
10805         Fix compilation error when <ctime> is used and mktime is replaced.
10806         * lib/time.in.h (mktime): New declaration.
10807         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
10808         REPLACE_MKTIME instead of defining mktime in config.h.
10809         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
10810         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
10811         Reported by Ross McFarland <rwmcfa1@neces.com>.
10812
10813 2009-07-27  Bruno Haible  <bruno@clisp.org>
10814
10815         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
10816         Reported by Matt Kraai <mkraai@beckman.com>.
10817
10818 2009-07-25  Jim Meyering  <meyering@redhat.com>
10819
10820         maint.mk: avoid warnings about missing files
10821         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
10822         diagnostic when .prev-version does not exist.
10823         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
10824         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
10825         nonexistent cfg.mk.
10826         Suggestions from Simon Josefsson.
10827
10828 2009-07-25  Bruno Haible  <bruno@clisp.org>
10829
10830         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
10831         defined as macros. Needed on QNX 6.4.1.
10832         Reported by Matt Kraai <mkraai@beckman.com>.
10833
10834 2009-07-23  Jim Meyering  <meyering@redhat.com>
10835
10836         maint.mk: invoke "make dist" with a working value of XZ_OPT
10837         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
10838
10839 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
10840
10841         Make fseeko.c compile on QNX.
10842         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
10843
10844 2009-07-22  Peter Simons  <simons@cryp.to>
10845
10846         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
10847         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
10848         * lib/md4.h: Likewise.
10849         * lib/md5.h: Likewise.
10850         * lib/sha1.h: Likewise.
10851         * lib/sha256.h: Likewise.
10852         * lib/sha512.h: Likewise.
10853
10854         tests-sha1: don't assign literal string to 'char *' variable
10855         * tests/test-sha1.c (main): Declare locals with "const" to match
10856         attributes of the right hand side.
10857
10858 2009-07-21  Eric Blake  <ebb9@byu.net>
10859
10860         dup2: fix more mingw problems
10861         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
10862         fd to itself.
10863         * doc/posix-functions/dup2.texi (dup2): Document the bug.
10864         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
10865         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
10866         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
10867         care of mingw bugs.
10868
10869 2009-07-21  Jim Meyering  <meyering@redhat.com>
10870
10871         vc-list-files: avoid failure when /bin/sh is dash
10872         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
10873         On some Debian based systems, /bin/sh is a symlink to dash, and running
10874         this command would omit the "/" following each 'tests' prefix:
10875           dash -x build-aux/vc-list-files -C . tests
10876         That is because bash and dash work differently:
10877           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
10878           bash ok
10879           dash odd
10880
10881 2009-07-21  Eric Blake  <ebb9@byu.net>
10882
10883         dup2-tests: test previous patch
10884         * modules/dup2-tests: New file.
10885         * tests/test-dup2.c: Likewise.
10886         * tests/test-open.c (main): Avoid unspecified behavior.
10887         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
10888         test.
10889
10890         dup2: work around mingw and cygwin 1.5 bug
10891         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
10892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10893         * modules/unistd (Makefile.am): Substitute it.
10894         * lib/unistd.in.h (dup2): Declare the replacement.
10895         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
10896         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
10897         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
10898         * modules/execute (Depends-on): Add dup2.
10899         * modules/fseterr (Depends-on): Likewise.
10900         * modules/pipe (Depends-on): Likewise.
10901         * modules/posix_spawn-internal (Depends-on): Likewise.
10902
10903 2009-07-21  Bruno Haible  <bruno@clisp.org>
10904
10905         * modules/.gitattributes: New file.
10906
10907 2009-07-20  Bruno Haible  <bruno@clisp.org>
10908
10909         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
10910         (main): Use it.
10911
10912 2009-07-20  Eric Blake  <ebb9@byu.net>
10913
10914         test-pipe: make a bit more robust.
10915         * tests/test-pipe.c (myerr): Allow error messages regardless of
10916         what we do to stderr.
10917         (test_pipe): Rearrange to avoid deadlock.
10918         (child_main): Try a larger read, to ensure we avoided deadlock.
10919         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
10920         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
10921         if misused.
10922
10923 2009-07-19  Jim Meyering  <meyering@redhat.com>
10924
10925         fts: avoid false-positive cycle-detection
10926         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
10927         for each new command line argument.
10928
10929 2009-07-19  Bruno Haible  <bruno@clisp.org>
10930
10931         Fix build error on mingw with the modules sys_select and unistd.
10932         * modules/acl-tests (Depends-on): Add close.
10933         * modules/binary-io-tests (Depends-on): Likewise.
10934         * modules/closein-tests (Depends-on): Likewise.
10935         * modules/flock-tests (Depends-on): Likewise.
10936         * modules/fsync-tests (Depends-on): Likewise.
10937         * modules/lseek-tests (Depends-on): Likewise.
10938         * modules/pipe-tests (Depends-on): Likewise.
10939         * modules/posix_spawn-tests (Depends-on): Likewise.
10940         * modules/posix_spawnp-tests (Depends-on): Likewise.
10941         * modules/stat-time-tests (Depends-on): Likewise.
10942         * modules/yesno-tests (Depends-on): Likewise.
10943
10944 2009-07-19  Bruno Haible  <bruno@clisp.org>
10945
10946         Unify conditionals.
10947         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
10948         macros, not at the compiler macros.
10949         * lib/pipe.c: Likewise.
10950         * lib/execute.c: Likewise.
10951         * lib/spawni.c: Likewise.
10952
10953 2009-07-19  Bruno Haible  <bruno@clisp.org>
10954
10955         Fix handling of closed stdin/stdout/stderr on mingw.
10956         * lib/w32spawn.h: Include unistd.h.
10957         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
10958         file descriptor with O_NOINHERIT flag.
10959         (fd_safer_noinherit): New function, based on fd-safer.c.
10960         (dup_safer_noinherit): New function, based on dup-safer.c.
10961         (undup_safer_noinherit): New function.
10962         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
10963         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
10964         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
10965         instead of fd_safer.
10966         * tests/test-pipe.c: Include <windows.h>.
10967         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
10968
10969         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
10970         from main.
10971         (test_pipe): Pass an extra argument for disambiguation.
10972         (main): Invoke parent_main or child_main.
10973
10974         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
10975         consistently.
10976
10977 2009-07-18  Eric Blake  <ebb9@byu.net>
10978
10979         test-pipe: fix mingw build
10980         * tests/test-pipe.c (main): Avoid fcntl on mingw.
10981
10982 2009-07-18  Bruno Haible  <bruno@clisp.org>
10983
10984         * modules/pipe-tests (Makefile.am): Fix typo.
10985
10986 2009-07-18  Eric Blake  <ebb9@byu.net>
10987
10988         error: fix mingw build
10989         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
10990         Reported by Bruno Haible.
10991
10992         error: avoid undefined use of stdout
10993         * lib/error.c (error, error_at_line): Check that fd 1 is open
10994         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
10995         is handling faults and the close_stdout module wants to report the
10996         detection of closed stdout as an error.
10997
10998 2009-07-17  Eric Blake  <ebb9@byu.net>
10999
11000         pipe: be robust in face of closed fds
11001         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
11002         should cause child to misbehave.
11003         * modules/pipe-tests: New module.
11004         * tests/test-pipe.c: New file.
11005         * tests/test-pipe.sh: New file.
11006         Reported by Akim Demaille.
11007
11008 2009-07-14  Bruno Haible  <bruno@clisp.org>
11009
11010         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
11011         Reported by anonymous kc.
11012
11013 2009-07-07  Jim Meyering  <meyering@redhat.com>
11014
11015         maint.mk: don't look for translatable strings in *.m4 or *.mk
11016         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
11017         when searching for translatable strings.
11018
11019 2009-07-05  Jim Meyering  <meyering@redhat.com>
11020
11021         remove superfluous parentheses in STREQ definition
11022         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
11023         * lib/getugroups.c (STREQ): Likewise.
11024         * lib/fnmatch.c (STREQ): Likewise.
11025         Spotted by Bruno Haible.
11026
11027 2009-07-04  Jim Meyering  <meyering@redhat.com>
11028
11029         argv-iter: new module
11030         * MODULES.html.sh: Add argv-iter.
11031         * lib/argv-iter.c, lib/argv-iter.h: New files.
11032         * modules/argv-iter: New file.
11033         * modules/argv-iter-tests: New file.
11034         * tests/test-argv-iter.c: Test it.
11035
11036 2009-07-04  Bruno Haible  <bruno@clisp.org>
11037
11038         Fix assertion.
11039         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
11040         contains more exact copies of a given entry than file2, leave the extra
11041         copies unpaired rather than aborting.
11042         Reported by Eric Blake.
11043
11044 2009-07-02  Bruno Haible  <bruno@clisp.org>
11045
11046         Speedup git-merge-changelog for git cherry-pick.
11047         * lib/git-merge-changelog.c (struct entries_mapping): New type.
11048         (entries_mapping_get): New function, extracted from compute_mapping.
11049         (entries_mapping_reverse_get): New function.
11050         (compute_mapping): Add a 'full' argument. Return the result in a
11051         'struct entries_mapping'.
11052         (main): Update. Access the mappings through entries_mapping_get.
11053         Reported by Eric Blake.
11054
11055 2009-07-02  Bruno Haible  <bruno@clisp.org>
11056
11057         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
11058         best_i.
11059
11060 2009-07-02  Bruno Haible  <bruno@clisp.org>
11061
11062         Speed up approximate search for matching ChangeLog entries.
11063         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
11064         argument. Call fstrcmp_bounded instead of fstrcmp.
11065         (compute_mapping, try_split_merged_entry, main): Update callers.
11066
11067 2009-07-02  Bruno Haible  <bruno@clisp.org>
11068
11069         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
11070
11071 2009-06-30  Bruno Haible  <bruno@clisp.org>
11072
11073         Reduce the number of uc_is_cased calls.
11074         * lib/unicase.h (casing_suffix_context_t): Add
11075         'first_char_except_ignorable' field.
11076         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
11077         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
11078         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
11079         Update initializer.
11080         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
11081         case-ignorable characters.
11082         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
11083         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
11084         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
11085         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
11086         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
11087
11088 2009-06-30  Bruno Haible  <bruno@clisp.org>
11089
11090         Tests for module 'unicase/ignorable'.
11091         * modules/unicase/ignorable-tests: New file.
11092         * tests/unicase/test-ignorable.c: New file, generated by
11093         gen-uni-tables.
11094
11095         Tests for module 'unicase/cased'.
11096         * modules/unicase/cased-tests: New file.
11097         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
11098         * tests/unicase/test-predicate-part1.h: New file, derived from
11099         tests/unictype/test-predicate-part1.h.
11100         * tests/unicase/test-predicate-part2.h: New file, same as
11101         tests/unictype/test-predicate-part2.h.
11102
11103         Fix evaluation of "Before C" condition of FINAL_SIGMA.
11104         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
11105         (output_casing_properties): New function.
11106         (main): Call it.
11107         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
11108         * lib/unicase/cased.c: Include unictype/bitmap.h.
11109         (uc_is_cased): Define through a bitmap lookup.
11110         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
11111         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
11112         (uc_is_case_ignorable): Define through a bitmap lookup.
11113         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
11114         lib/unictype/bitmap.h.
11115         (Depends-on): Add inline. Clean up.
11116         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
11117         lib/unictype/bitmap.h.
11118         (Depends-on): Add inline. Clean up.
11119         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
11120         recognition.
11121         * tests/unicase/test-u16-tolower.c (main): Likewise.
11122         * tests/unicase/test-u32-tolower.c (main): Likewise.
11123
11124 2009-06-30  Bruno Haible  <bruno@clisp.org>
11125
11126         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
11127         * lib/unicase/u16-casemap.c: Likewise.
11128         * lib/unicase/u32-casemap.c: Likewise.
11129
11130 2009-06-29  Bruno Haible  <bruno@clisp.org>
11131
11132         Define u32_casefold as a wrapper around u32_ct_casefold.
11133         * lib/unicase/u32-casefold.c: Update.
11134         * modules/unicase/u32-casefold (Depends-on): Add
11135         unicase/u32-ct-casefold, unicase/empty-prefix-context,
11136         unicase/empty-suffix-context. Clean up.
11137
11138         Define u16_casefold as a wrapper around u16_ct_casefold.
11139         * lib/unicase/u16-casefold.c: Update.
11140         * modules/unicase/u16-casefold (Depends-on): Add
11141         unicase/u16-ct-casefold, unicase/empty-prefix-context,
11142         unicase/empty-suffix-context. Clean up.
11143
11144         Define u8_casefold as a wrapper around u8_ct_casefold.
11145         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
11146         * lib/unicase/u8-casefold.c: Update.
11147         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
11148         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11149
11150         Define u32_totitle as a wrapper around u32_ct_totitle.
11151         * lib/unicase/u32-totitle.c: Update.
11152         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
11153         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11154
11155         Define u16_totitle as a wrapper around u16_ct_totitle.
11156         * lib/unicase/u16-totitle.c: Update.
11157         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
11158         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11159
11160         Define u8_totitle as a wrapper around u8_ct_totitle.
11161         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
11162         functions.
11163         (FUNC): Delegate to U_CT_TOTITLE.
11164         * lib/unicase/u8-totitle.c: Update.
11165         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
11166         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11167
11168         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
11169         invocation.
11170         * modules/unicase/u32-tolower (Depends-on): Add
11171         unicase/empty-prefix-context, unicase/empty-suffix-context.
11172
11173         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
11174         invocation.
11175         * modules/unicase/u16-tolower (Depends-on): Add
11176         unicase/empty-prefix-context, unicase/empty-suffix-context.
11177
11178         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
11179         * modules/unicase/u8-tolower (Depends-on): Add
11180         unicase/empty-prefix-context, unicase/empty-suffix-context.
11181
11182         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
11183         invocation.
11184         * modules/unicase/u32-toupper (Depends-on): Add
11185         unicase/empty-prefix-context, unicase/empty-suffix-context.
11186
11187         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
11188         invocation.
11189         * modules/unicase/u16-toupper (Depends-on): Add
11190         unicase/empty-prefix-context, unicase/empty-suffix-context.
11191
11192         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
11193         * modules/unicase/u8-toupper (Depends-on): Add
11194         unicase/empty-prefix-context, unicase/empty-suffix-context.
11195
11196         New module 'unicase/u32-ct-casefold'.
11197         * lib/unicase/u32-ct-casefold.c: New file.
11198         * modules/unicase/u32-ct-casefold: New file.
11199
11200         New module 'unicase/u16-ct-casefold'.
11201         * lib/unicase/u16-ct-casefold.c: New file.
11202         * modules/unicase/u16-ct-casefold: New file.
11203
11204         New module 'unicase/u8-ct-casefold'.
11205         * lib/unicase/u8-ct-casefold.c: New file.
11206         * lib/unicase/u-ct-casefold.h: New file, derived from
11207         lib/unicase/u-casefold.h.
11208         * modules/unicase/u8-ct-casefold: New file.
11209
11210         New module 'unicase/u32-ct-totitle'.
11211         * lib/unicase/u32-ct-totitle.c: New file.
11212         * modules/unicase/u32-ct-totitle: New file.
11213
11214         New module 'unicase/u16-ct-totitle'.
11215         * lib/unicase/u16-ct-totitle.c: New file.
11216         * modules/unicase/u16-ct-totitle: New file.
11217
11218         New module 'unicase/u8-ct-totitle'.
11219         * lib/unicase/u8-ct-totitle.c: New file.
11220         * lib/unicase/u-ct-totitle.h: New file, derived from
11221         lib/unicase/u-totitle.h.
11222         * modules/unicase/u8-ct-totitle: New file.
11223
11224         New module 'unicase/u32-ct-tolower'.
11225         * lib/unicase/u32-ct-tolower.c: New file.
11226         * modules/unicase/u32-ct-tolower: New file.
11227
11228         New module 'unicase/u16-ct-tolower'.
11229         * lib/unicase/u16-ct-tolower.c: New file.
11230         * modules/unicase/u16-ct-tolower: New file.
11231
11232         New module 'unicase/u8-ct-tolower'.
11233         * lib/unicase/u8-ct-tolower.c: New file.
11234         * modules/unicase/u8-ct-tolower: New file.
11235
11236         New module 'unicase/u32-ct-toupper'.
11237         * lib/unicase/u32-ct-toupper.c: New file.
11238         * modules/unicase/u32-ct-toupper: New file.
11239
11240         New module 'unicase/u16-ct-toupper'.
11241         * lib/unicase/u16-ct-toupper.c: New file.
11242         * modules/unicase/u16-ct-toupper: New file.
11243
11244         New module 'unicase/u8-ct-toupper'.
11245         * lib/unicase/u8-ct-toupper.c: New file.
11246         * modules/unicase/u8-ct-toupper: New file.
11247
11248         Add context arguments to u*_casemap functions.
11249         * lib/unicase/unicasemap.h: Include unicase.h.
11250         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
11251         suffix_context arguments.
11252         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
11253         functions.
11254         (FUNC): Add prefix_context and suffix_context arguments. Use
11255         uc_is_cased and uc_is_case_ignorable.
11256         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
11257         * lib/unicase/u16-casemap.c: Likewise.
11258         * lib/unicase/u32-casemap.c: Likewise.
11259         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
11260         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11261         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
11262         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11263         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
11264         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11265
11266         New module 'unicase/u32-suffix-context'.
11267         * lib/unicase/u32-suffix-context.c: New file.
11268         * modules/unicase/u32-suffix-context: New file.
11269
11270         New module 'unicase/u16-suffix-context'.
11271         * lib/unicase/u16-suffix-context.c: New file.
11272         * modules/unicase/u16-suffix-context: New file.
11273
11274         New module 'unicase/u8-suffix-context'.
11275         * lib/unicase/u8-suffix-context.c: New file.
11276         * lib/unicase/u-suffix-context.h: New file.
11277         * modules/unicase/u8-suffix-context: New file.
11278
11279         New module 'unicase/empty-suffix-context'.
11280         * lib/unicase/empty-suffix-context.c: New file.
11281         * modules/unicase/empty-suffix-context: New file.
11282
11283         New module 'unicase/u32-prefix-context'.
11284         * lib/unicase/u32-prefix-context.c: New file.
11285         * modules/unicase/u32-prefix-context: New file.
11286
11287         New module 'unicase/u16-prefix-context'.
11288         * lib/unicase/u16-prefix-context.c: New file.
11289         * modules/unicase/u16-prefix-context: New file.
11290
11291         New module 'unicase/u8-prefix-context'.
11292         * lib/unicase/u8-prefix-context.c: New file.
11293         * lib/unicase/u-prefix-context.h: New file.
11294         * lib/unicase/context.h: New file.
11295         * modules/unicase/u8-prefix-context: New file.
11296
11297         New module 'unicase/empty-prefix-context'.
11298         * lib/unicase/empty-prefix-context.c: New file.
11299         * modules/unicase/empty-prefix-context: New file.
11300
11301         New module 'unicase/ignorable'.
11302         * lib/unicase/ignorable.c: New file.
11303         * modules/unicase/ignorable: New file.
11304
11305         New module 'unicase/cased'.
11306         * lib/unicase/caseprop.h: New file.
11307         * lib/unicase/cased.c: New file.
11308         * modules/unicase/cased: New file.
11309
11310         New functions for case mapping of substrings.
11311         * lib/unicase.h (casing_prefix_context_t): New type.
11312         (unicase_empty_prefix_context): New variable.
11313         (u8_casing_prefix_context, u16_casing_prefix_context,
11314         u32_casing_prefix_context, u8_casing_prefixes_context,
11315         u16_casing_prefixes_context, u32_casing_prefixes_context): New
11316         declarations.
11317         (casing_suffix_context_t): New type.
11318         (unicase_empty_suffix_context): New variable.
11319         (u8_casing_suffix_context, u16_casing_suffix_context,
11320         u32_casing_suffix_context, u8_casing_suffixes_context,
11321         u16_casing_suffixes_context, u32_casing_suffixes_context,
11322         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
11323         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
11324         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
11325         declarations.
11326
11327 2009-06-28  Jim Meyering  <meyering@redhat.com>
11328
11329         boostrap: indent only with spaces
11330         * build-aux/bootstrap: Indent only with spaces, never TABs.
11331
11332         bootstrap: split long lines
11333         * build-aux/bootstrap: Keep line length < 80.
11334
11335         bootstrap: sync from coreutils
11336         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
11337         just as autoreconf does.  Verify a list of prerequisite
11338         package-name,version-number pairs if defined in bootstrap.conf.
11339         Refer to README-prereq, if prerequisites are not satisfied.
11340
11341 2009-06-27  Eric Blake  <ebb9@byu.net>
11342
11343         tests: add test for bogus NULL definition
11344         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
11345         * tests/test-stdlib.c: Likewise.
11346         * tests/test-string.c: Likewise.
11347         * tests/test-locale.c: Likewise.
11348         * tests/test-unistd.c: Likewise.
11349         * modules/stdio-tests (Depends-on): Add verify.
11350         * modules/stdlib-tests (Depends-on): Likewise.
11351         * modules/string-tests (Depends-on): Likewise.
11352         * modules/locale-tests (Depends-on): Likewise.
11353         * modules/unistd-tests (Depends-on): Likewise.
11354
11355 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
11356
11357         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
11358         self-explaining comment.
11359         * m4/selinux-selinux-h: Update serial.
11360         (gl_LIBSELINUX): New macro, adding a warning for missing development
11361         packages to code extracted from...
11362         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
11363         Add warning for missing development packages here, too.
11364
11365 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
11366
11367         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
11368
11369 2009-06-25  Eric Blake  <ebb9@byu.net>
11370
11371         version-etc: fix regression
11372         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
11373         gcc.
11374         (version_etc): Use it, to catch bugs with trailing NULL.
11375         * lib/version-etc.c (version_etc_arn): Delete unused argument.
11376         (version_etc_va): Fix logic bug.
11377         * modules/version-etc-tests: Add test.
11378         * tests/test-version-etc.c: New file.
11379         * tests/test-version-etc.sh: Likewise.
11380
11381 2009-06-25  Sam Steingold  <sds@gnu.org>
11382
11383         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
11384         mbtowc declaration.
11385
11386 2009-06-25  Eric Blake  <ebb9@byu.net>
11387
11388         fpurge: migrate into <stdio.h>
11389         * lib/fpurge.h: Delete...
11390         * lib/stdio.in.h (fpurge): ...and declare here, instead.
11391         * lib/fpurge.c (fpurge): Change declaring header.
11392         * modules/fpurge (Files): Drop deleted file.
11393         (Depends-on): Add stdio.
11394         (configure.ac): Set witness.
11395         * modules/stdio (Makefile.am): Support fpurge macros.
11396         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11397         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
11398         * lib/fflush.c: Update client.
11399         * tests/test-fpurge.c: Likewise.
11400         * NEWS: Mention the change.
11401
11402 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11403
11404         * lib/argp-version-etc.c (program_authors): Add const
11405         qualifier.
11406         * lib/version-etc.c: Fix typos in the comments.
11407         * modules/argp-version-etc: Depends on version-etc.
11408
11409 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11410
11411         argp-version-etc: new module.
11412
11413         * lib/argp-version-etc.c: New file.
11414         * lib/argp-version-etc.h: New file.
11415         * modules/argp-version-etc: New file.
11416         * modules/argp-version-etc-tests: New file.
11417         * tests/test-argp-version-etc.c: New test.
11418         * tests/test-argp-version-etc-1.sh: New test.
11419
11420 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11421
11422         Provide additional interfaces and documentation for version-etc
11423         module.
11424
11425         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
11426         interfaces.
11427         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
11428         prototypes.
11429
11430 2009-06-24  Bruno Haible  <bruno@clisp.org>
11431
11432         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
11433         HAVE_LIB${NAME} macro.
11434         Reported by Sam Steingold <sds@gnu.org>.
11435
11436 2009-06-23  Simon Josefsson  <simon@josefsson.org>
11437
11438         * modules/hash-tests (test_hash_LDADD): Link to libintl when
11439         needed.
11440
11441 2009-06-21  Bruno Haible  <bruno@clisp.org>
11442
11443         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
11444         work.
11445         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
11446         together with LIB${NAME}, LTLIB${NAME}.
11447         Reported by Sam Steingold <sds@gnu.org>.
11448
11449 2009-06-20  Jim Meyering  <meyering@redhat.com>
11450
11451         tests: make sc_require_test_exit_idiom more generic
11452         * top/maint.mk (Exit_witness_file): New overridable variable.
11453         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
11454         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
11455
11456 2009-06-19  Jim Meyering  <meyering@redhat.com>
11457
11458         hash: reverse order of src/dst parameters in an internal interface
11459         * lib/hash.c (transfer_entries): Reverse order of parameters to
11460         put DST before SRC.  Adjust callers.
11461
11462         tests: test-hash: avoid wholesale duplication
11463         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
11464         Instead, use a loop and add a single conditional.
11465
11466         tests: test-hash: allow seed selection via a command line argument
11467         * tests/test-hash.c (get_seed): New function.
11468         (main): Use it.
11469
11470 2009-06-19  Eric Blake  <ebb9@byu.net>
11471
11472         hash: avoid memory leak on allocation failure
11473         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
11474         failure.  Factor repeated algorithm...
11475         (transfer_entries): ...into new helper routine.
11476         (hash_delete): React to hash_rehash return value.
11477
11478         hash: reduce memory pressure in hash_rehash no-op case
11479         * lib/hash.c (next_prime): Avoid overflow.
11480         (hash_initialize): Factor bucket size computation...
11481         (compute_bucket_size): ...into new helper function.
11482         (hash_rehash): Use new function and open coding to reduce memory
11483         pressure, and avoid a memory leak in USE_OBSTACK code.
11484         Reported by Jim Meyering.
11485
11486 2009-06-18  Eric Blake  <ebb9@byu.net>
11487
11488         hash: make rotation more obvious
11489         * modules/hash (Depends-on): Add bitrotate and stdint.
11490         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
11491         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
11492         (SIZE_MAX): Rely on headers for definition.
11493         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
11494         (raw_hasher): Use rotr_sz.
11495         Suggested by Jim Meyering.
11496
11497         hash: fix memory leak in last patch
11498         * lib/hash.c (hash_rehash): Avoid memory leak.
11499
11500         hash: avoid no-op rehashing
11501         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
11502
11503         hash: provide default callback functions
11504         * lib/hash.c (raw_hasher, raw_comparator): New functions.
11505         (hash_initialize): Use them as defaults.
11506         * tests/test-hash.c (main): Test this.
11507
11508         hash: minor optimization
11509         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
11510         when possible.
11511         (hash_initialize): Document this promise.
11512         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
11513         * tests/test-hash.c (hash_compare_strings): Test this.
11514
11515 2009-06-18  Bruno Haible  <bruno@clisp.org>
11516
11517         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
11518         going to be replaced anyway.
11519
11520 2009-06-18  Bruno Haible  <bruno@clisp.org>
11521
11522         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
11523         in one place.
11524         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
11525         be replaced anyway.
11526
11527 2009-06-18  Eric Blake  <ebb9@byu.net>
11528
11529         hash: check for resize before insertion
11530         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
11531         threshold before insertion, so that a pathological hash_rehash
11532         that fills every bucket can still trigger another rehash.
11533
11534 2009-06-18  Jim Meyering  <meyering@redhat.com>
11535
11536         hash-tests: add a loop around the small tests
11537         * tests/test-hash.c (main): Repeat small tests with selected
11538         small initial table sizes.
11539
11540 2009-06-17  Eric Blake  <ebb9@byu.net>
11541
11542         hash: minor cleanups
11543         * lib/hash.h (hash_entry): Make opaque, by moving...
11544         * lib/hash.c (hash_entry): ...here.
11545         (hash_insert): Clarify restrictions on what can be inserted.
11546         (hash_get_next): Clarify when it is safe to remove an element
11547         during traversal.
11548         (check_tuning): Skip verification when tuning is known safe.
11549         (hash_initialize): Clarify restrictions on tuning.
11550
11551 2009-06-17  Jim Meyering  <jim@meyering.net>
11552         and Eric Blake  <ebb9@byu.net>
11553
11554         hash-tests: new module
11555         * modules/hash-tests: New file.
11556         * tests/test-hash.c: New file.
11557
11558 2009-06-17  Eric Blake  <ebb9@byu.net>
11559
11560         strstr-simple: document new module
11561         * MODULES.html.sh: Document new module.
11562
11563         strstr, strcasestr: replace on platforms with broken memchr
11564         * modules/strstr: Split into...
11565         * modules/strstr-simple: ...new module that does not care about
11566         performance, but does care about glibc bug.
11567         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
11568         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
11569         if platform memchr is broken, per Debian bug 521737.
11570         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
11571         memchr.
11572         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
11573         * doc/posix-functions/strstr.texi (strstr): Document the fix.
11574         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
11575         * modules/mountlist (Depends-on): Add strstr-simple.
11576         * modules/gen-uni-tables (Depends-on): Likewise.
11577         * modules/argz (Depends-on): Add strstr.
11578
11579 2009-06-17  Bruno Haible  <bruno@clisp.org>
11580
11581         * modules/posix_spawn-internal (Depends-on): Add errno.
11582
11583 2009-06-17  Bruno Haible  <bruno@clisp.org>
11584
11585         Define missing ESTALE on Interix 3.5.
11586         * lib/errno.in.h (ESTALE): Assign a value if missing.
11587         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
11588         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
11589         missing.
11590         * doc/posix-headers/errno.texi: Mention the Interix bug.
11591         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
11592
11593 2009-06-15  Eric Blake  <ebb9@byu.net>
11594
11595         memchr, memchr2: add valgrind exception
11596         * lib/memchr.valgrind: New file.
11597         * lib/memchr2.valgrind: New file.
11598         * modules/memchr (Files): Distribute valgrind file.
11599         * modules/memchr2 (Files): Likewise.
11600
11601         docs: memchr is no longer obsolete
11602         * MODULES.html.sh: Move memchr from obsolete to string.h section.
11603         * lib/string.in.h (memchr): Simplify logic.
11604
11605 2009-06-14  Jim Meyering  <meyering@redhat.com>
11606
11607         link-follow: fix the "checking..." message to not mention trailing slash
11608         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
11609         never considered trailing slashes.
11610
11611 2009-06-14  Bruno Haible  <bruno@clisp.org>
11612
11613         * m4/memchr.m4: Mention also the bug on IA-64.
11614         * doc/posix-functions/memchr.texi: Likewise.
11615
11616 2009-06-12  Eric Blake  <ebb9@byu.net>
11617
11618         memchr: detect broken x86_64 and alpha implementations
11619         * modules/memchr-tests (Depends-on): Move mmap detection...
11620         * modules/memchr (Depends-on): ...here.
11621         (configure.ac): Set indicator.
11622         * lib/string.in.h (memchr): Declare replacement.
11623         * modules/string (Makefile.am): Trigger replacement.
11624         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
11625         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
11626         bugs.
11627         * doc/posix-functions/memchr.texi (memchr): Document the bug.
11628         * modules/getpagesize (License): Relax license.
11629
11630 2009-06-11  Bruno Haible  <bruno@clisp.org>
11631
11632         * lib/idpriv.h: Add more references.
11633
11634 2009-06-08  Bruno Haible  <bruno@clisp.org>
11635
11636         Tests for module 'idpriv-droptemp'.
11637         * modules/idpriv-droptemp-tests: New file.
11638         * tests/test-idpriv-droptemp.sh: New file.
11639         * tests/test-idpriv-droptemp.su.sh: New file.
11640         * tests/test-idpriv-droptemp.c: New file.
11641
11642         New module 'idpriv-droptemp'.
11643         * lib/idpriv-droptemp.c: New file.
11644         * modules/idpriv-droptemp: New file.
11645
11646 2009-06-08  Bruno Haible  <bruno@clisp.org>
11647
11648         Tests for module 'idpriv-drop'.
11649         * modules/idpriv-drop-tests: New file.
11650         * tests/test-idpriv-drop.sh: New file.
11651         * tests/test-idpriv-drop.su.sh: New file.
11652         * tests/test-idpriv-drop.c: New file.
11653
11654         New module 'idpriv-drop'.
11655         * lib/idpriv.h: New file.
11656         * lib-idpriv-drop.c: New file.
11657         * m4/idpriv.m4: New file.
11658         * modules/idpriv-drop: New file.
11659
11660 2009-06-08  Bruno Haible  <bruno@clisp.org>
11661
11662         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
11663         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11664         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11665         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11666         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11667         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11668         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11669
11670 2009-06-08  Eric Blake  <ebb9@byu.net>
11671
11672         test-strstr: use memory fence, when possible
11673         * tests/test-strstr.c (main): Use memory fence, in order to be
11674         more likely to trigger Debian bug 521737.
11675         * modules/strstr-tests (Files): Pull in additional files.
11676
11677         memchr: no longer obsolete, for wider field testing
11678         * modules/memchr (Status, Notice): Delete, this module is no
11679         longer obsolete.
11680         * modules/vasnprintf (Depends-on): Add memchr.
11681
11682 2009-06-07  Jim Meyering  <meyering@redhat.com>
11683
11684         hash: declare some functions with the warn_unused_result attribute
11685         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
11686
11687 2009-06-07  Bruno Haible  <bruno@clisp.org>
11688
11689         * tests/test-alignof.c: Don't test int64_t if it does not exist.
11690         Reported by Eric Blake.
11691
11692 2009-06-06  Eric Blake  <ebb9@byu.net>
11693
11694         test-alignof: fix typo with long double
11695         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
11696         compiler error.
11697
11698 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
11699
11700         Escape non-texinfo { and }s.
11701         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
11702         markup error.
11703
11704 2009-06-04  Jim Meyering  <meyering@redhat.com>
11705
11706         gitlog-to-changelog: don't infloop on an empty commit log
11707         * build-aux/gitlog-to-changelog: Warn about an empty log message.
11708         Reported by Boris Petersen <transacid@centerim.org>.
11709
11710 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
11711
11712         version-etc: extend for packagers
11713         Add three new configure options, intended for packagers:
11714           --with-packager="packager name"
11715           --with-packager-version="packager-specific version"
11716           --with-packager-bug-reports="packager bug reporting"
11717         An example with coreutils:
11718           $ ./configure \
11719             --with-packager=Gentoo \
11720             --with-packager-bug-report=http://bugs.gentoo.org/ \
11721             --with-packager-version="patchset 1.6"
11722           $ ./src/ls --version | head -n2
11723           ls (GNU coreutils) 7.1-dirty
11724           Packaged by Gentoo (patchset 1.6)
11725         Note that the bug reporting info via --help doesn't show up because
11726         coreutils uses its own custom emit_bug_reporting_address() implementation
11727         in src/system.h.  If it didn't, it'd look like:
11728           $ ./src/ls --help | tail -n4
11729           Report bugs to <bug-coreutils@gnu.org>.
11730           Report Gentoo bugs to <http://bugs.gentoo.org/>.
11731           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
11732           General help using GNU software: <http://www.gnu.org/gethelp/>.
11733         * lib/version-etc.c: Print new information, if provided.
11734         * m4/version-etc.m4: New file.
11735         * modules/version-etc (Files): Add m4/version-etc.m4.
11736         (configure.ac): Add gl_VERSION_ETC.
11737
11738 2009-05-31  Bruno Haible  <bruno@clisp.org>
11739
11740         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
11741         and 'int64_t'.
11742         * modules/alignof-tests (Dependencies): Add stdint.
11743         Reported by Eric Blake.
11744
11745 2009-05-31  Bruno Haible  <bruno@clisp.org>
11746
11747         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
11748         restriction due to compiler bugs.
11749         Reported by Eric Blake.
11750
11751 2009-05-31  Simon Josefsson  <simon@josefsson.org>
11752             Bruno Haible  <bruno@clisp.org>
11753
11754         Fix test-alignof failure.
11755         * lib/alignof.h (alignof_slot): New macro.
11756         (alignof_type): New macro, with the same semantics as the previous
11757         'alignof'.
11758         (alignof): Alias to alignof_slot.
11759         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
11760         check that the results are usable as constant expressions.
11761
11762 2009-05-31  Bruno Haible  <bruno@clisp.org>
11763
11764         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
11765         * tests/test-memchr.c (main): Check that memchr does not read past the
11766         first occurrence of the byte.
11767         * tests/test-strstr.c (main): Update comment.
11768         Suggested by Eric Blake.
11769
11770 2009-05-30  Bruno Haible  <bruno@clisp.org>
11771
11772         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
11773         detail how to use dumpbin.
11774         Reported by David Byron <dbyron@dbyron.com>.
11775
11776 2009-06-02  Simon Josefsson  <simon@josefsson.org>
11777
11778         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
11779
11780 2009-06-02  Simon Josefsson  <simon@josefsson.org>
11781
11782         * m4/manywarnings.m4: Add GCC 4.4 warnings.
11783
11784 2009-05-28  Bruno Haible  <bruno@clisp.org>
11785
11786         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
11787         build-aux/ files.
11788
11789 2009-05-28  Simon Josefsson  <simon@josefsson.org>
11790
11791         * gnulib-tool (func_import): Transform license on build-aux/ files too.
11792
11793 2009-05-27  Simon Josefsson  <simon@josefsson.org>
11794
11795         * gnulib-tool (sed_transform_main_lib_file)
11796         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
11797         regexps.
11798
11799 2009-05-26  Simon Josefsson  <simon@josefsson.org>
11800
11801         * tests/test-strstr.c: Add another self-test.
11802         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
11803         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
11804
11805 2009-05-23  Bruno Haible  <bruno@clisp.org>
11806
11807         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
11808         change.
11809
11810 2009-05-21  Bruno Haible  <bruno@clisp.org>
11811
11812         Simplify use of mode_t varargs.
11813         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
11814         uses 'mode_t' or 'int'.
11815         * lib/openat.c (openat): Likewise.
11816         * lib/open-safer.c (open_safer): Likewise.
11817         * m4/mode_t.m4: New file.
11818         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
11819         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
11820         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
11821         * modules/open (Files): Add m4/mode_t.m4.
11822         * modules/openat (Files): Likewise.
11823         * modules/fcntl-safer (Files): Likewise.
11824         Suggested by Eric Blake.
11825
11826 2009-05-21  Pádraig Brady  <P@draigbrady.com>
11827
11828         * doc/glibc-functions/fallocate.texi: New file.
11829         * doc/gnulib.texi: Include it.
11830
11831 2009-05-21  Eric Blake  <ebb9@byu.net>
11832             Bruno Haible  <bruno@clisp.org>
11833
11834         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
11835         invocations.
11836         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
11837
11838 2009-05-21  Eric Blake  <ebb9@byu.net>
11839             Bruno Haible  <bruno@clisp.org>
11840
11841         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
11842         include_next. Fix of 2008-11-20 commit.
11843         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
11844         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
11845         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
11846         NEXT_MATH_H.
11847         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
11848         instead of NEXT_MATH_H.
11849
11850 2009-05-21  Bruno Haible  <bruno@clisp.org>
11851
11852         Avoid redefinition warnings for SIZE_MAX.
11853         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
11854         Reported by Simon Josefsson.
11855
11856 2009-05-21  Bruno Haible  <bruno@clisp.org>
11857
11858         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
11859         AC_CACHE_VAL.
11860
11861 2009-05-20  Bruno Haible  <bruno@clisp.org>
11862
11863         Make zeroptr.h work on mingw.
11864         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
11865         mprotect.
11866         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
11867         * modules/memchr2-tests (configure.ac): Likewise.
11868         * modules/memcmp-tests (configure.ac): Likewise.
11869         * modules/memmem-tests (configure.ac): Likewise.
11870         * modules/memrchr-tests (configure.ac): Likewise.
11871         Reported by Simon Josefsson.
11872
11873 2009-05-20  Simon Josefsson  <simon@josefsson.org>
11874
11875         * tests/test-glob.c: Include string.h for strcmp prototype.
11876
11877 2009-05-20  Simon Josefsson  <simon@josefsson.org>
11878
11879         * modules/getdelim (Depends-on): Add explicit stdint, although it
11880         was implicitly already pulled in via realloc-posix.
11881         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
11882
11883 2009-05-20  Simon Josefsson  <simon@josefsson.org>
11884
11885         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
11886         G. Christensen" <tgc@jupiterrise.com>.
11887         * m4/sys_socket_h.m4: Check for sa_family_t.
11888         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
11889         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
11890         * tests/test-sys_socket.c: Check that sa_family_t works.
11891
11892 2009-05-18  Eric Blake  <ebb9@byu.net>
11893
11894         maint.mk: allow gnulib_dir in VPATH build
11895         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
11896
11897 2009-05-15  Jim Meyering  <meyering@redhat.com>
11898
11899         maint.mk: Give gnulib_dir a default definition.
11900         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
11901         Thus, most packages no longer need to specify this variable in cfg.mk
11902
11903 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
11904
11905         rename.m4: fix typos that would make non-mingw cross-configure fail
11906         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
11907
11908 2009-05-13  Eric Blake  <ebb9@byu.net>
11909
11910         mmap-anon: avoid out-of-order autoconf expansion
11911         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
11912         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
11913         * modules/memchr-tests (Depends-on): Add extensions.
11914         * modules/memchr2-tests (Depends-on): Add extensions.
11915         * modules/memcmp-tests (Depends-on): Add extensions.
11916         * modules/memmem-tests (Depends-on): Add extensions.
11917         * modules/memrchr-tests (Depends-on): Add extensions.
11918
11919 2009-05-13  Bruno Haible  <bruno@clisp.org>
11920
11921         Make some tests ISO C 99 compliant.
11922         * tests/zerosize-ptr.h: New file.
11923         * tests/test-memchr.c: Include zerosize-ptr.h.
11924         (main): Use a zero-size object pointer instead of NULL.
11925         * tests/test-memchr2.c: Include zerosize-ptr.h.
11926         (main): Use a zero-size object pointer instead of NULL.
11927         * tests/test-memcmp.c: Include zerosize-ptr.h.
11928         (main): Use a zero-size object pointer instead of NULL.
11929         * tests/test-memmem.c: Include zerosize-ptr.h.
11930         (main): Use a zero-size object pointer instead of NULL.
11931         * tests/test-memrchr.c: Include zerosize-ptr.h.
11932         (main): Use a zero-size object pointer instead of NULL.
11933         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
11934         m4/mmap-anon.m4.
11935         (Depends-on): Add getpagesize.
11936         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11937         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
11938         m4/mmap-anon.m4.
11939         (Depends-on): Add getpagesize.
11940         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11941         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
11942         m4/mmap-anon.m4.
11943         (Depends-on): Add getpagesize.
11944         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11945         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
11946         m4/mmap-anon.m4.
11947         (Depends-on): Add getpagesize.
11948         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11949         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
11950         m4/mmap-anon.m4.
11951         (Depends-on): Add getpagesize.
11952         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11953
11954 2009-05-12  Bruno Haible  <bruno@clisp.org>
11955
11956         Tests for module 'alignof'.
11957         * modules/alignof-tests: New file.
11958         * tests/test-alignof.c: New file.
11959
11960 2009-05-12  Bruno Haible  <bruno@clisp.org>
11961
11962         Fix alignof macro.
11963         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
11964         vendor compilers that are always correct.
11965
11966 2009-05-12  Bruno Haible  <bruno@clisp.org>
11967
11968         Make the MAP_ANONYMOUS detection work on HP-UX 11.
11969         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
11970         not whether its fully works.
11971
11972 2009-05-12  Bruno Haible  <bruno@clisp.org>
11973
11974         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
11975
11976 2009-05-12  Jim Meyering  <meyering@redhat.com>
11977
11978         * top/maint.mk: Adjust backslash alignment.
11979
11980 2009-05-11  Simon Josefsson  <simon@josefsson.org>
11981
11982         * top/maint.mk: Make $(srcdir)/build-aux configurable.
11983
11984 2009-05-11  Eric Blake  <ebb9@byu.net>
11985
11986         argp: avoid undefined behavior
11987         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
11988         macros.
11989
11990 2009-05-08  Simon Josefsson  <simon@josefsson.org>
11991
11992         * tests/test-vc-list-files-git.sh: Do git config of user.email and
11993         user.name to prevent git commit from complaining.
11994
11995 2009-05-10  Bruno Haible  <bruno@clisp.org>
11996
11997         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
11998         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
11999         it rewrites every file name only once.
12000         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
12001
12002 2009-05-08  Bruno Haible  <bruno@clisp.org>
12003
12004         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
12005         instead of 'max'.
12006
12007 2009-05-08  Simon Josefsson  <simon@josefsson.org>
12008
12009         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
12010         sockaddr_storage test.
12011
12012 2009-05-07  Simon Josefsson  <simon@josefsson.org>
12013
12014         * modules/sys_socket (Makefile.am): Substitute
12015         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
12016         * m4/sys_socket_h.m4: Check for sockaddr_storage.
12017         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
12018         * tests/test-sys_socket.c: Check sockaddr_storage.
12019
12020 2009-05-08  Bruno Haible  <bruno@clisp.org>
12021
12022         New module 'alignof'.
12023         * lib/alignof.h: New file.
12024         * modules/alignof: New file.
12025
12026 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12027             Bruno Haible  <bruno@clisp.org>
12028
12029         Fix test-file-has-acl on FreeBSD.
12030         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
12031         mask is implicitly added.
12032         * tests/test-file-has-acl.c: Include <signal.h>.
12033         (main): Terminate the test after 5 seconds.
12034         * modules/acl-tests (configure.ac): Check for alarm function.
12035
12036 2009-05-04  Bruno Haible  <bruno@clisp.org>
12037
12038         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
12039         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
12040         * modules/errno (configure.ac): Drop AC_REQUIRE.
12041         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
12042         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
12043
12044 2009-05-04  Simon Josefsson  <simon@josefsson.org>
12045
12046         * modules/glob-tests: New module.
12047         * tests/test-glob.c: Add.
12048
12049 2009-05-04  Simon Josefsson  <simon@josefsson.org>
12050
12051         * modules/fnmatch-tests: New module.
12052         * tests/test-fnmatch.c: Add.
12053
12054 2009-05-04  Eric Blake  <ebb9@byu.net>
12055
12056         maint: make the new no-submodule-changes rule VPATH-safe
12057         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
12058
12059 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12060             Bruno Haible  <bruno@clisp.org>
12061
12062         acl: Fix infinite loop on FreeBSD.
12063         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
12064         of return value from acl_get_entry.
12065         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
12066         Likewise.
12067
12068 2009-05-03  Bruno Haible  <bruno@clisp.org>
12069
12070         * lib/acl-internal.h (acl_entries): Clarify return value.
12071         * lib/acl_entries.c (acl_entries): Likewise.
12072
12073 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12074
12075         Bug fix in acl module.
12076         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
12077
12078 2009-05-03  Bruno Haible  <bruno@clisp.org>
12079
12080         Create gperf-generated file in the source dir, not in the build dir.
12081         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
12082         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
12083         * modules/unicase/locale-language (unicase/locale-languages.h):
12084         Likewise.
12085         * modules/unicase/special-casing (unicase/special-casing-table.h):
12086         Likewise.
12087         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
12088         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
12089         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
12090         Reported by Ralf Wildenhues.
12091
12092 2009-05-03  Bruno Haible  <bruno@clisp.org>
12093
12094         * modules/fnmatch (Description, configure.ac): Taken from
12095         fnmatch-posix.
12096         * modules/fnmatch-posix: Turn into a symbolic reference to the
12097         'fnmatch' module, and deprecate.
12098         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
12099
12100 2009-05-03  Bruno Haible  <bruno@clisp.org>
12101
12102         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
12103         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
12104         Reported by Ralf Wildenhues.
12105
12106 2009-05-04  Simon Josefsson  <simon@josefsson.org>
12107
12108         * m4/fnmatch.m4: Fix fnmatch re-define.
12109
12110 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12111
12112         priv-set: new module and tests; adapt write-any-file
12113         * lib/priv-set.c: New file.
12114         * lib/priv-set.h: New file.
12115         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
12116         * lib/write-any-file.c: Simplify by using priv-set module.
12117         * m4/priv-set.m4: New file.
12118         * modules/priv-set: New file.
12119         * modules/unlinkdir: Add dependency on priv-set module.
12120         * modules/write-any-file: Likewise.
12121
12122         Tests for module 'priv-set'.
12123         * modules/priv-set-tests: New file.
12124         * tests/test-priv-set.c: New file.
12125
12126 2009-05-03  Jim Meyering  <meyering@redhat.com>
12127             Bruno Haible  <bruno@clisp.org>
12128
12129         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
12130         use the converted UTF-8 variant of the name instead.
12131
12132 2009-05-03  Jim Meyering  <meyering@redhat.com>
12133
12134         tests: tighten some getdate tests
12135         * tests/test-getdate.c (main): Tighten tests: require equality,
12136         not just greater than.  Set TZ envvar to UTC0.
12137
12138 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
12139
12140         getdate: correctly interpret "next monday" when run on a Monday
12141         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
12142         that e.g., "next tues" (when run on a tuesday) results in a date
12143         that is one week in the future, and not today's date.
12144         I.e., add a week when the wday is the same as the current one.
12145         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
12146         and earlier by Martin Bernreuther and Jan Minář.
12147         * tests/test-getdate.c (main): Check that "next DAY" is always in
12148         the future and that "last DAY" is always in the past.
12149
12150 2009-05-02  Jim Meyering  <meyering@redhat.com>
12151
12152         build: ensure that a release build fails when a submodule is unclean
12153         * top/maint.mk (no-submodule-changes): New rule.
12154         (alpha beta major): Depend on it.
12155
12156 2009-05-02  Bruno Haible  <bruno@clisp.org>
12157
12158         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
12159         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
12160         shell variable gl_fnmatch_required to detect which variant is
12161         requested.
12162         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
12163         gl_FUNC_FNMATCH_POSIX.
12164         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
12165         exclude fnmatch-posix.
12166
12167 2009-05-02  Bruno Haible  <bruno@clisp.org>
12168
12169         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
12170         * modules/mbsrtowcs (License): Change to LGPLv2+.
12171         * modules/strnlen1 (License): Likewise.
12172         Reported by Simon Josefsson.
12173
12174 2009-05-02  Bruno Haible  <bruno@clisp.org>
12175
12176         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
12177         "cross".
12178         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
12179         gnulib-tool was called with option --source-base=lib.
12180
12181 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12182
12183         Use automake *-local hooks without commands, for extensibility.
12184         * modules/localcharset (Makefile.am): Rename install-exec-local
12185         rule to install-exec-localcharset, and make it a prerequisite of
12186         install-exec-local.  Likewise, rename the uninstall-local rule to
12187         uninstall-localcharset, and make it a prerequisite of the former.
12188
12189 2009-05-01  Bruno Haible  <bruno@clisp.org>
12190
12191         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
12192         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
12193         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
12194         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
12195         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
12196         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
12197         m4/locale-zh.m4, m4/codeset.m4.
12198
12199         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
12200         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
12201         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
12202         m4/locale-zh.m4.
12203
12204         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
12205         REPLACE_WCRTOMB if mbstate_t must be replaced.
12206         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
12207         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
12208
12209 2009-05-01  Bruno Haible  <bruno@clisp.org>
12210
12211         Avoid compiler warnings when redefining macros defined by <libintl.h>.
12212         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
12213         dngettext, dcngettext, textdomain, bindtextdomain,
12214         bind_textdomain_codeset): Undefine before redefining.
12215
12216 2009-04-30  Bruno Haible  <bruno@clisp.org>
12217
12218         Fix bug introduced on 2009-04-25.
12219         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
12220         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
12221         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
12222         is defined.
12223         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
12224         is defined.
12225         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
12226         is defined.
12227         Reported by Elbert_Pol <elbert.pol@gmail.com>.
12228
12229 2009-04-28  Bruno Haible  <bruno@clisp.org>
12230
12231         Comment tweaks.
12232         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
12233         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
12234         * lib/unicase.h (u*_casexfrm): Likewise.
12235         Reported by Paolo Bonzini.
12236
12237 2009-04-28  Bruno Haible  <bruno@clisp.org>
12238
12239         Fix a compilation error.
12240         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
12241         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
12242         Reported by Jim Meyering.
12243
12244 2009-04-27  Bruno Haible  <bruno@clisp.org>
12245
12246         New module 'libunistring'.
12247         * modules/libunistring: New file.
12248         * m4/libunistring.m4: New file.
12249         * MODULES.html.sh (Unicode string functions): Add it.
12250
12251 2009-04-27  Eric Blake  <ebb9@byu.net>
12252
12253         maint.mk: allow package-specific header to provide <config.h>
12254         * top/maint.mk (sc_require_config_h): New variable.
12255         (sc_require_config_h, sc_require_config_h_first): Use it.
12256
12257 2009-04-27  Simon Josefsson  <simon@josefsson.org>
12258
12259         * top/maint.mk (sc_avoid_if_before_free): Except
12260         useless-if-before-free script.
12261
12262 2009-04-27  Eric Blake  <ebb9@byu.net>
12263
12264         maintainer-makefile: depend on all required helper scripts
12265         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
12266         useless-if-before-free.
12267         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
12268         version, rather than assuming gnulib checkout is available.
12269         Reported by Simen Josefsson.
12270
12271 2009-04-26  Bruno Haible  <bruno@clisp.org>
12272
12273         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
12274         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
12275         "../" or "..".
12276
12277 2009-04-26  Bruno Haible  <bruno@clisp.org>
12278
12279         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
12280         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
12281         AC_LIB_HAVE_LINKFLAGS.
12282
12283 2009-04-26  Bruno Haible  <bruno@clisp.org>
12284
12285         Simplify calling convention of u*_conv_from_encoding.
12286         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
12287         u32_conv_from_encoding): Expect a resultbuf argument and return the
12288         result directly as a pointer.
12289         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
12290         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
12291         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
12292         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
12293         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
12294         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12295         Update.
12296         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
12297         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
12298         * lib/vasnprintf.c (VASNPRINTF): Update.
12299         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
12300         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
12301         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
12302         * NEWS: Mention the change.
12303
12304 2009-04-26  Bruno Haible  <bruno@clisp.org>
12305
12306         Simplify calling convention of u*_conv_to_encoding.
12307         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
12308         u32_conv_to_encoding): Expect a resultbuf argument and return the
12309         result directly as a pointer.
12310         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12311         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
12312         freeing scaled_offsets if mem_iconveha failed.
12313         * lib/unicase/u-casexfrm.h (FUNC): Update.
12314         * lib/uninorm/u-normxfrm.h (FUNC): Update.
12315         * lib/vasnprintf.c (VASNPRINTF): Update.
12316         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
12317         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
12318         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
12319         * NEWS: Mention the change.
12320
12321 2009-04-26  Bruno Haible  <bruno@clisp.org>
12322
12323         Avoid test failures on AIX and OSF/1.
12324         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
12325         malloc(0).
12326         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12327         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12328         Likewise.
12329         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
12330         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
12331         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
12332         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
12333         * doc/posix-functions/malloc.texi: Document the portability problem
12334         related to malloc(0).
12335
12336 2009-04-26  Bruno Haible  <bruno@clisp.org>
12337
12338         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
12339         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
12340         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
12341
12342 2009-04-25  Bruno Haible  <bruno@clisp.org>
12343
12344         Avoid link error when creating a namespace clean library.
12345         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
12346         as macro with arguments if already defined as an alias.
12347         * lib/signbitf.c (gl_signbitf): Don't undefine.
12348         * lib/signbitd.c (gl_signbitd): Don't undefine.
12349         * lib/signbitl.c (gl_signbitl): Don't undefine.
12350
12351 2009-04-25  Jim Meyering  <meyering@redhat.com>
12352
12353         vc-list-files: fix another quoting bug
12354         * build-aux/vc-list-files: Avoid sed backslash expansion
12355         of pathological directory names.
12356
12357 2009-04-25  Eric Blake  <ebb9@byu.net>
12358
12359         vc-list-files: fix shell quoting error
12360         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
12361         timestamp.
12362
12363 2009-04-25  Jim Meyering  <meyering@redhat.com>
12364
12365         vc-list-files: restore lost functionality with subdir argument
12366         * build-aux/vc-list-files: When given a non-"." sub-directory
12367         argument, substitute the $dir/ prefix back onto each resulting name.
12368         Otherwise, coreutils' root_tests check would fail.
12369
12370 2009-04-24  Eric Blake  <ebb9@byu.net>
12371
12372         vc-list-files: ignore git symlinks
12373         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
12374         than ls-files, to ignore git symlinks.
12375
12376         maint.mk: import improvements from m4
12377         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
12378         (move_if_change): Delete unused macro.
12379         (news-date-check, vc-diff-check): Support VPATH builds.
12380         (announcement): Likewise.  Split --bootstrap-tools list...
12381         (boostrap-tools): ...into separate list, which can be overridden
12382         in cfg.mk.
12383         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
12384         requiring dependency on useless-if-before-free module.
12385         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
12386         Support VPATH builds.
12387
12388 2009-04-24  Jim Meyering  <meyering@redhat.com>
12389
12390         maint.mk: remove coreutils-specific rules and variables
12391         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
12392         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
12393         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
12394
12395         maint.mk: remove obsolete rule
12396         * top/maint.mk (rel-check): Remove rule.
12397         (WGET, WGETFLAGS): Remove now-unused variables.
12398
12399 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12400
12401         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
12402         consistency.
12403
12404         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
12405         '$(PATH_SEPARATOR)' instead of ':'.
12406
12407 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12408
12409         * lib/getopt1.c (main): Use 'const' for static array.
12410
12411 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12412
12413         * top/maint.mk: Sync with coreutils.
12414         * NEWS: Explain incompatibilities.
12415
12416 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12417             Bruno Haible  <bruno@clisp.org>
12418
12419         Fix cross-compilation results.
12420         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
12421         statement, as third argument of AC_TRY_RUN.
12422         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12423         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
12424         Likewise.
12425         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12426         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
12427         Likewise.
12428         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12429         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
12430         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
12431
12432 2009-04-20  Bruno Haible  <bruno@clisp.org>
12433
12434         Avoid test failure on mingw.
12435         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
12436
12437 2009-04-20  Bruno Haible  <bruno@clisp.org>
12438
12439         Avoid compilation error on mingw.
12440         * modules/localename-tests (Depends-on): Add locale.
12441
12442 2009-04-19  Bruno Haible  <bruno@clisp.org>
12443
12444         Support for building a shared library on Windows platforms.
12445         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
12446         (main): Test the presence of UNINORM_NFC here.
12447         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
12448         (main): Test the presence of UNINORM_NFD here.
12449         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
12450         (main): Test the presence of UNINORM_NFKC here.
12451         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
12452         (main): Test the presence of UNINORM_NFKD here.
12453
12454 2009-04-19  Bruno Haible  <bruno@clisp.org>
12455
12456         Avoid a compiler warning.
12457         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
12458         Change type of variable 'sequence'.
12459
12460 2009-04-19  Bruno Haible  <bruno@clisp.org>
12461
12462         * modules/configmake (Makefile.am): When the contents of configmake.h
12463         does not change, arrange to preserve its modification time.
12464
12465 2009-04-17  Simon Josefsson  <simon@josefsson.org>
12466
12467         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
12468         gettext domain.
12469
12470 2009-04-16  Jim Meyering  <meyering@redhat.com>
12471
12472         useless-if-before-free: improve conversion code
12473         * build-aux/useless-if-before-free: Adjust code-in-comment to match
12474         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
12475
12476 2009-04-14  Bruno Haible  <bruno@clisp.org>
12477
12478         * modules/fcntl (Depends-on): Add extensions.
12479         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
12480
12481 2009-04-12  Ben Pfaff  <blp@gnu.org>
12482
12483         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
12484         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
12485
12486 2009-03-20  Ben Pfaff  <blp@gnu.org>
12487
12488         Make rename replace existing destinations on Windows.
12489         * m4/rename.m4: Add test for Mingw.
12490         * lib/rename.c: Add rename replacement that uses MoveFileEx with
12491         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
12492         * doc/posix-functions/rename.texi: Document.
12493
12494 2009-04-10  Bruno Haible  <bruno@clisp.org>
12495
12496         New include file "iconveh.h".
12497         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
12498         * lib/striconveh.h: Include it.
12499         (enum iconv_ilseq_handler): Remove definition.
12500         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
12501         striconveh.h.
12502         * lib/striconveha.c: Include striconveh.h.
12503         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
12504         * modules/striconveh (Files): Add lib/iconveh.h.
12505         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
12506         lib/striconveh.h.
12507
12508 2009-04-10  Bruno Haible  <bruno@clisp.org>
12509
12510         * lib/uniconv.h: Update comment.
12511
12512 2009-04-10  Bruno Haible  <bruno@clisp.org>
12513
12514         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
12515         always.
12516         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
12517         * lib/unistr/u16-mbtouc-aux.c: Likewise.
12518         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
12519         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
12520         "unistring-notinline.h", so that the function gets defined always.
12521         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
12522         * lib/unistr/u8-uctomb.c: Likewise.
12523         * lib/unistr/u16-mbtouc.c: Likewise.
12524         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
12525         * lib/unistr/u16-uctomb.c: Likewise.
12526         * lib/unistr/u32-mbtouc.c: Likewise.
12527         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
12528         * lib/unistr/u32-uctomb.c: Likewise.
12529
12530 2009-04-10  Bruno Haible  <bruno@clisp.org>
12531
12532         Mark 'utime' obsolete.
12533         * modules/utime (Status, Notice): New sections.
12534         Suggested by Jim Meyering.
12535
12536         Fix cross-compile guess for utime test.
12537         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
12538         autoconf.
12539         * doc/posix-functions/utime.texi: Give more precisions.
12540         Reported by Jan <ipif@ymail.com>.
12541
12542 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
12543
12544         filevercmp: correct today's change
12545         * lib/filevercmp.c: Also handle coreutils' test inputs.
12546         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
12547
12548         Fix regression in 'filevercmp' module. Thanks Sven Joachim
12549         for reporting it.
12550         * lib/filevercmp.c: Special handle for "", "." and "..".
12551         * tests/test-filevercmp.c: Enlarge the set suite.
12552
12553 2009-04-07  Jim Meyering  <meyering@redhat.com>
12554
12555         useless-if-before-free: show how to remove braced useless free, too
12556         * build-aux/useless-if-before-free: still only in a comment, though.
12557
12558 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
12559
12560         maint.mk: import changes to syntax-check macros from coreutils
12561         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
12562         Use them in the relevant macros.
12563
12564 2009-04-06  Bruno Haible  <bruno@clisp.org>
12565
12566         Fix unportable use of bit-fields.
12567         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
12568         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
12569         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
12570
12571 2009-04-06  Bruno Haible  <bruno@clisp.org>
12572
12573         Avoid test failures on AIX and OSF/1.
12574         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
12575         that malloc(0) = NULL.
12576         * tests/unicase/test-u8-tolower.c (check): Likewise.
12577         * tests/unicase/test-u8-totitle.c (check): Likewise.
12578         * tests/unicase/test-u8-toupper.c (check): Likewise.
12579         * tests/unicase/test-u16-casefold.c (check): Likewise.
12580         * tests/unicase/test-u16-tolower.c (check): Likewise.
12581         * tests/unicase/test-u16-totitle.c (check): Likewise.
12582         * tests/unicase/test-u16-toupper.c (check): Likewise.
12583         * tests/unicase/test-u32-casefold.c (check): Likewise.
12584         * tests/unicase/test-u32-tolower.c (check): Likewise.
12585         * tests/unicase/test-u32-totitle.c (check): Likewise.
12586         * tests/unicase/test-u32-toupper.c (check): Likewise.
12587         * tests/uninorm/test-u8-nfc.c (check): Likewise.
12588         * tests/uninorm/test-u8-nfd.c (check): Likewise.
12589         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
12590         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
12591         * tests/uninorm/test-u16-nfc.c (check): Likewise.
12592         * tests/uninorm/test-u16-nfd.c (check): Likewise.
12593         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
12594         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
12595         * tests/uninorm/test-u32-nfc.c (check): Likewise.
12596         * tests/uninorm/test-u32-nfd.c (check): Likewise.
12597         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
12598         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
12599
12600 2009-04-05  Bruno Haible  <bruno@clisp.org>
12601
12602         Work around an autoconf limitation.
12603         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
12604         comment line if it would be longer than 3 KB.
12605
12606 2009-04-05  Bruno Haible  <bruno@clisp.org>
12607
12608         Avoid test failure with libiconv-1.13.
12609         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
12610         of the expected test results.
12611
12612 2009-04-05  Bruno Haible  <bruno@clisp.org>
12613
12614         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
12615         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
12616         that it should be installed.
12617
12618 2009-04-05  Bruno Haible  <bruno@clisp.org>
12619
12620         * gnulib-tool: New option --copy-file.
12621         (func_usage): Document it.
12622         (func_dest_tmpfilename): Moved out of func_import.
12623         (func_add_file, func_update_file): New functions, extracted from
12624         func_import.
12625         (func_import): Update.
12626
12627 2009-04-05  Karl Berry  <karl@gnu.org>
12628
12629         * README: prominently mention gnulib-tool.
12630         Rearrange sections so getting the code is near the top.
12631
12632 2009-04-05  Bruno Haible  <bruno@clisp.org>
12633
12634         * lib/unicase.h: Mention u*_cmp2.
12635         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
12636         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
12637         * lib/unicase/ulc-casecmp.c: Likewise.
12638         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
12639         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
12640         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
12641         unistr/u8-cmp.
12642         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
12643         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
12644         unistr/u16-cmp.
12645         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
12646         unistr/u32-cmp.
12647
12648         * lib/uninorm.h: Mention u*_cmp2.
12649         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
12650         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
12651         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
12652         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
12653         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
12654         unistr/u8-cmp.
12655         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
12656         unistr/u16-cmp.
12657         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
12658         unistr/u32-cmp.
12659
12660         New module 'unistr/u32-cmp2'.
12661         * lib/unistr/u32-cmp2.c: New file.
12662         * modules/unistr/u32-cmp2: New file.
12663
12664         New module 'unistr/u16-cmp2'.
12665         * lib/unistr/u16-cmp2.c: New file.
12666         * modules/unistr/u16-cmp2: New file.
12667
12668         New module 'unistr/u8-cmp2'.
12669         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
12670         * lib/unistr/u8-cmp2.c: New file.
12671         * lib/unistr/u-cmp2.h: New file.
12672         * modules/unistr/u8-cmp2: New file.
12673
12674 2009-04-05  Bruno Haible  <bruno@clisp.org>
12675
12676         * lib/unictype.h (uc_property_is_valid): New macro.
12677         * tests/unictype/test-pr_byname.c (main): Use it.
12678
12679         * lib/unistr.h: Doc fixes.
12680         * lib/uniconv.h: Doc fixes.
12681         * lib/unictype.h: Doc fixes.
12682
12683 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
12684
12685         Port coreutils 7.2 to Solaris 8.
12686
12687         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
12688         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
12689         for Solaris 8.  This is a bit of a hack, as it means it's the
12690         caller's responsibility to add -lnsl if needed, but most likely it
12691         won't be needed since only getaddrinfo uses this and getaddrinfo
12692         isn't needed on Solaris 8.
12693
12694         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
12695         problem to Solaris 8 encountered with coreutils 7.2, which
12696         resulted in a message "fnmatch.c:292: warning: passing argument 4
12697         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
12698         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
12699
12700 2009-04-03  Simon Josefsson  <simon@josefsson.org>
12701
12702         * m4/ld-version-script.m4: Add FIXME comment.
12703
12704 2009-04-02  Simon Josefsson  <simon@josefsson.org>
12705
12706         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
12707         SOVERSION variable.
12708
12709 2009-04-02  Bruno Haible  <bruno@clisp.org>
12710
12711         * Makefile (info, html, dvi, pdf): Combine the rules.
12712         Suggested by Jim Meyering.
12713
12714 2009-04-01  Bruno Haible  <bruno@clisp.org>
12715
12716         * Makefile (info, html, dvi, pdf): New targets.
12717         Reported by Reuben Thomas <rrt@sc3d.org>.
12718
12719 2009-04-01  Bruno Haible  <bruno@clisp.org>
12720
12721         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
12722         can be put into PATH.
12723         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
12724
12725 2009-04-01  Bruno Haible  <bruno@clisp.org>
12726
12727         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
12728
12729 2009-04-01  Bruno Haible  <bruno@clisp.org>
12730
12731         Rename module 'visibility'.
12732         * modules/lib-symbol-visibility: Renamed from modules/visibility.
12733         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
12734         * doc/gnulib.texi: Update.
12735         * MODULES.html.sh (Misc): Update.
12736         * NEWS: Mention the change.
12737
12738 2009-04-01  Simon Josefsson  <simon@josefsson.org>
12739
12740         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
12741         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
12742         Eric Blake <ebb9@byu.net> for review.
12743         * MODULES.html.sh: Add lib-msvc-compat.
12744         * doc/gnulib.texi: Link to new section.
12745         * m4/ld-output-def.m4: New file.
12746         * doc/ld-output-def.texi: New file.
12747
12748 2009-04-01  Simon Josefsson  <simon@josefsson.org>
12749
12750         Rename ld-version-script to lib-symbol-versions.  Suggested by
12751         Bruno Haible <bruno@clisp.org>.
12752         * modules/ld-version-script: Renamed to lib-symbol-versions.
12753         * doc/ld-version-script.texi: Fix module name.
12754         * MODULES.html.sh: Add lib-symbol-versions.
12755
12756 2009-03-31  Simon Josefsson  <simon@josefsson.org>
12757
12758         * modules/u64-tests: New file.
12759         * tests/test-u64.c: New file.
12760
12761 2009-03-04  Simon Josefsson  <simon@josefsson.org>
12762
12763         * MODULES.html.sh: Mention u64.
12764         * modules/u64: New module.
12765         * modules/crypto/sha512: Depend on u64 module instead of providing
12766         u64.h.
12767
12768 2009-03-27  Eric Blake  <ebb9@byu.net>
12769
12770         test-strerror: make debugging EAI_SYSTEM easier
12771         * modules/getaddrinfo-tests (Depends-on): Add strerror.
12772         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
12773         failure was EAI_SYSTEM.
12774
12775 2009-03-25  Bruno Haible  <bruno@clisp.org>
12776
12777         Fix a problem with --enable-relocatable on Solaris 7.
12778         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
12779         since 2008-02-24.
12780
12781 2009-03-25  Eric Blake  <ebb9@byu.net>
12782
12783         test-sockets: avoid gcc warning
12784         * tests/test-sockets.c (main): Silence compiler warning.
12785
12786 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
12787
12788         New modules nproc, pthread, contributed by Glen Lenker.
12789
12790         * MODULES.html.sh: Add pthread, nproc.
12791         * lib/nproc.c: New file.
12792         * lib/nproc.h: New file.
12793         * lib/pthread.in.h: New file.
12794         * m4/pthread.m4: New file.
12795         * modules/nproc: New file.
12796         * modules/pthread: New file.
12797
12798 2009-03-24  Simon Josefsson  <simon@josefsson.org>
12799
12800         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
12801         New variable.
12802
12803 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
12804
12805         filevercmp: handle simple~ and numbered.~3~ backup suffixes
12806         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
12807         * tests/test-filevercmp.c: Add tests for backup suffixes.
12808
12809 2009-03-24  Simon Josefsson  <simon@josefsson.org>
12810
12811         * modules/stdlib (Depends-on): Add stdint, needed when defining
12812         struct random_data on, for example, HP-UX 10.20.  Reported by
12813         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12814
12815 2009-03-24  Simon Josefsson  <simon@josefsson.org>
12816
12817         * lib/readline.c (readline): Call fflush on stdout after printing
12818         prompt.
12819
12820 2009-03-20  Bruno Haible  <bruno@clisp.org>
12821
12822         Remove dependency from 'close' module to -lws2_32 on native Windows.
12823         * lib/close-hook.h: New file.
12824         * lib/close-hook.c: New file.
12825         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
12826         w32sock.h.
12827         (_gl_close_fd_maybe_socket): Remove function.
12828         (rpl_close): Invoke execute_all_close_hooks instead of
12829         _gl_close_fd_maybe_socket.
12830         * lib/sockets.c: Include close-hook.h, w32sock.h.
12831         (close_fd_maybe_socket): New function, essentially from lib/close.c.
12832         (close_sockets_hook): New variable.
12833         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
12834         (gl_sockets_cleanup): Unregister it.
12835         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
12836         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
12837         * modules/close-hook: New file.
12838         * modules/close (Files): Remove lib/w32sock.h.
12839         (Depends-on): Add close-hook.
12840         (Link): Remove section.
12841         * modules/sockets (Files): Add lib/w32sock.h.
12842         (Depends-on): Add close-hook.
12843         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
12844         invocation.
12845         * NEWS: Mention that LIB_CLOSE is gone.
12846
12847 2009-03-23  Eric Blake  <ebb9@byu.net>
12848
12849         signal-tests: test previous patch
12850         * tests/test-signal.c: New file.
12851         * modules/signal-tests: Likewise.
12852
12853         signal.h: always support 'volatile sig_atomic_t'
12854         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
12855         (gl_SIGNAL_H_DEFAULTS): Add a default.
12856         * modules/signal (Makefile.am): Substitute if needed.
12857         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
12858         users can blindly add volatile.
12859         * doc/posix-headers/signal.texi (signal.h): Document it.
12860         Reported by Matthew Woehlke.
12861
12862 2009-03-23  Jim Meyering  <meyering@redhat.com>
12863
12864         pathmax: PATH_MAX: use pathconf only when available
12865         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
12866         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
12867         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
12868         This avoids a link failure in a PSP cross-compilation environment
12869         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
12870
12871         * lib/vasnprintf.c (divide): Fix typo in comment.
12872
12873 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12874
12875         * gnulib-tool (func_filter_filelist): Fix comment.
12876
12877 2009-03-20  Bruno Haible  <bruno@clisp.org>
12878
12879         Make sockets.h self-contained.
12880         * lib/sockets.c: Include sockets.h first.
12881         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
12882
12883 2009-03-19  Eric Blake  <ebb9@byu.net>
12884
12885         doc: mention more functions added in cygwin 1.7.0
12886         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
12887         addition.
12888         * doc/posix-functions/log2f.texi: Likewise.
12889
12890 2009-03-19  Jim Meyering  <meyering@redhat.com>
12891
12892         fsusage: avoid syntax error due to statement-before-declaration
12893         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
12894         after all declarations.  Reported by Matthew Woehlke in
12895         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
12896
12897 2009-03-18  Eric Blake  <ebb9@byu.net>
12898
12899         build-aux/compile: sync from automake
12900         * build-aux/compile: New file, from automake.
12901         * config/srclist.txt: Mention build-aux/compile.
12902
12903 2009-03-17  Bruno Haible  <bruno@clisp.org>
12904
12905         * lib/git-merge-changelog.c: Fix typo in comment.
12906         Reported by Reuben Thomas <rrt@sc3d.org>.
12907
12908 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
12909
12910         * m4/regex.m4: update and improve help for
12911         --without-included-regex.
12912
12913 2009-03-17  Simon Josefsson  <simon@josefsson.org>
12914
12915         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
12916         failure on missing include files.
12917
12918 2009-03-17  Eric Blake  <ebb9@byu.net>
12919
12920         doc: mention more functions added in cygwin 1.7.0
12921         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
12922         addition.
12923         * doc/posix-functions/fwscanf.texi: Likewise.
12924         * doc/posix-functions/swprintf.texi: Likewise.
12925         * doc/posix-functions/swscanf.texi: Likewise.
12926         * doc/posix-functions/vfwprintf.texi: Likewise.
12927         * doc/posix-functions/vfwscanf.texi: Likewise.
12928         * doc/posix-functions/vswprintf.texi: Likewise.
12929         * doc/posix-functions/vswscanf.texi: Likewise.
12930         * doc/posix-functions/vwprintf.texi: Likewise.
12931         * doc/posix-functions/vwscanf.texi: Likewise.
12932         * doc/posix-functions/wcscasecmp.texi: Likewise.
12933         * doc/posix-functions/wcsdup.texi: Likewise.
12934         * doc/posix-functions/wcsftime.texi: Likewise.
12935         * doc/posix-functions/wcsncasecmp.texi: Likewise.
12936         * doc/posix-functions/wprintf.texi: Likewise.
12937         * doc/posix-functions/wscanf.texi: Likewise.
12938         * doc/glibc-functions/gethostbyname2.texi: Likewise.
12939
12940 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12941
12942         maint.mk: really add $(AM_MAKEFLAGS)
12943         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
12944         was inadvertently omitted in the last commit.
12945         Spotted by Bruno Haible.
12946
12947         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
12948         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
12949         $(AM_MAKEFLAGS)' rather than plain `make'.
12950
12951         gnulib-tool: execute $MAKE not make
12952         * gnulib-tool: Default $MAKE to 'make'.
12953         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
12954         than make.  Initialize $MAKE in the do-autobuild script.
12955
12956         gnulib-tool: use $MAKE not make in generated files
12957         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
12958         make, in generated files.  Initialize $MAKE in the do-autobuild
12959         script.
12960
12961         * top/GNUmakefile (_have-git-version-gen): Fix typo.
12962
12963         GNUmakefile: disable parallelism only for multiple, recursive targets
12964         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
12965         additions in the Makefile.
12966         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
12967         by Automake.
12968         (.NOTPARALLEL): Only disable parallel builds if multiple targets
12969         are listed on the command line and at least one of them is
12970         listed in $(ALL_RECURSIVE_TARGETS).
12971
12972 2009-03-14  Bruno Haible  <bruno@clisp.org>
12973
12974         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
12975         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
12976         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
12977         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
12978         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
12979         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
12980         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
12981         unistr/u8-uctomb.
12982         * modules/unistr/u8-strchr (Depends-on): Likewise.
12983         * modules/unistr/u8-strrchr (Depends-on): Likewise.
12984         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
12985         unistr/u16-uctomb.
12986         * modules/unistr/u16-strchr (Depends-on): Likewise.
12987         * modules/unistr/u16-strrchr (Depends-on): Likewise.
12988
12989 2009-03-12  Bruno Haible  <bruno@clisp.org>
12990
12991         Work around select() bug on Interix 3.5.
12992         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
12993         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
12994         * m4/select.m4: New file.
12995         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
12996         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
12997         * modules/select (Files): Add m4/select.m4.
12998         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
12999         * modules/nanosleep (Depends-on): Add select.
13000         * modules/poll (Depends-on): Likewise.
13001         * doc/posix-functions/select.texi: Mention the Interix bug.
13002         Reported by Markus Duft <mduft@gentoo.org>.
13003
13004         * lib/select.c: Renamed from lib/winsock-select.c.
13005         * modules/select (Files): Add lib/select.c, remove
13006         lib/winsock-select.c.
13007         (configure.ac): Update.
13008
13009 2009-03-12  Jim Meyering  <meyering@redhat.com>
13010
13011         avoid gcc warnings about unused macro definitions
13012         * lib/readtokens.c (STREQ): Remove unused definition.
13013         * lib/xmalloc.c (SIZE_MAX): Likewise.
13014         * lib/openat-die.c (N_): Likewise.
13015         * lib/mountlist.c (SIZE_MAX): Remove definition.
13016         Instead, include <stdint.h>.
13017         * lib/readutmp.c: Likewise.
13018         * modules/readutmp (Depends-on): Add stdint.
13019         * modules/mountlist (Depends-on): Add stdint.
13020         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
13021
13022 2009-03-10  Bruno Haible  <bruno@clisp.org>
13023
13024         Tests for module 'mbmemcasecoll'.
13025         * modules/mbmemcasecoll-tests: New file.
13026         * tests/test-mbmemcasecoll1.sh: New file.
13027         * tests/test-mbmemcasecoll2.sh: New file.
13028         * tests/test-mbmemcasecoll3.sh: New file.
13029         * tests/test-mbmemcasecoll.c: New file.
13030
13031         New module 'mbmemcasecoll'.
13032         * lib/mbmemcasecoll.h: New file.
13033         * lib/mbmemcasecoll.c: New file.
13034         * modules/mbmemcasecoll: New file.
13035
13036         * tests/test-mbmemcasecmp.h: New file, extracted from
13037         tests/test-mbmemcasecmp.c.
13038         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
13039         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
13040         (main): Update.
13041         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
13042
13043 2009-03-09  Bruno Haible  <bruno@clisp.org>
13044
13045         Tests for module 'mbmemcasecmp'.
13046         * modules/mbmemcasecmp-tests: New file.
13047         * tests/test-mbmemcasecmp1.sh: New file.
13048         * tests/test-mbmemcasecmp2.sh: New file.
13049         * tests/test-mbmemcasecmp3.sh: New file.
13050         * tests/test-mbmemcasecmp.c: New file.
13051
13052         New module 'mbmemcasecmp'.
13053         * lib/mbmemcasecmp.h: New file.
13054         * lib/mbmemcasecmp.c: New file.
13055         * modules/mbmemcasecmp: New file.
13056
13057 2009-03-09  Bruno Haible  <bruno@clisp.org>
13058
13059         Tests for module 'unicase/ulc-casecoll'.
13060         * modules/unicase/ulc-casecoll-tests: New file.
13061         * tests/unicase/test-ulc-casecoll1.sh: New file.
13062         * tests/unicase/test-ulc-casecoll2.sh: New file.
13063         * tests/unicase/test-ulc-casecoll.c: New file.
13064
13065         New module 'unicase/ulc-casecoll'.
13066         * lib/unicase.h (ulc_casecoll): New declaration.
13067         * lib/unicase/ulc-casecoll.c: New file.
13068         * modules/unicase/ulc-casecoll: New file.
13069
13070         New module 'unicase/ulc-casexfrm'.
13071         * lib/unicase.h (ulc_casexfrm): New declaration.
13072         * lib/unicase/ulc-casexfrm.c: New file.
13073         * modules/unicase/ulc-casexfrm: New file.
13074
13075 2009-03-09  Bruno Haible  <bruno@clisp.org>
13076
13077         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
13078         invocations.
13079
13080         * m4/mbscasecmp.m4: Remove file.
13081         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
13082         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
13083
13084         * m4/mbscasestr.m4: Remove file.
13085         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
13086         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
13087
13088         * m4/mbschr.m4: Remove file.
13089         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
13090         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
13091
13092         * m4/mbscspn.m4: Remove file.
13093         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
13094         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
13095
13096         * m4/mbslen.m4: Remove file.
13097         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
13098         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
13099
13100         * m4/mbsncasecmp.m4: Remove file.
13101         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
13102         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
13103
13104         * m4/mbsnlen.m4: Remove file.
13105         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
13106         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
13107
13108         * m4/mbspbrk.m4: Remove file.
13109         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
13110         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
13111
13112         * m4/mbspcasecmp.m4: Remove file.
13113         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
13114         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
13115
13116         * m4/mbsrchr.m4: Remove file.
13117         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
13118         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
13119
13120         * m4/mbssep.m4: Remove file.
13121         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
13122         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
13123
13124         * m4/mbsspn.m4: Remove file.
13125         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
13126         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
13127
13128         * m4/mbsstr.m4: Remove file.
13129         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
13130         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
13131
13132         * m4/mbstok_r.m4: Remove file.
13133         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
13134         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
13135
13136         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
13137
13138         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
13139         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
13140
13141         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
13142
13143 2009-03-08  Bruno Haible  <bruno@clisp.org>
13144
13145         Tests for module 'unicase/ulc-casecmp'.
13146         * modules/unicase/ulc-casecmp-tests: New file.
13147         * tests/unicase/test-ulc-casecmp1.sh: New file.
13148         * tests/unicase/test-ulc-casecmp2.sh: New file.
13149         * tests/unicase/test-ulc-casecmp.c: New file.
13150
13151         New module 'unicase/ulc-casecmp'.
13152         * lib/unicase.h (ulc_casecmp): New declaration.
13153         * lib/unicase/ulc-casecmp.c: New file.
13154         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
13155         'const SRC_UNIT *'.
13156         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
13157         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
13158         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
13159         * modules/unicase/ulc-casecmp: New file.
13160
13161         Tests for module 'unicase/u32-is-cased'.
13162         * modules/unicase/u32-is-cased-tests: New file.
13163         * tests/unicase/test-u32-is-cased.c: New file.
13164
13165         Tests for module 'unicase/u16-is-cased'.
13166         * modules/unicase/u16-is-cased-tests: New file.
13167         * tests/unicase/test-u16-is-cased.c: New file.
13168
13169         Tests for module 'unicase/u8-is-cased'.
13170         * modules/unicase/u8-is-cased-tests: New file.
13171         * tests/unicase/test-u8-is-cased.c: New file.
13172         * tests/unicase/test-is-cased.h: New file.
13173
13174         New module 'unicase/u32-is-cased'.
13175         * lib/unicase/u32-is-cased.c: New file.
13176         * modules/unicase/u32-is-cased: New file.
13177
13178         New module 'unicase/u16-is-cased'.
13179         * lib/unicase/u16-is-cased.c: New file.
13180         * modules/unicase/u16-is-cased: New file.
13181
13182         New module 'unicase/u8-is-cased'.
13183         * lib/unicase/u8-is-cased.c: New file.
13184         * lib/unicase/u-is-cased.h: New file.
13185         * modules/unicase/u8-is-cased: New file.
13186
13187         Tests for module 'unicase/u32-is-casefolded'.
13188         * modules/unicase/u32-is-casefolded-tests: New file.
13189         * tests/unicase/test-u32-is-casefolded.c: New file.
13190
13191         Tests for module 'unicase/u16-is-casefolded'.
13192         * modules/unicase/u16-is-casefolded-tests: New file.
13193         * tests/unicase/test-u16-is-casefolded.c: New file.
13194
13195         Tests for module 'unicase/u8-is-casefolded'.
13196         * modules/unicase/u8-is-casefolded-tests: New file.
13197         * tests/unicase/test-u8-is-casefolded.c: New file.
13198         * tests/unicase/test-is-casefolded.h: New file.
13199
13200         New module 'unicase/u32-is-casefolded'.
13201         * lib/unicase/u32-is-casefolded.c: New file.
13202         * modules/unicase/u32-is-casefolded: New file.
13203
13204         New module 'unicase/u16-is-casefolded'.
13205         * lib/unicase/u16-is-casefolded.c: New file.
13206         * modules/unicase/u16-is-casefolded: New file.
13207
13208         New module 'unicase/u8-is-casefolded'.
13209         * lib/unicase/u8-is-casefolded.c: New file.
13210         * modules/unicase/u8-is-casefolded: New file.
13211
13212         Tests for module 'unicase/u32-is-titlecase'.
13213         * modules/unicase/u32-is-titlecase-tests: New file.
13214         * tests/unicase/test-u32-is-titlecase.c: New file.
13215
13216         Tests for module 'unicase/u16-is-titlecase'.
13217         * modules/unicase/u16-is-titlecase-tests: New file.
13218         * tests/unicase/test-u16-is-titlecase.c: New file.
13219
13220         Tests for module 'unicase/u8-is-titlecase'.
13221         * modules/unicase/u8-is-titlecase-tests: New file.
13222         * tests/unicase/test-u8-is-titlecase.c: New file.
13223         * tests/unicase/test-is-titlecase.h: New file.
13224
13225         New module 'unicase/u32-is-titlecase'.
13226         * lib/unicase/u32-is-titlecase.c: New file.
13227         * modules/unicase/u32-is-titlecase: New file.
13228
13229         New module 'unicase/u16-is-titlecase'.
13230         * lib/unicase/u16-is-titlecase.c: New file.
13231         * modules/unicase/u16-is-titlecase: New file.
13232
13233         New module 'unicase/u8-is-titlecase'.
13234         * lib/unicase/u8-is-titlecase.c: New file.
13235         * modules/unicase/u8-is-titlecase: New file.
13236
13237         Tests for module 'unicase/u32-is-lowercase'.
13238         * modules/unicase/u32-is-lowercase-tests: New file.
13239         * tests/unicase/test-u32-is-lowercase.c: New file.
13240
13241         Tests for module 'unicase/u16-is-lowercase'.
13242         * modules/unicase/u16-is-lowercase-tests: New file.
13243         * tests/unicase/test-u16-is-lowercase.c: New file.
13244
13245         Tests for module 'unicase/u8-is-lowercase'.
13246         * modules/unicase/u8-is-lowercase-tests: New file.
13247         * tests/unicase/test-u8-is-lowercase.c: New file.
13248         * tests/unicase/test-is-lowercase.h: New file.
13249
13250         New module 'unicase/u32-is-lowercase'.
13251         * lib/unicase/u32-is-lowercase.c: New file.
13252         * modules/unicase/u32-is-lowercase: New file.
13253
13254         New module 'unicase/u16-is-lowercase'.
13255         * lib/unicase/u16-is-lowercase.c: New file.
13256         * modules/unicase/u16-is-lowercase: New file.
13257
13258         New module 'unicase/u8-is-lowercase'.
13259         * lib/unicase/u8-is-lowercase.c: New file.
13260         * modules/unicase/u8-is-lowercase: New file.
13261
13262         Tests for module 'unicase/u32-is-uppercase'.
13263         * modules/unicase/u32-is-uppercase-tests: New file.
13264         * tests/unicase/test-u32-is-uppercase.c: New file.
13265
13266         Tests for module 'unicase/u16-is-uppercase'.
13267         * modules/unicase/u16-is-uppercase-tests: New file.
13268         * tests/unicase/test-u16-is-uppercase.c: New file.
13269
13270         Tests for module 'unicase/u8-is-uppercase'.
13271         * modules/unicase/u8-is-uppercase-tests: New file.
13272         * tests/unicase/test-u8-is-uppercase.c: New file.
13273         * tests/unicase/test-is-uppercase.h: New file.
13274
13275         New module 'unicase/u32-is-uppercase'.
13276         * lib/unicase/u32-is-uppercase.c: New file.
13277         * modules/unicase/u32-is-uppercase: New file.
13278
13279         New module 'unicase/u16-is-uppercase'.
13280         * lib/unicase/u16-is-uppercase.c: New file.
13281         * modules/unicase/u16-is-uppercase: New file.
13282
13283         New module 'unicase/u8-is-uppercase'.
13284         * lib/unicase/u8-is-uppercase.c: New file.
13285         * modules/unicase/u8-is-uppercase: New file.
13286
13287         New module 'unicase/u32-is-invariant'.
13288         * lib/unicase/u32-is-invariant.c: New file.
13289         * modules/unicase/u32-is-invariant: New file.
13290
13291         New module 'unicase/u16-is-invariant'.
13292         * lib/unicase/u16-is-invariant.c: New file.
13293         * modules/unicase/u16-is-invariant: New file.
13294
13295         New module 'unicase/u8-is-invariant'.
13296         * lib/unicase/u8-is-invariant.c: New file.
13297         * lib/unicase/invariant.h: New file.
13298         * lib/unicase/u-is-invariant.h: New file.
13299         * modules/unicase/u8-is-invariant: New file.
13300
13301         Tests for module 'unicase/u32-casecoll'.
13302         * modules/unicase/u32-casecoll-tests: New file.
13303         * tests/unicase/test-u32-casecoll.c: New file.
13304
13305         Tests for module 'unicase/u16-casecoll'.
13306         * modules/unicase/u16-casecoll-tests: New file.
13307         * tests/unicase/test-u16-casecoll.c: New file.
13308
13309         Tests for module 'unicase/u8-casecoll'.
13310         * modules/unicase/u8-casecoll-tests: New file.
13311         * tests/unicase/test-u8-casecoll.c: New file.
13312
13313         New module 'unicase/u32-casecoll'.
13314         * lib/unicase/u32-casecoll.c: New file.
13315         * modules/unicase/u32-casecoll: New file.
13316
13317         New module 'unicase/u16-casecoll'.
13318         * lib/unicase/u16-casecoll.c: New file.
13319         * modules/unicase/u16-casecoll: New file.
13320
13321         New module 'unicase/u8-casecoll'.
13322         * lib/unicase/u8-casecoll.c: New file.
13323         * lib/unicase/u-casecoll.h: New file.
13324         * modules/unicase/u8-casecoll: New file.
13325
13326         New module 'unicase/u32-casexfrm'.
13327         * lib/unicase/u32-casexfrm.c: New file.
13328         * modules/unicase/u32-casexfrm: New file.
13329
13330         New module 'unicase/u16-casexfrm'.
13331         * lib/unicase/u16-casexfrm.c: New file.
13332         * modules/unicase/u16-casexfrm: New file.
13333
13334         New module 'unicase/u8-casexfrm'.
13335         * lib/unicase/u8-casexfrm.c: New file.
13336         * lib/unicase/u-casexfrm.h: New file.
13337         * modules/unicase/u8-casexfrm: New file.
13338
13339         Tests for module 'unicase/u32-casecmp'.
13340         * modules/unicase/u32-casecmp-tests: New file.
13341         * tests/unicase/test-u32-casecmp.c: New file.
13342
13343         Tests for module 'unicase/u16-casecmp'.
13344         * modules/unicase/u16-casecmp-tests: New file.
13345         * tests/unicase/test-u16-casecmp.c: New file.
13346
13347         Tests for module 'unicase/u8-casecmp'.
13348         * modules/unicase/u8-casecmp-tests: New file.
13349         * tests/unicase/test-u8-casecmp.c: New file.
13350         * tests/unicase/test-casecmp.h: New file.
13351
13352         New module 'unicase/u32-casecmp'.
13353         * lib/unicase/u32-casecmp.c: New file.
13354         * modules/unicase/u32-casecmp: New file.
13355
13356         New module 'unicase/u16-casecmp'.
13357         * lib/unicase/u16-casecmp.c: New file.
13358         * modules/unicase/u16-casecmp: New file.
13359
13360         New module 'unicase/u8-casecmp'.
13361         * lib/unicase/u8-casecmp.c: New file.
13362         * lib/unicase/u-casecmp.h: New file.
13363         * modules/unicase/u8-casecmp: New file.
13364
13365         Tests for module 'unicase/u32-casefold'.
13366         * modules/unicase/u32-casefold-tests: New file.
13367         * tests/unicase/test-u32-casefold.c: New file.
13368
13369         Tests for module 'unicase/u16-casefold'.
13370         * modules/unicase/u16-casefold-tests: New file.
13371         * tests/unicase/test-u16-casefold.c: New file.
13372
13373         Tests for module 'unicase/u8-casefold'.
13374         * modules/unicase/u8-casefold-tests: New file.
13375         * tests/unicase/test-u8-casefold.c: New file.
13376
13377         New module 'unicase/u32-casefold'.
13378         * lib/unicase/u32-casefold.c: New file.
13379         * modules/unicase/u32-casefold: New file.
13380
13381         New module 'unicase/u16-casefold'.
13382         * lib/unicase/u16-casefold.c: New file.
13383         * modules/unicase/u16-casefold: New file.
13384
13385         New module 'unicase/u8-casefold'.
13386         * lib/unicase/u8-casefold.c: New file.
13387         * lib/unicase/u-casefold.h: New file.
13388         * modules/unicase/u8-casefold: New file.
13389
13390         New module 'unicase/tocasefold'.
13391         * lib/unicase/casefold.h: New file.
13392         * lib/unicase/tocasefold.c: New file.
13393         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
13394         * modules/unicase/tocasefold: New file.
13395
13396         Tests for module 'unicase/u32-totitle'.
13397         * modules/unicase/u32-totitle-tests: New file.
13398         * tests/unicase/test-u32-totitle.c: New file.
13399
13400         Tests for module 'unicase/u16-totitle'.
13401         * modules/unicase/u16-totitle-tests: New file.
13402         * tests/unicase/test-u16-totitle.c: New file.
13403
13404         Tests for module 'unicase/u8-totitle'.
13405         * modules/unicase/u8-totitle-tests: New file.
13406         * tests/unicase/test-u8-totitle.c: New file.
13407
13408         New module 'unicase/u32-totitle'.
13409         * lib/unicase/u32-totitle.c: New file.
13410         * modules/unicase/u32-totitle: New file.
13411
13412         New module 'unicase/u16-totitle'.
13413         * lib/unicase/u16-totitle.c: New file.
13414         * modules/unicase/u16-totitle: New file.
13415
13416         New module 'unicase/u8-totitle'.
13417         * lib/unicase/u8-totitle.c: New file.
13418         * lib/unicase/u-totitle.h: New file.
13419         * modules/unicase/u8-totitle: New file.
13420
13421         Tests for module 'unicase/u32-tolower'.
13422         * modules/unicase/u32-tolower-tests: New file.
13423         * tests/unicase/test-u32-tolower.c: New file.
13424
13425         Tests for module 'unicase/u16-tolower'.
13426         * modules/unicase/u16-tolower-tests: New file.
13427         * tests/unicase/test-u16-tolower.c: New file.
13428
13429         Tests for module 'unicase/u8-tolower'.
13430         * modules/unicase/u8-tolower-tests: New file.
13431         * tests/unicase/test-u8-tolower.c: New file.
13432
13433         New module 'unicase/u32-tolower'.
13434         * lib/unicase/u32-tolower.c: New file.
13435         * modules/unicase/u32-tolower: New file.
13436
13437         New module 'unicase/u16-tolower'.
13438         * lib/unicase/u16-tolower.c: New file.
13439         * modules/unicase/u16-tolower: New file.
13440
13441         New module 'unicase/u8-tolower'.
13442         * lib/unicase/u8-tolower.c: New file.
13443         * modules/unicase/u8-tolower: New file.
13444
13445         Tests for module 'unicase/u32-toupper'.
13446         * modules/unicase/u32-toupper-tests: New file.
13447         * tests/unicase/test-u32-toupper.c: New file.
13448
13449         Tests for module 'unicase/u16-toupper'.
13450         * modules/unicase/u16-toupper-tests: New file.
13451         * tests/unicase/test-u16-toupper.c: New file.
13452
13453         Tests for module 'unicase/u8-toupper'.
13454         * modules/unicase/u8-toupper-tests: New file.
13455         * tests/unicase/test-u8-toupper.c: New file.
13456
13457         New module 'unicase/u32-toupper'.
13458         * lib/unicase/u32-toupper.c: New file.
13459         * modules/unicase/u32-toupper: New file.
13460
13461         New module 'unicase/u16-toupper'.
13462         * lib/unicase/u16-toupper.c: New file.
13463         * modules/unicase/u16-toupper: New file.
13464
13465         New module 'unicase/u8-toupper'.
13466         * lib/unicase/u8-toupper.c: New file.
13467         * modules/unicase/u8-toupper: New file.
13468
13469         New module 'unicase/u32-casemap'.
13470         * lib/unicase/u32-casemap.c: New file.
13471         * modules/unicase/u32-casemap: New file.
13472
13473         New module 'unicase/u16-casemap'.
13474         * lib/unicase/u16-casemap.c: New file.
13475         * modules/unicase/u16-casemap: New file.
13476
13477         New module 'unicase/u8-casemap'.
13478         * lib/unicase/unicasemap.h: New file.
13479         * lib/unicase/u8-casemap.c: New file.
13480         * lib/unicase/u-casemap.h: New file.
13481         * modules/unicase/u8-casemap: New file.
13482
13483         New module 'unicase/special-casing'.
13484         * lib/unicase/special-casing.h: New file.
13485         * lib/unicase/special-casing.c: New file.
13486         * lib/unicase/special-casing-table.gperf: New file, generated by
13487         gen-uni-tables.c.
13488         * modules/unicase/special-casing: New file.
13489
13490         Tests for module 'unicase/locale-language'.
13491         * modules/unicase/locale-language-tests: New file.
13492         * tests/unicase/test-locale-language.sh: New file.
13493         * tests/unicase/test-locale-language.c: New file.
13494
13495         New module 'unicase/locale-language'.
13496         * lib/unicase/locale-language.c: New file.
13497         * lib/unicase/locale-languages.gperf: New file.
13498         * modules/unicase/locale-language: New file.
13499
13500         Generate more tables for case conversion and case folding.
13501         * lib/gen-uni-tables.c (SCC_*): New enum items.
13502         (struct special_casing_rule): New type.
13503         (casing_rules, num_casing_rules, allocated_casing_rules): New
13504         variables.
13505         (add_casing_rule, fill_casing_rules): New functions.
13506         (struct casefold_rule): New type.
13507         (casefolding_rules, num_casefolding_rules,
13508         allocated_casefolding_rules): New variables.
13509         (fill_casefolding_rules): New function.
13510         (unicode_casefold): New variable.
13511         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
13512         sort_casing_rules, output_casing_rules): New functions.
13513         (main): Accept to more arguments: SpecialCasing.txt and
13514         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
13515         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
13516         Output mapping for casefolding.
13517
13518         * lib/unicase.h: Include stdbool.h, uninorm.h.
13519         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
13520         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
13521         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
13522         arguments.
13523         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
13524         resultp arguments.
13525         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
13526         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
13527         resultp arguments.
13528         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
13529         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
13530         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
13531         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
13532         declarations.
13533         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
13534
13535 2009-03-08  Bruno Haible  <bruno@clisp.org>
13536
13537         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
13538         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
13539         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
13540         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
13541
13542 2009-03-07  Bruno Haible  <bruno@clisp.org>
13543
13544         Adjust u*_normcmp, u*_normcoll API.
13545         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
13546         u16_normcoll, u32_normcoll): Change failure conventions.
13547         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
13548         errno and return -1.
13549         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
13550
13551 2009-03-07  Bruno Haible  <bruno@clisp.org>
13552
13553         Tests for module 'uninorm/u32-normcoll'.
13554         * modules/uninorm/u32-normcoll-tests: New file.
13555         * tests/uninorm/test-u32-normcoll.c: New file.
13556
13557         Tests for module 'uninorm/u16-normcoll'.
13558         * modules/uninorm/u16-normcoll-tests: New file.
13559         * tests/uninorm/test-u16-normcoll.c: New file.
13560
13561         Tests for module 'uninorm/u8-normcoll'.
13562         * modules/uninorm/u8-normcoll-tests: New file.
13563         * tests/uninorm/test-u8-normcoll.c: New file.
13564
13565 2009-03-07  Bruno Haible  <bruno@clisp.org>
13566
13567         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
13568         tests/uninorm/test-u32-normcmp.c.
13569         * tests/uninorm/test-u32-normcmp.c: Include it.
13570         (test_nonascii): New function, extracted from main. Add some more
13571         tests.
13572         (main): Invoke test_ascii and test_nonascii.
13573         * modules/uninorm/u32-normcmp-tests (Files): Add
13574         tests/uninorm/test-u32-normcmp.h.
13575         (Depends-on): Remove uninorm/u32-normcmp.
13576
13577         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
13578         tests/uninorm/test-u16-normcmp.c.
13579         * tests/uninorm/test-u16-normcmp.c: Include it.
13580         (test_nonascii): New function, extracted from main. Add some more
13581         tests.
13582         (main): Invoke test_ascii and test_nonascii.
13583         * modules/uninorm/u16-normcmp-tests (Files): Add
13584         tests/uninorm/test-u16-normcmp.h.
13585         (Depends-on): Remove uninorm/u16-normcmp.
13586
13587         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
13588         tests/uninorm/test-u8-normcmp.c.
13589         * tests/uninorm/test-u8-normcmp.c: Include it.
13590         (test_nonascii): New function, extracted from main. Add some more
13591         tests.
13592         (main): Invoke test_ascii and test_nonascii.
13593         * modules/uninorm/u8-normcmp-tests (Files): Add
13594         tests/uninorm/test-u8-normcmp.h.
13595         (Depends-on): Remove uninorm/u8-normcmp.
13596
13597 2009-03-07  Bruno Haible  <bruno@clisp.org>
13598
13599         New module 'uninorm/u32-normcoll'.
13600         * lib/uninorm/u32-normcoll.c: New file.
13601         * modules/uninorm/u32-normcoll: New file.
13602
13603         New module 'uninorm/u16-normcoll'.
13604         * lib/uninorm/u16-normcoll.c: New file.
13605         * modules/uninorm/u16-normcoll: New file.
13606
13607         New module 'uninorm/u8-normcoll'.
13608         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
13609         declarations.
13610         * lib/uninorm/u8-normcoll.c: New file.
13611         * lib/uninorm/u-normcoll.h: New file.
13612         * modules/uninorm/u8-normcoll: New file.
13613
13614         New module 'uninorm/u32-normxfrm'.
13615         * lib/uninorm/u32-normxfrm.c: New file.
13616         * modules/uninorm/u32-normxfrm: New file.
13617
13618         New module 'uninorm/u16-normxfrm'.
13619         * lib/uninorm/u16-normxfrm.c: New file.
13620         * modules/uninorm/u16-normxfrm: New file.
13621
13622         New module 'uninorm/u8-normxfrm'.
13623         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
13624         declarations.
13625         * lib/uninorm/u8-normxfrm.c: New file.
13626         * lib/uninorm/u-normxfrm.h: New file.
13627         * modules/uninorm/u8-normxfrm: New file.
13628
13629 2009-03-07  Bruno Haible  <bruno@clisp.org>
13630
13631         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
13632         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
13633         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
13634
13635 2009-03-07  Bruno Haible  <bruno@clisp.org>
13636
13637         New module 'memxfrm'.
13638         * lib/memxfrm.h: New file.
13639         * lib/memxfrm.c: New file.
13640         * modules/memxfrm: New file.
13641
13642 2009-03-07  Bruno Haible  <bruno@clisp.org>
13643
13644         New module 'memcmp2'.
13645         * lib/memcmp2.h: New file.
13646         * lib/memcmp2.c: New file.
13647         * modules/memcmp2: New file.
13648
13649 2009-03-07  Bruno Haible  <bruno@clisp.org>
13650
13651         Tests for module 'uninorm/decomposing-form'.
13652         * modules/uninorm/decomposing-form-tests: New file.
13653         * tests/uninorm/test-decomposing-form.c: New file.
13654
13655         New module 'uninorm/decomposing-form'.
13656         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
13657         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
13658         Add 'decomposing_variant' field.
13659         * lib/uninorm/decomposing-form.c: New file.
13660         * lib/uninorm/nfc.c (uninorm_nfc): Update.
13661         * lib/uninorm/nfd.c (uninorm_nfd): Update.
13662         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
13663         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
13664         * modules/uninorm/decomposing-form: New file.
13665         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
13666         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
13667
13668 2009-03-07  Bruno Haible  <bruno@clisp.org>
13669
13670         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
13671         strings.
13672
13673 2009-03-06  Bruno Haible  <bruno@clisp.org>
13674
13675         Tests for module 'uninorm/u32-normcmp'.
13676         * tests/uninorm/test-u32-normcmp.c: New file.
13677         * modules/uninorm/u32-normcmp-tests: New file.
13678
13679         Tests for module 'uninorm/u16-normcmp'.
13680         * tests/uninorm/test-u16-normcmp.c: New file.
13681         * modules/uninorm/u16-normcmp-tests: New file.
13682
13683         Tests for module 'uninorm/u8-normcmp'.
13684         * tests/uninorm/test-u8-normcmp.c: New file.
13685         * modules/uninorm/u8-normcmp-tests: New file.
13686
13687         New module 'uninorm/u32-normcmp'.
13688         * lib/uninorm/u32-normcmp.c: New file.
13689         * modules/uninorm/u32-normcmp: New file.
13690
13691         New module 'uninorm/u16-normcmp'.
13692         * lib/uninorm/u16-normcmp.c: New file.
13693         * modules/uninorm/u16-normcmp: New file.
13694
13695         New module 'uninorm/u8-normcmp'.
13696         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
13697         declarations.
13698         * lib/uninorm/u8-normcmp.c: New file.
13699         * lib/uninorm/u-normcmp.h: New file.
13700         * modules/uninorm/u8-normcmp: New file.
13701
13702 2009-03-06  Bruno Haible  <bruno@clisp.org>
13703
13704         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
13705         Reported by Eric Blake.
13706
13707 2009-03-06  Eric Blake  <ebb9@byu.net>
13708             Bruno Haible  <bruno@clisp.org>
13709
13710         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
13711         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
13712         condition.
13713         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
13714         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
13715         condition.
13716         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
13717
13718 2009-03-06  Eric Blake  <ebb9@byu.net>
13719
13720         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
13721         to avoid compiler warnings.
13722         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
13723
13724 2009-03-05  Bruno Haible  <bruno@clisp.org>
13725
13726         * tests/test-ftell.c (main): Disable test beyond end of file on
13727         FreeMiNT.
13728         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
13729
13730 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
13731
13732         * lib/filevercmp.c: Move hidden files up in ordering.
13733         * tests/test-filevercmp.c: Add tests for hidden files.
13734
13735 2009-03-04  Bruno Haible  <bruno@clisp.org>
13736
13737         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
13738         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
13739         AM_CFLAGS.
13740         Reported by Simon Josefsson.
13741
13742 2009-03-03  Bruno Haible  <bruno@clisp.org>
13743
13744         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
13745         Reported by Simon Josefsson.
13746
13747         * doc/ld-version-script.texi: Update node reference.
13748
13749 2009-03-03  Bruno Haible  <bruno@clisp.org>
13750
13751         * modules/visibility (License): Change to 'unlimited'.
13752         Suggested by Simon Josefsson.
13753
13754 2009-03-03  Jim Meyering  <meyering@redhat.com>
13755
13756         unlinkdir: cannot_unlink_dir may modify process state
13757         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
13758         it's neither thread-safe nor appropriate for use in a library.
13759
13760 2009-03-03  Eric Blake  <ebb9@byu.net>
13761
13762         test-closein: silence test under Darwin
13763         * tests/test-closein.sh: Ignore stderr from cat, since we don't
13764         care if it dies from EPIPE or EBADF.
13765
13766 2009-03-03  Bruno Haible  <bruno@clisp.org>
13767
13768         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
13769         earlier.
13770         * doc/visibility.texi: Fix @node and @section.
13771
13772 2009-03-03  Simon Josefsson  <simon@josefsson.org>
13773
13774         * doc/gnulib.texi: Link to sections for ld version script and
13775         visibility.
13776         * doc/visibility.texi: Add @node and @section.
13777         * modules/ld-version-script: New module.
13778         * m4/ld-version-script.m4: New file.
13779         * doc/ld-version-script.texi: New file.
13780
13781 2009-03-02  David Lutterkort  <lutter@redhat.com>
13782
13783         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
13784         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13785
13786 2009-03-02  Bruno Haible  <bruno@clisp.org>
13787
13788         * doc/visibility.texi: Mention libtool's -export-symbols option.
13789
13790 2009-03-02  Jim Meyering  <meyering@redhat.com>
13791
13792         announce-gen: new option: --no-print-checksums
13793         * build-aux/announce-gen (usage): Describe it.
13794         (print_checksums): Print a newline here, not in the [*] footnote.
13795         (main): Honor it.
13796
13797 2009-03-01  Bruno Haible  <bruno@clisp.org>
13798
13799         Use socklen_t in the native Windows replacements prototypes.
13800         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
13801         instead of 'int'.
13802         * lib/getsockopt.c (rpl_getsockopt): Likewise.
13803         * lib/setsockopt.c (rpl_setsockopt): Likewise.
13804         * modules/getsockopt (Depends-on): Add socklen.
13805         * modules/setsockopt (Depends-on): Add socklen.
13806
13807 2009-03-01  Bruno Haible  <bruno@clisp.org>
13808
13809         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
13810         least 4.2.
13811
13812 2009-03-01  Eric Blake  <ebb9@byu.net>
13813             Bruno Haible  <bruno@clisp.org>
13814
13815         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
13816         error messages.
13817         * lib/wait-process.c (wait_subprocess): Omit error message about
13818         deadly signal sent to the child of termsigp != NULL.
13819
13820 2009-03-01  Eric Blake  <ebb9@byu.net>
13821
13822         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
13823
13824 2009-03-01  Bruno Haible  <bruno@clisp.org>
13825
13826         Avoid a gcc warning.
13827         * tests/test-sched.c (b): Make global.
13828         Reported by Eric Blake.
13829
13830 2009-01-19  Martin Lambers  <marlam@marlam.de>
13831
13832         Provide POSIX semantics for socket timeout options on W32.
13833         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
13834         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
13835         * modules/setsockopt: Depend on sys_time module for struct timeval.
13836         * modules/getsockopt: Depend on sys_time module for struct timeval.
13837
13838 2009-03-01  Simon Josefsson  <simon@josefsson.org>
13839
13840         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
13841         __USE_GNU, for consistency with netdb.in.h.
13842         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13843
13844 2009-03-01  Bruno Haible  <bruno@clisp.org>
13845
13846         More support for FreeMiNT.
13847         * lib/fseeko.c (rpl_fseeko): Complete last commit.
13848         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13849
13850 2009-03-01  Bruno Haible  <bruno@clisp.org>
13851
13852         More support for FreeMiNT.
13853         * lib/fpurge.c (fpurge): Correct last commit.
13854         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13855
13856 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13857
13858         Fix unportable awk script in vc-list-files.
13859         * build-aux/vc-list-files: In the replacement awk script, use
13860         substr with a second argument of 1, not zero.
13861         Report by Simon Josefsson.
13862
13863 2009-02-28  Bruno Haible  <bruno@clisp.org>
13864
13865         More support for FreeMiNT.
13866         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
13867         to FreeMiNT today.
13868         * lib/fwriting.c (fwriting): Likewise.
13869         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
13870
13871 2009-02-28  Bruno Haible  <bruno@clisp.org>
13872
13873         * tests/test-freadseek.c (main): Disable test beyond end of file on
13874         FreeMiNT.
13875         * tests/test-ftello.c (main): Likewise.
13876         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
13877
13878 2009-02-28  Bruno Haible  <bruno@clisp.org>
13879
13880         Add tentative support for FreeMiNT.
13881         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
13882         * lib/fpurge.c (fpurge): Likewise.
13883         * lib/freadable.c (freadable): Likewise.
13884         * lib/freading.c (freading): Likewise.
13885         * lib/freadptr.c (freadptr): Likewise.
13886         * lib/freadseek.c (freadptrinc): Likewise.
13887         * lib/fseeko.c (rpl_fseeko): Likewise.
13888         * lib/fseterr.c (fseterr): Likewise.
13889         * lib/fwritable.c (fwritable): Likewise.
13890         * lib/fwriting.c (fwriting): Likewise.
13891         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
13892         Hourihane.
13893         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13894
13895 2009-02-28  Bruno Haible  <bruno@clisp.org>
13896
13897         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
13898         SIGCHLD.
13899         Reported by Jim Meyering.
13900
13901 2009-02-28  Bruno Haible  <bruno@clisp.org>
13902
13903         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
13904         Mention the results of these tests on various platforms.
13905         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
13906         order.
13907         * doc/posix-functions/printf.texi: Likewise.
13908         * doc/posix-functions/snprintf.texi: Likewise.
13909         * doc/posix-functions/sprintf.texi: Likewise.
13910         * doc/posix-functions/vfprintf.texi: Likewise.
13911         * doc/posix-functions/vprintf.texi: Likewise.
13912         * doc/posix-functions/vsnprintf.texi: Likewise.
13913         * doc/posix-functions/vsprintf.texi: Likewise.
13914         * doc/glibc-functions/obstack_printf.texi: Likewise.
13915         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13916
13917 2009-02-28  Bruno Haible  <bruno@clisp.org>
13918
13919         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
13920         Reported by Loïc Minier <lool@dooz.org>.
13921
13922 2009-02-27  Bruno Haible  <bruno@clisp.org>
13923
13924         * gnulib-tool (func_import): Make the sed expression used to create the
13925         sed script for updating the .gitignore file POSIX compliant.
13926         Reported by Eric Blake.
13927
13928 2009-02-27  Bruno Haible  <bruno@clisp.org>
13929
13930         * gnulib-tool (sed): Don't alias as "sed --posix".
13931         Reported by Eric Blake.
13932
13933 2009-02-27  Bruno Haible  <bruno@clisp.org>
13934
13935         Avoid test link errors.
13936         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
13937         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
13938         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
13939         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
13940         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13941
13942 2009-02-27  Bruno Haible  <bruno@clisp.org>
13943
13944         Avoid spurious "(cached)" in configure output.
13945         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
13946         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
13947         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
13948         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
13949         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
13950         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
13951         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
13952         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
13953         Reported by Eric Blake.
13954
13955 2009-02-27  Eric Blake  <ebb9@byu.net>
13956
13957         printf: fix regression in previous patch
13958         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
13959
13960 2009-02-27  Bruno Haible  <bruno@clisp.org>
13961
13962         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
13963         value.
13964         * lib/stdint.in.h: Likewise.
13965         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
13966
13967 2009-02-27  Eric Blake  <ebb9@byu.net>
13968
13969         doc: mention more functions added in cygwin 1.7.0
13970         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
13971         addition.
13972         * doc/posix-functions/open_wmemstream.texi: Likewise.
13973         * doc/posix-functions/wcsnlen.texi: Likewise.
13974         * doc/posix-functions/wcsnrtombs.texi: Likewise.
13975         * doc/posix-functions/wcstod.texi: Likewise.
13976         * doc/posix-functions/wcstof.texi: Likewise.
13977         * doc/posix-functions/wcstoimax.texi: Likewise.
13978         * doc/posix-functions/wcstok.texi: Likewise.
13979         * doc/posix-functions/wcstoumax.texi: Likewise.
13980
13981         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
13982         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
13983         * doc/posix-functions/fprintf.texi: Update.
13984         * doc/posix-functions/printf.texi: Update.
13985         * doc/posix-functions/snprintf.texi: Update.
13986         * doc/posix-functions/sprintf.texi: Update.
13987         * doc/posix-functions/vfprintf.texi: Update.
13988         * doc/posix-functions/vprintf.texi: Update.
13989         * doc/posix-functions/vsnprintf.texi: Update.
13990         * doc/posix-functions/vsprintf.texi: Update.
13991         * doc/glibc-functions/obstack_printf.texi: Update.
13992         * doc/glibc-functions/obstack_vprintf.texi: Update.
13993
13994 2009-02-26  Eric Blake  <ebb9@byu.net>
13995
13996         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
13997         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
13998         compilation bug by using runtime conversion.
13999         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14000         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
14001         * modules/ceill-tests (Files): Use nan.h.
14002         * modules/floorl-tests (Files): Likewise.
14003         * modules/frexpl-tests (Files): Likewise.
14004         * modules/isnanl-tests (Files): Likewise.
14005         * modules/ldexpl-tests (Files): Likewise.
14006         * modules/roundl-tests (Files): Likewise.
14007         * modules/truncl-tests (Files): Likewise.
14008         * tests/test-ceill.c (main): Use a working NaN.
14009         * tests/test-floorl.c (main): Likewise.
14010         * tests/test-frexpl.c (main): Likewise.
14011         * tests/test-isnan.c (test_long_double): Likewise.
14012         * tests/test-isnanl.h (main): Likewise.
14013         * tests/test-ldexpl.h (main): Likewise.
14014         * tests/test-roundl.h (main): Likewise.
14015         * tests/test-truncl.h (main): Likewise.
14016         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
14017
14018 2009-02-26  Eric Blake  <ebb9@byu.net>
14019             Bruno Haible  <bruno@clisp.org>
14020
14021         Work around a *printf bug with %ls on Solaris.
14022         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
14023         precision is specified, sprintf stops converting the wide string
14024         argument when the number of bytes that have been produced by this
14025         conversion equals or exceeds the precision.
14026         * doc/posix-functions/fprintf.texi: Update.
14027         * doc/posix-functions/printf.texi: Update.
14028         * doc/posix-functions/snprintf.texi: Update.
14029         * doc/posix-functions/sprintf.texi: Update.
14030         * doc/posix-functions/vfprintf.texi: Update.
14031         * doc/posix-functions/vprintf.texi: Update.
14032         * doc/posix-functions/vsnprintf.texi: Update.
14033         * doc/posix-functions/vsprintf.texi: Update.
14034         * doc/glibc-functions/obstack_printf.texi: Update.
14035         * doc/glibc-functions/obstack_vprintf.texi: Update.
14036
14037 2009-02-26  Eric Blake  <ebb9@byu.net>
14038
14039         stdlib: favor compiler check of random.h
14040         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
14041         to avoid an ObjC random.h installed by Swarm.
14042
14043 2009-02-26  Bruno Haible  <bruno@clisp.org>
14044
14045         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
14046         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
14047         Reported by Gary V. Vaughan <gary@gnu.org>.
14048
14049 2009-02-26  Bruno Haible  <bruno@clisp.org>
14050
14051         Fix *printf behaviour regarding the %ls directive.
14052         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
14053         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
14054         NEED_PRINTF_DIRECTIVE_LS.
14055         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
14056         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14057         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14058         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
14059         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
14060         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
14061         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
14062         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14063         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14064         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14065         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14066         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
14067         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14068         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14069         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14070         * doc/posix-functions/fprintf.texi: Update.
14071         * doc/posix-functions/printf.texi: Update.
14072         * doc/posix-functions/snprintf.texi: Update.
14073         * doc/posix-functions/sprintf.texi: Update.
14074         * doc/posix-functions/vfprintf.texi: Update.
14075         * doc/posix-functions/vprintf.texi: Update.
14076         * doc/posix-functions/vsnprintf.texi: Update.
14077         * doc/posix-functions/vsprintf.texi: Update.
14078         * doc/glibc-functions/obstack_printf.texi: Update.
14079         * doc/glibc-functions/obstack_vprintf.texi: Update.
14080         Reported by Eric Blake.
14081
14082 2009-02-25  Bruno Haible  <bruno@clisp.org>
14083
14084         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
14085         with known value.
14086         Reported by Gary V. Vaughan <gary@gnu.org>.
14087
14088 2009-02-25  Bruno Haible  <bruno@clisp.org>
14089
14090         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
14091         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
14092         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
14093         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
14094         Reported by Gary V. Vaughan <gary@gnu.org>.
14095
14096 2009-02-25  Bruno Haible  <bruno@clisp.org>
14097
14098         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
14099         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
14100         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
14101         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
14102         Reported by Gary V. Vaughan <gary@gnu.org>.
14103
14104 2009-02-25  Eric Blake  <ebb9@byu.net>
14105
14106         tests: skip fseek/ftell tests if ungetc is broken
14107         * m4/ungetc.m4: New file.
14108         * modules/fseek-tests: Split test, so ungetc dependency is
14109         separate from rest of test.
14110         * modules/fseeko-tests: Likewise.
14111         * modules/ftell-tests: Likewise.
14112         * modules/ftello-tests: Likewise.
14113         * tests/test-fseek.c (main): Isolate ungetc dependency.
14114         * tests/test-fseeko.c (main): Likewise.
14115         * tests/test-ftell.c (main): Likewise.
14116         * tests/test-ftello.c (main): Likewise.
14117         * tests/test-fseek2.sh: New file.
14118         * tests/test-fseeko2.sh: Likewise.
14119         * tests/test-ftell2.sh: Likewise.
14120         * tests/test-ftello2.sh: Likewise.
14121
14122 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
14123
14124         test-getaddrinfo: fix usage of skip return code 77
14125         * tests/test-gettaddrinfo.c: Return skip code 77 only
14126         for first occurance of skip (4x77 is not 77)
14127
14128 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
14129
14130         strtod: avoid C99 decl-after-statement
14131         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
14132
14133 2009-02-24  Eric Blake  <ebb9@byu.net>
14134
14135         strtod: detect HP-UX 11.31 bug
14136         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
14137         Reported by Gary V. Vaughan.
14138
14139 2009-02-23  Bruno Haible  <bruno@clisp.org>
14140
14141         Fix invalid read past end of memory block.
14142         * lib/vasnprintf.c (DCHAR_SET): Define.
14143         (local_wcslen): Define only when needed.
14144         (local_strnlen, local_wcsnlen): New functions.
14145         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
14146         directives that involve a conversion ourselves.
14147         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
14148         wcsnlen, mbrtowc, wcrtomb.
14149         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
14150         * tests/test-vasprintf-posix.c (test_function): Likewise.
14151         * tests/test-snprintf-posix.h (test_function): Likewise.
14152         * tests/test-sprintf-posix.h (test_function): Likewise.
14153         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14154
14155 2009-02-22  Bruno Haible  <bruno@clisp.org>
14156
14157         Implement new clarified decomposition of Hangul syllables.
14158         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
14159         of type LTV, return only a pairwise decomposition.
14160         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
14161         Likewise.
14162         * tests/uninorm/test-decomposition.c (main): Updated expected result.
14163         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
14164         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
14165
14166 2009-02-22  Bruno Haible  <bruno@clisp.org>
14167
14168         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
14169         zero-length results and shrink excess allocated memory.
14170         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
14171         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
14172         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
14173         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
14174         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
14175         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
14176         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
14177         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
14178         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
14179         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
14180         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
14181         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
14182
14183 2009-02-21  Bruno Haible  <bruno@clisp.org>
14184
14185         * doc/gnulib.texi: Include safe-alloc.texi earlier.
14186         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
14187         spaces after a period. Put a space between a macro name and its
14188         argument list. Trivial rewordings.
14189         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
14190         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
14191         (main): Return 0 explicitly.
14192
14193 2009-02-21  Bruno Haible  <bruno@clisp.org>
14194
14195         Tests for module 'uninorm/filter'.
14196         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
14197         * modules/uninorm/filter-tests: New file.
14198
14199         New module 'uninorm/filter'.
14200         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
14201         uninorm_filter_flush, uninorm_filter_free): New declarations.
14202         * lib/uninorm/uninorm-filter.c: New file.
14203         * modules/uninorm/filter: New file.
14204
14205 2009-02-21  Bruno Haible  <bruno@clisp.org>
14206
14207         Tests for module 'uninorm/nfkc'.
14208         * tests/uninorm/test-nfkc.c: New file.
14209         * tests/uninorm/test-u8-nfkc.c: New file.
14210         * tests/uninorm/test-u16-nfkc.c: New file.
14211         * tests/uninorm/test-u32-nfkc.c: New file.
14212         * tests/uninorm/test-u32-nfkc-big.sh: New file.
14213         * tests/uninorm/test-u32-nfkc-big.c: New file.
14214         * modules/uninorm/nfkc-tests: New file.
14215
14216         New module 'uninorm/nfkc'.
14217         * lib/uninorm/nfkc.c: New file.
14218         * modules/uninorm/nfkc: New file.
14219
14220         Tests for module 'uninorm/nfkd'.
14221         * tests/uninorm/test-nfkd.c: New file.
14222         * tests/uninorm/test-u8-nfkd.c: New file.
14223         * tests/uninorm/test-u16-nfkd.c: New file.
14224         * tests/uninorm/test-u32-nfkd.c: New file.
14225         * tests/uninorm/test-u32-nfkd-big.sh: New file.
14226         * tests/uninorm/test-u32-nfkd-big.c: New file.
14227         * modules/uninorm/nfkd-tests: New file.
14228
14229         New module 'uninorm/nfkd'.
14230         * lib/uninorm/nfkd.c: New file.
14231         * modules/uninorm/nfkd: New file.
14232
14233         Tests for module 'uninorm/nfc'.
14234         * tests/uninorm/test-nfc.c: New file.
14235         * tests/uninorm/test-u8-nfc.c: New file.
14236         * tests/uninorm/test-u16-nfc.c: New file.
14237         * tests/uninorm/test-u32-nfc.c: New file.
14238         * tests/uninorm/test-u32-nfc-big.sh: New file.
14239         * tests/uninorm/test-u32-nfc-big.c: New file.
14240         * modules/uninorm/nfc-tests: New file.
14241
14242         New module 'uninorm/nfc'.
14243         * lib/uninorm/nfc.c: New file.
14244         * modules/uninorm/nfc: New file.
14245
14246         Tests for module 'uninorm/nfd'.
14247         * tests/uninorm/test-nfd.c: New file.
14248         * tests/uninorm/test-u8-nfd.c: New file.
14249         * tests/uninorm/test-u16-nfd.c: New file.
14250         * tests/uninorm/test-u32-nfd.c: New file.
14251         * tests/uninorm/test-u32-nfd-big.sh: New file.
14252         * tests/uninorm/test-u32-nfd-big.c: New file.
14253         * tests/uninorm/test-u32-normalize-big.h: New file.
14254         * tests/uninorm/test-u32-normalize-big.c: New file.
14255         * tests/uninorm/NormalizationTest.txt: New file, created from
14256         Unicode 5.1.0 NormalizationTest.txt.
14257         * modules/uninorm/nfd-tests: New file.
14258
14259         New module 'uninorm/nfd'.
14260         * lib/uninorm/nfd.c: New file.
14261         * modules/uninorm/nfd: New file.
14262
14263         New module 'uninorm/u32-normalize'.
14264         * lib/uninorm/u32-normalize.c: New file.
14265         * modules/uninorm/u32-normalize: New file.
14266
14267         New module 'uninorm/u16-normalize'.
14268         * lib/uninorm/u16-normalize.c: New file.
14269         * modules/uninorm/u16-normalize: New file.
14270
14271         New module 'uninorm/u8-normalize'.
14272         * lib/uninorm/u8-normalize.c: New file.
14273         * lib/uninorm/normalize-internal.h: New file.
14274         * lib/uninorm/u-normalize-internal.h: New file.
14275         * modules/uninorm/u8-normalize: New file.
14276
14277         New module 'uninorm/decompose-internal'.
14278         * lib/uninorm/decompose-internal.c: New file.
14279         * modules/uninorm/decompose-internal: New file.
14280
14281         Tests for module 'uninorm/composition'.
14282         * tests/uninorm/test-composition.c: New file.
14283         * modules/uninorm/composition-tests: New file.
14284
14285         New module 'uninorm/composition'.
14286         * lib/uninorm/composition.c: New file.
14287         * lib/uninorm/composition-table.gperf: New file, generated by
14288         gen-uni-tables.
14289         * modules/uninorm/composition: New file.
14290
14291         Tests for module 'uninorm/compat-decomposition'.
14292         * tests/uninorm/test-compat-decomposition.c: New file.
14293         * modules/uninorm/compat-decomposition-tests: New file.
14294
14295         New module 'uninorm/compat-decomposition'.
14296         * lib/uninorm/decompose-internal.h: New file.
14297         * lib/uninorm/compat-decomposition.c: New file.
14298         * modules/uninorm/compat-decomposition: New file.
14299
14300         Tests for module 'uninorm/canonical-decomposition'.
14301         * tests/uninorm/test-canonical-decomposition.c: New file.
14302         * modules/uninorm/canonical-decomposition-tests: New file.
14303
14304         New module 'uninorm/canonical-decomposition'.
14305         * lib/uninorm/canonical-decomposition.c: New file.
14306         * modules/uninorm/canonical-decomposition: New file.
14307
14308         Tests for module 'uninorm/decomposition'.
14309         * tests/uninorm/test-decomposition.c: New file.
14310         * modules/uninorm/decomposition-tests: New file.
14311
14312         New module 'uninorm/decomposition'.
14313         * lib/uninorm/decomposition.c: New file.
14314         * modules/uninorm/decomposition: New file.
14315
14316         New module 'uninorm/decomposition-table'.
14317         * lib/uninorm/decomposition-table.h: New file.
14318         * lib/uninorm/decomposition-table.c: New file.
14319         * lib/uninorm/decomposition-table1.h: New file, generated by
14320         gen-uni-tables.
14321         * lib/uninorm/decomposition-table2.h: New file, generated by
14322         gen-uni-tables.
14323         * modules/uninorm/decomposition-table: New file.
14324
14325         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
14326         (UC_DECOMP_*): New enumeration items.
14327         (get_decomposition): New function.
14328         (struct decomp_table): New type.
14329         (output_decomposition, output_decomposition_tables): New functions.
14330         (unicode_composition_exclusions): New variable.
14331         (fill_composition_exclusions, debug_output_composition_tables): New
14332         functions.
14333         (main): Accept one more argument. Invoke fill_composition_exclusions.
14334         Output decomposition and composition tables.
14335
14336         New module 'uninorm/base'.
14337         * lib/uninorm.h: New file.
14338         * lib/unictype.h: Update comment.
14339         * modules/uninorm/base: New file.
14340
14341 2009-02-21  David Lutterkort  <lutter@redhat.com>
14342
14343         Tests for module 'safe-alloc'.
14344         * tests/test-safe-alloc.c: New file.
14345         * modules/safe-alloc-tests: New file.
14346
14347         New module 'safe-alloc'.
14348         * lib/safe-alloc.h: New file.
14349         * lib/safe-alloc.c: New file.
14350         * m4/safe-alloc.m4: New file.
14351         * modules/safe-alloc: New file.
14352         * doc/safe-alloc.texi: New file.
14353         * doc/gnulib.texi: Include it.
14354         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
14355         safe-alloc.
14356
14357 2009-02-18  Bruno Haible  <bruno@clisp.org>
14358
14359         Fix link error on non-glibc systems.
14360         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
14361         variable.
14362         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14363
14364 2009-02-18  Jim Meyering  <meyering@redhat.com>
14365
14366         fts: avoid used-uninitialized error due to recent change
14367         * lib/fts.c (fts_read): Guard uses of the new member,
14368         parent->fts_n_dirs_remaining, since it's not relevant for
14369         the parent of a directory specified on the command-line.
14370
14371 2009-02-17  James Youngman  <jay@gnu.org>
14372             Bruno Haible  <bruno@clisp.org>
14373
14374         * m4/include_next.m4: Reformulate comment.
14375
14376 2009-02-16  Jim Meyering  <meyering@redhat.com>
14377
14378         fts: add #if guards so that the fts_lgpl module still builds
14379         * lib/fts.c: Guard just-added hash-table-using parts with
14380         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
14381         Reported by Simon Josefsson.
14382
14383 2009-02-15  Bruno Haible  <bruno@clisp.org>
14384
14385         * modules/array-mergesort-tests: New file.
14386         * tests/test-array-mergesort.c: New file.
14387
14388         New module 'array-mergesort'.
14389         * modules/array-mergesort: New file.
14390         * lib/array-mergesort.h: New file.
14391
14392 2009-02-15  Bruno Haible  <bruno@clisp.org>
14393
14394         Fix 2009-02-07 commit.
14395         * lib/gen-uni-tables.c (output_predicate, output_category,
14396         output_combclass, output_bidi_category, output_decimal_digit,
14397         output_digit, output_numeric, output_mirror, output_scripts,
14398         output_ident_category, output_simple_mapping): Fix format directives.
14399         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
14400
14401 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
14402
14403         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
14404         fixes are available from IBM.
14405
14406 2009-02-13  Jim Meyering  <meyering@redhat.com>
14407
14408         fts: arrange not to stat non-directories in more cases
14409         This makes GNU find (when it doesn't need to stat each file)
14410         *much* more efficient at traversing reiserfs file systems.
14411         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
14412         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
14413         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
14414         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
14415         (leaf_optimization_applies): New function.
14416         (LCO_hash, LCO_compare): New helper functions.
14417         (link_count_optimize_ok): New function.
14418         (fts_stat): Initialize new member (if dir).
14419         (fts_read): Decrement parent's fts_n_dirs_remaining count if
14420         we've just stat'ed a directory.  Skip the stat call when possible.
14421         ---
14422         Note this AFS-related exchange:
14423         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
14424         and note find's pioctl call in find/fstype.c.
14425         But that is necessary only if you want to enable the
14426         optimization for AFS, and for now, I don't.
14427
14428         fts: move a function definition "up" (no semantic change)
14429         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
14430         "up" to precede upcoming use of a related function.
14431
14432 2009-02-11  Jim Meyering  <meyering@redhat.com>
14433
14434         fts: correct internal computation of nlinks (optimization-related)
14435         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
14436         whether the current entry is a directory, so don't test it.
14437
14438 2009-02-10  Bruno Haible  <bruno@clisp.org>
14439
14440         Tests for module 'uniwbrk/ulc-wordbreaks'.
14441         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
14442         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
14443         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
14444
14445         Tests for module 'uniwbrk/u32-wordbreaks'.
14446         * modules/uniwbrk/u32-wordbreaks-tests: New file.
14447         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
14448
14449         Tests for module 'uniwbrk/u16-wordbreaks'.
14450         * modules/uniwbrk/u16-wordbreaks-tests: New file.
14451         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
14452
14453         Tests for module 'uniwbrk/u8-wordbreaks'.
14454         * modules/uniwbrk/u8-wordbreaks-tests: New file.
14455         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
14456
14457 2009-02-10  Bruno Haible  <bruno@clisp.org>
14458
14459         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
14460         property.
14461         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
14462         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
14463         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
14464
14465 2009-02-10  Simon Josefsson  <simon@josefsson.org>
14466
14467         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
14468         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
14469
14470 2009-02-10  Bruno Haible  <bruno@clisp.org>
14471
14472         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
14473         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
14474         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
14475         * lib/unilbrk/u8-possible-linebreaks.c: Update.
14476         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
14477         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
14478
14479 2009-02-09  Simon Josefsson  <simon@josefsson.org>
14480
14481         * lib/sockets.h (gl_fd_to_handle): New function.
14482
14483         * tests/test-sockets.c: Call gl_fd_to_handle.
14484
14485 2009-02-09  Bruno Haible  <bruno@clisp.org>
14486
14487         * doc/havelib.texi: Document the conventions on bi-arch systems.
14488
14489 2009-02-08  Bruno Haible  <bruno@clisp.org>
14490
14491         Document the AC_LIB_LINKFLAGS macro.
14492         * doc/havelib.texi: New file, mostly written on 2005-05-24.
14493         * doc/gnulib.texi: Include it.
14494
14495 2009-02-08  Bruno Haible  <bruno@clisp.org>
14496
14497         Fix wrong order of sections, compared to TOC.
14498         * doc/gnulib.texi: Include relocatable-maint.texi after the
14499         "Regular expressions" node, not before.
14500
14501 2009-02-08  Bruno Haible  <bruno@clisp.org>
14502
14503         Tests for module 'unicase/totitle'.
14504         * modules/unicase/totitle-tests: New file.
14505
14506         Tests for module 'unicase/tolower'.
14507         * modules/unicase/tolower-tests: New file.
14508
14509         Tests for module 'unicase/toupper'.
14510         * modules/unicase/toupper-tests: New file.
14511         * tests/unicase/test-mapping-part1.h: New file.
14512         * tests/unicase/test-mapping-part2.h: New file.
14513
14514         New module 'unicase/totitle'.
14515         * modules/unicase/totitle: New file.
14516         * lib/unicase/totitle.c: New file.
14517
14518         New module 'unicase/tolower'.
14519         * modules/unicase/tolower: New file.
14520         * lib/unicase/tolower.c: New file.
14521
14522         New module 'unicase/toupper'.
14523         * modules/unicase/toupper: New file.
14524         * lib/unicase/toupper.c: New file.
14525         * lib/unicase/simple-mapping.h: New file.
14526
14527         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
14528         (mapping_table): New structure.
14529         (output_simple_mapping): New function.
14530         (main): Invoke output_simple_mapping_test and output_simple_mapping.
14531         * modules/gen-uni-tables (Description): Update.
14532         * lib/unicase/toupper.h: New file, automatically generated by
14533         gen-uni-tables.
14534         * lib/unicase/tolower.h: New file, automatically generated by
14535         gen-uni-tables.
14536         * lib/unicase/totitle.h: New file, automatically generated by
14537         gen-uni-tables.
14538         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
14539         gen-uni-tables.
14540         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
14541         gen-uni-tables.
14542         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
14543         gen-uni-tables.
14544
14545         New module 'unicase/base'.
14546         * modules/unicase/base: New file.
14547         * lib/unicase.h: New file.
14548
14549 2009-02-08  Bruno Haible  <bruno@clisp.org>
14550
14551         New module 'uniwbrk/ulc-wordbreaks'.
14552         * modules/uniwbrk/ulc-wordbreaks: New file.
14553         * lib/uniwbrk/ulc-wordbreaks.c: New file.
14554
14555         New module 'uniwbrk/u32-wordbreaks'.
14556         * modules/uniwbrk/u32-wordbreaks: New file.
14557         * lib/uniwbrk/u32-wordbreaks.c: New file.
14558
14559         New module 'uniwbrk/u16-wordbreaks'.
14560         * modules/uniwbrk/u16-wordbreaks: New file.
14561         * lib/uniwbrk/u16-wordbreaks.c: New file.
14562
14563         New module 'uniwbrk/u8-wordbreaks'.
14564         * modules/uniwbrk/u8-wordbreaks: New file.
14565         * lib/uniwbrk/u8-wordbreaks.c: New file.
14566         * lib/uniwbrk/u-wordbreaks.h: New file.
14567
14568         New module 'uniwbrk/table'.
14569         * modules/uniwbrk/table: New file.
14570         * lib/uniwbrk/wbrktable.h: New file.
14571         * lib/uniwbrk/wbrktable.c: New file.
14572
14573         New module 'uniwbrk/wordbreak-property'.
14574         * modules/uniwbrk/wordbreak-property: New file.
14575         * lib/uniwbrk/wordbreak-property.c: New file.
14576
14577         * lib/gen-uni-tables.c (WBP_*): New enum items.
14578         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
14579         (unicode_org_wbp): New variable.
14580         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
14581         New functions.
14582         (wbp_table): New structure.
14583         (output_wbp, output_wbrk_tables): New functions.
14584         (main): Accept additional argument. Invoke fill_org_wbp,
14585         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
14586         output_wbrk_tables.
14587         * modules/gen-uni-tables (Description): Update.
14588         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
14589         gen-uni-tables.
14590
14591         New module 'uniwbrk/base'.
14592         * modules/uniwbrk/base: New file.
14593         * lib/uniwbrk.h: New file.
14594
14595 2009-02-08  Bruno Haible  <bruno@clisp.org>
14596
14597         Update to Unicode 5.1.0.
14598         * lib/gen-uni-tables.c (is_property_alphabetic): Include
14599         U+2185..U+2188.
14600         (is_property_default_ignorable_code_point): Don't include characters
14601         of category Cc or Cs and not-a-characters.
14602         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
14603         U+0D79, U+109E, U+109F, U+A60C.
14604         * lib/unictype/bidi_of.h: Regenerated.
14605         * lib/unictype/blocks.h: Regenerated.
14606         * lib/unictype/categ_C.h: Regenerated.
14607         * lib/unictype/categ_Cf.h: Regenerated.
14608         * lib/unictype/categ_Cn.h: Regenerated.
14609         * lib/unictype/categ_L.h: Regenerated.
14610         * lib/unictype/categ_Ll.h: Regenerated.
14611         * lib/unictype/categ_Lm.h: Regenerated.
14612         * lib/unictype/categ_Lo.h: Regenerated.
14613         * lib/unictype/categ_Lu.h: Regenerated.
14614         * lib/unictype/categ_M.h: Regenerated.
14615         * lib/unictype/categ_Mc.h: Regenerated.
14616         * lib/unictype/categ_Me.h: Regenerated.
14617         * lib/unictype/categ_Mn.h: Regenerated.
14618         * lib/unictype/categ_N.h: Regenerated.
14619         * lib/unictype/categ_Nd.h: Regenerated.
14620         * lib/unictype/categ_Nl.h: Regenerated.
14621         * lib/unictype/categ_No.h: Regenerated.
14622         * lib/unictype/categ_P.h: Regenerated.
14623         * lib/unictype/categ_Pd.h: Regenerated.
14624         * lib/unictype/categ_Pe.h: Regenerated.
14625         * lib/unictype/categ_Pf.h: Regenerated.
14626         * lib/unictype/categ_Pi.h: Regenerated.
14627         * lib/unictype/categ_Po.h: Regenerated.
14628         * lib/unictype/categ_Ps.h: Regenerated.
14629         * lib/unictype/categ_S.h: Regenerated.
14630         * lib/unictype/categ_Sk.h: Regenerated.
14631         * lib/unictype/categ_Sm.h: Regenerated.
14632         * lib/unictype/categ_So.h: Regenerated.
14633         * lib/unictype/categ_of.h: Regenerated.
14634         * lib/unictype/combining.h: Regenerated.
14635         * lib/unictype/ctype_alnum.h: Regenerated.
14636         * lib/unictype/ctype_alpha.h: Regenerated.
14637         * lib/unictype/ctype_graph.h: Regenerated.
14638         * lib/unictype/ctype_lower.h: Regenerated.
14639         * lib/unictype/ctype_print.h: Regenerated.
14640         * lib/unictype/ctype_punct.h: Regenerated.
14641         * lib/unictype/ctype_upper.h: Regenerated.
14642         * lib/unictype/decdigit.h: Regenerated.
14643         * lib/unictype/digit.h: Regenerated.
14644         * lib/unictype/mirror.h: Regenerated.
14645         * lib/unictype/numeric.h: Regenerated.
14646         * lib/unictype/pr_alphabetic.h: Regenerated.
14647         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
14648         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
14649         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
14650         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
14651         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
14652         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
14653         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
14654         * lib/unictype/pr_combining.h: Regenerated.
14655         * lib/unictype/pr_dash.h: Regenerated.
14656         * lib/unictype/pr_decimal_digit.h: Regenerated.
14657         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
14658         * lib/unictype/pr_deprecated.h: Regenerated.
14659         * lib/unictype/pr_diacritic.h: Regenerated.
14660         * lib/unictype/pr_extender.h: Regenerated.
14661         * lib/unictype/pr_format_control.h: Regenerated.
14662         * lib/unictype/pr_grapheme_base.h: Regenerated.
14663         * lib/unictype/pr_grapheme_extend.h: Regenerated.
14664         * lib/unictype/pr_grapheme_link.h: Regenerated.
14665         * lib/unictype/pr_id_continue.h: Regenerated.
14666         * lib/unictype/pr_id_start.h: Regenerated.
14667         * lib/unictype/pr_ideographic.h: Regenerated.
14668         * lib/unictype/pr_ignorable_control.h: Regenerated.
14669         * lib/unictype/pr_lowercase.h: Regenerated.
14670         * lib/unictype/pr_math.h: Regenerated.
14671         * lib/unictype/pr_numeric.h: Regenerated.
14672         * lib/unictype/pr_other_alphabetic.h: Regenerated.
14673         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
14674         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
14675         * lib/unictype/pr_other_id_continue.h: Regenerated.
14676         * lib/unictype/pr_other_lowercase.h: Regenerated.
14677         * lib/unictype/pr_other_math.h: Regenerated.
14678         * lib/unictype/pr_punctuation.h: Regenerated.
14679         * lib/unictype/pr_sentence_terminal.h: Regenerated.
14680         * lib/unictype/pr_soft_dotted.h: Regenerated.
14681         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
14682         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
14683         * lib/unictype/pr_unified_ideograph.h: Regenerated.
14684         * lib/unictype/pr_uppercase.h: Regenerated.
14685         * lib/unictype/pr_xid_continue.h: Regenerated.
14686         * lib/unictype/pr_xid_start.h: Regenerated.
14687         * lib/unictype/pr_zero_width.h: Regenerated.
14688         * lib/unictype/scripts.h: Regenerated.
14689         * lib/unictype/scripts_byname.gperf: Regenerated.
14690         * lib/unictype/sy_java_ident.h: Regenerated.
14691         * lib/unilbrk/lbrkprop1.h: Regenerated.
14692         * lib/unilbrk/lbrkprop2.h: Regenerated.
14693         * tests/unictype/test-categ_C.c: Regenerated.
14694         * tests/unictype/test-categ_Cf.c: Regenerated.
14695         * tests/unictype/test-categ_Cn.c: Regenerated.
14696         * tests/unictype/test-categ_L.c: Regenerated.
14697         * tests/unictype/test-categ_Ll.c: Regenerated.
14698         * tests/unictype/test-categ_Lm.c: Regenerated.
14699         * tests/unictype/test-categ_Lo.c: Regenerated.
14700         * tests/unictype/test-categ_Lu.c: Regenerated.
14701         * tests/unictype/test-categ_M.c: Regenerated.
14702         * tests/unictype/test-categ_Mc.c: Regenerated.
14703         * tests/unictype/test-categ_Me.c: Regenerated.
14704         * tests/unictype/test-categ_Mn.c: Regenerated.
14705         * tests/unictype/test-categ_N.c: Regenerated.
14706         * tests/unictype/test-categ_Nd.c: Regenerated.
14707         * tests/unictype/test-categ_Nl.c: Regenerated.
14708         * tests/unictype/test-categ_No.c: Regenerated.
14709         * tests/unictype/test-categ_P.c: Regenerated.
14710         * tests/unictype/test-categ_Pd.c: Regenerated.
14711         * tests/unictype/test-categ_Pe.c: Regenerated.
14712         * tests/unictype/test-categ_Pf.c: Regenerated.
14713         * tests/unictype/test-categ_Pi.c: Regenerated.
14714         * tests/unictype/test-categ_Po.c: Regenerated.
14715         * tests/unictype/test-categ_Ps.c: Regenerated.
14716         * tests/unictype/test-categ_S.c: Regenerated.
14717         * tests/unictype/test-categ_Sk.c: Regenerated.
14718         * tests/unictype/test-categ_Sm.c: Regenerated.
14719         * tests/unictype/test-categ_So.c: Regenerated.
14720         * tests/unictype/test-ctype_alnum.c: Regenerated.
14721         * tests/unictype/test-ctype_alpha.c: Regenerated.
14722         * tests/unictype/test-ctype_graph.c: Regenerated.
14723         * tests/unictype/test-ctype_lower.c: Regenerated.
14724         * tests/unictype/test-ctype_print.c: Regenerated.
14725         * tests/unictype/test-ctype_punct.c: Regenerated.
14726         * tests/unictype/test-ctype_upper.c: Regenerated.
14727         * tests/unictype/test-decdigit.h: Regenerated.
14728         * tests/unictype/test-digit.h: Regenerated.
14729         * tests/unictype/test-numeric.h: Regenerated.
14730         * tests/unictype/test-pr_alphabetic.c: Regenerated.
14731         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
14732         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
14733         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
14734         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
14735         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
14736         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
14737         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
14738         * tests/unictype/test-pr_combining.c: Regenerated.
14739         * tests/unictype/test-pr_dash.c: Regenerated.
14740         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
14741         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
14742         * tests/unictype/test-pr_deprecated.c: Regenerated.
14743         * tests/unictype/test-pr_diacritic.c: Regenerated.
14744         * tests/unictype/test-pr_extender.c: Regenerated.
14745         * tests/unictype/test-pr_format_control.c: Regenerated.
14746         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
14747         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
14748         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
14749         * tests/unictype/test-pr_id_continue.c: Regenerated.
14750         * tests/unictype/test-pr_id_start.c: Regenerated.
14751         * tests/unictype/test-pr_ideographic.c: Regenerated.
14752         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
14753         * tests/unictype/test-pr_lowercase.c: Regenerated.
14754         * tests/unictype/test-pr_math.c: Regenerated.
14755         * tests/unictype/test-pr_numeric.c: Regenerated.
14756         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
14757         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
14758         Regenerated.
14759         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
14760         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
14761         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
14762         * tests/unictype/test-pr_other_math.c: Regenerated.
14763         * tests/unictype/test-pr_punctuation.c: Regenerated.
14764         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
14765         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
14766         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
14767         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
14768         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
14769         * tests/unictype/test-pr_uppercase.c: Regenerated.
14770         * tests/unictype/test-pr_xid_continue.c: Regenerated.
14771         * tests/unictype/test-pr_xid_start.c: Regenerated.
14772         * tests/unictype/test-pr_zero_width.c: Regenerated.
14773
14774         Update to Unicode 5.1.0.
14775         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
14776         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
14777         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
14778         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
14779         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
14780         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
14781         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
14782         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
14783         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
14784         (nonspacing_table_ind): Update.
14785         * tests/uniwidth/test-uc_width2.sh: Update expected result.
14786
14787         Update to Unicode 5.1.0.
14788         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
14789         code transform.
14790         * lib/uniname/uniname.c (unicode_character_name,
14791         unicode_name_character): Add the range 0x1Fxxx to the code transform.
14792         * lib/uniname/uninames.h: Regenerated.
14793         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
14794
14795 2009-02-07  Bruno Haible  <bruno@clisp.org>
14796
14797         Merge gen-ctype and gen-lbrk into a single program.
14798         * lib/gen-uni-tables.c: New file, incorporating
14799         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
14800         Add directory prefixes to the names of the generated files.
14801         * lib/unictype/gen-ctype.c: Remove file.
14802         * lib/unilbrk/gen-lbrk.c: Remove file.
14803         * modules/gen-uni-tables: New file.
14804         * modules/unictype/gen-ctype: Remove file.
14805         * modules/unilbrk/gen-lbrk: Remove file.
14806
14807 2009-02-07  Bruno Haible  <bruno@clisp.org>
14808
14809         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
14810
14811         New module 'unistr/u32-strcoll'.
14812         * modules/unistr/u32-strcoll: New file.
14813         * lib/unistr/u32-strcoll.c: New file.
14814
14815         New module 'unistr/u16-strcoll'.
14816         * modules/unistr/u16-strcoll: New file.
14817         * lib/unistr/u16-strcoll.c: New file.
14818
14819         New module 'unistr/u8-strcoll'.
14820         * modules/unistr/u8-strcoll: New file.
14821         * lib/unistr/u8-strcoll.c: New file.
14822         * lib/unistr/u-strcoll.h: New file.
14823
14824 2009-02-07  Bruno Haible  <bruno@clisp.org>
14825
14826         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
14827         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
14828         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
14829         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
14830         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
14831         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
14832
14833 2009-02-07  Bruno Haible  <bruno@clisp.org>
14834
14835         Make 64-bit clean.
14836         * lib/unictype/gen-ctype.c (output_predicate, output_category,
14837         output_combclass, output_bidi_category, output_decimal_digit,
14838         output_digit, output_numeric, output_mirror, output_scripts,
14839         output_ident_category): Use proper width specifier in format strings.
14840
14841 2009-02-07  Bruno Haible  <bruno@clisp.org>
14842
14843         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
14844         failure behaviour.
14845
14846 2009-02-07  Jim Meyering  <meyering@redhat.com>
14847
14848         regex: avoid compilation failure with upcoming gcc-4.4
14849         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
14850         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
14851         "... error: integer overflow in preprocessor expression".
14852
14853 2009-02-05  Ben Pfaff  <blp@gnu.org>
14854
14855         Fix link errors on Windows when close module is used.
14856         * modules/close: Add $(LIB_CLOSE) to Link section.
14857         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
14858         $(LIB_CLOSE) on Windows.
14859
14860 2009-02-05  Jim Meyering  <meyering@redhat.com>
14861
14862         still avoid unused-parameter warnings, but do it cleanly
14863         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
14864         (get_fs_usage): Cast to void instead.
14865         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
14866         (dev_from_mount_options, read_file_system_list): Cast to void.
14867         Prompted by Bruno Haible.
14868
14869 2009-02-04  Jim Meyering  <meyering@redhat.com>
14870
14871         fsusage.c: correct copyright year
14872         * lib/fsusage.c: Reflect year in which the change is pushed into
14873
14874         avoid misc. warnings
14875         * lib/fsusage.c (UNUSED_PARAM): Define.
14876         (get_fs_usage): Mark parameter "disk" as unused.
14877         * lib/getugroups.c (getgrent): Use "void" in prototype.
14878         * lib/mountlist.c: Mark unused parameters.
14879         (read_file_system_list): Declare a local with "const".
14880         * lib/nanosleep.c (getnow): Declare static.
14881         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
14882
14883         dirfd: set errno upon failure
14884         * lib/dirfd.c: Include <errno.h>.
14885         Set errno to ENOTSUP when returning -1.
14886         * modules/dirfd (Depends-on): Add errno.
14887         Suggested by John Kodis <kodis@comcast.net>.
14888
14889 2009-02-01  Bruno Haible  <bruno@clisp.org>
14890
14891         Don't assume sizeof (long) >= sizeof (void *).
14892         * lib/memcmp.c: Include stdint.h.
14893         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
14894         srcp2 to 'const byte *'.
14895         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
14896         types to uintptr_t.
14897         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
14898         * modules/memcmp (Depends-on): Add stdint.
14899         Reported by Ozkan Sezer <sezeroz@gmail.com>.
14900
14901 2009-01-30  Eric Blake  <ebb9@byu.net>
14902
14903         fix more require-before-expand issues
14904         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
14905         expand, AC_PROG_AWK.
14906         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
14907
14908 2009-01-28  Eric Blake  <ebb9@byu.net>
14909
14910         version-etc: use consistent URL formatting
14911         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
14912         Improve formatting.  Use fputs for string without %.
14913
14914 2009-01-28  Jim Meyering  <meyering@redhat.com>
14915
14916         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
14917         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
14918         "underquoted definition of NAME" from autoconf-2.59.
14919
14920 2009-01-28  Bruno Haible  <bruno@clisp.org>
14921
14922         * doc/gnulib.texi: Add "Obsolete modules" to index.
14923
14924 2009-01-28  Jim Meyering  <meyering@redhat.com>
14925
14926         useless-if-before-free: recognize more variants
14927         * build-aux/useless-if-before-free: Also recognize e.g.,
14928         if (NULL != p) free (p);
14929
14930 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
14931
14932         test-getaddrinfo: skip (don't fail) this test when there's no network
14933         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
14934         on the presumption that it means you lack network access.
14935
14936 2009-01-26  Jim Meyering  <meyering@redhat.com>
14937
14938         fflush: avoid warnings on modern systems
14939         * lib/fflush.c (rpl_fflush): Move declarations of locals,
14940         pos and result, into scopes where they're used.
14941
14942 2009-01-26  Eric Blake  <ebb9@byu.net>
14943
14944         Silence warning reintroduced by recent extensions patch.
14945         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
14946         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
14947         autoconf.
14948
14949         Backport improved autoconf semantics of AC_DEFUN_ONCE.
14950         * m4/00gnulib.m4: New file.
14951         * gnulib-tool (func_get_filelist): Always use it.
14952         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
14953         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
14954
14955 2009-01-25  Bruno Haible  <bruno@clisp.org>
14956
14957         Make test-quotearg work on MacOS X and AIX.
14958         * tests/test-quotearg.sh: New file.
14959         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
14960         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
14961         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
14962         include <libintl.h>.
14963         (fake_locale): Remove variable.
14964         (gettext, dgettext, dcgettext): Remove functions.
14965         (main): Instead of setting a fake locale, set a real locale. Call
14966         textdomain and bindtextdomain.
14967         * modules/quotearg-tests (Files): Add the new files.
14968         (Depends-on): Add gettext, setenv, unsetenv.
14969         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
14970         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
14971         Augment TESTS_ENVIRONMENT.
14972
14973 2009-01-25  Bruno Haible  <bruno@clisp.org>
14974
14975         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
14976         fr_FR.ISO8859-1 locale on MacOS X.
14977         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
14978         ja_JP.eucJP locale on MacOS X.
14979         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
14980         zh_CN.GB18030 locale on MacOS X.
14981
14982 2009-01-25  Bruno Haible  <bruno@clisp.org>
14983
14984         Avoid link errors on MacOS X 10.3.
14985         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
14986         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
14987
14988 2009-01-25  Bruno Haible  <bruno@clisp.org>
14989
14990         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
14991         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
14992         * modules/pipe (Files): Remove m4/posix_spawn.m4.
14993         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
14994         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
14995         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
14996         posix_spawnattr_init, posix_spawnattr_setsigmask,
14997         posix_spawnattr_setflags, posix_spawnattr_destroy.
14998
14999         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15000         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
15001         * modules/execute (Files): Remove m4/posix_spawn.m4.
15002         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15003         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15004         posix_spawnattr_init, posix_spawnattr_setsigmask,
15005         posix_spawnattr_setflags, posix_spawnattr_destroy.
15006
15007 2009-01-25  Bruno Haible  <bruno@clisp.org>
15008
15009         * lib/glthread/threadlib.c: Include <stdlib.h>.
15010
15011 2009-01-25  Bruno Haible  <bruno@clisp.org>
15012
15013         * lib/glthread/threadlib.c (dummy): New declaration.
15014
15015 2009-01-25  Bruno Haible  <bruno@clisp.org>
15016
15017         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
15018         multibyte characters also for the GB18030 encoding. Don't crash when
15019         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
15020
15021 2009-01-25  Bruno Haible  <bruno@clisp.org>
15022
15023         Avoid redefining 'struct random_data' on OSF/1 5.1.
15024         * lib/stdlib.in.h: Include <random.h> if it exists.
15025         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
15026         HAVE_RANDOM_H. Include <random.h> when testing whether
15027         'struct random_data' exists.
15028         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
15029
15030 2009-01-25  Bruno Haible  <bruno@clisp.org>
15031
15032         Don't install charset.alias on MacOS X >= 10.3.
15033         * lib/localcharset.c (DARWIN7): New macro.
15034         (get_charset_aliases): Hardcode the result for Darwin7.
15035         * modules/localcharset (install-exec-local): Don't install
15036         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
15037
15038 2009-01-25  Bruno Haible  <bruno@clisp.org>
15039
15040         Don't install charset.alias on mingw and Cygwin.
15041         * modules/localcharset (install-exec-local): Don't install
15042         charset.alias on mingw and Cygwin, if the file does not yet exist.
15043         The result for these platforms is hardcoded in localcharset.c.
15044
15045 2009-01-25  Bruno Haible  <bruno@clisp.org>
15046
15047         Make it possible again to use AC_GNU_SOURCE together with gnulib.
15048         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
15049         before requiring AC_USE_SYSTEM_EXTENSIONS.
15050
15051 2009-01-25  Jim Meyering  <meyering@redhat.com>
15052
15053         c-strtod: avoid warnings
15054         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
15055         "assignment discards qualifiers from pointer target type" warnings.
15056
15057 2009-01-24  Bruno Haible  <bruno@clisp.org>
15058
15059         Add support for non-UTF-8 locales on MacOS X.
15060         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
15061         canonical encodings. For Darwin 7 and newer, don't map traditional
15062         encodings to UTF-8.
15063         Reported by Vincent Lefevre <vincent@vinc17.org>
15064         at <http://savannah.gnu.org/bugs/?25235>.
15065
15066 2009-01-24  Bruno Haible  <bruno@clisp.org>
15067
15068         * doc/gnulib.texi (Obsolete modules): New section.
15069         Reported by Mike Frysinger <vapier@gentoo.org>.
15070
15071 2009-01-24  Bruno Haible  <bruno@clisp.org>
15072
15073         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
15074         (%.dvi): New rule.
15075
15076 2009-01-24  Bruno Haible  <bruno@clisp.org>
15077
15078         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
15079         Reported by Eric Blake.
15080
15081 2009-01-24  Bruno Haible  <bruno@clisp.org>
15082
15083         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
15084         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
15085         Reported by Gary V. Vaughan <gary@gnu.org>.
15086
15087 2009-01-24  Bruno Haible  <bruno@clisp.org>
15088
15089         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
15090
15091 2009-01-23  Bruno Haible  <bruno@clisp.org>
15092
15093         Make c-strtod, c-strtold usable in libraries.
15094         * lib/c-strtod.c: Include string.h instead of xalloc.h.
15095         (C_STRTOD): Call strdup instead of xstrdup.
15096         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
15097         * modules/c-strtold (Depends-on): Likewise.
15098         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
15099         * NEWS: Mention the change.
15100         Reported by Michael Gold <mgold@ncf.ca>.
15101
15102 2009-01-23  Jim Meyering  <meyering@redhat.com>
15103
15104         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
15105         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
15106         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
15107
15108 2009-01-23  Simon Josefsson  <simon@josefsson.org>
15109
15110         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
15111         GNU CoreUtils.
15112         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
15113         * modules/version-etc (Description): Update.
15114
15115 2009-01-22  Bruno Haible  <bruno@clisp.org>
15116
15117         Cache the C locale object.
15118         * lib/c-strtod.c (c_locale_cache): New variable.
15119         (c_locale): New function.
15120         (C_STRTOD): Use it, and don't call freelocale.
15121         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
15122         Suggested by Paolo Bonzini.
15123
15124 2009-01-21  Bruno Haible  <bruno@clisp.org>
15125
15126         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
15127         conditions other than overflow.
15128
15129 2009-01-21  Bruno Haible  <bruno@clisp.org>
15130
15131         * lib/c-strtod.c: Include errno.h.
15132         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
15133         value from STRTOD_L and STRTOD.
15134
15135 2009-01-21  Bruno Haible  <bruno@clisp.org>
15136         and Jim Meyering  <meyering@redhat.com>
15137
15138         nanosleep: skip configure test (fail it) for apple universal builds
15139         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
15140         universal builds, assume that nanosleep does not work.
15141         * modules/nanosleep (Depends-on): Add multiarch.
15142
15143         mktime: skip configure test (fail it) for apple universal builds
15144         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
15145         universal builds, assume that mktime does not work.
15146         * modules/mktime (Depends-on): Add multiarch.
15147
15148 2009-01-21  Eric Blake  <ebb9@byu.net>
15149
15150         multiarch: avoid expand-before-require warning
15151         * modules/multiarch (configure.ac): Require, rather than expand,
15152         gl_MULTIARCH.
15153         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
15154         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
15155         enforce that all clients require it.  Partial reversion of
15156         2008-12-29 patch.
15157
15158         error: avoid expand-before-require warning
15159         * modules/errno (configure.ac): Require, rather than expand,
15160         gl_HEADER_ERRNO_H.
15161         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
15162         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
15163         enforce that all clients require it.
15164
15165         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
15166         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
15167         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
15168         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
15169
15170 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
15171
15172         Revert:
15173         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
15174
15175         regex: do not depend on obsolete modules.
15176         * modules/regex: Remove memcmp and memmove.
15177
15178 2009-01-20  Bruno Haible  <bruno@clisp.org>
15179
15180         Make the 'link' module link on Windows NT 4.
15181         * lib/link.c (_WIN32_WINNT): Don't define.
15182         (CreateHardLinkFuncType): New type.
15183         (CreateHardLinkFunc, initialized): New variables.
15184         (initialize): New function.
15185         (link): Invoke CreateHardLink indirectly through the function pointer.
15186
15187 2009-01-20  Bruno Haible  <bruno@clisp.org>
15188
15189         Fix compilation failure on mingw.
15190         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
15191
15192 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
15193
15194         * doc/c-strtod.texi: Mention a couple of restrictions.
15195
15196 2009-01-20  Jim Meyering  <meyering@redhat.com>
15197
15198         gettimeofday: move more declarations out of functions
15199         * lib/gettimeofday.c: Move extern declarations of tzset and
15200         gmtime out of containing functions.  Prompted by Bruno Haible.
15201
15202 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
15203
15204         regex: do not depend on obsolete modules.
15205         * modules/regex: Remove memcmp and memmove.
15206
15207 2009-01-19  Bruno Haible  <bruno@clisp.org>
15208
15209         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15210         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
15211         gl_BIGENDIAN, not AC_C_BIGENDIAN.
15212         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
15213         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
15214
15215 2009-01-19  Bruno Haible  <bruno@clisp.org>
15216
15217         * tests/test-link.c: Include <errno.h>.
15218         (main): Exit with code 77 when a hard link cannot be created due to
15219         the file system.
15220         * tests/test-link.sh: Skip test when a hard link cannot be created due
15221         to the file system.
15222         Suggested by Eric Blake.
15223
15224 2009-01-19  Martin Lambers  <marlam@marlam.de>
15225
15226         * modules/link-tests: New file.
15227         * tests/test-link.sh: New file.
15228         * tests/test-link.c: New file.
15229
15230 2009-01-19  Eric Blake  <ebb9@byu.net>
15231
15232         doc: mention another function added in cygwin 1.7.0
15233         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
15234         Another new function in cygwin 1.7.
15235
15236 2009-01-19  Bruno Haible  <bruno@clisp.org>
15237
15238         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15239         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
15240         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
15241         gl_BIGENDIAN, not AC_C_BIGENDIAN.
15242         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15243         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
15244         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15245         * m4/md4.m4 (gl_MD4): Likewise.
15246         * m4/md5.m4 (gl_MD5): Likewise.
15247         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
15248         * m4/sha1.m4 (gl_SHA1): Likewise.
15249         * m4/sha256.m4 (gl_SHA256): Likewise.
15250         * m4/sha512.m4 (gl_SHA512): Likewise.
15251
15252 2009-01-19  Bruno Haible  <bruno@clisp.org>
15253
15254         * modules/uniname/uniname-tests (Depends-on): Add progname.
15255         * tests/uniname/test-uninames.c: Include progname.h.
15256         (main): Call set_program_name.
15257
15258         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
15259         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
15260         (main): Call set_program_name.
15261
15262         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
15263         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
15264         (main): Call set_program_name.
15265
15266         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
15267         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
15268         (main): Call set_program_name.
15269
15270         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
15271         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
15272         (main): Call set_program_name.
15273
15274         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
15275         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
15276         (main): Call set_program_name.
15277
15278         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
15279         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
15280         (main): Call set_program_name.
15281
15282         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
15283         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
15284         (main): Call set_program_name.
15285
15286         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
15287         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
15288         (main): Call set_program_name.
15289
15290 2009-01-19  Eric Blake  <ebb9@byu.net>
15291
15292         test-unistd: test previous patch
15293         * tests/test-unistd.c: Test *_FILENO macros.
15294
15295         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
15296         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15297         Guarantee a definition.
15298         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
15299         * modules/unistd-safer (Depends-on): Add dependency on unistd.
15300         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
15301         * lib/dup-safer.c (STDERR_FILENO): Likewise.
15302         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15303         Likewise.
15304         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
15305         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
15306         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15307         Likewise.
15308         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
15309         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
15310         (STDERR_FILENO): Likewise.
15311         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
15312         (STDERR_FILENO): Likewise.
15313         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
15314         (STDERR_FILENO): Likewise.
15315         Reported by Elbert Pol.
15316
15317 2009-01-19  Eric Blake  <ebb9@byu.net>
15318
15319         doc: mention more functions added in cygwin 1.7.0
15320         * doc/posix-functions/abort.texi (abort): Update wording related
15321         to cygwin.
15322         * doc/posix-functions/daylight.texi (daylight): Likewise.
15323         * doc/posix-functions/optarg.texi (optarg): Likewise.
15324         * doc/posix-functions/optarg.texi (opterr): Likewise.
15325         * doc/posix-functions/optarg.texi (optind): Likewise.
15326         * doc/posix-functions/optarg.texi (optopt): Likewise.
15327         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
15328         worked in 1.5.x, and was withdrawn in 1.7.
15329         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15330         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
15331         cygwin versions.
15332         * doc/posix-functions/perror.texi (perror): Likewise.
15333         * doc/posix-functions/printf.texi (printf): Likewise.
15334         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
15335         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
15336         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15337         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15338         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15339         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
15340         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
15341         Likewise.
15342         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
15343         Likewise.
15344         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
15345         this function.
15346         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
15347         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
15348         Likewise.
15349         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
15350         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
15351         * doc/posix-functions/confstr.texi (confstr): Likewise.
15352         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
15353         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
15354         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
15355         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
15356         * doc/posix-functions/fputws.texi (fputws): Likewise.
15357         * doc/posix-functions/fwide.texi (fwide): Likewise.
15358         * doc/posix-functions/getwc.texi (getwc): Likewise.
15359         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
15360         * doc/posix-functions/putwc.texi (putwc): Likewise.
15361         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15362         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
15363         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
15364         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15365         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
15366         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
15367         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
15368         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
15369         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
15370         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
15371         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
15372
15373 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
15374
15375         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
15376         * lib/ioctl.c: Include <sys/ioctl.h>.
15377
15378 2009-01-19  Simon Josefsson  <simon@josefsson.org>
15379
15380         * modules/getdate-tests (Depends-on): Add progname.
15381         * tests/test-getdate.c: Use progname module, to avoid link errors
15382         on non-glibc systems.
15383
15384 2009-01-18  Simon Josefsson  <simon@josefsson.org>
15385
15386         * modules/filenamecat-tests (Depends-on): Add progname.
15387         * modules/fstrcmp-tests (Depends-on): Likewise.
15388
15389         * tests/test-filenamecat.c: Use progname module, to avoid link
15390         errors on non-glibc systems.
15391         * tests/test-fstrcmp.c: Likewise.
15392
15393 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
15394
15395         gettimeofday: avoid warning: nested extern declaration of 'localtime'
15396         * lib/gettimeofday.c: Move extern declaration out of function.
15397
15398 2009-01-18  Bruno Haible  <bruno@clisp.org>
15399
15400         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
15401         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
15402         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
15403
15404 2009-01-18  Bruno Haible  <bruno@clisp.org>
15405
15406         * lib/strftime.c (MEMPCPY): Remove unused macro.
15407         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
15408
15409 2009-01-18  Martin Lambers  <marlam@marlam.de>
15410
15411         New module 'link'.
15412         * lib/unistd.in.h (link): New declaration.
15413         * lib/link.c: New file.
15414         * m4/link.m4: New file.
15415         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
15416         HAVE_LINK.
15417         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
15418         * modules/link: New file.
15419         * doc/posix-functions/link.texi: Mention the new module.
15420
15421 2009-01-18  Bruno Haible  <bruno@clisp.org>
15422
15423         * tests/test-avltree_list.c (main): Call set_program_name.
15424         * tests/test-avltree_oset.c (main): Likewise.
15425         * tests/test-obstack-printf.c: Include progname.h.
15426         (main): Call set_program_name.
15427         * tests/test-quotearg.c: Include progname.h.
15428         (main): Call set_program_name.
15429         * tests/test-xmemdup0.c: Include progname.h.
15430         (main): Call set_program_name.
15431
15432 2009-01-18  Bruno Haible  <bruno@clisp.org>
15433
15434         New module 'alphasort'.
15435         * lib/dirent.in.h (alphasort): New declaration.
15436         * lib/alphasort.c: New file, from glibc with modifications.
15437         * m4/alphasort.m4: New file.
15438         * modules/alphasort: New file.
15439         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
15440         HAVE_ALPHASORT.
15441         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
15442         HAVE_ALPHASORT.
15443         * doc/posix-functions/alphasort.texi: Mention the new module and the
15444         portability problems.
15445
15446 2009-01-18  Bruno Haible  <bruno@clisp.org>
15447
15448         New module 'scandir'.
15449         * lib/dirent.in.h (scandir): New declaration.
15450         * lib/scandir.c: New file, from glibc with modifications.
15451         * m4/scandir.m4: New file.
15452         * modules/scandir: New file.
15453         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
15454         HAVE_SCANDIR.
15455         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
15456         HAVE_SCANDIR.
15457         * doc/posix-functions/scandir.texi: Mention the new module and the
15458         portability problems.
15459
15460 2009-01-17  Bruno Haible  <bruno@clisp.org>
15461
15462         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
15463         Update documentation.
15464         (func_remove_suffix): Escape all dots in the suffix. Update
15465         documentation.
15466         (func_filter_filelist): Update documentation.
15467         Reported by Ralf Wildenhues.
15468
15469 2009-01-17  Bruno Haible  <bruno@clisp.org>
15470
15471         * modules/dprintf-posix-tests: New file.
15472         * tests/test-dprintf-posix.sh: New file.
15473         * tests/test-dprintf-posix.c: New file.
15474
15475         New modules 'dprintf', 'dprintf-posix'.
15476         * lib/stdio.in.h (dprintf): New declaration.
15477         * lib/dprintf.c: New file.
15478         * m4/dprintf.m4: New file.
15479         * m4/dprintf-posix.m4: New file.
15480         * modules/dprintf: New file.
15481         * modules/dprintf-posix: New file.
15482         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
15483         HAVE_DPRINTF, REPLACE_DPRINTF.
15484         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
15485         HAVE_DPRINTF, REPLACE_DPRINTF.
15486         * doc/posix-functions/dprintf.texi: Mention the new modules.
15487
15488 2009-01-17  Bruno Haible  <bruno@clisp.org>
15489
15490         * modules/vdprintf-posix-tests: New file.
15491         * tests/test-vdprintf-posix.sh: New file.
15492         * tests/test-vdprintf-posix.c: New file.
15493
15494         New modules 'vdprintf', 'vdprintf-posix'.
15495         * lib/stdio.in.h (vdprintf): New declaration.
15496         * lib/vdprintf.c: New file.
15497         * m4/vdprintf.m4: New file.
15498         * m4/vdprintf-posix.m4: New file.
15499         * modules/vdprintf: New file.
15500         * modules/vdprintf-posix: New file.
15501         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
15502         HAVE_VDPRINTF, REPLACE_VDPRINTF.
15503         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
15504         HAVE_VDPRINTF, REPLACE_VDPRINTF.
15505         * doc/posix-functions/vdprintf.texi: Mention the new modules.
15506
15507 2009-01-17  Bruno Haible  <bruno@clisp.org>
15508
15509         Fix replacement of fopen on mingw.
15510         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
15511         mingw.
15512
15513 2009-01-17  Bruno Haible  <bruno@clisp.org>
15514
15515         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
15516         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
15517
15518 2009-01-17  Bruno Haible  <bruno@clisp.org>
15519
15520         Avoid test-fflush2.sh failure on mingw.
15521         * tests/test-fflush2.c: Include binary-io.h.
15522         (main): Put standard input into binary mode.
15523         * modules/fflush-tests (Depends-on): Add binary-io.
15524
15525 2009-01-17  Bruno Haible  <bruno@clisp.org>
15526
15527         * lib/wchar.in.h: In another particular situation, include only the
15528         system's <wchar.h> file.
15529         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
15530         Reported by Albert Chin-A-Young <china@thewrittenword.com>
15531         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
15532
15533 2009-01-17  Bruno Haible  <bruno@clisp.org>
15534
15535         Support for stripping executables in --enable-relocatable.
15536         * build-aux/install-reloc: Expect one more argument, or an environment
15537         variable RELOC_STRIP_PROG. If set, strip the destination program and
15538         its wrapper.
15539         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
15540         RELOC_STRIP_PROG.
15541         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
15542         to set RELOCATABLE_STRIP.
15543         * NEWS: Mention the new Makefile requirement.
15544
15545 2009-01-17  Bruno Haible  <bruno@clisp.org>
15546
15547         * build-aux/install-reloc: Remove debugging information left over by
15548         C compiler on MacOS X.
15549
15550 2009-01-17  Bruno Haible  <bruno@clisp.org>
15551
15552         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
15553         * lib/progreloc.c (find_executable): Fix type of pointer passed to
15554         _NSGetExecutablePath.
15555
15556 2009-01-16  Jim Meyering  <meyering@redhat.com>
15557
15558         strerror: avoid warnings about discarding "const"
15559         * lib/strerror.c (rpl_strerror): Instead of returning a const
15560         string from each and every "case", use a variable, and add a single
15561         cast after the switch.
15562
15563 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
15564
15565         * lib/arpa_inet.in.h: Add extern "C" block for C++.
15566
15567 2009-01-16  Bruno Haible  <bruno@clisp.org>
15568
15569         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
15570         array initializer syntax that also works in C++ mode.
15571         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15572
15573 2009-01-16  Jim Meyering  <meyering@redhat.com>
15574
15575         poll: suppress a warning
15576         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
15577         to ignore "...unsigned expression < 0 is always false" warnings.
15578
15579 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
15580
15581         poll: remove declarations of unused variables
15582         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
15583         sockbuf and optlen.
15584
15585 2009-01-15  Bruno Haible  <bruno@clisp.org>
15586
15587         Make fflush-after-ungetc POSIX compliant on BSD systems.
15588         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
15589         (clear_ungetc_buffer): Implement also for other systems.
15590         (rpl_fflush): On glibc systems, invoke
15591         clear_ungetc_buffer_preserving_position. Otherwise, invoke
15592         clear_ungetc_buffer after fetching the stream's position, not before.
15593
15594 2009-01-15  Bruno Haible  <bruno@clisp.org>
15595
15596         Make fflush-after-ungetc POSIX compliant on glibc systems.
15597         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
15598         after ungetc.
15599         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
15600         (rpl_fflush): On glibc systems, simply call the system's fflush
15601         function after clearing the ungetc buffer.
15602         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
15603         Instead, lseek only to the end of file, then use the system's fseeko
15604         for the rest. On glibc systems, reset the EOF indicator bit.
15605
15606 2009-01-15  Jim Meyering  <meyering@redhat.com>
15607
15608         openmp.m4: revert quote-adding change, for portability to older autoconf
15609         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
15610         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
15611         Simon Josefsson noticed the problem when using autoconf-2.61.
15612
15613 2009-01-15  Bruno Haible  <bruno@clisp.org>
15614
15615         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
15616         * tests/test-fflush2.c (ASSERT): Always fail.
15617         (main): Add two tests for fflush() after ungetc(), taking into account
15618         the Austin Group's clarification.
15619         Suggested by Eric Blake.
15620
15621 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
15622
15623         mktime.m4: remove K&R-style function prototypes
15624         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
15625         for the Sun C++ compiler.
15626
15627 2009-01-14  Bruno Haible  <bruno@clisp.org>
15628
15629         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
15630         while including <wchar.h>.
15631         * lib/wchar.in.h: In two particular situations on HP-UX, include only
15632         the system's <wchar.h> file.
15633         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15634
15635 2009-01-14  Bruno Haible  <bruno@clisp.org>
15636
15637         * m4/csharp.m4: Don't mention gettext on the serial number line.
15638         * m4/csharpexec.m4: Likewise.
15639         * m4/eaccess.m4: Likewise.
15640         * m4/javaexec.m4: Likewise.
15641         * m4/sig_atomic_t.m4: Likewise.
15642         * m4/tmpdir.m4: Likewise.
15643         * m4/intldir.m4: Bump gettext version.
15644         * m4/lib-ld.m4: Likewise.
15645
15646 2009-01-14  Bruno Haible  <bruno@clisp.org>
15647
15648         * lib/progname.c (set_program_name): Add more comments.
15649         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
15650
15651 2009-01-14  Simon Josefsson  <simon@josefsson.org>
15652
15653         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
15654         were sys/stat.h does not define it.
15655
15656 2009-01-14  Jim Meyering  <meyering@redhat.com>
15657
15658         many *.m4 files: improve m4 quoting
15659         99% of this change was performed by running the following commands:
15660         git ls-files | grep '\.m4$' | xargs perl -pi \
15661           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
15662           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
15663           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
15664           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
15665         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
15666         The remainder were to add Copyright dates, increment serial numbers,
15667         undo some changes in comments, exclude m4/intl.m4, and add quotes
15668         around the "1" in ",1" where the unusual spacing prohibited the
15669         above regexps from doing the job.  For more details, see
15670         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
15671         * m4/acl.m4: Modified.
15672         * m4/afs.m4: Likewise.
15673         * m4/alloca.m4: Likewise.
15674         * m4/argp.m4: Likewise.
15675         * m4/argz.m4: Likewise.
15676         * m4/atexit.m4: Likewise.
15677         * m4/bison-i18n.m4: Likewise.
15678         * m4/bison.m4: Likewise.
15679         * m4/byteswap.m4: Likewise.
15680         * m4/c-stack.m4: Likewise.
15681         * m4/c-strtod.m4: Likewise.
15682         * m4/calloc.m4: Likewise.
15683         * m4/canonicalize-lgpl.m4: Likewise.
15684         * m4/chown.m4: Likewise.
15685         * m4/clock_time.m4: Likewise.
15686         * m4/codeset.m4: Likewise.
15687         * m4/copy-file.m4: Likewise.
15688         * m4/csharp.m4: Likewise.
15689         * m4/csharpcomp.m4: Likewise.
15690         * m4/csharpexec.m4: Likewise.
15691         * m4/d-ino.m4: Likewise.
15692         * m4/d-type.m4: Likewise.
15693         * m4/dirfd.m4: Likewise.
15694         * m4/double-slash-root.m4: Likewise.
15695         * m4/eaccess.m4: Likewise.
15696         * m4/eealloc.m4: Likewise.
15697         * m4/environ.m4: Likewise.
15698         * m4/errno_h.m4: Likewise.
15699         * m4/euidaccess.m4: Likewise.
15700         * m4/execute.m4: Likewise.
15701         * m4/fatal-signal.m4: Likewise.
15702         * m4/fchdir.m4: Likewise.
15703         * m4/fcntl_h.m4: Likewise.
15704         * m4/fileblocks.m4: Likewise.
15705         * m4/filenamecat.m4: Likewise.
15706         * m4/findprog.m4: Likewise.
15707         * m4/flexmember.m4: Likewise.
15708         * m4/fnmatch.m4: Likewise.
15709         * m4/fopen.m4: Likewise.
15710         * m4/fpending.m4: Likewise.
15711         * m4/fprintf-posix.m4: Likewise.
15712         * m4/free.m4: Likewise.
15713         * m4/frexp.m4: Likewise.
15714         * m4/frexpl.m4: Likewise.
15715         * m4/fsusage.m4: Likewise.
15716         * m4/ftruncate.m4: Likewise.
15717         * m4/gc-camellia.m4: Likewise.
15718         * m4/gc-random.m4: Likewise.
15719         * m4/gc.m4: Likewise.
15720         * m4/getaddrinfo.m4: Likewise.
15721         * m4/getcwd-abort-bug.m4: Likewise.
15722         * m4/getcwd-path-max.m4: Likewise.
15723         * m4/getdate.m4: Likewise.
15724         * m4/getdomainname.m4: Likewise.
15725         * m4/getgroups.m4: Likewise.
15726         * m4/gethostname.m4: Likewise.
15727         * m4/gethrxtime.m4: Likewise.
15728         * m4/getline.m4: Likewise.
15729         * m4/getloadavg.m4: Likewise.
15730         * m4/getndelim2.m4: Likewise.
15731         * m4/getpass.m4: Likewise.
15732         * m4/gettext.m4: Likewise.
15733         * m4/gettime.m4: Likewise.
15734         * m4/gettimeofday.m4: Likewise.
15735         * m4/gnulib-common.m4: Likewise.
15736         * m4/group-member.m4: Likewise.
15737         * m4/host-os.m4: Likewise.
15738         * m4/iconv.m4: Likewise.
15739         * m4/iconv_open.m4: Likewise.
15740         * m4/inet_ntop.m4: Likewise.
15741         * m4/inet_pton.m4: Likewise.
15742         * m4/inline.m4: Likewise.
15743         * m4/intldir.m4: Likewise.
15744         * m4/intlmacosx.m4: Likewise.
15745         * m4/intmax.m4: Likewise.
15746         * m4/intmax_t.m4: Likewise.
15747         * m4/inttypes.m4: Likewise.
15748         * m4/inttypes_h.m4: Likewise.
15749         * m4/inttypes-pri.m4: Likewise.
15750         * m4/isapipe.m4: Likewise.
15751         * m4/isnand.m4: Likewise.
15752         * m4/isnanf.m4: Likewise.
15753         * m4/isnanl.m4: Likewise.
15754         * m4/javacomp.m4: Likewise.
15755         * m4/javaexec.m4: Likewise.
15756         * m4/jm-winsz1.m4: Likewise.
15757         * m4/jm-winsz2.m4: Likewise.
15758         * m4/lchown.m4: Likewise.
15759         * m4/lcmessage.m4: Likewise.
15760         * m4/ldexpl.m4: Likewise.
15761         * m4/lib-ld.m4: Likewise.
15762         * m4/lib-link.m4: Likewise.
15763         * m4/libsigsegv.m4: Likewise.
15764         * m4/link-follow.m4: Likewise.
15765         * m4/localcharset.m4: Likewise.
15766         * m4/locale-fr.m4: Likewise.
15767         * m4/locale-ja.m4: Likewise.
15768         * m4/locale-tr.m4: Likewise.
15769         * m4/locale-zh.m4: Likewise.
15770         * m4/lock.m4: Likewise.
15771         * m4/longlong.m4: Likewise.
15772         * m4/ls-mntd-fs.m4: Likewise.
15773         * m4/lstat.m4: Likewise.
15774         * m4/malloc.m4: Likewise.
15775         * m4/mathl.m4: Likewise.
15776         * m4/mbrtowc.m4: Likewise.
15777         * m4/mbstate_t.m4: Likewise.
15778         * m4/mbswidth.m4: Likewise.
15779         * m4/memchr.m4: Likewise.
15780         * m4/memcmp.m4: Likewise.
15781         * m4/memcpy.m4: Likewise.
15782         * m4/memmem.m4: Likewise.
15783         * m4/memmove.m4: Likewise.
15784         * m4/mempcpy.m4: Likewise.
15785         * m4/memrchr.m4: Likewise.
15786         * m4/memset.m4: Likewise.
15787         * m4/minmax.m4: Likewise.
15788         * m4/mkdir-slash.m4: Likewise.
15789         * m4/mkdtemp.m4: Likewise.
15790         * m4/mktime.m4: Likewise.
15791         * m4/mmap-anon.m4: Likewise.
15792         * m4/mountlist.m4: Likewise.
15793         * m4/nanosleep.m4: Likewise.
15794         * m4/nls.m4: Likewise.
15795         * m4/nocrash.m4: Likewise.
15796         * m4/open.m4: Likewise.
15797         * m4/openat.m4: Likewise.
15798         * m4/openmp.m4: Likewise.
15799         * m4/pathmax.m4: Likewise.
15800         * m4/perl.m4: Likewise.
15801         * m4/physmem.m4: Likewise.
15802         * m4/pipe.m4: Likewise.
15803         * m4/po.m4: Likewise.
15804         * m4/poll.m4: Likewise.
15805         * m4/posixtm.m4: Likewise.
15806         * m4/posixver.m4: Likewise.
15807         * m4/printf-frexp.m4: Likewise.
15808         * m4/printf-frexpl.m4: Likewise.
15809         * m4/printf-posix.m4: Likewise.
15810         * m4/printf-posix-rpl.m4: Likewise.
15811         * m4/printf.m4: Likewise.
15812         * m4/progtest.m4: Likewise.
15813         * m4/putenv.m4: Likewise.
15814         * m4/readline.m4: Likewise.
15815         * m4/readlink.m4: Likewise.
15816         * m4/readutmp.m4: Likewise.
15817         * m4/realloc.m4: Likewise.
15818         * m4/regex.m4: Likewise.
15819         * m4/relocatable.m4: Likewise.
15820         * m4/relocatable-lib.m4: Likewise.
15821         * m4/rename-dest-slash.m4: Likewise.
15822         * m4/rename.m4: Likewise.
15823         * m4/rmdir-errno.m4: Likewise.
15824         * m4/rmdir.m4: Likewise.
15825         * m4/roundf.m4: Likewise.
15826         * m4/roundl.m4: Likewise.
15827         * m4/rpmatch.m4: Likewise.
15828         * m4/save-cwd.m4: Likewise.
15829         * m4/selinux-selinux-h.m4: Likewise.
15830         * m4/setenv.m4: Likewise.
15831         * m4/settime.m4: Likewise.
15832         * m4/sig2str.m4: Likewise.
15833         * m4/sig_atomic_t.m4: Likewise.
15834         * m4/signalblocking.m4: Likewise.
15835         * m4/signbit.m4: Likewise.
15836         * m4/sigpipe.m4: Likewise.
15837         * m4/sockets.m4: Likewise.
15838         * m4/sockpfaf.m4: Likewise.
15839         * m4/st_dm_mode.m4: Likewise.
15840         * m4/stat-time.m4: Likewise.
15841         * m4/stdbool.m4: Likewise.
15842         * m4/stdint.m4: Likewise.
15843         * m4/stdint_h.m4: Likewise.
15844         * m4/stpcpy.m4: Likewise.
15845         * m4/stpncpy.m4: Likewise.
15846         * m4/strcase.m4: Likewise.
15847         * m4/strchrnul.m4: Likewise.
15848         * m4/strcspn.m4: Likewise.
15849         * m4/strdup.m4: Likewise.
15850         * m4/strftime.m4: Likewise.
15851         * m4/strndup.m4: Likewise.
15852         * m4/strnlen.m4: Likewise.
15853         * m4/strpbrk.m4: Likewise.
15854         * m4/strptime.m4: Likewise.
15855         * m4/strsep.m4: Likewise.
15856         * m4/strtod.m4: Likewise.
15857         * m4/strtoimax.m4: Likewise.
15858         * m4/strtok_r.m4: Likewise.
15859         * m4/strtol.m4: Likewise.
15860         * m4/strtoll.m4: Likewise.
15861         * m4/strtoul.m4: Likewise.
15862         * m4/strtoull.m4: Likewise.
15863         * m4/strtoumax.m4: Likewise.
15864         * m4/strverscmp.m4: Likewise.
15865         * m4/threadlib.m4: Likewise.
15866         * m4/timegm.m4: Likewise.
15867         * m4/tm_gmtoff.m4: Likewise.
15868         * m4/tmpdir.m4: Likewise.
15869         * m4/tmpfile.m4: Likewise.
15870         * m4/tzset.m4: Likewise.
15871         * m4/uintmax_t.m4: Likewise.
15872         * m4/unlinkdir.m4: Likewise.
15873         * m4/unlocked-io.m4: Likewise.
15874         * m4/uptime.m4: Likewise.
15875         * m4/userspec.m4: Likewise.
15876         * m4/utimbuf.m4: Likewise.
15877         * m4/utime.m4: Likewise.
15878         * m4/utimes-null.m4: Likewise.
15879         * m4/utimes.m4: Likewise.
15880         * m4/vararrays.m4: Likewise.
15881         * m4/vasnprintf.m4: Likewise.
15882         * m4/vfprintf-posix.m4: Likewise.
15883         * m4/vprintf-posix.m4: Likewise.
15884         * m4/wait-process.m4: Likewise.
15885         * m4/wchar_t.m4: Likewise.
15886         * m4/wint_t.m4: Likewise.
15887         * m4/write-any-file.m4: Likewise.
15888         * m4/yield.m4: Likewise.
15889
15890 2009-01-13  Bruno Haible  <bruno@clisp.org>
15891
15892         Avoid test-copy-file.sh failures when ACL support insufficient.
15893         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
15894         TESTS_ENVIRONMENT.
15895         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
15896         Reported by Jim Meyering.
15897
15898 2009-01-13  Bruno Haible  <bruno@clisp.org>
15899
15900         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
15901         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
15902         * modules/unistdio/u8-printf-parse (Files): Likewise.
15903         * modules/unistdio/u32-printf-parse (Files): Likewise.
15904         * modules/unistdio/ulc-printf-parse (Files): Likewise.
15905
15906 2009-01-13  Simon Josefsson  <simon@josefsson.org>
15907
15908         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
15909         and m4/inttypes_h.m4 too.
15910
15911 2009-01-12  Eric Blake  <ebb9@byu.net>
15912
15913         tests: IRIX 6.2 cc can't compile -0.0 into .data
15914         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
15915         rather than at compile-time.
15916         * tests/test-floorl.c (minus_zero): Likewise.
15917         * tests/test-frexpl.c (minus_zero): Likewise.
15918         * tests/test-isnan.c (minus_zerol): Likewise.
15919         * tests/test-isnanl.h (minus_zero): Likewise.
15920         * tests/test-ldexpl.c (minus_zero): Likewise.
15921         * tests/test-roundl.c (minus_zero): Likewise.
15922         * tests/test-signbit.c (minus_zerol): Likewise.
15923         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
15924         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
15925         * tests/test-truncl.c (minus_zero): Likewise.
15926         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
15927         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
15928         Reported by Tom G. Christensen and Nelson H. F. Beebe.
15929
15930 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
15931
15932         regex: fix glibc bug 9697
15933         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
15934         handling.
15935
15936 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
15937
15938         regex: fix glibc bug 697
15939         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
15940         being NULL also if there are no backreferences.
15941
15942 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
15943
15944         regex: merge glibc changes
15945         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
15946         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
15947         re_string_skip_chars, re_string_reconstruct): Likewise.
15948         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
15949
15950 2009-01-07  Jim Meyering  <meyering@redhat.com>
15951
15952         poll: filter through cppi
15953         * lib/poll.c: Indent cpp directives to reflect nesting.
15954
15955 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
15956
15957         poll: don't return uninitialized
15958         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
15959
15960 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
15961
15962         avoid compile failure on AIX 6.1
15963         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
15964         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
15965
15966 2009-01-04  Jim Meyering  <meyering@redhat.com>
15967
15968         remove duplicate inclusion of <stdio.h>
15969         * tests/test-fprintf-posix.c: Likewise.
15970         * tests/test-printf-posix.c: Likewise.
15971         * tests/test-snprintf-posix.c: Likewise.
15972         * tests/test-sprintf-posix.c: Likewise.
15973         * tests/test-vasprintf-posix.c: Likewise.
15974         * tests/test-vfprintf-posix.c: Likewise.
15975         * tests/test-vprintf-posix.c: Likewise.
15976         * tests/test-vsnprintf-posix.c: Likewise.
15977         * tests/test-vsprintf-posix.c: Likewise.
15978
15979 2009-01-03  Jim Meyering  <meyering@redhat.com>
15980
15981         gnulib-tool: fix sed-based filtering
15982         * gnulib-tool (func_filter_filelist): Remove extra backslash
15983         in sed_fff_filter definition.
15984
15985 2009-01-02  Jim Meyering  <meyering@redhat.com>
15986
15987         strftime: avoid compilation failure on Solaris 2.6
15988         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
15989         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
15990         Don't #define mbrlen or mbsinit, since now they're guaranteed to
15991         be available.  Reported by Tom G. Christensen.  Details in
15992         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
15993
15994 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15995             Bruno Haible  <bruno@clisp.org>
15996
15997         Speed up gnulib-tool by doing more string processing through shell
15998         built-ins.
15999         * gnulib-tool (fast_func_append): New variable.
16000         (func_remove_prefix, func_remove_suffix): New functions.
16001         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
16002         (func_filter_filelist): New function.
16003         (func_get_dependencies): Use func_remove_suffix instead of sed.
16004         (func_get_automake_snippet): Use func_filter_filelist instead of a
16005         subshell and sed invocation.
16006
16007 2009-01-01  Bruno Haible  <bruno@clisp.org>
16008
16009         Fix a security bug.
16010         * gnulib-tool (func_import, import, update): Don't allow the characters
16011         '"', '$', '`', '\' in macro arguments that become part of commands that
16012         are evaluated.
16013
16014 2009-01-01  Bruno Haible  <bruno@clisp.org>
16015
16016         * gnulib-tool (func_reset_sigpipe): Add more comments.
16017
16018 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16019
16020         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
16021         func_emit_tests_Makefile_am, func_import): Abort loops early if we
16022         already know the answer.
16023
16024 2009-01-01  Jim Meyering  <meyering@redhat.com>
16025
16026         * lib/version-etc.c (version_etc_va): Update copyright year.
16027
16028 2008-12-30  Bruno Haible  <bruno@clisp.org>
16029
16030         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
16031         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
16032         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
16033
16034 2008-12-29  Eric Blake  <ebb9@byu.net>
16035
16036         multiarch: avoid autoconf AC_REQUIRE bug
16037         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
16038         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
16039         2.63 and older.
16040         Reported by Bruno Haible, and analyzed in
16041         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
16042
16043 2008-12-29  Bruno Haible  <bruno@clisp.org>
16044
16045         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
16046         files in subdirectories correctly.
16047         Reported by Ralf Wildenhues.
16048
16049 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16050
16051         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
16052         rather than 'join FILE -', for Solaris join.
16053
16054 2008-12-29  Bruno Haible  <bruno@clisp.org>
16055
16056         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
16057         quoting.
16058         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16059         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
16060         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
16061         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
16062         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16063         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16064         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
16065         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
16066         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16067         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16068         * m4/nls.m4 (AM_NLS): Likewise.
16069         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
16070         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16071         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16072         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
16073         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
16074         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16075         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
16076         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
16077         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
16078         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16079         * m4/xsize.m4 (gl_XSIZE): Likewise.
16080         Suggested by Jim Meyering.
16081
16082 2008-11-17  Bruce Korb  <bkorb@gnu.org>
16083
16084         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
16085         * lib/parse-duration.c: use a switch instead of cascading if's.
16086
16087 2008-12-29  Eric Blake  <ebb9@byu.net>
16088
16089         wchar.h: supply WEOF on Irix 5.3
16090         * lib/wchar.in.h (wint_t): Also supply WEOF.
16091         * lib/wctype.in.h (wint_t): Likewise.
16092         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
16093         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
16094         Reported by Tom G. Christensen.
16095
16096 2008-12-26  Bruno Haible  <bruno@clisp.org>
16097
16098         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
16099         i486, i586, i686.
16100
16101 2008-12-26  Bruno Haible  <bruno@clisp.org>
16102
16103         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
16104
16105 2008-12-26  Bruno Haible  <bruno@clisp.org>
16106
16107         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
16108         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
16109         not __STDC_CONSTANT_MACROS.
16110         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
16111
16112 2008-12-25  Bruno Haible  <bruno@clisp.org>
16113
16114         Add support for universal builds to vasnprintf.
16115         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
16116         universal builds, guess no.
16117         * modules/vasnprintf-posix (Depends-on): Add multiarch.
16118         * modules/vasprintf-posix (Depends-on): Likewise.
16119         * modules/fprintf-posix (Depends-on): Likewise.
16120         * modules/vfprintf-posix (Depends-on): Likewise.
16121         * modules/snprintf-posix (Depends-on): Likewise.
16122         * modules/vsnprintf-posix (Depends-on): Likewise.
16123         * modules/sprintf-posix (Depends-on): Likewise.
16124         * modules/vsprintf-posix (Depends-on): Likewise.
16125         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16126         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16127         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16128         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16129         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16130         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16131         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16132
16133         Add support for universal builds to <inttypes.h>.
16134         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
16135         _SCNu64_PREFIX): In Apple
16136         universal builds, define directly, using _LP64.
16137         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
16138         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
16139         * modules/inttypes (Depends-on): Add multiarch.
16140         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16141
16142         Add support for universal builds to <stdint.h>.
16143         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
16144         universal builds, define directly, using _LP64.
16145         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
16146         Apple universal builds, don't test for the size and suffix of ptrdiff_t
16147         and size_t.
16148         * modules/stdint (Depends-on): Add multiarch.
16149         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16150
16151         New module 'multiarch'.
16152         * modules/multiarch: New file.
16153         * m4/multiarch.m4: New file.
16154
16155 2008-12-25  Bruno Haible  <bruno@clisp.org>
16156
16157         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
16158
16159 2008-12-25  Bruno Haible  <bruno@clisp.org>
16160
16161         * modules/btowc (License): Relicense under LGPLv2+.
16162         * modules/mbsinit (License): Likewise.
16163         * modules/mbrtowc (License): Likewise.
16164         * modules/wcrtomb (License): Likewise.
16165         * modules/streq (License): Likewise.
16166         Reported by David Lutterkort <lutter@redhat.com>.
16167
16168 2008-12-23  Bruno Haible  <bruno@clisp.org>
16169
16170         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
16171
16172 2008-12-23  Bruno Haible  <bruno@clisp.org>
16173
16174         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
16175         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
16176         GETADDRINFO_LIB, not in LIBS.
16177         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
16178         * modules/canon-host (Link): Likewise.
16179         * NEWS: Mention the change.
16180         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
16181         GETADDRINFO_LIB.
16182
16183 2008-12-22  Bruno Haible  <bruno@clisp.org>
16184
16185         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
16186         * doc/posix-functions/iswalpha_l.texi: Likewise.
16187         * doc/posix-functions/iswblank_l.texi: Likewise.
16188         * doc/posix-functions/iswcntrl_l.texi: Likewise.
16189         * doc/posix-functions/iswctype_l.texi: Likewise.
16190         * doc/posix-functions/iswdigit_l.texi: Likewise.
16191         * doc/posix-functions/iswgraph_l.texi: Likewise.
16192         * doc/posix-functions/iswlower_l.texi: Likewise.
16193         * doc/posix-functions/iswprint_l.texi: Likewise.
16194         * doc/posix-functions/iswpunct_l.texi: Likewise.
16195         * doc/posix-functions/iswspace_l.texi: Likewise.
16196         * doc/posix-functions/iswupper_l.texi: Likewise.
16197         * doc/posix-functions/iswxdigit_l.texi: Likewise.
16198         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
16199         * doc/posix-functions/open_wmemstream.texi: Likewise.
16200         * doc/posix-functions/swscanf.texi: Likewise.
16201         * doc/posix-functions/towctrans_l.texi: Likewise.
16202         * doc/posix-functions/towlower.texi: Likewise.
16203         * doc/posix-functions/towlower_l.texi: Likewise.
16204         * doc/posix-functions/towupper.texi: Likewise.
16205         * doc/posix-functions/towupper_l.texi: Likewise.
16206         * doc/posix-functions/vfwprintf.texi: Likewise.
16207         * doc/posix-functions/vfwscanf.texi: Likewise.
16208         * doc/posix-functions/vswscanf.texi: Likewise.
16209         * doc/posix-functions/vwprintf.texi: Likewise.
16210         * doc/posix-functions/vwscanf.texi: Likewise.
16211         * doc/posix-functions/wcpcpy.texi: Likewise.
16212         * doc/posix-functions/wcpncpy.texi: Likewise.
16213         * doc/posix-functions/wcscasecmp.texi: Likewise.
16214         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
16215         * doc/posix-functions/wcscoll_l.texi: Likewise.
16216         * doc/posix-functions/wcsdup.texi: Likewise.
16217         * doc/posix-functions/wcsncasecmp.texi: Likewise.
16218         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
16219         * doc/posix-functions/wcsnlen.texi: Likewise.
16220         * doc/posix-functions/wcsnrtombs.texi: Likewise.
16221         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
16222         * doc/posix-functions/wctrans_l.texi: Likewise.
16223         * doc/posix-functions/wctype_l.texi: Likewise.
16224         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
16225         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
16226         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
16227         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
16228         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
16229         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
16230         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
16231         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
16232         * doc/glibc-functions/wcschrnul.texi: Likewise.
16233         * doc/glibc-functions/wcsftime_l.texi: Likewise.
16234         * doc/glibc-functions/wcstod_l.texi: Likewise.
16235         * doc/glibc-functions/wcstof_l.texi: Likewise.
16236         * doc/glibc-functions/wcstol_l.texi: Likewise.
16237         * doc/glibc-functions/wcstold_l.texi: Likewise.
16238         * doc/glibc-functions/wcstoll_l.texi: Likewise.
16239         * doc/glibc-functions/wcstoq.texi: Likewise.
16240         * doc/glibc-functions/wcstoul_l.texi: Likewise.
16241         * doc/glibc-functions/wcstoull_l.texi: Likewise.
16242         * doc/glibc-functions/wcstouq.texi: Likewise.
16243         * doc/glibc-functions/wmempcpy.texi: Likewise.
16244
16245 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
16246             Eric Blake  <ebb9@byu.net>
16247             Paolo Bonzini  <bonzini@gnu.org>
16248             Bruno Haible  <bruno@clisp.org>
16249
16250         Make c-stack work on Haiku.
16251         * lib/c-stack.c (SA_ONSTACK): Define fallback.
16252         (c_stack_action): Use SA_ONSTACK flag.
16253
16254 2008-12-22  Bruno Haible  <bruno@clisp.org>
16255
16256         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
16257
16258 2008-12-22  Bruno Haible  <bruno@clisp.org>
16259
16260         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
16261         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
16262         being overridden.
16263         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
16264         New macros.
16265         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
16266         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
16267         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
16268         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
16269
16270 2008-12-22  Bruno Haible  <bruno@clisp.org>
16271
16272         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
16273         from test code.
16274
16275 2008-12-22  Eric Blake  <ebb9@byu.net>
16276
16277         Avoid gcc warnings on cygwin.
16278         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
16279         Avoid unused variable.
16280         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
16281         Likewise.
16282
16283 2008-12-22  Bruno Haible  <bruno@clisp.org>
16284
16285         Remove HAVE_MBRTOWC conditionals.
16286         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
16287         (mbscasecmp): Assume mbrtowc function.
16288         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
16289         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
16290         * lib/mbschr.c: Include mbuiter.h unconditionally.
16291         (mbschr): Assume mbrtowc function.
16292         * lib/mbscspn.c: Include mbuiter.h unconditionally.
16293         (mbscspn): Assume mbrtowc function.
16294         * lib/mbslen.c: Include mbuiter.h unconditionally.
16295         (mbslen): Assume mbrtowc function.
16296         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
16297         (mbsncasecmp): Assume mbrtowc function.
16298         * lib/mbsnlen.c: Include mbiter.h unconditionally.
16299         (mbsnlen): Assume mbrtowc function.
16300         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
16301         (mbspbrk): Assume mbrtowc function.
16302         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
16303         (mbspcasecmp): Assume mbrtowc function.
16304         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
16305         (mbsrchr): Assume mbrtowc function.
16306         * lib/mbssep.c: Include mbuiter.h unconditionally.
16307         (mbssep): Assume mbrtowc function.
16308         * lib/mbsspn.c: Include mbuiter.h unconditionally.
16309         (mbsspn): Assume mbrtowc function.
16310         * lib/mbsstr.c: Include mbuiter.h unconditionally.
16311         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
16312         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
16313         (mbstok_r): Assume mbrtowc function.
16314         * lib/propername.c: Include mbuiter.h unconditionally.
16315         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
16316         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
16317         (trim2): Assume mbrtowc function.
16318         * lib/mbswidth.c (mbsinit): Remove fallback definition.
16319         (mbsnwidth): Assume mbrtowc function.
16320         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
16321         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
16322         fallback definitions.
16323         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
16324
16325 2008-12-22  Bruno Haible  <bruno@clisp.org>
16326
16327         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
16328
16329 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
16330
16331         * modules/regex: Request emulations for the mb*/wc* functions we need.
16332         * m4/regex.m4: Don't look for those functions here.
16333         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
16334
16335 2008-12-22  Bruno Haible  <bruno@clisp.org>
16336
16337         * modules/fnmatch (Depends-on): Remove duplicated dependency.
16338
16339 2008-12-21  Bruno Haible  <bruno@clisp.org>
16340
16341         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
16342         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
16343         (Include): Remove conditionalization.
16344         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
16345         (Include): Remove conditionalization.
16346         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
16347         (Include): Remove conditionalization.
16348         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
16349         * m4/mbfile.m4 (gl_MBFILE): Likewise.
16350         * NEWS: Mention the change.
16351         Reported by Alan Hourihane <alanh@fairlite.co.uk>
16352         via Sergey Poznyakoff <gray@gnu.org.ua>.
16353
16354 2008-12-21  Bruno Haible  <bruno@clisp.org>
16355
16356         * MODULES.html.sh (Extended multibyte and wide character utilities
16357         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
16358         wcrtomb, wcsrtombs.
16359         (Support for systems lacking POSIX:2008): Add accept, bind, close,
16360         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
16361         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
16362         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
16363
16364 2008-12-21  Bruno Haible  <bruno@clisp.org>
16365
16366         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
16367
16368 2008-12-21  Bruno Haible  <bruno@clisp.org>
16369
16370         * modules/wcsnrtombs-tests: New file.
16371         * tests/test-wcsnrtombs1.sh: New file.
16372         * tests/test-wcsnrtombs2.sh: New file.
16373         * tests/test-wcsnrtombs3.sh: New file.
16374         * tests/test-wcsnrtombs4.sh: New file.
16375         * tests/test-wcsnrtombs.c: New file.
16376
16377         New module 'wcsnrtombs'.
16378         * lib/wchar.in.h (wcsnrtombs): New declaration.
16379         * lib/wcsnrtombs.c: New file.
16380         * lib/wcsrtombs-state.c: New file.
16381         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
16382         (internal_state): Remove variable.
16383         * m4/wcsnrtombs.m4: New file.
16384         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
16385         compilation units.
16386         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
16387         HAVE_WCSNRTOMBS.
16388         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
16389         HAVE_WCSNRTOMBS.
16390         * modules/wcsnrtombs: New file.
16391         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
16392         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
16393
16394 2008-12-21  Bruno Haible  <bruno@clisp.org>
16395
16396         * modules/wcsrtombs-tests: New file.
16397         * tests/test-wcsrtombs1.sh: New file.
16398         * tests/test-wcsrtombs2.sh: New file.
16399         * tests/test-wcsrtombs3.sh: New file.
16400         * tests/test-wcsrtombs4.sh: New file.
16401         * tests/test-wcsrtombs.c: New file.
16402
16403         New module 'wcsrtombs'.
16404         * lib/wchar.in.h (wcsrtombs): New declaration.
16405         * lib/wcsrtombs.c: New file.
16406         * m4/wcsrtombs.m4: New file.
16407         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
16408         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16409         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
16410         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16411         * modules/wcsrtombs: New file.
16412         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
16413         bugs.
16414
16415 2008-12-21  Bruno Haible  <bruno@clisp.org>
16416
16417         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
16418         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
16419         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
16420         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
16421         if not correct.
16422         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
16423         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
16424         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16425         m4/locale-zh.m4, m4/codeset.m4.
16426         * doc/posix-functions/wcrtomb.texi: Document the bug.
16427
16428 2008-12-21  Bruno Haible  <bruno@clisp.org>
16429
16430         Work around a btowc() bug on IRIX 6.5.
16431         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
16432         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
16433         REPLACE_WTOBC if not.
16434         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
16435         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
16436         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
16437
16438 2008-12-21  Bruno Haible  <bruno@clisp.org>
16439
16440         * modules/wcrtomb-tests: New file.
16441         * tests/test-wcrtomb.sh: New file.
16442         * tests/test-wcrtomb.c: New file.
16443
16444         New module 'wcrtomb'.
16445         * lib/wchar.in.h (wcrtomb): New declaration.
16446         * lib/wcrtomb.c: New file.
16447         * m4/wcrtomb.m4: New file.
16448         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
16449         HAVE_WCRTOMB.
16450         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
16451         HAVE_WCRTOMB.
16452         * modules/wcrtomb: New file.
16453         * doc/posix-functions/wcrtomb.texi: Mention the new module.
16454
16455 2008-12-21  Bruno Haible  <bruno@clisp.org>
16456
16457         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
16458         * modules/mbsrtowcs (Files): Likewise.
16459         * modules/wctob (Files): Likewise.
16460         * modules/c-strcase-tests (Files): Likewise.
16461         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
16462         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
16463         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
16464         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
16465         * modules/vasnprintf-posix-tests (Files): Likewise.
16466
16467 2008-12-21  William Pursell  <bill.pursell@gmail.com>
16468
16469         gitlog-to-changelog: pass all command-line arguments to git-log
16470         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
16471         it is sometimes convenient to filter the commits in various ways.
16472         gitlog-to-changelog only allows --since to specify a start date,
16473         but git-log itself supports many other filtering mechanisms.
16474         At the moment, I want to filter by branch name.  Rather than
16475         adding a --branch option to gitlog-to-changelog, it seems more
16476         flexible to simply pass all options directly to git-log and let
16477         git do the work.  Notice that this effectively makes --since a
16478         redundant option for gitlog-to-changelog, but removing it would
16479         require current usage to change since calls would then require
16480         an additional '--'.
16481
16482 2008-12-21  Bruno Haible  <bruno@clisp.org>
16483
16484         * modules/mbsnrtowcs-tests: New file.
16485         * tests/test-mbsnrtowcs1.sh: New file.
16486         * tests/test-mbsnrtowcs2.sh: New file.
16487         * tests/test-mbsnrtowcs3.sh: New file.
16488         * tests/test-mbsnrtowcs4.sh: New file.
16489         * tests/test-mbsnrtowcs.c: New file.
16490
16491         New module 'mbsnrtowcs'.
16492         * lib/wchar.in.h (mbsnrtowcs): New declaration.
16493         * lib/mbsnrtowcs.c: New file.
16494         * lib/mbsrtowcs-state.c: New file.
16495         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
16496         (internal_state): Remove variable.
16497         * m4/mbsnrtowcs.m4: New file.
16498         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
16499         compilation units.
16500         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
16501         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
16502         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
16503         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
16504         * modules/mbsnrtowcs: New file.
16505         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
16506         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
16507         portability problem.
16508
16509 2008-12-21  Bruno Haible  <bruno@clisp.org>
16510
16511         Work around mbsrtowcs bug.
16512         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
16513         (gl_FUNC_MBSRTOWCS): Invoke it.
16514         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16515         m4/locale-zh.m4.
16516         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
16517
16518 2008-12-21  Bruno Haible  <bruno@clisp.org>
16519
16520         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
16521
16522 2008-12-21  Bruno Haible  <bruno@clisp.org>
16523
16524         Update doc for AIX.
16525         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
16526         16-bit wchar_t type.
16527         * doc/posix-functions/btowc.texi: Likewise.
16528         * doc/posix-functions/fgetwc.texi: Likewise.
16529         * doc/posix-functions/fgetws.texi: Likewise.
16530         * doc/posix-functions/fputwc.texi: Likewise.
16531         * doc/posix-functions/fputws.texi: Likewise.
16532         * doc/posix-functions/fwide.texi: Likewise.
16533         * doc/posix-functions/fwprintf.texi: Likewise.
16534         * doc/posix-functions/fwscanf.texi: Likewise.
16535         * doc/posix-functions/getwchar.texi: Likewise.
16536         * doc/posix-functions/getwc.texi: Likewise.
16537         * doc/posix-functions/iswalnum.texi: Likewise.
16538         * doc/posix-functions/iswalpha.texi: Likewise.
16539         * doc/posix-functions/iswblank.texi: Likewise.
16540         * doc/posix-functions/iswcntrl.texi: Likewise.
16541         * doc/posix-functions/iswctype.texi: Likewise.
16542         * doc/posix-functions/iswdigit.texi: Likewise.
16543         * doc/posix-functions/iswgraph.texi: Likewise.
16544         * doc/posix-functions/iswlower.texi: Likewise.
16545         * doc/posix-functions/iswprint.texi: Likewise.
16546         * doc/posix-functions/iswpunct.texi: Likewise.
16547         * doc/posix-functions/iswspace.texi: Likewise.
16548         * doc/posix-functions/iswupper.texi: Likewise.
16549         * doc/posix-functions/iswxdigit.texi: Likewise.
16550         * doc/posix-functions/mbrtowc.texi: Likewise.
16551         * doc/posix-functions/mbsrtowcs.texi: Likewise.
16552         * doc/posix-functions/mbstowcs.texi: Likewise.
16553         * doc/posix-functions/mbtowc.texi: Likewise.
16554         * doc/posix-functions/putwchar.texi: Likewise.
16555         * doc/posix-functions/putwc.texi: Likewise.
16556         * doc/posix-functions/swprintf.texi: Likewise.
16557         * doc/posix-functions/tolower.texi: Likewise.
16558         * doc/posix-functions/toupper.texi: Likewise.
16559         * doc/posix-functions/towctrans.texi: Likewise.
16560         * doc/posix-functions/ungetwc.texi: Likewise.
16561         * doc/posix-functions/vswprintf.texi: Likewise.
16562         * doc/posix-functions/wcrtomb.texi: Likewise.
16563         * doc/posix-functions/wcscat.texi: Likewise.
16564         * doc/posix-functions/wcschr.texi: Likewise.
16565         * doc/posix-functions/wcscmp.texi: Likewise.
16566         * doc/posix-functions/wcscoll.texi: Likewise.
16567         * doc/posix-functions/wcscpy.texi: Likewise.
16568         * doc/posix-functions/wcscspn.texi: Likewise.
16569         * doc/posix-functions/wcsftime.texi: Likewise.
16570         * doc/posix-functions/wcslen.texi: Likewise.
16571         * doc/posix-functions/wcsncat.texi: Likewise.
16572         * doc/posix-functions/wcsncmp.texi: Likewise.
16573         * doc/posix-functions/wcsncpy.texi: Likewise.
16574         * doc/posix-functions/wcspbrk.texi: Likewise.
16575         * doc/posix-functions/wcsrchr.texi: Likewise.
16576         * doc/posix-functions/wcsrtombs.texi: Likewise.
16577         * doc/posix-functions/wcsspn.texi: Likewise.
16578         * doc/posix-functions/wcsstr.texi: Likewise.
16579         * doc/posix-functions/wcstod.texi: Likewise.
16580         * doc/posix-functions/wcstof.texi: Likewise.
16581         * doc/posix-functions/wcstoimax.texi: Likewise.
16582         * doc/posix-functions/wcstok.texi: Likewise.
16583         * doc/posix-functions/wcstold.texi: Likewise.
16584         * doc/posix-functions/wcstoll.texi: Likewise.
16585         * doc/posix-functions/wcstol.texi: Likewise.
16586         * doc/posix-functions/wcstombs.texi: Likewise.
16587         * doc/posix-functions/wcstoull.texi: Likewise.
16588         * doc/posix-functions/wcstoul.texi: Likewise.
16589         * doc/posix-functions/wcstoumax.texi: Likewise.
16590         * doc/posix-functions/wcswidth.texi: Likewise.
16591         * doc/posix-functions/wcsxfrm.texi: Likewise.
16592         * doc/posix-functions/wctob.texi: Likewise.
16593         * doc/posix-functions/wctomb.texi: Likewise.
16594         * doc/posix-functions/wctrans.texi: Likewise.
16595         * doc/posix-functions/wctype.texi: Likewise.
16596         * doc/posix-functions/wcwidth.texi: Likewise.
16597         * doc/posix-functions/wmemchr.texi: Likewise.
16598         * doc/posix-functions/wmemcmp.texi: Likewise.
16599         * doc/posix-functions/wmemcpy.texi: Likewise.
16600         * doc/posix-functions/wmemmove.texi: Likewise.
16601         * doc/posix-functions/wmemset.texi: Likewise.
16602         * doc/posix-functions/wprintf.texi: Likewise.
16603         * doc/posix-functions/wscanf.texi: Likewise.
16604
16605 2008-12-21  Bruno Haible  <bruno@clisp.org>
16606
16607         Update doc for HP-UX 11.11.
16608         * doc/posix-functions/btowc.texi: Clarify that the function is missing
16609         in HP-UX version 11.00, not in all versions of HP-UX 11.
16610         * doc/posix-functions/fwide.texi: Likewise.
16611         * doc/posix-functions/fwprintf.texi: Likewise.
16612         * doc/posix-functions/fwscanf.texi: Likewise.
16613         * doc/posix-functions/inet_ntop.texi: Likewise.
16614         * doc/posix-functions/inet_pton.texi: Likewise.
16615         * doc/posix-functions/mbrlen.texi: Likewise.
16616         * doc/posix-functions/mbrtowc.texi: Likewise.
16617         * doc/posix-functions/mbsinit.texi: Likewise.
16618         * doc/posix-functions/mbsrtowcs.texi: Likewise.
16619         * doc/posix-functions/swprintf.texi: Likewise.
16620         * doc/posix-functions/swscanf.texi: Likewise.
16621         * doc/posix-functions/towctrans.texi: Likewise.
16622         * doc/posix-functions/vfwprintf.texi: Likewise.
16623         * doc/posix-functions/vswprintf.texi: Likewise.
16624         * doc/posix-functions/vwprintf.texi: Likewise.
16625         * doc/posix-functions/wcrtomb.texi: Likewise.
16626         * doc/posix-functions/wcsrtombs.texi: Likewise.
16627         * doc/posix-functions/wcsstr.texi: Likewise.
16628         * doc/posix-functions/wctob.texi: Likewise.
16629         * doc/posix-functions/wctrans.texi: Likewise.
16630         * doc/posix-functions/wmemchr.texi: Likewise.
16631         * doc/posix-functions/wmemcmp.texi: Likewise.
16632         * doc/posix-functions/wmemcpy.texi: Likewise.
16633         * doc/posix-functions/wmemmove.texi: Likewise.
16634         * doc/posix-functions/wmemset.texi: Likewise.
16635         * doc/posix-functions/wprintf.texi: Likewise.
16636         * doc/posix-functions/wscanf.texi: Likewise.
16637
16638 2008-12-21  Bruno Haible  <bruno@clisp.org>
16639
16640         Work around a portability problem.
16641         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
16642         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
16643
16644 2008-12-20  Bruno Haible  <bruno@clisp.org>
16645
16646         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
16647         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
16648         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
16649         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
16650         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
16651
16652         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
16653         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
16654         set.
16655         (GNULIB_defined_mbstate_t): New macro.
16656         (mbsinit): Redefine if REPLACE_MBSINIT is set.
16657         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
16658         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
16659         reuses the system's mbrtowc function but works around the bugs.
16660         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
16661         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
16662         macros.
16663         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
16664         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
16665         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
16666         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
16667         REPLACE_MBSINIT if mbsinit needs to be overridden.
16668         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
16669         REPLACE_MBSINIT, REPLACE_MBRTOWC.
16670         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
16671         REPLACE_MBSINIT, REPLACE_MBRTOWC.
16672         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16673         m4/locale-zh.m4.
16674         (Depends): Add mbsinit.
16675         * modules/mbsinit (Depends): Add mbrtowc.
16676         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
16677
16678 2008-12-20  Bruno Haible  <bruno@clisp.org>
16679
16680         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
16681         so that there are no conversion errors on AIX.
16682         * tests/test-mbsrtowcs.c (main): LIkewise.
16683
16684 2008-12-20  Bruno Haible  <bruno@clisp.org>
16685
16686         Work around wctob bug on Solaris <= 9.
16687         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
16688         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
16689         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
16690         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
16691         * modules/wctob (Files): Add m4/locale-fr.m4.
16692         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
16693
16694 2008-12-20  Bruno Haible  <bruno@clisp.org>
16695
16696         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
16697         /dev/null.
16698         * tests/test-select-in.sh: Likewise.
16699         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16700
16701 2008-12-20  Bruno Haible  <bruno@clisp.org>
16702
16703         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
16704         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
16705         Cygwin 1.5.x.
16706
16707 2008-12-20  Bruno Haible  <bruno@clisp.org>
16708
16709         Ensure mbstate_t is defined on HP-UX 11.11.
16710         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
16711         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
16712         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
16713         AC_USE_SYSTEM_EXTENSIONS.
16714         * modules/fnmatch (Depends-on): Add extensions.
16715         * modules/mbrlen (Depends-on): Likewise.
16716         * modules/mbrtowc (Depends-on): Likewise.
16717         * modules/mbsinit (Depends-on): Likewise.
16718         * modules/mbsrtowcs (Depends-on): Likewise.
16719         * modules/mbswidth (Depends-on): Likewise.
16720         * modules/quotearg (Depends-on): Likewise.
16721         * modules/strftime (Depends-on): Likewise.
16722
16723 2008-12-20  Bruno Haible  <bruno@clisp.org>
16724
16725         Ensure wctob is declared on IRIX 6.5.
16726         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
16727         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
16728         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
16729         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
16730         of HAVE_WCTOB.
16731         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
16732         HAVE_WCTOB.
16733         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
16734
16735 2008-12-19  Bruno Haible  <bruno@clisp.org>
16736
16737         * modules/mbsrtowcs-tests: New file.
16738         * tests/test-mbsrtowcs1.sh: New file.
16739         * tests/test-mbsrtowcs2.sh: New file.
16740         * tests/test-mbsrtowcs3.sh: New file.
16741         * tests/test-mbsrtowcs4.sh: New file.
16742         * tests/test-mbsrtowcs.c: New file.
16743
16744         New module 'mbsrtowcs'.
16745         * lib/wchar.in.h (mbsrtowcs): New declaration.
16746         * lib/mbsrtowcs.c: New file.
16747         * m4/mbsrtowcs.m4: New file.
16748         * modules/mbsrtowcs: New file.
16749         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
16750         HAVE_MBSRTOWCS.
16751         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
16752         HAVE_MBSRTOWCS.
16753         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
16754
16755 2008-12-19  Bruno Haible  <bruno@clisp.org>
16756
16757         New module 'mbrlen'.
16758         * lib/wchar.in.h (mbrlen): New declaration.
16759         * lib/mbrlen.c: New file.
16760         * m4/mbrlen.m4: New file.
16761         * modules/mbrlen: New file.
16762         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
16763         HAVE_MBRLEN.
16764         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
16765         HAVE_MBRLEN.
16766         * doc/posix-functions/mbrlen.texi: Document the new module.
16767
16768 2008-12-19  Bruno Haible  <bruno@clisp.org>
16769
16770         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
16771         * modules/mbrtowc (Depends-on): Add verify.
16772         Suggested by Paul Eggert.
16773
16774 2008-12-18  Bruno Haible  <bruno@clisp.org>
16775
16776         * modules/mbsinit-tests: New file.
16777         * tests/test-mbsinit.sh: New file.
16778         * tests/test-mbsinit.c: New file.
16779
16780 2008-12-18  Bruno Haible  <bruno@clisp.org>
16781
16782         * modules/mbrtowc-tests: New file.
16783         * tests/test-mbrtowc1.sh: New file.
16784         * tests/test-mbrtowc2.sh: New file.
16785         * tests/test-mbrtowc3.sh: New file.
16786         * tests/test-mbrtowc4.sh: New file.
16787         * tests/test-mbrtowc.c: New file.
16788
16789         New module 'mbrtowc'.
16790         * lib/wchar.in.h (mbstate_t): Override when the system does not have
16791         mbsinit and mbrtowc.
16792         (mbrtowc): New declaration.
16793         * lib/mbrtowc.c: New file.
16794         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
16795         * modules/mbrtowc: New file.
16796         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
16797         HAVE_MBRTOWC.
16798         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
16799         HAVE_MBRTOWC.
16800         * doc/posix-functions/mbrtowc.texi: Document the new module.
16801
16802 2008-12-18  Bruno Haible  <bruno@clisp.org>
16803
16804         New module 'wctob'.
16805         * lib/wchar.in.h (wctob): New declaration.
16806         * lib/wctob.c: New file.
16807         * m4/wctob.m4: New file.
16808         * modules/wctob: New file.
16809         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
16810         HAVE_WCTOB.
16811         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
16812         * doc/posix-functions/wctob.texi: Document the new module.
16813
16814 2008-12-18  Bruno Haible  <bruno@clisp.org>
16815
16816         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
16817         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
16818
16819 2008-12-18  Simon Josefsson  <simon@josefsson.org>
16820
16821         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
16822         G. Christensen" <tgc@jupiterrise.com>.
16823
16824         * lib/flock.c: Need to include errno.h.  Reported by "Tom
16825         G. Christensen" <tgc@jupiterrise.com>.
16826
16827         * lib/flock.c: Need to include string.h.  Reported by "Tom
16828         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
16829         <ebb9@byu.net>.
16830
16831 2008-12-18  Bruno Haible  <bruno@clisp.org>
16832
16833         * m4/locale-ja.m4: New file, from GNU gettext.
16834
16835 2008-12-17  Bruno Haible  <bruno@clisp.org>
16836
16837         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
16838         Suggested by Eric Blake.
16839
16840 2008-12-17  Bruno Haible  <bruno@clisp.org>
16841
16842         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
16843
16844 2008-12-17  Bruno Haible  <bruno@clisp.org>
16845
16846         * lib/mbsinit.c: Include verify.h. Verify an assumption.
16847         * modules/mbsinit (Depends-on): Add verify.
16848         Suggested by Paul Eggert.
16849
16850 2008-12-17  Bruno Haible  <bruno@clisp.org>
16851
16852         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
16853         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
16854         gl_FUNC_MBRTOWC.
16855         * m4/mbiter.m4 (gl_MBITER): LIkewise.
16856         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
16857         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
16858         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
16859         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
16860         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
16861         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
16862         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
16863         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
16864         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
16865         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
16866         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
16867         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
16868         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
16869         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
16870         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16871         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
16872         * modules/trim (configure.ac): Likewise.
16873
16874 2008-12-17  Bruno Haible  <bruno@clisp.org>
16875
16876         * modules/btowc-tests: New file.
16877         * tests/test-btowc1.sh: New file.
16878         * tests/test-btowc2.sh: New file.
16879         * tests/test-btowc.c: New file.
16880
16881         New module 'btowc'.
16882         * lib/wchar.in.h (btowc): New declaration.
16883         * lib/btowc.c: New file.
16884         * m4/btowc.m4: New file.
16885         * modules/btowc: New file.
16886         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
16887         HAVE_BTOWC.
16888         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
16889         * doc/posix-functions/btowc.texi: Document the new module.
16890
16891 2008-12-17  Bruno Haible  <bruno@clisp.org>
16892
16893         New module 'mbsinit'.
16894         * lib/wchar.in.h (mbsinit): New declaration.
16895         * lib/mbsinit.c: New file.
16896         * m4/mbsinit.m4: New file.
16897         * modules/mbsinit: New file.
16898         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
16899         HAVE_MBSINIT.
16900         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
16901         HAVE_MBSINIT.
16902         * doc/posix-functions/mbsinit.texi: Document the new module.
16903
16904 2008-12-16  Bruno Haible  <bruno@clisp.org>
16905
16906         * lib/unistd.in.h: Add comment.
16907         * tests/test-environ.c: Don't include <stdlib.h>.
16908
16909 2008-12-16  Bruno Haible  <bruno@clisp.org>
16910
16911         * lib/parse-duration.h (parse_duration): Document return value
16912         convention.
16913         * lib/parse-duration.c: Include specification header first. Add
16914         comments.
16915         (_): Remove macro.
16916         (parse_year_month_day, parse_hour_minute_second): Move side effects
16917         outside of strchr call.
16918         (parse_non_iso8601): Move side effects outside of isspace call.
16919         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
16920         call.
16921
16922 2008-12-16  Bruno Haible  <bruno@clisp.org>
16923
16924         * tests/test-parse-duration.sh: Produce no output when the test
16925         succeeds.
16926
16927 2008-12-16  Bruno Haible  <bruno@clisp.org>
16928
16929         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
16930         expressions.
16931
16932 2008-12-15  Bruno Haible  <bruno@clisp.org>
16933
16934         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
16935         * doc/glibc-functions/flistxattr.texi: Likewise.
16936         * doc/glibc-functions/fopencookie.texi: Likewise.
16937         * doc/glibc-functions/fremovexattr.texi: Likewise.
16938         * doc/glibc-functions/fsetxattr.texi: Likewise.
16939         * doc/glibc-functions/getxattr.texi: Likewise.
16940         * doc/glibc-functions/lgetxattr.texi: Likewise.
16941         * doc/glibc-functions/listxattr.texi: Likewise.
16942         * doc/glibc-functions/llistxattr.texi: Likewise.
16943         * doc/glibc-functions/lremovexattr.texi: Likewise.
16944         * doc/glibc-functions/lsetxattr.texi: Likewise.
16945         * doc/glibc-functions/removexattr.texi: Likewise.
16946         * doc/glibc-functions/setxattr.texi: Likewise.
16947         * doc/posix-functions/open_memstream.texi: Likewise.
16948
16949 2008-12-15  Eric Blake  <ebb9@byu.net>
16950
16951         Update doc for cygwin 1.7.
16952         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
16953         functions.
16954         * doc/posix-functions/fchmodat.texi: Likewise.
16955         * doc/posix-functions/fchownat.texi: Likewise.
16956         * doc/posix-functions/fdopendir.texi: Likewise.
16957         * doc/posix-functions/fmemopen.texi: Likewise.
16958         * doc/posix-functions/freeaddrinfo.texi: Likewise.
16959         * doc/posix-functions/fstatat.texi: Likewise.
16960         * doc/posix-functions/futimens.texi: Likewise.
16961         * doc/posix-functions/gai_strerror.texi: Likewise.
16962         * doc/posix-functions/getaddrinfo.texi: Likewise.
16963         * doc/posix-functions/getnameinfo.texi: Likewise.
16964         * doc/posix-functions/if_freenameindex.texi: Likewise.
16965         * doc/posix-functions/if_indextoname.texi: Likewise.
16966         * doc/posix-functions/if_nameindex.texi: Likewise.
16967         * doc/posix-functions/if_nametoindex.texi: Likewise.
16968         * doc/posix-functions/insque.texi: Likewise.
16969         * doc/posix-functions/linkat.texi: Likewise.
16970         * doc/posix-functions/llrint.texi: Likewise.
16971         * doc/posix-functions/llrintf.texi: Likewise.
16972         * doc/posix-functions/llrintl.texi: Likewise.
16973         * doc/posix-functions/lockf.texi: Likewise.
16974         * doc/posix-functions/lrintl.texi: Likewise.
16975         * doc/posix-functions/mkdirat.texi: Likewise.
16976         * doc/posix-functions/mkfifoat.texi: Likewise.
16977         * doc/posix-functions/mknodat.texi: Likewise.
16978         * doc/posix-functions/mq_close.texi: Likewise.
16979         * doc/posix-functions/mq_getattr.texi: Likewise.
16980         * doc/posix-functions/mq_notify.texi: Likewise.
16981         * doc/posix-functions/mq_open.texi: Likewise.
16982         * doc/posix-functions/mq_receive.texi: Likewise.
16983         * doc/posix-functions/mq_send.texi: Likewise.
16984         * doc/posix-functions/mq_setattr.texi: Likewise.
16985         * doc/posix-functions/mq_timedreceive.texi: Likewise.
16986         * doc/posix-functions/mq_timedsend.texi: Likewise.
16987         * doc/posix-functions/mq_unlink.texi: Likewise.
16988         * doc/posix-functions/open_memstream.texi: Likewise.
16989         * doc/posix-functions/openat.texi: Likewise.
16990         * doc/posix-functions/posix_fadvise.texi: Likewise.
16991         * doc/posix-functions/posix_fallocate.texi: Likewise.
16992         * doc/posix-functions/posix_madvise.texi: Likewise.
16993         * doc/posix-functions/posix_memalign.texi: Likewise.
16994         * doc/posix-functions/posix_openpt.texi: Likewise.
16995         * doc/posix-functions/readlinkat.texi: Likewise.
16996         * doc/posix-functions/remque.texi: Likewise.
16997         * doc/posix-functions/renameat.texi: Likewise.
16998         * doc/posix-functions/rintl.texi: Likewise.
16999         * doc/posix-functions/sem_unlink.texi: Likewise.
17000         * doc/posix-functions/shm_open.texi: Likewise.
17001         * doc/posix-functions/shm_unlink.texi: Likewise.
17002         * doc/posix-functions/signgam.texi: Likewise.
17003         * doc/posix-functions/sigset.texi: Likewise.
17004         * doc/posix-functions/stpcpy.texi: Likewise.
17005         * doc/posix-functions/stpncpy.texi: Likewise.
17006         * doc/posix-functions/strerror.texi: Likewise.
17007         * doc/posix-functions/strtod.texi: Likewise.
17008         * doc/posix-functions/symlinkat.texi: Likewise.
17009         * doc/posix-functions/unlinkat.texi: Likewise.
17010         * doc/posix-functions/utimensat.texi: Likewise.
17011         * doc/glibc-functions/bindresvport.texi: Likewise.
17012         * doc/glibc-functions/dn_expand.texi: Likewise.
17013         * doc/glibc-functions/exp10.texi: Likewise.
17014         * doc/glibc-functions/exp10f.texi: Likewise.
17015         * doc/glibc-functions/fgetxattr.texi: Likewise.
17016         * doc/glibc-functions/flistxattr.texi: Likewise.
17017         * doc/glibc-functions/fopencookie.texi: Likewise.
17018         * doc/glibc-functions/freeifaddrs.texi: Likewise.
17019         * doc/glibc-functions/fremovexattr.texi: Likewise.
17020         * doc/glibc-functions/fsetxattr.texi: Likewise.
17021         * doc/glibc-functions/getifaddrs.texi: Likewise.
17022         * doc/glibc-functions/getxattr.texi: Likewise.
17023         * doc/glibc-functions/lgetxattr.texi: Likewise.
17024         * doc/glibc-functions/listxattr.texi: Likewise.
17025         * doc/glibc-functions/llistxattr.texi: Likewise.
17026         * doc/glibc-functions/lremovexattr.texi: Likewise.
17027         * doc/glibc-functions/lsetxattr.texi: Likewise.
17028         * doc/glibc-functions/pow10.texi: Likewise.
17029         * doc/glibc-functions/pow10f.texi: Likewise.
17030         * doc/glibc-functions/rcmd_af.texi: Likewise.
17031         * doc/glibc-functions/removexattr.texi: Likewise.
17032         * doc/glibc-functions/res_init.texi: Likewise.
17033         * doc/glibc-functions/res_mkquery.texi: Likewise.
17034         * doc/glibc-functions/res_query.texi: Likewise.
17035         * doc/glibc-functions/res_querydomain.texi: Likewise.
17036         * doc/glibc-functions/res_send.texi: Likewise.
17037         * doc/glibc-functions/rresvport_af.texi: Likewise.
17038         * doc/glibc-functions/setxattr.texi: Likewise.
17039         * doc/glibc-functions/strcasestr.texi: Likewise.
17040
17041 2008-12-15  Bruno Haible  <bruno@clisp.org>
17042
17043         Fix compilation error on OSF/1 4.0.
17044         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
17045         <sys/time.h>, simply delegate to the system header.
17046         Reported by Daniel Richard G. <oss@teragram.com>.
17047
17048 2008-12-15  Bruno Haible  <bruno@clisp.org>
17049
17050         * doc/posix-functions/openat.texi: Mention the 'openat' module.
17051         * doc/posix-functions/fchmodat.texi: Likewise.
17052         * doc/posix-functions/fchownat.texi: Likewise.
17053         * doc/posix-functions/fdopendir.texi: Likewise.
17054         * doc/posix-functions/fstatat.texi: Likewise.
17055         * doc/posix-functions/mkdirat.texi: Likewise.
17056         * doc/posix-functions/unlinkat.texi: Likewise.
17057
17058 2008-12-14  Bruno Haible  <bruno@clisp.org>
17059
17060         Update doc for POSIX:2008.
17061         * doc/posix-functions/faccessat.texi: New file.
17062         * doc/posix-functions/fchmodat.texi: New file.
17063         * doc/posix-functions/fchownat.texi: New file.
17064         * doc/posix-functions/fdopendir.texi: New file.
17065         * doc/posix-functions/fstatat.texi: New file.
17066         * doc/posix-functions/futimens.texi: New file.
17067         * doc/posix-functions/linkat.texi: New file.
17068         * doc/posix-functions/mkdirat.texi: New file.
17069         * doc/posix-functions/mkfifoat.texi: New file.
17070         * doc/posix-functions/mknodat.texi: New file.
17071         * doc/posix-functions/open_wmemstream.texi: New file.
17072         * doc/posix-functions/openat.texi: New file.
17073         * doc/posix-functions/psiginfo.texi: New file.
17074         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
17075         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
17076         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
17077         * doc/posix-functions/readlinkat.texi: New file.
17078         * doc/posix-functions/renameat.texi: New file.
17079         * doc/posix-functions/strerror_l.texi: New file.
17080         * doc/posix-functions/symlinkat.texi: New file.
17081         * doc/posix-functions/unlinkat.texi: New file.
17082         * doc/posix-functions/utimensat.texi: New file.
17083         * doc/gnulib.texi (Function Substitutes): Add these subsections.
17084
17085 2008-12-14  Bruno Haible  <bruno@clisp.org>
17086
17087         Update doc for POSIX:2008.
17088         * doc/posix-functions/alphasort.texi: Renamed from
17089         doc/glibc-functions/alphasort.texi.
17090         * doc/posix-functions/dirfd.texi: Renamed from
17091         doc/glibc-functions/dirfd.texi.
17092         * doc/posix-functions/dprintf.texi: Renamed from
17093         doc/glibc-functions/dprintf.texi.
17094         * doc/posix-functions/duplocale.texi: Renamed from
17095         doc/glibc-functions/duplocale.texi.
17096         * doc/posix-functions/fexecve.texi: Renamed from
17097         doc/glibc-functions/fexecve.texi.
17098         * doc/posix-functions/fmemopen.texi: Renamed from
17099         doc/glibc-functions/fmemopen.texi.
17100         * doc/posix-functions/freelocale.texi: Renamed from
17101         doc/glibc-functions/freelocale.texi.
17102         * doc/posix-functions/getdate_err.texi: Renamed from
17103         doc/glibc-functions/getdate_err.texi.
17104         * doc/posix-functions/isalnum_l.texi: Renamed from
17105         doc/glibc-functions/isalnum_l.texi.
17106         * doc/posix-functions/isalpha_l.texi: Renamed from
17107         doc/glibc-functions/isalpha_l.texi.
17108         * doc/posix-functions/isblank_l.texi: Renamed from
17109         doc/glibc-functions/isblank_l.texi.
17110         * doc/posix-functions/iscntrl_l.texi: Renamed from
17111         doc/glibc-functions/iscntrl_l.texi.
17112         * doc/posix-functions/isdigit_l.texi: Renamed from
17113         doc/glibc-functions/isdigit_l.texi.
17114         * doc/posix-functions/isgraph_l.texi: Renamed from
17115         doc/glibc-functions/isgraph_l.texi.
17116         * doc/posix-functions/islower_l.texi: Renamed from
17117         doc/glibc-functions/islower_l.texi.
17118         * doc/posix-functions/isprint_l.texi: Renamed from
17119         doc/glibc-functions/isprint_l.texi.
17120         * doc/posix-functions/ispunct_l.texi: Renamed from
17121         doc/glibc-functions/ispunct_l.texi.
17122         * doc/posix-functions/isspace_l.texi: Renamed from
17123         doc/glibc-functions/isspace_l.texi.
17124         * doc/posix-functions/isupper_l.texi: Renamed from
17125         doc/glibc-functions/isupper_l.texi.
17126         * doc/posix-functions/iswalnum_l.texi: Renamed from
17127         doc/glibc-functions/iswalnum_l.texi.
17128         * doc/posix-functions/iswalpha_l.texi: Renamed from
17129         doc/glibc-functions/iswalpha_l.texi.
17130         * doc/posix-functions/iswblank_l.texi: Renamed from
17131         doc/glibc-functions/iswblank_l.texi.
17132         * doc/posix-functions/iswcntrl_l.texi: Renamed from
17133         doc/glibc-functions/iswcntrl_l.texi.
17134         * doc/posix-functions/iswctype_l.texi: Renamed from
17135         doc/glibc-functions/iswctype_l.texi.
17136         * doc/posix-functions/iswdigit_l.texi: Renamed from
17137         doc/glibc-functions/iswdigit_l.texi.
17138         * doc/posix-functions/iswgraph_l.texi: Renamed from
17139         doc/glibc-functions/iswgraph_l.texi.
17140         * doc/posix-functions/iswlower_l.texi: Renamed from
17141         doc/glibc-functions/iswlower_l.texi.
17142         * doc/posix-functions/iswprint_l.texi: Renamed from
17143         doc/glibc-functions/iswprint_l.texi.
17144         * doc/posix-functions/iswpunct_l.texi: Renamed from
17145         doc/glibc-functions/iswpunct_l.texi.
17146         * doc/posix-functions/iswspace_l.texi: Renamed from
17147         doc/glibc-functions/iswspace_l.texi.
17148         * doc/posix-functions/iswupper_l.texi: Renamed from
17149         doc/glibc-functions/iswupper_l.texi.
17150         * doc/posix-functions/iswxdigit_l.texi: Renamed from
17151         doc/glibc-functions/iswxdigit_l.texi.
17152         * doc/posix-functions/isxdigit_l.texi: Renamed from
17153         doc/glibc-functions/isxdigit_l.texi.
17154         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
17155         doc/glibc-functions/mbsnrtowcs.texi.
17156         * doc/posix-functions/mkdtemp.texi: Renamed from
17157         doc/glibc-functions/mkdtemp.texi.
17158         * doc/posix-functions/newlocale.texi: Renamed from
17159         doc/glibc-functions/newlocale.texi.
17160         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
17161         doc/glibc-functions/nl_langinfo_l.texi.
17162         * doc/posix-functions/open_memstream.texi: Renamed from
17163         doc/glibc-functions/open_memstream.texi.
17164         * doc/posix-functions/opterr.texi: Renamed from
17165         doc/glibc-functions/opterr.texi.
17166         * doc/posix-functions/optind.texi: Renamed from
17167         doc/glibc-functions/optind.texi.
17168         * doc/posix-functions/optopt.texi: Renamed from
17169         doc/glibc-functions/optopt.texi.
17170         * doc/posix-functions/psignal.texi: Renamed from
17171         doc/glibc-functions/psignal.texi.
17172         * doc/posix-functions/scandir.texi: Renamed from
17173         doc/glibc-functions/scandir.texi.
17174         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
17175         doc/glibc-functions/sched_get_priority_min.texi.
17176         * doc/posix-functions/signgam.texi: Renamed from
17177         doc/glibc-functions/signgam.texi.
17178         * doc/posix-functions/stpcpy.texi: Renamed from
17179         doc/glibc-functions/stpcpy.texi.
17180         * doc/posix-functions/stpncpy.texi: Renamed from
17181         doc/glibc-functions/stpncpy.texi.
17182         * doc/posix-functions/strcasecmp_l.texi: Renamed from
17183         doc/glibc-functions/strcasecmp_l.texi.
17184         * doc/posix-functions/strcoll_l.texi: Renamed from
17185         doc/glibc-functions/strcoll_l.texi.
17186         * doc/posix-functions/strfmon_l.texi: Renamed from
17187         doc/glibc-functions/strfmon_l.texi.
17188         * doc/posix-functions/strftime_l.texi: Renamed from
17189         doc/glibc-functions/strftime_l.texi.
17190         * doc/posix-functions/strncasecmp_l.texi: Renamed from
17191         doc/glibc-functions/strncasecmp_l.texi.
17192         * doc/posix-functions/strndup.texi: Renamed from
17193         doc/glibc-functions/strndup.texi.
17194         * doc/posix-functions/strnlen.texi: Renamed from
17195         doc/glibc-functions/strnlen.texi.
17196         * doc/posix-functions/strsignal.texi: Renamed from
17197         doc/glibc-functions/strsignal.texi.
17198         * doc/posix-functions/strxfrm_l.texi: Renamed from
17199         doc/glibc-functions/strxfrm_l.texi.
17200         * doc/posix-functions/timer_gettime.texi: Renamed from
17201         doc/glibc-functions/timer_gettime.texi.
17202         * doc/posix-functions/tolower_l.texi: Renamed from
17203         doc/glibc-functions/tolower_l.texi.
17204         * doc/posix-functions/toupper_l.texi: Renamed from
17205         doc/glibc-functions/toupper_l.texi.
17206         * doc/posix-functions/towctrans_l.texi: Renamed from
17207         doc/glibc-functions/towctrans_l.texi.
17208         * doc/posix-functions/towlower_l.texi: Renamed from
17209         doc/glibc-functions/towlower_l.texi.
17210         * doc/posix-functions/towupper_l.texi: Renamed from
17211         doc/glibc-functions/towupper_l.texi.
17212         * doc/posix-functions/uselocale.texi: Renamed from
17213         doc/glibc-functions/uselocale.texi.
17214         * doc/posix-functions/vdprintf.texi: Renamed from
17215         doc/glibc-functions/vdprintf.texi.
17216         * doc/posix-functions/wcpcpy.texi:
17217         Renamed from doc/glibc-functions/wcpcpy.texi.
17218         * doc/posix-functions/wcpncpy.texi: Renamed from
17219         doc/glibc-functions/wcpncpy.texi.
17220         * doc/posix-functions/wcscasecmp.texi: Renamed from
17221         doc/glibc-functions/wcscasecmp.texi.
17222         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
17223         doc/glibc-functions/wcscasecmp_l.texi.
17224         * doc/posix-functions/wcscoll_l.texi: Renamed from
17225         doc/glibc-functions/wcscoll_l.texi.
17226         * doc/posix-functions/wcsdup.texi: Renamed from
17227         doc/glibc-functions/wcsdup.texi.
17228         * doc/posix-functions/wcsncasecmp.texi: Renamed from
17229         doc/glibc-functions/wcsncasecmp.texi.
17230         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
17231         doc/glibc-functions/wcsncasecmp_l.texi.
17232         * doc/posix-functions/wcsnlen.texi: Renamed from
17233         doc/glibc-functions/wcsnlen.texi.
17234         * doc/posix-functions/wcsnrtombs.texi: Renamed from
17235         doc/glibc-functions/wcsnrtombs.texi.
17236         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
17237         doc/glibc-functions/wcsxfrm_l.texi.
17238         * doc/posix-functions/wctrans_l.texi: Renamed from
17239         doc/glibc-functions/wctrans_l.texi.
17240         * doc/posix-functions/wctype_l.texi: Renamed from
17241         doc/glibc-functions/wctype_l.texi.
17242         * doc/gnulib.texi (Function Substitutes): Add these subsections.
17243         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
17244         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
17245         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
17246         these subsections.
17247         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
17248         Remove sections.
17249
17250 2008-12-14  Bruno Haible  <bruno@clisp.org>
17251
17252         Update doc for POSIX:2008.
17253         * doc/posix-functions/*.texi: Update URL of POSIX specification.
17254
17255 2008-12-14  Bruno Haible  <bruno@clisp.org>
17256
17257         Update doc for POSIX:2008.
17258         * doc/pastposix-functions/bcmp.texi: Renamed from
17259         doc/posix-functions/bcmp.texi.
17260         * doc/pastposix-functions/bcopy.texi: Renamed from
17261         doc/posix-functions/bcopy.texi.
17262         * doc/pastposix-functions/bsd_signal.texi: Renamed from
17263         doc/posix-functions/bsd_signal.texi.
17264         * doc/pastposix-functions/bzero.texi: Renamed from
17265         doc/posix-functions/bzero.texi.
17266         * doc/pastposix-functions/ecvt.texi: Renamed from
17267         doc/posix-functions/ecvt.texi.
17268         * doc/pastposix-functions/fcvt.texi: Renamed from
17269         doc/posix-functions/fcvt.texi.
17270         * doc/pastposix-functions/ftime.texi: Renamed from
17271         doc/posix-functions/ftime.texi.
17272         * doc/pastposix-functions/gcvt.texi: Renamed from
17273         doc/posix-functions/gcvt.texi.
17274         * doc/pastposix-functions/getcontext.texi: Renamed from
17275         doc/posix-functions/getcontext.texi.
17276         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
17277         doc/posix-functions/gethostbyaddr.texi.
17278         * doc/pastposix-functions/gethostbyname.texi: Renamed from
17279         doc/posix-functions/gethostbyname.texi.
17280         * doc/pastposix-functions/getwd.texi: Renamed from
17281         doc/posix-functions/getwd.texi.
17282         * doc/pastposix-functions/h_errno.texi: Renamed from
17283         doc/posix-functions/h_errno.texi.
17284         * doc/pastposix-functions/index.texi: Renamed from
17285         doc/posix-functions/index.texi.
17286         * doc/pastposix-functions/makecontext.texi: Renamed from
17287         doc/posix-functions/makecontext.texi.
17288         * doc/pastposix-functions/mktemp.texi: Renamed from
17289         doc/posix-functions/mktemp.texi.
17290         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
17291         doc/posix-functions/pthread_attr_getstackaddr.texi.
17292         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
17293         doc/posix-functions/pthread_attr_setstackaddr.texi.
17294         * doc/pastposix-functions/rindex.texi: Renamed from
17295         doc/posix-functions/rindex.texi.
17296         * doc/pastposix-functions/scalb.texi: Renamed from
17297         doc/posix-functions/scalb.texi.
17298         * doc/pastposix-functions/setcontext.texi: Renamed from
17299         doc/posix-functions/setcontext.texi.
17300         * doc/pastposix-functions/swapcontext.texi: Renamed from
17301         doc/posix-functions/swapcontext.texi.
17302         * doc/pastposix-functions/ualarm.texi: Renamed from
17303         doc/posix-functions/ualarm.texi.
17304         * doc/pastposix-functions/usleep.texi: Renamed from
17305         doc/posix-functions/usleep.texi.
17306         * doc/pastposix-functions/vfork.texi: Renamed from
17307         doc/posix-functions/vfork.texi.
17308         * doc/pastposix-functions/wcswcs.texi: Renamed from
17309         doc/posix-functions/wcswcs.texi.
17310         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
17311         (Function Substitutes): Update.
17312
17313 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17314
17315         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
17316         m4/strerror.m4.
17317
17318 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17319             Bruno Haible  <bruno@clisp.org>
17320
17321         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
17322
17323 2008-12-13  Bruno Haible  <bruno@clisp.org>
17324
17325         * modules/strtoull (Depends-on): Remove unistd.
17326
17327 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17328
17329         * modules/strtoull (Depends-on): Add stdlib.
17330
17331 2008-12-11  Simon Josefsson  <simon@josefsson.org>
17332
17333         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
17334
17335 2008-12-10  Jim Meyering  <meyering@redhat.com>
17336
17337         gl_ASSERT: don't say assertions are disabled when they're not
17338         * m4/assert.m4 (gl_ASSERT): Do not make configure report
17339         "checking whether to enable assertions... no", when they are in
17340         fact enabled.  This is solely a bug in the output of configure.
17341         In spite of saying "no", NDEBUG was not defined in that case.
17342         Also, as noted by Eric Blake, leave assertions enabled upon
17343         --enable-assert=INVALID.
17344
17345 2008-12-10  Bruno Haible  <bruno@clisp.org>
17346
17347         Change MODULES.html to refer to POSIX:2008 where possible.
17348         * MODULES.html.sh (POSIX2008_URL): New variable.
17349         (posix_headers): Remove sys/timeb, ucontext.
17350         (posix2001_headers): New variable.
17351         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
17352         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
17353         index, makecontext, mktemp, pthread_attr_getstackaddr,
17354         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
17355         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
17356         (posix2001_functions): New variable.
17357         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
17358         otherwise.
17359
17360 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17361
17362         add missing include to parse-duration.c
17363         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
17364         * modules/parse-duration (Depends-on): Add xalloc.
17365
17366         fix sed script reading maint.mk
17367         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
17368         (syntax-check-rules): Use it.
17369
17370 2008-12-09  Bruno Haible  <bruno@clisp.org>
17371
17372         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
17373         MacOS X 10.4/PowerPC.
17374         Reported by Simon Josefsson.
17375
17376 2008-12-08  Jim Meyering  <meyering@redhat.com>
17377
17378         work around mingw's lack of some S_IF definitions
17379         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
17380         Reported by Simon Josefsson.
17381
17382 2008-12-08  Bruno Haible  <bruno@clisp.org>
17383
17384         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
17385         applied to variables. Needed on MacOS X 10.4/PowerPC.
17386         Reported by Simon Josefsson.
17387
17388 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
17389         and Eric Blake  <ebb9@byu.net>
17390
17391         assert: honor --enable-assert
17392         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
17393         order to honor --enable-assert, rather than treating it as a
17394         synonym for --disable-assert.
17395
17396 2008-12-08  Jim Meyering  <meyering@redhat.com>
17397
17398         * lib/posixtm.c: Remove now-useless declaration of mktime.
17399
17400         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
17401
17402 2008-12-07  Bruno Haible  <bruno@clisp.org>
17403
17404         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
17405         test_once): Mark functions as static.
17406         * tests/test-tls.c (test_tls): Likewise.
17407
17408 2008-12-07  Bruno Haible  <bruno@clisp.org>
17409
17410         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
17411         iconv_register_autodetect.
17412
17413 2008-12-07  Jim Meyering  <meyering@redhat.com>
17414
17415         posixtm.c: avoid a warning
17416         * lib/posixtm.c (posixtime): Don't initialize tm0.
17417         It's no longer needed to placate gcc4's -Wuninitialized,
17418         and the attempt to placate would elicit a new warning.
17419
17420         unicodeio.c: mark unused parameters
17421         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
17422         (fallback_failure_callback): Likewise.
17423
17424 2008-12-07  Bruno Haible  <bruno@clisp.org>
17425
17426         * gnulib-tool (func_create_testdir): When building the tests
17427         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
17428         Reported by Simon Josefsson.
17429
17430 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17431
17432         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
17433
17434 2008-12-06  Bruno Haible  <bruno@clisp.org>
17435
17436         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
17437         Suggested by Eric Blake.
17438
17439 2008-12-06  Bruno Haible  <bruno@clisp.org>
17440
17441         Fix a c-stack test failure on MacOS X.
17442         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
17443         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
17444         handler for SIGBUS as well.
17445         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
17446         install a signal handler for SIGBUS as well.
17447         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
17448
17449 2008-12-06  Bruno Haible  <bruno@clisp.org>
17450
17451         Advocacy documentation.
17452         * doc/gnulib-intro.texi (Benefits): New section.
17453         * doc/gnulib.texi: Update.
17454
17455 2008-12-06  Bruno Haible  <bruno@clisp.org>
17456
17457         Document the 'manywarnings' module.
17458         * doc/manywarnings.texi: New file.
17459         * doc/gnulib.texi: Include it.
17460
17461 2008-12-05  Eric Blake  <ebb9@byu.net>
17462
17463         tests: silence some gcc warnings
17464         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
17465         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
17466         type mismatches.
17467
17468 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17469             Bruno Haible  <bruno@clisp.org>
17470
17471         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
17472
17473 2008-11-29  Jim Meyering  <meyering@redhat.com>
17474
17475         unicodeio.c: mark unused parameters
17476         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
17477         (fallback_failure_callback): Likewise.
17478
17479         fts: fix a thinko
17480         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
17481         (set_stat_type): Return S_IF*-valued "type" directly.
17482         Prompted by James Youngman's spotting a related bug.
17483         Confirmed by further testing through find.
17484
17485         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
17486         * lib/fts.c (D_TYPE): Define.
17487         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
17488         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
17489         (s_ifmt_shift_bits): New function.
17490         (set_stat_type): New function.
17491         (fts_build): When not calling fts_stat, call set_stat_type
17492         to propagate dirent.d_type info to fts_read caller.
17493         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
17494         fts_statp->st_mode type information may be valid.
17495
17496 2008-11-28  Simon Josefsson  <simon@josefsson.org>
17497
17498         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
17499         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
17500         <sds@gnu.org>.
17501
17502 2008-11-20  Bruno Haible  <bruno@clisp.org>
17503
17504         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
17505         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
17506         INCLUDE_NEXT.
17507         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
17508         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
17509         * modules/math (Makefile.am): Substitute
17510         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
17511         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17512
17513 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
17514             Bruno Haible  <bruno@clisp.org>
17515
17516         * lib/stdint.in.h: Define all type macros so that their expansion is
17517         a single typedef'ed token. Fixes a compilation failure in Boost which
17518         does "using ::int8_t;".
17519
17520 2008-11-18  Simon Josefsson  <simon@josefsson.org>
17521
17522         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
17523         gl_MANYWARN_ALL_GCC.
17524         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
17525         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
17526         * modules/manywarnings: New file.
17527         * MODULES.html.sh: Mention manywarnings module.
17528
17529 2008-11-18  Bruno Haible  <bruno@clisp.org>
17530
17531         * doc/gnulib-tool.texi (Unit tests): New section.
17532
17533 2008-11-18  Simon Josefsson  <simon@josefsson.org>
17534
17535         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
17536         paths like 'lib/po/foo.po'.
17537
17538 2008-11-17  Simon Josefsson  <simon@josefsson.org>
17539
17540         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
17541         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
17542
17543 2008-11-17  Simon Josefsson  <simon@josefsson.org>
17544
17545         * m4/warnings.m4: Use CPPFLAGS to really check whether the
17546         parameter works.
17547
17548 2008-11-17  Simon Josefsson  <simon@josefsson.org>
17549
17550         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
17551
17552 2008-11-17  Bruce Korb  <bkorb@gnu.org>
17553
17554         * modules/parse-duration-tests: New file.
17555         * tests/test-parse-duration.sh: New file.
17556         * tests/test-parse-duration.c: New file.
17557
17558         New module 'parse-duration'.
17559         * lib/parse-duration.h: New file.
17560         * lib/parse-duration.c: New file.
17561         * modules/parse-duration: New file.
17562
17563 2008-11-17  Bruno Haible  <bruno@clisp.org>
17564
17565         * tests/test-select-out.sh: Comment out the first pipe test.
17566         Reported by Simon Josefsson.
17567
17568 2008-11-17  Bruno Haible  <bruno@clisp.org>
17569
17570         * modules/getaddrinfo (Depends-on): Add servent, hostent.
17571         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
17572         gl_HOSTENT.
17573
17574 2008-11-17  Bruno Haible  <bruno@clisp.org>
17575
17576         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
17577         -lnetwork and -lnet. Needed for Haiku and BeOS.
17578
17579 2008-11-16  Bruno Haible  <bruno@clisp.org>
17580
17581         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
17582
17583 2008-11-16  Bruno Haible  <bruno@clisp.org>
17584
17585         Avoid test failure on Haiku.
17586         * tests/test-fsync.c: Include <errno.h>.
17587         (main): Don't require that fsync (0) fails.
17588
17589 2008-11-15  Bruno Haible  <bruno@clisp.org>
17590
17591         New module 'hostent'.
17592         * modules/hostent: New file.
17593         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
17594
17595 2008-11-15  Bruno Haible  <bruno@clisp.org>
17596
17597         New module 'servent'.
17598         * modules/servent: New file.
17599         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
17600
17601 2008-11-15  Bruno Haible  <bruno@clisp.org>
17602
17603         Avoid generating same test program with two different rules.
17604         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
17605         test-frexp to test-frexp-nolibm.
17606         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
17607         test-frexpl to test-frexpl-nolibm.
17608
17609 2008-11-15  Bruno Haible  <bruno@clisp.org>
17610
17611         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
17612         $(FREXPL_LIBM).
17613
17614 2008-11-15  Bruno Haible  <bruno@clisp.org>
17615
17616         * lib/netdb.in.h: Activate the definitions also when the system's
17617         <netdb.h> has 'struct addrinfo'.
17618         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
17619         EAI_OVERFLOW or AI_NUMERICSERV.
17620         * doc/posix-headers/netdb.texi: Document the problem.
17621
17622 2008-11-15  Bruno Haible  <bruno@clisp.org>
17623
17624         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
17625
17626         Make the 'sched' module work on platforms where <sched.h> exists but
17627         is incomplete (such as Haiku).
17628         * lib/sched.in.h; Include the system's <sched.h> if it exists.
17629         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
17630         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
17631         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
17632         HAVE_STRUCT_SCHED_PARAM.
17633         * modules/sched (Depends-on): Add include_next.
17634         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
17635         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
17636         * doc/posix-headers/sched.texi: Document the issue.
17637
17638 2008-11-13  Jim Meyering  <meyering@redhat.com>
17639
17640         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
17641         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
17642         test would fail due to the difference in the Report bugs to ...
17643         line.  The expected address is empty, "<>", while the actual
17644         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
17645
17646 2008-11-12  Bruno Haible  <bruno@clisp.org>
17647
17648         lstat: don't compile lstat.c on systems lacking lstat
17649         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
17650         which don't have lstat; this is handled by lib/sys_stat.in.h already.
17651         Reported by Daniel P. Berrange via Jim Meyering.
17652
17653 2008-11-12  Jim Meyering  <meyering@redhat.com>
17654
17655         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
17656
17657 2008-11-12  Simon Josefsson  <simon@josefsson.org>
17658
17659         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
17660         instead.
17661
17662 2008-11-12  Bruno Haible  <bruno@clisp.org>
17663
17664         * lib/unicodeio.c: Include unistr.h.
17665         (utf8_wctomb): Remove function.
17666         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
17667
17668 2008-11-12  Simon Josefsson  <simon@josefsson.org>
17669
17670         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
17671         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
17672         <bruno@clisp.org>.
17673         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
17674
17675 2008-11-12  Simon Josefsson  <simon@josefsson.org>
17676
17677         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
17678         * doc/gnulib.texi: Add section for warnings.
17679
17680 2008-11-11  Bruno Haible  <bruno@clisp.org>
17681
17682         * lib/sockets.h: Add a comment.
17683
17684 2008-11-11  Karl Berry  <karl@gnu.org>
17685
17686         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
17687
17688 2008-11-11  Eric Blake  <ebb9@byu.net>
17689
17690         fdl.texi: avoid git symlinks
17691         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
17692
17693 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
17694
17695         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
17696
17697 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
17698
17699         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
17700         (gl_WARN_ADD): Substitute $2 if literal.
17701
17702 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
17703
17704         * m4/warning.m4: Remove.
17705
17706 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
17707
17708         * m4/warnings.m4: Almost complete rewrite. :-)
17709
17710 2008-11-10  Simon Josefsson  <simon@josefsson.org>
17711
17712         * modules/warnings: New module.
17713         * m4/warnings.m4: New file.
17714         * MODULES.html.sh: Mention warnings module.
17715         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
17716         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17717
17718 2008-11-10  Eric Blake  <ebb9@byu.net>
17719
17720         fdl.texi: make a symlink to the latest version
17721         * doc/standards.texi: Revert today's earlier change.
17722         * doc/fdl-1.2.texi: Rename from old fdl.texi...
17723         * doc/fdl.texi: ...and replace this with a symlink to the newer
17724         fdl-1.3.texi.
17725
17726 2008-11-10  Bruno Haible  <bruno@clisp.org>
17727
17728         * tests/test-select-fd.c (main): Accept the result file name as fourth
17729         argument.
17730         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
17731         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
17732
17733 2008-11-10  Bruno Haible  <bruno@clisp.org>
17734
17735         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
17736         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
17737         as autoconf-substituted macros.
17738         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
17739         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
17740         gl_NETDB_H_DEFAULTS. Set these variables.
17741         * modules/netdb (Makefile.am): Substitute these variables.
17742
17743 2008-11-10  Eric Blake  <ebb9@byu.net>
17744
17745         standards.texi: include correct file for FDL 1.3
17746         * doc/standards.texi (GNU Free Documentation License): Change
17747         include file to pull in FDL 1.3, not 1.2.
17748
17749         fdl.texi: revert accidental change to license
17750         * doc/fdl.texi: This is FDL 1.2, not 1.3.
17751
17752 2008-11-10  Bruno Haible  <bruno@clisp.org>
17753
17754         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
17755         cross-compiling guesses also when the native compile gives no result.
17756
17757 2008-11-10  Bruno Haible  <bruno@clisp.org>
17758
17759         * lib/spawni.c (__spawni): Force variable into the stack.
17760
17761 2008-11-10  Bruno Haible  <bruno@clisp.org>
17762
17763         Add support for Haiku.
17764         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
17765         glibc and BeOS, but also on Haiku.
17766         * lib/fpurge.c (fpurge): Likewise.
17767         * lib/freadable.c (freadable): Likewise.
17768         * lib/freadahead.c (freadahead): Likewise.
17769         * lib/freading.c (freading): Likewise.
17770         * lib/freadptr.c (freadptr): Likewise.
17771         * lib/freadseek.c (freadptrinc): Likewise.
17772         * lib/fseeko.c (rpl_fseeko): Likewise.
17773         * lib/fseterr.c (fseterr): Likewise.
17774         * lib/fwritable.c (fwritable): Likewise.
17775         * lib/fwriting.c (fwriting): Likewise.
17776         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
17777
17778 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
17779
17780         * lib/config.charset: Treat Haiku like BeOS.
17781
17782 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
17783
17784         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
17785         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
17786
17787 2008-11-08  Bruno Haible  <bruno@clisp.org>
17788
17789         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
17790         AC_CACHE_CHECK.
17791
17792 2008-11-08  Bruno Haible  <bruno@clisp.org>
17793
17794         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
17795
17796 2008-11-08  Bruno Haible  <bruno@clisp.org>
17797
17798         * tests/test-select-fd.c: New file.
17799         * tests/test-select-in.sh: New file.
17800         * tests/test-select-out.sh: New file.
17801         * tests/test-select-stdin.c: New file.
17802         * modules/select-tests (Files): Add the new files.
17803         (Depends-on): Add gettimeofday.
17804         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
17805         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
17806         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
17807
17808 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
17809             Bruno Haible  <bruno@clisp.org>
17810
17811         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
17812
17813 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
17814
17815         * build-aux/pmccabe2html: Added support for C++ source files.
17816
17817 2008-11-05  Ben Pfaff  <blp@gnu.org>
17818
17819         Fix lib/close.c build on Windows.
17820         * modules/close (Files): Add lib/w32sock.h.
17821
17822 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
17823
17824         Accept Bison's NEWS format.
17825         * build-aux/announce-gen (print_news_deltas): Tweak
17826         $re_prefix.
17827
17828 2008-11-04  Bruno Haible  <bruno@clisp.org>
17829
17830         * modules/random_r (Maintainer): Add glibc.
17831
17832 2008-11-04  Simon Josefsson  <simon@josefsson.org>
17833
17834         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
17835         by karl@freefriends.org (Karl Berry).
17836         * doc/alloca.texi: Likewise.
17837         * doc/c-ctype.texi: Likewise.
17838         * doc/c-strcase.texi: Likewise.
17839         * doc/c-strcaseeq.texi: Likewise.
17840         * doc/c-strcasestr.texi: Likewise.
17841         * doc/c-strstr.texi: Likewise.
17842         * doc/c-strtod.texi: Likewise.
17843         * doc/c-strtold.texi: Likewise.
17844         * doc/ctime.texi: Likewise.
17845         * doc/error.texi: Likewise.
17846         * doc/fdl.texi: Likewise.
17847         * doc/gcd.texi: Likewise.
17848         * doc/getdate.texi: Likewise.
17849         * doc/gnulib-intro.texi: Likewise.
17850         * doc/gnulib-tool.texi: Likewise.
17851         * doc/gnulib.texi: Likewise.
17852         * doc/inet_ntoa.texi: Likewise.
17853         * doc/maintain.texi: Likewise.
17854         * doc/make-stds.texi: Likewise.
17855         * doc/quote.texi: Likewise.
17856         * doc/regexprops-generic.texi: Likewise.
17857         * doc/standards.texi: Likewise.
17858         * doc/verify.texi: Likewise.
17859         * doc/visibility.texi: Likewise.
17860         * doc/gnulib.texi (GNU Free Documentation License): Include
17861         fdl-1.3.texi instead of fdl.texi.
17862
17863 2008-11-04  Simon Josefsson  <simon@josefsson.org>
17864
17865         * doc/fdl-1.3.texi: New file, from
17866         <http://www.gnu.org/licenses/fdl-1.3.texi>.
17867         * modules/fdl-1.3: Add.
17868         * MODULES.html.sh: Add fdl-1.3.
17869
17870 2008-11-03  Bruno Haible  <bruno@clisp.org>
17871
17872         Make determination of absolute name of header file work with AIX xlc.
17873         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
17874         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
17875         preprocessing.
17876         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
17877         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
17878
17879 2008-11-03  Simon Josefsson  <simon@josefsson.org>
17880
17881         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
17882         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
17883         <ludo@gnu.org>.
17884
17885 2008-11-02  Bruno Haible  <bruno@clisp.org>
17886
17887         Mark 'strpbrk' obsolete.
17888         * modules/strpbrk (Status, Notice): New sections.
17889         * modules/strtok_r (Depends-on): Add strpbrk.
17890
17891 2008-11-02  Bruno Haible  <bruno@clisp.org>
17892
17893         Mark 'strdup' obsolete.
17894         * modules/strdup (Status, Notice): New sections.
17895         * modules/findprog (Depends-on): Add strdup.
17896         * modules/getaddrinfo (Depends-on): Likewise.
17897         * modules/localename (Depends-on): Likewise.
17898         * modules/relocatable-lib (Depends-on): Likewise.
17899         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
17900         * modules/relocatable-prog (Depends-on): Likewise.
17901         * modules/trim (Depends-on): Likewise.
17902         * modules/unictype/gen-ctype (Depends-on): Likewise.
17903         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
17904
17905 2008-11-02  Bruno Haible  <bruno@clisp.org>
17906
17907         Mark 'strcspn' obsolete.
17908         * modules/strcspn (Status, Notice): New sections.
17909
17910 2008-11-02  Bruno Haible  <bruno@clisp.org>
17911
17912         Mark 'rmdir' obsolete.
17913         * modules/rmdir (Status, Notice): New sections.
17914         * modules/clean-temp (Depends-on): Add rmdir.
17915         * modules/openat (Depends-on): Likewise.
17916
17917 2008-11-02  Bruno Haible  <bruno@clisp.org>
17918
17919         Mark 'raise' obsolete.
17920         * modules/raise (Status, Notice): New sections.
17921         (Include): Specify <signal.h>.
17922         * modules/stdio (Depends-on): Add raise.
17923         * modules/write (Depends-on): Likewise.
17924
17925 2008-11-02  Bruno Haible  <bruno@clisp.org>
17926
17927         Mark 'memset' obsolete.
17928         * modules/memset (Status, Notice): New sections.
17929
17930 2008-11-02  Bruno Haible  <bruno@clisp.org>
17931
17932         Mark 'memmove' obsolete.
17933         * modules/memmove (Status, Notice): New sections.
17934         * modules/argp (Depends-on): Add memmove.
17935         * modules/argz (Depends-on): Likewise.
17936         * modules/canonicalize (Depends-on): Likewise.
17937         * modules/canonicalize-lgpl (Depends-on): Likewise.
17938         * modules/fts (Depends-on): Likewise.
17939         * modules/getcwd (Depends-on): Likewise.
17940         * modules/human (Depends-on): Likewise.
17941         * modules/regex (Depends-on): Likewise.
17942         * modules/striconveh (Depends-on): Likewise.
17943         * modules/trim (Depends-on): Likewise.
17944         * modules/unistr/u8-move (Depends-on): Likewise.
17945         * modules/unistr/u16-move (Depends-on): Likewise.
17946         * modules/unistr/u32-move (Depends-on): Likewise.
17947
17948 2008-11-02  Bruno Haible  <bruno@clisp.org>
17949
17950         Mark 'memcpy' obsolete.
17951         * modules/memcpy (Status, Notice): New sections.
17952
17953 2008-11-02  Bruno Haible  <bruno@clisp.org>
17954
17955         Mark 'memcmp' obsolete.
17956         * modules/memcmp (Status, Notice): New sections.
17957         * modules/argmatch (Depends-on): Add memchr.
17958         * modules/backupfile (Depends-on): Likewise.
17959         * modules/c-strcasestr (Depends-on): Likewise.
17960         * modules/crypto/des (Depends-on): Likewise.
17961         * modules/csharpcomp (Depends-on): Likewise.
17962         * modules/fnmatch (Depends-on): Likewise.
17963         * modules/git-merge-changelog (Depends-on): Likewise.
17964         * modules/isnand (Depends-on): Likewise.
17965         * modules/isnand-nolibm (Depends-on): Likewise.
17966         * modules/isnanf (Depends-on): Likewise.
17967         * modules/isnanf-nolibm (Depends-on): Likewise.
17968         * modules/isnanl (Depends-on): Likewise.
17969         * modules/isnanl-nolibm (Depends-on): Likewise.
17970         * modules/mbchar (Depends-on): Likewise.
17971         * modules/memcoll (Depends-on): Likewise.
17972         * modules/quotearg (Depends-on): Likewise.
17973         * modules/regex (Depends-on): Likewise.
17974         * modules/relocatable-prog (Depends-on): Likewise.
17975         * modules/same (Depends-on): Likewise.
17976         * modules/signbit (Depends-on): Likewise.
17977         * modules/strcasestr-simple (Depends-on): Likewise.
17978         * modules/unictype/gen-ctype (Depends-on): Likewise.
17979         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
17980         * modules/uniname/uniname (Depends-on): Likewise.
17981         * modules/unistr/u8-cmp (Depends-on): Likewise.
17982
17983 2008-11-02  Bruno Haible  <bruno@clisp.org>
17984
17985         Mark 'memchr' obsolete.
17986         * modules/memchr (Status, Notice): New sections.
17987         * modules/argp (Depends-on): Add memchr.
17988         * modules/base64 (Depends-on): Likewise.
17989         * modules/c-strcasestr (Depends-on): Likewise.
17990         * modules/chdir-long (Depends-on): Likewise.
17991         * modules/fnmatch (Depends-on): Likewise.
17992         * modules/getsubopt (Depends-on): Likewise.
17993         * modules/git-merge-changelog (Depends-on): Likewise.
17994         * modules/glob (Depends-on): Likewise.
17995         * modules/strcasestr-simple (Depends-on): Likewise.
17996         * modules/strnlen (Depends-on): Likewise.
17997
17998 2008-11-02  Bruno Haible  <bruno@clisp.org>
17999
18000         Mark 'atexit' obsolete.
18001         * modules/atexit (Status, Notice): New sections.
18002         * modules/chdir-long (Depends-on): Add atexit.
18003         * modules/wait-process (Depends-on): Likewise.
18004
18005 2008-11-02  Bruno Haible  <bruno@clisp.org>
18006
18007         * gnulib-tool: New option --with-obsolete.
18008         (func_usage): Document it.
18009         (func_modules_transitive_closure): Drop obsolete dependencies if
18010         incobsolete is not true.
18011         (func_import): Read and save the incobsolete variable to the cache.
18012
18013 2008-11-02  Bruno Haible  <bruno@clisp.org>
18014
18015         * modules/TEMPLATE-EXTENDED: New field 'Status'.
18016         * gnulib-tool: New option --extract-status.
18017         (func_usage): Document it.
18018         (sed_extract_prog): Recognize it.
18019         (func_get_status): New function.
18020
18021 2008-10-30  Simon Josefsson  <simon@josefsson.org>
18022
18023         * modules/sockets (License): Change from LGPL to LGPLv2+.
18024
18025 2008-10-28  Simon Josefsson  <simon@josefsson.org>
18026
18027         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
18028
18029 2008-10-28  Simon Josefsson  <simon@josefsson.org>
18030
18031         * MODULES.html.sh (Support for systems lacking POSIX:2001):
18032         Mention times and sys_times.
18033         * modules/sys_times, modules/sys_times-tests: New modules.
18034         * modules/times, modules/times-tests: Likewise
18035         * m4/sys_times_h.m4: New file.
18036         * lib/sys_times.in.h: Likewise
18037         * lib/times.c: Likewise.
18038         * tests/test-sys_times.c: Likewise.
18039         * tests/test-times.c: Likewise.
18040         * doc/posix-headers/sys_times.texi: Update.
18041         * doc/posix-functions/times.texi: Update.
18042
18043 2008-10-28  Jim Meyering  <meyering@redhat.com>
18044
18045         * modules/tempname (Depends-on): Add lstat.
18046
18047         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
18048
18049 2008-10-28  Simon Josefsson  <simon@josefsson.org>
18050
18051         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
18052         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
18053         using idiom used elsewhere in gnulib.
18054
18055 2008-10-27  Jim Meyering  <meyering@redhat.com>
18056
18057         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
18058
18059 2008-10-27  Simon Josefsson  <simon@josefsson.org>
18060
18061         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
18062         TESTS_ENVIRONMENT, for shell scripts that needs to call built
18063         programs.
18064         * tests/test-argp-2.sh: Use $EXEEXT when needed.
18065
18066 2008-10-27  Simon Josefsson  <simon@josefsson.org>
18067
18068         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
18069
18070 2008-10-27  Bruno Haible  <bruno@clisp.org>
18071
18072         * tests/test-lstat.c: Include <stdio.h>.
18073
18074 2008-10-27  Simon Josefsson  <simon@josefsson.org>
18075
18076         * modules/lstat-tests: New module.
18077         * tests/test-lstat.c: New file.
18078
18079 2008-10-26  Jim Meyering  <meyering@redhat.com>
18080
18081         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
18082
18083 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18084             Bruno Haible  <bruno@clisp.org>
18085
18086         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
18087         * modules/configmake (Include): Add a note that the include must come
18088         after all system headers.
18089         * lib/javaversion.c: Include configmake.h after all other includes.
18090
18091 2008-10-26  Bruno Haible  <bruno@clisp.org>
18092
18093         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
18094         HAVE_STRUCT_RANDOM_DATA to 1.
18095         (gl_STDLIB_H): Simplify.
18096
18097 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18098
18099         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
18100         substitute HAVE_STRUCT_RANDOM_DATA.
18101         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
18102         random_data.
18103         * modules/stdlib (Makefile.am): Substitute
18104         HAVE_STRUCT_RANDOM_DATA.
18105
18106 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18107
18108         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
18109         * doc/gnulib-intro.texi (Copyright): Likewise.
18110
18111 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18112
18113         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
18114         findings.
18115
18116 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
18117             Bruno Haible  <bruno@clisp.org>
18118
18119         * lib/unistd.in.h: Include <winsock2.h>.
18120         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
18121         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
18122         Provide dummy declarations.
18123         (gethostname): Override.
18124         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
18125         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
18126         gl_PREREQ_SYS_H_WINSOCK2.
18127         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
18128         * doc/posix-functions/gethostname.texi: More details.
18129
18130 2008-10-25  Bruno Haible  <bruno@clisp.org>
18131
18132         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
18133         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
18134         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
18135
18136         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
18137         here ...
18138         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
18139         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
18140         gl_UNISTD_H_DEFAULTS.
18141
18142 2008-10-25  Eric Blake  <ebb9@byu.net>
18143
18144         signbit: avoid spurious compiler failure
18145         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
18146         declarations inside function.
18147
18148 2008-10-24  Simon Josefsson  <simon@josefsson.org>
18149             Bruno Haible  <bruno@clisp.org>
18150
18151         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
18152         * modules/random_r (Depends-on): Add stdint.
18153
18154 2008-10-24  Bruno Haible  <bruno@clisp.org>
18155
18156         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
18157         Eggert.
18158         * modules/strerror (License): Likewise.
18159
18160 2008-10-24  Jim Meyering  <meyering@redhat.com>
18161
18162         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
18163         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
18164
18165 2008-10-24  Eric Blake  <ebb9@byu.net>
18166
18167         getgroups: fix compilation when getgroups is available
18168         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
18169         but with <config.h> override of getgroups disabled.
18170
18171 2008-10-24  Simon Josefsson  <simon@josefsson.org>
18172
18173         * doc/gnulib.texi (Header files): Add note about C++ problems.
18174         Explained by Bruno Haible <bruno@clisp.org>.
18175
18176 2008-10-23  Bruno Haible  <bruno@clisp.org>
18177
18178         Define a dummy SA_NODEFER macro on Interix.
18179         * lib/signal.in.h (SA_NODEFER): Define fallback.
18180         Reported by Aleksey Cheusov <cheusov@tut.by> via
18181         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
18182
18183 2008-10-23  Bruno Haible  <bruno@clisp.org>
18184
18185         * modules/freadahead (License): Change to LGPLv2+.
18186         Suggested by Simon Josefsson.
18187
18188 2008-10-23  Jim Meyering  <meyering@redhat.com>
18189
18190         random_r: new module
18191         * modules/random_r: New file.
18192         * m4/random_r.m4: New file.
18193         * lib/random_r.c: New file, from glibc.
18194         * modules/random_r-tests: New file.
18195         * tests/test-random_r.c: New file.
18196         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
18197          Declare.
18198         (RAND_MAX): Define.
18199         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
18200         * modules/stdlib: Substitute them, too.
18201         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
18202         * doc/glibc-functions/initstate_r.texi: Mention the new module.
18203         * doc/glibc-functions/random_r.texi: Likewise.
18204         * doc/glibc-functions/setstate_r.texi: Likewise.
18205         * doc/glibc-functions/srandom_r.texi: Likewise.
18206         * config/srclist.txt: Mention it.
18207
18208 2008-10-23  David Lutterkort  <lutter@redhat.com>
18209
18210         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
18211         link requirement
18212
18213 2008-10-23  Jim Meyering  <meyering@redhat.com>
18214
18215         selinux-h: mark parameters of stub functions as intentionally unused
18216         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
18217         * lib/se-context.in.h: Likewise.
18218
18219 2008-10-22  Simon Josefsson  <simon@josefsson.org>
18220
18221         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
18222
18223 2008-10-22  Simon Josefsson  <simon@josefsson.org>
18224
18225         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
18226
18227 2008-10-22  Eric Blake  <ebb9@byu.net>
18228
18229         glthread/thread: avoid compiler warning
18230         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
18231         Add unreachable abort to silence compiler.
18232
18233 2008-10-22  Eric Blake  <ebb9@byu.net>
18234
18235         netdb: also supply struct addrinfo for cygwin 1.5.x
18236         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
18237         older cygwin.
18238         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
18239         cygwin.
18240         * doc/posix-headers/netdb.texi (netdb.h): Document this.
18241
18242 2008-10-22  Bruno Haible  <bruno@clisp.org>
18243
18244         * users.txt: Update entry about pspp.
18245
18246 2008-10-21  Bruno Haible  <bruno@clisp.org>
18247
18248         Simplification.
18249         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
18250         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
18251
18252         Simplification.
18253         * lib/ioctl.c (ioctl): Don't undefine.
18254         * lib/socket.c (socket): Don't undefine.
18255
18256         Remove unused module indicator macros.
18257         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
18258         GNULIB_$1 as a C macro.
18259
18260         * doc/posix-functions/close.texi: Undo last change.
18261         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
18262         Windows platforms.
18263
18264 2008-10-21  Bruno Haible  <bruno@clisp.org>
18265
18266         Add gethostname() declaration to <unistd.h>.
18267         * lib/unistd.in.h (gethostname): New declaration.
18268         * lib/gethostname.c: Include <unistd.h>.
18269         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
18270         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
18271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
18272         and HAVE_GETHOSTNAME.
18273         * modules/gethostname (Depends-on): Add unistd.
18274         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18275         (Include): Specify <unistd.h>.
18276         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
18277         HAVE_GETHOSTNAME.
18278         * tests/test-gethostname.c: Include <unistd.h> first.
18279
18280 2008-10-21  Bruno Haible  <bruno@clisp.org>
18281
18282         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
18283         * modules/select-tests (Depends-on): Likewise.
18284         Reported by Simon Josefsson.
18285
18286 2008-10-21  Simon Josefsson  <simon@josefsson.org>
18287
18288         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
18289         * lib/accept.c: New file, based on winsock.c.
18290         * lib/bind.c: New file, based on winsock.c.
18291         * lib/connect.c: New file, based on winsock.c.
18292         * lib/getpeername.c: New file, based on winsock.c.
18293         * lib/getsockname.c: New file, based on winsock.c.
18294         * lib/getsockopt.c: New file, based on winsock.c.
18295         * lib/ioctl.c: New file, based on winsock.c.
18296         * lib/listen.c: New file, based on winsock.c.
18297         * lib/recv.c: New file, based on winsock.c.
18298         * lib/recvfrom.c: New file, based on winsock.c.
18299         * lib/send.c: New file, based on winsock.c.
18300         * lib/sendto.c: New file, based on winsock.c.
18301         * lib/setsockopt.c: New file, based on winsock.c.
18302         * lib/shutdown.c: New file, based on winsock.c.
18303         * lib/socket.c: New file, based on winsock.c.
18304         * lib/w32sock.h: New file, based on winsock.c.
18305         * lib/winsock.c: Remove file.
18306         * modules/accept: Likewise.
18307         * modules/bind: Likewise.
18308         * modules/connect: Likewise.
18309         * modules/getpeername: Likewise.
18310         * modules/getsockname: Likewise.
18311         * modules/getsockopt: Likewise.
18312         * modules/ioctl: Likewise.
18313         * modules/listen: Likewise.
18314         * modules/recv: Likewise.
18315         * modules/recvfrom: Likewise.
18316         * modules/send: Likewise.
18317         * modules/sendto: Likewise.
18318         * modules/setsockopt: Likewise.
18319         * modules/shutdown: Likewise.
18320         * modules/socket: Use socket.c instead of winsock.c.
18321         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
18322         * doc/posix-functions/accept.texi: Doc fix.
18323         * doc/posix-functions/bind.texi: Doc fix.
18324         * doc/posix-functions/close.texi: Doc fix.
18325         * doc/posix-functions/connect.texi: Doc fix.
18326         * doc/posix-functions/getpeername.texi: Doc fix.
18327         * doc/posix-functions/getsockname.texi: Doc fix.
18328         * doc/posix-functions/getsockopt.texi: Doc fix.
18329         * doc/posix-functions/ioctl.texi: Doc fix.
18330         * doc/posix-functions/listen.texi: Doc fix.
18331         * doc/posix-functions/recv.texi: Doc fix.
18332         * doc/posix-functions/recvfrom.texi: Doc fix.
18333         * doc/posix-functions/send.texi: Doc fix.
18334         * doc/posix-functions/sendto.texi: Doc fix.
18335         * doc/posix-functions/setsockopt.texi: Doc fix.
18336         * doc/posix-functions/shutdown.texi: Doc fix.
18337         * doc/posix-functions/socket.texi: Doc fix.
18338
18339 2008-10-20  Bruno Haible  <bruno@clisp.org>
18340
18341         Take into account the role of SIGABRT_COMPAT on Windows 2008.
18342         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
18343         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
18344         as an alias for SIGABRT.
18345         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
18346         (sigaction): Map it to SIGABRT.
18347         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
18348
18349 2008-10-20  Bruno Haible  <bruno@clisp.org>
18350
18351         * lib/fts.c: Don't include lstat.h.
18352         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
18353
18354         Move the lstat() declaration to <sys/stat.h>.
18355         * lib/lstat.h: Remove file.
18356         * lib/sys_stat.in.h: Add special invocation convention.
18357         (lstat): New declaration.
18358         * lib/lstat.c (orig_lstat): New function.
18359         (rpl_lstat): Use orig_lstat instead of lstat.
18360         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
18361         AC_C_INLINE. Set REPLACE_LSTAT.
18362         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
18363         and REPLACE_LSTAT.
18364         * modules/lstat (Files): Remove lib/lstat.h.
18365         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
18366         (Include): Specify <sys/stat.h> instead of lstat.h.
18367         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
18368         REPLACE_LSTAT.
18369         * NEWS: Mention the change.
18370
18371 2008-10-20  Bruno Haible  <bruno@clisp.org>
18372
18373         * modules/posix_spawn-tests: New file.
18374         * tests/test-posix_spawn3.c: New file.
18375
18376 2008-10-20  Bruno Haible  <bruno@clisp.org>
18377
18378         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
18379         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18380         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
18381         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18382         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
18383
18384 2008-10-20  Bruno Haible  <bruno@clisp.org>
18385
18386         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
18387         of posix_spawn on AIX 5.3.
18388
18389 2008-10-20  Bruno Haible  <bruno@clisp.org>
18390
18391         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
18392
18393 2008-10-20  Bruno Haible  <bruno@clisp.org>
18394
18395         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
18396         of AC_LANG_PROGRAM.
18397
18398 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18399
18400         * lib/netdb.in.h: Don't define GNU specific constants until they
18401         are supported or needed.  Reported by Bruno Haible
18402         <bruno@clisp.org>.
18403
18404 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18405
18406         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
18407
18408 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18409
18410         * lib/getaddrinfo.h: Remove file.
18411         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
18412         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
18413         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
18414         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
18415         * modules/netdb: Substitute GNULIB_GETADDRINFO.
18416         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
18417         * tests/test-getaddrinfo.c: Likewise.
18418         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
18419         * NEWS: Mention change.
18420
18421 2008-10-19  Bruno Haible  <bruno@clisp.org>
18422
18423         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
18424
18425 2008-10-19  Bruno Haible  <bruno@clisp.org>
18426
18427         * lib/wait-process.c: Include simply <sys/wait.h>.
18428         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
18429         WIFSTOPPED): Remove fallback definitions.
18430         * modules/wait-process (Depends-on): Add sys_wait.
18431
18432         New module 'sys_wait'.
18433         * modules/sys_wait: New file.
18434         * lib/sys_wait.in.h: New file, partially copied from
18435         lib/wait-process.c.
18436         * m4/sys_wait_h.m4: New file.
18437         * doc/posix-headers/sys_wait.texi: Mention the new module.
18438
18439 2008-10-19  Bruno Haible  <bruno@clisp.org>
18440
18441         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
18442
18443 2008-10-19  Bruno Haible  <bruno@clisp.org>
18444
18445         Assume that waitpid() fills an 'int' status, not a 'union wait'.
18446         * lib/wait-process.c (WAIT_T): Remove type.
18447         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
18448         (wait_subprocess): Update.
18449
18450 2008-10-19  Bruno Haible  <bruno@clisp.org>
18451
18452         New module 'atoll'.
18453         * modules/atoll: New file.
18454         * lib/stdlib.in.h (atoll): New declaration.
18455         * lib/atoll.c: New file, from glibc with modifications.
18456         * m4/atoll.m4: New file.
18457         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
18458         HAVE_ATOLL.
18459         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
18460         * doc/posix-functions/atoll.texi: Mention the new module.
18461
18462 2008-10-19  Bruno Haible  <bruno@clisp.org>
18463
18464         Add strtoull() declaration to <stdlib.h>.
18465         * lib/stdlib.in.h (strtoull): New declaration.
18466         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
18467         Set HAVE_STRTOULL.
18468         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
18469         HAVE_STRTOULL.
18470         * modules/strtoull (Depends-on): Add stdlib.
18471         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18472         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
18473         HAVE_STRTOULL.
18474
18475 2008-10-19  Bruno Haible  <bruno@clisp.org>
18476
18477         Add strtoll() declaration to <stdlib.h>.
18478         * lib/stdlib.in.h (strtoll): New declaration.
18479         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
18480         Set HAVE_STRTOLL.
18481         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
18482         HAVE_STRTOLL.
18483         * modules/strtoll (Depends-on): Add stdlib.
18484         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18485         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
18486
18487 2008-10-19  Bruno Haible  <bruno@clisp.org>
18488
18489         * modules/bcopy (Depends-on): Add strings.
18490         (Include): Specify <strings.h>.
18491
18492 2008-10-19  Bruno Haible  <bruno@clisp.org>
18493
18494         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
18495
18496 2008-10-19  Bruno Haible  <bruno@clisp.org>
18497
18498         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
18499         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
18500         mingw.
18501
18502 2008-10-19  Bruno Haible  <bruno@clisp.org>
18503
18504         * lib/atanl.c: Don't include isnanl.h.
18505         * lib/cosl.c: Likewise.
18506         * lib/ldexpl.c: Likewise.
18507         * lib/logl.c: Likewise.
18508         * lib/sinl.c: Likewise.
18509         * lib/sqrtl.c: Likewise.
18510         * lib/tanl.c: Likewise.
18511
18512         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
18513         * lib/isnanf.h: Remove file.
18514         * lib/isnand.h: Remove file.
18515         * lib/isnanl.h: Remove file.
18516         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
18517         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
18518         macros.
18519         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
18520         HAVE_ISNANF, don't define it as a C macro.
18521         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
18522         HAVE_ISNAND, don't define it as a C macro.
18523         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
18524         HAVE_ISNANL, don't define it as a C macro.
18525         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
18526         HAVE_ISNAN[FDL].
18527         * modules/isnanf (Files): Remove lib/isnanf.h.
18528         (Depends-on): Add math.
18529         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18530         (Include): Specify <math.h> instead of isnanf.h.
18531         * modules/isnand (Files): Remove lib/isnand.h.
18532         (Depends-on): Add math.
18533         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18534         (Include): Specify <math.h> instead of isnand.h.
18535         * modules/isnanl (Files): Remove lib/isnanl.h.
18536         (Depends-on): Add math.
18537         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18538         (Include): Specify <math.h> instead of isnanl.h.
18539         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
18540         HAVE_ISNAN[FDL].
18541         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
18542         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
18543         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
18544         * NEWS: Mention the change.
18545
18546 2008-10-18  Bruno Haible  <bruno@clisp.org>
18547
18548         Add getusershell(), setusershell(), endusershell() declarations to
18549         <unistd.h>.
18550         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
18551         declarations.
18552         * lib/getusershell.c: Include unistd.h.
18553         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
18554         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
18555         HAVE_GETUSERSHELL.
18556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
18557         and HAVE_GETUSERSHELL.
18558         * modules/getusershell (Depends-on): Add unistd, extensions.
18559         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18560         (Include): Specify <unistd.h>.
18561         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
18562         HAVE_GETUSERSHELL.
18563
18564 2008-10-18  Bruno Haible  <bruno@clisp.org>
18565
18566         Add a getloadavg() declaration to <stdlib.h>.
18567         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
18568         getloadavg declaration.
18569         (getloadavg): New declaration.
18570         * lib/getloadavg.c: Include <stdlib.h> first.
18571         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
18572         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
18573         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
18574         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
18575         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
18576         * modules/getloadavg (Depends-on): Add stdlib, extensions.
18577         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18578         (Include): Specify <stdlib.h>.
18579         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
18580         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
18581
18582 2008-10-18  Bruno Haible  <bruno@clisp.org>
18583
18584         * lib/dirchownmod.c: Don't include lchmod.h.
18585
18586         Move the lchmod() declaration to <sys/stat.h>.
18587         * lib/lchmod.h: Remove file.
18588         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
18589         (lchmod): New declaration, moved here from lib/lchown.h.
18590         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
18591         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
18592         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
18593         and HAVE_LCHMOD.
18594         * modules/lchmod (Files): Remove lib/lchmod.h.
18595         (Depends-on): Add sys_stat, extensions.
18596         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
18597         (Include): Specify <sys/stat.h> instead of lchmod.h.
18598         * modules/sys_stat (Depends-on): Add link-warning.
18599         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
18600         definition of GL_LINK_WARNING.
18601         * NEWS: Mention the change.
18602
18603 2008-10-18  Bruno Haible  <bruno@clisp.org>
18604
18605         * lib/fchdir.c: Don't include dirfd.h.
18606         * lib/fts.c: Likewise.
18607         * lib/getcwd.c: Likewise.
18608         * lib/glob.c: Likewise.
18609
18610         Move the dirfd() declaration to <dirent.h>.
18611         * lib/dirfd.h: Remove file.
18612         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
18613         (dirfd): New declaration.
18614         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
18615         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
18616         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
18617         HAVE_DECL_DIRFD.
18618         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
18619         HAVE_DECL_DIRFD.
18620         * modules/dirfd (Files): Remove lib/dirfd.h.
18621         (Depends-on): Add dirent, extensions.
18622         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
18623         (Include): Specify <dirent.h> instead of dirfd.h.
18624         * modules/dirent (Depends-on): Add link-warning.
18625         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
18626         definition of GL_LINK_WARNING.
18627         * NEWS: Mention the change.
18628
18629 2008-10-18  Bruno Haible  <bruno@clisp.org>
18630
18631         Move the euidaccess() declaration to <unistd.h>.
18632         * lib/euidaccess.h: Remove file.
18633         * lib/unistd.in.h (euidaccess): New declaration.
18634         * lib/euidaccess.c: Don't include euidaccess.h.
18635         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
18636         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
18637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
18638         and HAVE_EUIDACCESS.
18639         * modules/euidaccess (Files): Remove lib/euidaccess.h.
18640         (Depends-on): Add unistd.
18641         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18642         (Include): Specify <unistd.h> instead of euidaccess.h.
18643         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
18644         HAVE_EUIDACCESS.
18645         * NEWS: Mention the change.
18646
18647 2008-10-18  Bruno Haible  <bruno@clisp.org>
18648
18649         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
18650
18651         Move the getdomainname() declaration to <unistd.h>.
18652         * lib/getdomainname.h: Remove file.
18653         * lib/unistd.in.h (getdomainname): New declaration.
18654         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
18655         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18656         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
18657         HAVE_GETDOMAINNAME.
18658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18659         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
18660         * modules/getdomainname (Files): Remove lib/getdomainname.h.
18661         (Depends-on): Add unistd, extensions.
18662         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18663         (Includes): Specify <unistd.h> instead of getdomainname.h.
18664         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
18665         HAVE_GETDOMAINNAME.
18666         * NEWS: Mention the change.
18667
18668 2008-10-18  Bruno Haible  <bruno@clisp.org>
18669
18670         * modules/dirent: New file.
18671         * m4/dirent_h.m4: New file.
18672         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
18673         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
18674         * modules/fchdir (Files): Remove lib/dirent.in.h.
18675         (Depends-on): Add dirent.
18676         (Makefile.am): Move rules to modules/dirent.
18677         * doc/posix-headers/dirent.texi: Mention the new module.
18678
18679 2008-10-18  Bruno Haible  <bruno@clisp.org>
18680
18681         Avoid -Wunused-parameter warnings in public gnulib header files.
18682         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
18683         macro.
18684         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
18685
18686 2008-10-18  Bruno Haible  <bruno@clisp.org>
18687
18688         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
18689         * doc/glibc-functions/error.texi: Mention the module 'error'.
18690         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
18691         * doc/glibc-functions/getdomainname.texi: Mention the module
18692         'getdomainname'.
18693         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
18694         * doc/glibc-functions/getpagesize.texi: Mention the module
18695         'getpagesize'.
18696         * doc/glibc-functions/getusershell.texi: Mention the module
18697         'getusershell'.
18698         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
18699         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
18700         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
18701         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
18702         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
18703         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
18704         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
18705         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
18706         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
18707         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
18708         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
18709         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
18710         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
18711         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
18712
18713 2008-10-17  Bruno Haible  <bruno@clisp.org>
18714
18715         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
18716         HP-UX and IRIX, use -0.0L.
18717         * tests/test-ceill.c (minus_zero): Likewise.
18718         * tests/test-floorl.c (minus_zero): Likewise.
18719         * tests/test-frexpl.c (minus_zero): Likewise.
18720         * tests/test-isnan.c (minus_zerol): Likewise.
18721         * tests/test-isnanl.h (minus_zero): Likewise.
18722         * tests/test-ldexpl.c (minus_zero): Likewise.
18723         * tests/test-roundl.c (minus_zero): Likewise.
18724         * tests/test-signbit.c (minus_zerol): Likewise.
18725         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
18726         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
18727         * tests/test-truncl.c (minus_zero): Likewise.
18728         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
18729         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
18730         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
18731         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
18732
18733 2008-10-17  Bruno Haible  <bruno@clisp.org>
18734
18735         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
18736         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
18737         that it gets activated only for gcc >= 3.0.
18738         * lib/dirent.in.h: Likewise.
18739         * lib/errno.in.h: Likewise.
18740         * lib/fcntl.in.h: Likewise.
18741         * lib/float.in.h: Likewise.
18742         * lib/iconv.in.h: Likewise.
18743         * lib/inttypes.in.h: Likewise.
18744         * lib/locale.in.h: Likewise.
18745         * lib/math.in.h: Likewise.
18746         * lib/netdb.in.h: Likewise.
18747         * lib/netinet_in.in.h: Likewise.
18748         * lib/search.in.h: Likewise.
18749         * lib/signal.in.h: Likewise.
18750         * lib/spawn.in.h: Likewise.
18751         * lib/stdarg.in.h: Likewise.
18752         * lib/stdint.in.h: Likewise.
18753         * lib/stdio.in.h: Likewise.
18754         * lib/stdlib.in.h: Likewise.
18755         * lib/string.in.h: Likewise.
18756         * lib/strings.in.h: Likewise.
18757         * lib/sys_file.in.h: Likewise.
18758         * lib/sys_ioctl.in.h: Likewise.
18759         * lib/sys_select.in.h: Likewise.
18760         * lib/sys_socket.in.h: Likewise.
18761         * lib/sys_stat.in.h: Likewise.
18762         * lib/sys_time.in.h: Likewise.
18763         * lib/sysexits.in.h: Likewise.
18764         * lib/time.in.h: Likewise.
18765         * lib/unistd.in.h: Likewise.
18766         * lib/wchar.in.h: Likewise.
18767         * lib/wctype.in.h: Likewise.
18768         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18769
18770 2008-10-17  Jim Meyering  <meyering@redhat.com>
18771
18772         ignore-value: don't depend on inline module
18773         * modules/ignore-value (Depends-on): Remove 'inline'.
18774         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
18775         Suggestion from Bruno Haible.
18776
18777 2008-10-17  Bruno Haible  <bruno@clisp.org>
18778
18779         New implementation of condition variables for Win32.
18780         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
18781         (gl_linked_waitqueue_t): New type.
18782         (gl_cond_t): Use it.
18783         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
18784         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
18785         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
18786         (glthread_cond_init_func, glthread_cond_wait_func,
18787         glthread_cond_timedwait_func, glthread_cond_signal_func,
18788         glthread_cond_broadcast_func, glthread_cond_destroy_func):
18789         Reimplemented on the basis of gl_linked_waitqueue_t.
18790         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
18791         gl_waitqueue_t.
18792         (gl_rwlock_t): Update.
18793         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
18794
18795 2008-10-17  Simon Josefsson  <simon@josefsson.org>
18796
18797         * modules/recvfrom (Depends-on): Add dependency on getpeername.
18798         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
18799
18800 2008-10-17  Jim Meyering  <meyering@redhat.com>
18801
18802         ignore-value: new module
18803         * modules/ignore-value: New file.
18804         * lib/ignore-value.h: New file.
18805         * MODULES.html.sh (Compiler warning management): New section,
18806         just for this module.  More to come.
18807
18808 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
18809
18810         open-safer.c: avoid 'signed and unsigned in conditional...' warning
18811         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
18812         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
18813
18814 2008-10-16  Jim Meyering  <meyering@redhat.com>
18815
18816         openat-die.c: avoid 'no previous prototype' warning
18817         * lib/openat-die.c: Include "openat.h".
18818         Reported by Reuben Thomas <rrt@sc3d.org>.
18819
18820 2008-10-16  Simon Josefsson  <simon@josefsson.org>
18821
18822         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
18823         * lib/netdb.in.h: Fix typo.
18824         Reported by Bruno Haible  <bruno@clisp.org>
18825
18826         * lib/netdb.in.h: Include sys/socket.h for platforms without
18827         netdb.h, to get structures like hostent on MinGW.
18828         * modules/netdb (Depends-on): Add sys_socket.
18829
18830 2008-10-15  Simon Josefsson  <simon@josefsson.org>
18831
18832         * modules/netdb, modules/netdb-tests: New file.
18833         * m4/netdb_h.m4: New file.
18834         * lib/netdb.in.h: Add, currently just an empty file pending
18835         definitions.
18836         * tests/test-netdb.c: New file.
18837         * doc/posix-headers/netdb.texi: Mention that we replace it if
18838         needed.
18839         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18840         netdb.
18841
18842 2008-10-15  Simon Josefsson  <simon@josefsson.org>
18843
18844         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
18845         with code.
18846
18847 2008-10-13  Bruno Haible  <bruno@clisp.org>
18848
18849         * lib/glthread/cond.c (glthread_cond_wait_func,
18850         glthread_cond_timedwait_func): Add a comment.
18851
18852 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
18853
18854         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
18855         * tests/test-select.c: Likewise,
18856
18857 2008-10-13  Bruno Haible  <bruno@clisp.org>
18858
18859         * lib/glthread/cond.c (glthread_cond_wait_func,
18860         glthread_cond_timedwait_func): Fix variable name.
18861         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
18862
18863 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
18864
18865         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
18866         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
18867         struct sockaddr.sa_len.
18868         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
18869
18870 2008-10-13  Simon Josefsson  <simon@josefsson.org>
18871
18872         * build-aux/pmccabe2html: Add css and css_url parameters.
18873
18874 2008-10-12  Bruno Haible  <bruno@clisp.org>
18875
18876         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
18877         calling aclx_get.
18878         Reported by Rainer Tammer <tammer@tammer.net>.
18879
18880 2008-10-12  Bruno Haible  <bruno@clisp.org>
18881
18882         Use msvcrt aware primitives for creation/termination of Win32 threads.
18883         * lib/glthread/thread.c: Include <process.h>.
18884         (glthread_create_func): Use _beginthreadex instead of CreateThread.
18885         (wrapper_func): Update signature.
18886         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
18887
18888 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
18889             Bruno Haible  <bruno@clisp.org>
18890
18891         Provide a Win32 implementation of the 'cond' module.
18892         * lib/glthread/cond.h [USE_WIN32]: New implementation.
18893         * lib/glthread/cond.c (glthread_cond_init_func,
18894         glthread_cond_wait_func, glthread_cond_timedwait_func,
18895         glthread_cond_signal_func, glthread_cond_broadcast_func,
18896         glthread_cond_destroy_func) [USE_WIN32]: New functions.
18897         * modules/cond (Dependencies): Add gettimeofday.
18898
18899 2008-10-11  Bruno Haible  <bruno@clisp.org>
18900
18901         Make sleep work on older versions of mingw.
18902         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
18903         only whether it exists.
18904         * doc/posix-functions/sleep.texi: Mention the problem with older
18905         versions of mingw.
18906
18907 2008-10-11  Bruno Haible  <bruno@clisp.org>
18908
18909         New module 'shutdown'.
18910         * modules/shutdown: New file.
18911         * lib/sys_socket.in.h (shutdown): New declaration.
18912         * lib/winsock.c (shutdown): New function.
18913         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18914         GNULIB_SHUTDOWN.
18915         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
18916         * doc/posix-functions/shutdown.texi: Document the new module.
18917
18918 2008-10-11  Jim Meyering  <meyering@redhat.com>
18919
18920         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
18921
18922 2008-10-11  Bruno Haible  <bruno@clisp.org>
18923
18924         New module 'fclose'.
18925         * modules/fclose: New file.
18926         * lib/stdio.in.h (fclose): New declaration.
18927         * lib/fclose.c: New file.
18928         * m4/fclose.m4: New file.
18929         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
18930         REPLACE_FCLOSE.
18931         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
18932         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
18933         REPLACE_FCLOSE.
18934         * modules/close (Depends-on): fclose.
18935         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
18936
18937 2008-10-11  Bruno Haible  <bruno@clisp.org>
18938
18939         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
18940         set errno and don't call _close.
18941
18942 2008-10-10  Bruno Haible  <bruno@clisp.org>
18943
18944         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
18945         ACL, not afterwards. Fixes test failure on Cygwin.
18946
18947 2008-10-09  Ben Pfaff  <blp@gnu.org>
18948
18949         * build-aux/announce-gen: Fix gnulib version related part of usage
18950         message.  Die with a useful error message if no tarballs are
18951         found.
18952
18953 2008-10-10  Jim Meyering  <meyering@redhat.com>
18954
18955         bootstrap: use git's --depth=N option only if it's supported
18956         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
18957         recognize the --depth option.  Reported by Pádraig Brady.
18958
18959 2008-10-09  Bruno Haible  <bruno@clisp.org>
18960
18961         New module 'ioctl'.
18962         * modules/ioctl: New file.
18963         * lib/sys_socket.in.h (ioctl): Remove declaration.
18964         * lib/winsock.c: Include <sys/ioctl.h>.
18965         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
18966         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
18967         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
18968         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
18969         * doc/posix-functions/ioctl.texi: Mention the new module.
18970
18971 2008-10-09  Bruno Haible  <bruno@clisp.org>
18972
18973         New module 'sys_ioctl'.
18974         * lib/sys_ioctl.in.h: New file.
18975         * m4/sys_ioctl_h.m4: New file.
18976         * modules/sys_ioctl: New file.
18977         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
18978
18979 2008-10-09  Bruno Haible  <bruno@clisp.org>
18980
18981         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
18982         * lib/winsock.c: Include <stdarg.h>.
18983         (rpl_ioctl): Change to second argument 'int' and then varargs.
18984
18985 2008-10-09  Bruno Haible  <bruno@clisp.org>
18986
18987         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
18988         when the sys_socket module is present and the system has <winsock2.h>.
18989
18990 2008-10-09  Bruno Haible  <bruno@clisp.org>
18991
18992         * doc/posix-functions/close.texi: Mention module 'close' instead of
18993         module 'sys_socket'.
18994
18995 2008-10-09  Bruno Haible  <bruno@clisp.org>
18996
18997         * doc/glibc-headers/sys_ioctl.texi: New file.
18998         * doc/gnulib.texi: Include it.
18999
19000 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19001             Bruno Haible  <bruno@clisp.org>
19002
19003         Combine the two replacements of 'close'.
19004         * lib/sys_socket.in.h (close): Define to a reminder to include
19005         <unistd.h>.
19006         (_gl_close_fd_maybe_socket): New declaration.
19007         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
19008         * lib/winsock.c (close): Remove undefinition.
19009         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
19010         needed for the gnulib module 'close'.
19011         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
19012         define to an error symbol or to a warning, if suitable.
19013         * lib/close.c: Include <sys/socket.h>.
19014         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
19015         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
19016         UNISTD_H_HAVE_WINSOCK2_H.
19017         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
19018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19019         UNISTD_H_HAVE_WINSOCK2_H.
19020         * modules/sys_socket (Files): Add m4/unistd_h.m4.
19021         (configure.ac): Set a module indicator.
19022         (Makefile.am): Substitute GNULIB_CLOSE.
19023         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
19024         * modules/poll-tests (Depends-on): Add close.
19025         * modules/select-tests (Depends-on): Likewise.
19026
19027 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19028             Bruno Haible  <bruno@clisp.org>
19029
19030         New module 'close'.
19031         * modules/close: New file.
19032         * lib/unistd.in.h (close): Move declaration out of the
19033         FCHDIR_REPLACEMENT scope.
19034         (_gl_unregister_fd): New declaration.
19035         * lib/close.c: New file.
19036         * lib/fchdir.c (rpl_close): Remove function.
19037         * m4/close.m4: New file.
19038         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19039         close.
19040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
19041         REPLACE_CLOSE.
19042         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
19043         REPLACE_CLOSE.
19044         * modules/fchdir (Depends-on): Add close.
19045
19046 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19047             Bruno Haible  <bruno@clisp.org>
19048
19049         * lib/fcntl.in.h (open): Simplify conditionals.
19050         (_gl_register_fd): New declaration.
19051         * lib/fchdir.c (rpl_open): Remove function.
19052         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
19053         also.
19054         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
19055         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19056         open.
19057
19058 2008-10-09  Jim Meyering  <meyering@redhat.com>
19059
19060         GNUmakefile: use the more name-space-friendly "_version"
19061         * top/GNUmakefile (_dummy): Update.
19062         (_version): Rename from "version".
19063
19064 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19065             Bruno Haible  <bruno@clisp.org>
19066
19067         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
19068         rpl_close.
19069         (_gl_register_fd): New function, extracted from rpl_open.
19070         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
19071         (rpl_open, rpl_opendir): Use _gl_register_fd.
19072
19073 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19074
19075         Fix organization of 'open' replacement.
19076         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
19077         (gl_FUNC_OPEN): Use it.
19078         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
19079
19080 2008-10-08  Bruno Haible  <bruno@clisp.org>
19081
19082         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
19083
19084 2008-10-08  Simon Josefsson  <simon@josefsson.org>
19085
19086         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
19087         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
19088         listen).
19089
19090 2008-10-08  Eric Blake  <ebb9@byu.net>
19091
19092         GNUmakefile: add 'make version' target
19093         * top/GNUmakefile (_curr-ver): Split version update rules...
19094         (version): ...into a target.
19095
19096 2008-10-07  Bruno Haible  <bruno@clisp.org>
19097
19098         Use a more portable replacement expression for -0.0L.
19099         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
19100         instead of -0.0L. Fix m4 quotation.
19101
19102         * tests/test-signbit.c: Include <float.h>.
19103         (minus_zero): New variable.
19104         (test_signbitl): Use minus_zero instead of -zero.
19105         * modules/signbit-tests (Depends-on): Add float.
19106
19107         * tests/test-ceill.c: Include <float.h>.
19108         (zero): Remove variable.
19109         (minus_zero): New variable.
19110         (main): Use minus_zero instead of -zero.
19111         * modules/ceill-tests (Depends-on): Add float.
19112
19113         * tests/test-floorl.c: Include <float.h>.
19114         (zero): Remove variable.
19115         (minus_zero): New variable.
19116         (main): Use minus_zero instead of -zero.
19117         * modules/floorl-tests (Depends-on): Add float.
19118
19119         * tests/test-roundl.c: Include <float.h>.
19120         (zero): Remove variable.
19121         (minus_zero): New variable.
19122         (main): Use minus_zero instead of -zero.
19123         * modules/roundl-tests (Depends-on): Add float.
19124
19125         * tests/test-truncl.c: Include <float.h>.
19126         (zero): Remove variable.
19127         (minus_zero): New variable.
19128         (main): Use minus_zero instead of -zero.
19129         * modules/truncl-tests (Depends-on): Add float.
19130
19131         * tests/test-frexpl.c (zero): Remove variable.
19132         (minus_zero): New variable.
19133         (main): Use minus_zero instead of -zero.
19134         * modules/frexpl-tests (Depends-on): Add float.
19135
19136         * tests/test-isnan.c (zerol): Remove variable.
19137         (minus_zerol): New variable.
19138         (test_long_double): Use minus_zerol instead of -zerol.
19139         * modules/isnan-tests (Depends-on): Add float.
19140
19141         * tests/test-isnanl.h (zero): Remove variable.
19142         (minus_zero): New variable.
19143         (main): Use minus_zero instead of -zero.
19144         * modules/isnanl-nolibm-tests (Depends-on): Add float.
19145         * modules/isnanl-tests (Depends-on): Add float.
19146
19147         * tests/test-ldexpl.c (zero): Remove variable.
19148         (minus_zero): New variable.
19149         (main): Use minus_zero instead of -zero.
19150         * modules/ldexpl-tests (Depends-on): Add float.
19151
19152         * tests/test-snprintf-posix.h (zerol): Remove variable.
19153         (minus_zerol): New variable.
19154         (test_function): Use minus_zerol instead of -zerol.
19155         * modules/snprintf-posix-tests (Depends-on): Add float.
19156         * modules/vsnprintf-posix-tests (Depends-on): Add float.
19157
19158         * tests/test-sprintf-posix.h (zerol): Remove variable.
19159         (minus_zerol): New variable.
19160         (test_function): Use minus_zerol instead of -zerol.
19161         * modules/sprintf-posix-tests (Depends-on): Add float.
19162         * modules/vsprintf-posix-tests (Depends-on): Add float.
19163
19164         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
19165         (minus_zerol): New variable.
19166         (test_function): Use minus_zerol instead of -zerol.
19167         * modules/vasnprintf-posix-tests (Depends-on): Add float.
19168
19169         * tests/test-vasprintf-posix.c (zerol): Remove variable.
19170         (minus_zerol): New variable.
19171         (test_function): Use minus_zerol instead of -zerol.
19172         * modules/vasprintf-posix-tests (Depends-on): Add float.
19173
19174 2008-10-07  Simon Josefsson  <simon@josefsson.org>
19175
19176         * MODULES.html.sh (Support for building documentation): Mention
19177         pmccabe2html.  Sort entries.
19178
19179         Add pmccabe2html module, from gnupdf.
19180         * build-aux/pmccabe.css: New file.
19181         * build-aux/pmccabe2html: New file.
19182         * m4/pmccabe2html.m4: New file.
19183         * modules/pmccabe2html: New file.
19184
19185 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
19186
19187         flock: new module
19188         * MODULES.html.sh: Add to list of modules.
19189         * lib/flock.c: flock implementation for Windows and Unix systems
19190         which have fcntl.
19191         * doc/glibc-functions/flock.texi: Update documentation.
19192         * lib/sys_file.in.h: <sys/file.h> header file.
19193         * m4/flock.m4: M4 macros.
19194         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
19195         * modules/flock: flock module.
19196         * modules/flock-tests: flock tests module.
19197         * modules/sys_file: sys/file.h module.
19198         * tests/test-flock.c: test suite for flock.
19199
19200 2008-10-06  Jim Meyering  <meyering@redhat.com>
19201
19202         bootstrap: check for LT_INIT more portably still ;-)
19203         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
19204         Spotted by Bruno Haible.
19205
19206 2008-10-06  Eric Blake  <ebb9@byu.net>
19207
19208         test-signbit: avoid tripping Irix cc bug on -0.0L
19209         * tests/test-signbit.c (minus_zerol): Delete, and replace with
19210         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
19211         entire testsuite consistent and avoids an Irix 6.2 bug.
19212
19213 2008-10-05  Bruno Haible  <bruno@clisp.org>
19214             Jim Meyering  <jim@meyering.net>
19215
19216         Add an option for ignoring EPIPE during close_stdout.
19217         * lib/closeout.h: Include <stdbool.h>.
19218         (close_stdout_set_ignore_EPIPE): New declaration.
19219         * lib/closeout.c: Include <stdbool.h>.
19220         (ignore_EPIPE): New variable.
19221         (close_stdout_set_ignore_EPIPE): New function.
19222         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
19223         * lib/close-stream.c (close_stream): Mention the possible EPIPE
19224         failure.
19225         * modules/closeout (Depends-on): Add stdbool.
19226
19227 2008-10-05  Bruno Haible  <bruno@clisp.org>
19228
19229         * modules/accept: New file.
19230         * modules/bind: New file.
19231         * modules/connect: New file.
19232         * modules/getpeername: New file.
19233         * modules/getsockname: New file.
19234         * modules/getsockopt: New file.
19235         * modules/listen: New file.
19236         * modules/recv: New file.
19237         * modules/recvfrom: New file.
19238         * modules/send: New file.
19239         * modules/sendto: New file.
19240         * modules/setsockopt: New file.
19241         * modules/socket: New file.
19242         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
19243         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
19244         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
19245         the particular module is requested. Add a link warning when the
19246         particular module is not requested.
19247         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
19248         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
19249         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
19250         the particular module is requested.
19251         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
19252         gl_SYS_SOCKET_H_DEFAULTS): New macros.
19253         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
19254         * modules/sys_socket (Depends-on): Add link-warning.
19255         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
19256         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
19257         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
19258         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
19259         GL_LINK_WARNING.
19260         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
19261         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
19262         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
19263         * doc/posix-functions/getpeername.texi: Mention the new module
19264         'getpeername'.
19265         * doc/posix-functions/getsockname.texi: Mention the new module
19266         'getsockname'.
19267         * doc/posix-functions/getsockopt.texi: Mention the new module
19268         'getsockopt'.
19269         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
19270         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
19271         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
19272         * doc/posix-functions/send.texi: Mention the new module 'send'.
19273         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
19274         * doc/posix-functions/setsockopt.texi: Mention the new module
19275         'setsockopt'.
19276         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
19277         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
19278         listen, connect, accept.
19279         * modules/select-tests (Depends-on): Likewise.
19280
19281 2008-10-05  Bruno Haible  <bruno@clisp.org>
19282
19283         * lib/winsock.c (strerror): Remove unused #undef.
19284         (rpl_close): Remove unused local variable.
19285
19286         * modules/sys_socket (Depends-on); Add errno.
19287
19288 2008-10-05  Bruno Haible  <bruno@clisp.org>
19289
19290         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
19291         (select): Add a link warning when the 'select' module is not used.
19292         * modules/sys_select (Depends-on): Add link-warning.
19293         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
19294         Suggested by Paolo Bonzini.
19295
19296 2008-10-05  Jim Meyering  <meyering@redhat.com>
19297
19298         bootstrap: check for LT_INIT more portably
19299         * build-aux/bootstrap: Avoid using grep -E, since it's not
19300         portable enough.  Suggestion from Bruno Haible.
19301
19302 2008-10-05  Bruno Haible  <bruno@clisp.org>
19303
19304         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
19305         as being fixed by gnulib.
19306
19307 2008-10-05  Bruno Haible  <bruno@clisp.org>
19308
19309         * modules/select-tests: New file, mostly copied from
19310         modules/sys_select-tests.
19311         * tests/test-select.c: New file, mostly copied from
19312         tests/test-sys_select.c.
19313         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
19314         * modules/sys_select-tests (Depends-on): Remove all dependencies.
19315         (Makefile.am): Remove test_sys_select_LDADD.
19316
19317         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
19318         to an undefined symbol, for an error message.
19319         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
19320         (gl_SYS_SELECT_H_DEFAULTS): New macro.
19321         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
19322         winsock-select.c here.
19323         * modules/sys_select (Files): Remove lib/winsock-select.c.
19324         (Depends-on): Remove alloca.
19325         (Makefile.am): Substitute GNULIB_SELECT.
19326         * modules/select: New file.
19327         * doc/posix-functions/select.texi: Update.
19328
19329 2008-10-05  Bruno Haible  <bruno@clisp.org>
19330
19331         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
19332         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
19333         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
19334         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
19335         getdtablesize.
19336         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
19337         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
19338
19339 2008-10-05  Bruno Haible  <bruno@clisp.org>
19340
19341         * modules/getdtablesize-tests: New file.
19342         * tests/test-getdtablesize.c: New file.
19343
19344         New module 'getdtablesize'.
19345         * lib/unistd.in.h (getdtablesize): New declaration.
19346         * lib/getdtablesize.c: New file.
19347         * m4/getdtablesize.m4: New file.
19348         * modules/getdtablesize: New file.
19349         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19350         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
19351         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
19352         HAVE_GETDTABLESIZE.
19353         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
19354
19355 2008-10-05  Bruno Haible  <bruno@clisp.org>
19356
19357         * modules/sched (Makefile.am): Fix typo.
19358         Reported by Simon Josefsson.
19359
19360 2008-10-05  Jim Meyering  <meyering@redhat.com>
19361
19362         bootstrap: check for LT_INIT, too
19363         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
19364         are deprecated.  Suggestion from Ralf Wildenhues.
19365
19366 2008-10-05  Bruno Haible  <bruno@clisp.org>
19367
19368         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
19369         overriding them by ours.
19370         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
19371
19372 2008-10-05  Jim Meyering  <meyering@redhat.com>
19373
19374         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
19375         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
19376         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
19377
19378 2008-10-04  Bruno Haible  <bruno@clisp.org>
19379
19380         * modules/dup2 (License): Change to LGPLv2+.
19381         * modules/sleep (License): Likewise.
19382         * modules/perror (License): Likewise.
19383         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
19384         Blake.
19385         * modules/signal (License): Likewise.
19386         * modules/sigprocmask (License): Likewise.
19387         * modules/raise (License): Change to LGPLv2+, with approval by Jim
19388         Meyering.
19389
19390 2008-10-04  Bruno Haible  <bruno@clisp.org>
19391
19392         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
19393         Reported by Rainer Tammer <tammer@tammer.net>.
19394
19395 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
19396             Bruno Haible  <bruno@clisp.org>
19397
19398         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
19399         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
19400         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
19401
19402 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
19403
19404         filevercmp: new module
19405         * lib/filevercmp.h: New function filevercmp comparing version strings.
19406         * lib/filevercmp.c: Implementation of filevercmp function.
19407         * modules/filevercmp: Module metadata.
19408         * tests/test-filevercmp.c: Unit test for new module.
19409         * modules/filevercmp-tests: Unit test metadata.
19410         * MODULES.html.sh: Add filevercmp module.
19411
19412 2008-10-03  Bruno Haible  <bruno@clisp.org>
19413
19414         * lib/c-ctype.h: Add comment.
19415         Reported by Jim Meyering.
19416
19417 2008-10-02  Bruno Haible  <bruno@clisp.org>
19418
19419         * modules/posix_spawn-internal (Depends-on): Add 'open'.
19420
19421 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19422
19423         * build-aux/bootstrap: Allow renaming bootstrap, and change the
19424         name of bootstrap.conf accordingly.
19425
19426 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19427
19428         * build-aux/bootstrap: Install git-merge-changelog configuration
19429         items into .gitconfig if needed.
19430
19431 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19432
19433         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
19434         git repository, and initialize/update it accordingly.
19435
19436 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
19437
19438         * modules/fsync-tests: New file.
19439         * tests/test-fsync.c: New file.
19440
19441         New module 'fsync'.
19442         * lib/fsync.c: New file.
19443         * m4/fsync.m4: New file.
19444         * modules/fsync: New file.
19445         * lib/unistd.in.h (fsync): New declaration.
19446         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
19447         GNULIB_FSYNC and HAVE_FSYNC.
19448         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
19449         * MODULES.html.sh (posix_functions): Add fsync.
19450         * doc/posix-functions/fsync.texi: Mention the new module.
19451
19452 2008-10-02  Jim Meyering  <meyering@redhat.com>
19453
19454         fts.c: sync with similar code from coreutils' remove.c
19455         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
19456         Guard also with "#if defined __linux__", since for now at least,
19457         this code is Linux-kernel-specific.
19458
19459 2008-10-02  Jim Meyering  <meyering@redhat.com>
19460
19461         fts: bug fixes
19462         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
19463         Include <sys/vfs.h>, not <sys/statfs.h>.
19464
19465         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
19466         Include <sys/vfs.h>, not <sys/statfs.h>.
19467
19468 2008-10-01  Bruno Haible  <bruno@clisp.org>
19469
19470         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
19471         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
19472         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
19473         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
19474         * doc/posix-functions/posix_spawnp.texi: Likewise.
19475         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
19476         whether posix_spawn actually works.
19477         * m4/pipe.m4 (gl_PIPE): Likewise.
19478         * modules/execute (Files): Add m4/posix_spawn.m4.
19479         * modules/pipe (Files): Add m4/posix_spawn.m4.
19480         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
19481
19482 2008-10-01  Jim Meyering  <meyering@redhat.com>
19483
19484         remove trailing spaces
19485         * NEWS: Likewise.
19486         * lib/poll.c (poll): Likewise.
19487         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
19488         * lib/winsock.c (rpl_close): Likewise.
19489         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
19490         * modules/yield: Likewise.
19491         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
19492         * tests/test-sys_select.c (connect_to_socket): Likewise.
19493
19494         fts.c: adjust a new interface to be more generally useful
19495         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
19496         (fts_build): Adjust caller.
19497
19498 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19499
19500         * modules/cond-tests: New file.
19501         * tests/test-cond.c: New file.
19502
19503 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19504             Bruno Haible  <bruno@clisp.org>
19505
19506         * modules/cond (Dependencies): Add errno, time.
19507         * lib/glthread/cond.h: Include <time.h>.
19508         (gl_cond_define, gl_cond_define_initialized): Use the same definition
19509         across platforms.
19510
19511 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19512             Bruno Haible  <bruno@clisp.org>
19513
19514         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
19515
19516 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19517             Bruno Haible  <bruno@clisp.org>
19518
19519         * modules/tls-tests (Depends-on): Add thread, yield.
19520         (configure.ac): Remove all checks.
19521         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
19522         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
19523         gl_thread_self): Remove definitions. Include glthread/thread.h and
19524         glthread/yield.h instead.
19525         (test_tls): Pass an additional NULL argument to gl_thread_join.
19526
19527 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19528             Bruno Haible  <bruno@clisp.org>
19529
19530         * modules/lock-tests (Depends-on): Add thread, yield.
19531         (configure.ac): Remove all checks.
19532         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
19533         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
19534         gl_thread_self): Remove definitions. Include glthread/thread.h and
19535         glthread/yield.h instead.
19536         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
19537         additional NULL argument to gl_thread_join.
19538
19539 2008-09-30  Bruno Haible  <bruno@clisp.org>
19540
19541         Fix the Win32 implementation of the 'thread' module.
19542         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
19543         pointer type.
19544         (gl_thread_self): Invoke gl_thread_self_func.
19545         (gl_thread_self_func): New declaration.
19546         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
19547         (do_init_self_key, init_self_key): New functions.
19548         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
19549         Remove some fields.
19550         (running_threads, running_lock): Remove variables.
19551         (get_current_thread_handle): New function.
19552         (gl_thread_self_func, wrapper_func, glthread_create_func,
19553         glthread_join_func, gl_thread_exit_func): Largely rewritten and
19554         simplified.
19555
19556 2008-09-30  Bruno Haible  <bruno@clisp.org>
19557
19558         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
19559         files.
19560
19561 2008-09-30  Jim Meyering  <meyering@redhat.com>
19562
19563         fts.m4: correct the test for statfs.f_type
19564         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
19565         when checking for statfs.f_type.
19566
19567 2008-09-15  Simon Josefsson  <simon@josefsson.org>
19568
19569         tests: avoid some compiler warnings
19570         * tests/test-memchr.c (main): Pass NULL indirectly.
19571         * tests/test-getdate.c (main): Remove unused variable 'ret'.
19572
19573 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
19574
19575         getdate.y: disallow countable dayshifts like "4 yesterday ago"
19576         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
19577         exactly specified dayshifts.
19578         (dayshift): New rule.
19579         (rel): Add dayshift.
19580         (relative_time_table) [tomorrow, yesterday, today, now]:
19581         Use tDAY_SHIFT in place of tDAY_UNIT.
19582         * tests/test-getdate.c: Add tests for now-disallowed countable
19583         dayshifts, e.g., "4 yesterday ago".
19584
19585 2008-09-29  Bruno Haible  <bruno@clisp.org>
19586
19587         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
19588         * tests/test-posix_spawn1.in.sh: Renamed from
19589         tests/test-posix_spawn.in.sh.
19590         * tests/test-posix_spawn2.c: New file.
19591         * tests/test-posix_spawn2.in.sh: New file.
19592         * modules/posix_spawnp-tests (Files): Update.
19593         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
19594
19595 2008-09-29  Bruno Haible  <bruno@clisp.org>
19596
19597         Propagate effects of putenv/setenv/unsetenv to child processes.
19598         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
19599         * lib/pipe.c (create_pipe): Likewise.
19600
19601 2008-09-29  Bruno Haible  <bruno@clisp.org>
19602
19603         Enable use of shell scripts as executables in mingw.
19604         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
19605         run the program as a shell script.
19606         * lib/pipe.c (create_pipe): Likewise.
19607         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
19608         resulting array.
19609
19610 2008-09-29  Eric Blake  <ebb9@byu.net>
19611
19612         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
19613
19614 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
19615
19616         * doc/posix-functions/accept.texi: Update mingw problems.
19617         * doc/posix-functions/bind.texi: Update mingw problems.
19618         * doc/posix-functions/close.texi: Update mingw problems.
19619         * doc/posix-functions/connect.texi: Update mingw problems.
19620         * doc/posix-functions/getpeername.texi: Update mingw problems.
19621         * doc/posix-functions/getsockname.texi: Update mingw problems.
19622         * doc/posix-functions/getsockopt.texi: Update mingw problems.
19623         * doc/posix-functions/ioctl.texi: Update mingw problems.
19624         * doc/posix-functions/listen.texi: Update mingw problems.
19625         * doc/posix-functions/recv.texi: Update mingw problems.
19626         * doc/posix-functions/recvfrom.texi: Update mingw problems.
19627         * doc/posix-functions/select.texi: Update mingw problems.
19628         * doc/posix-functions/send.texi: Update mingw problems.
19629         * doc/posix-functions/sendto.texi: Update mingw problems.
19630         * doc/posix-functions/setsockopt.texi: Update mingw problems.
19631         * doc/posix-functions/socket.texi: Update mingw problems.
19632
19633 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
19634             Bruno Haible  <bruno@clisp.org>
19635
19636         * lib/sys_select.in.h: Include sys/time.h.
19637         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
19638         * modules/sys_select: Depend on sys_time.
19639         * tests/test-sys_select.c: Test that sys/select.h defines struct
19640         timeval fully.
19641
19642 2008-09-29  Bruno Haible  <bruno@clisp.org>
19643
19644         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
19645         * lib/sys_select.in.h: Likewise.
19646
19647 2008-09-29  Bruno Haible  <bruno@clisp.org>
19648
19649         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
19650
19651 2008-09-29  Bruno Haible  <bruno@clisp.org>
19652
19653         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
19654         Set LIBSOCKET instead of augmenting LIBS.
19655         * modules/sockets (Link): New section.
19656         * modules/sockets-tests (test_sockets_LDADD): New variable.
19657         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
19658         * modules/poll-tests (test_poll_LDADD): New variable.
19659         * NEWS: Document the change.
19660
19661 2008-09-29  Bruno Haible  <bruno@clisp.org>
19662
19663         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
19664         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
19665         ARPA_INET_H directly.
19666         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
19667
19668 2008-09-28  Bruno Haible  <bruno@clisp.org>
19669
19670         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
19671         from gl_HEADER_SYS_SOCKET.
19672         (gl_HEADER_SYS_SOCKET): Invoke it.
19673         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19674
19675 2008-09-28  Bruno Haible  <bruno@clisp.org>
19676
19677         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
19678         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
19679         Needed on OSF/1 4.0.
19680
19681 2008-09-28  Bruno Haible  <bruno@clisp.org>
19682
19683         Override open more carefully.
19684         * lib/open.c (orig_open): New function.
19685         (rpl_open): Use orig_open instead of open.
19686         * lib/fcntl.in.h: Add special invocation convention.
19687         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
19688         (gl_FUNC_OPEN): Invoke it.
19689
19690         Override freopen more carefully.
19691         * lib/freopen.c (orig_freopen): New function.
19692         (rpl_freopen): Use orig_freopen instead of freopen.
19693         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
19694         (gl_FUNC_FREOPEN): Invoke it.
19695
19696         Override fopen more carefully.
19697         * lib/fopen.c (orig_fopen): New function.
19698         (rpl_fopen): Use orig_fopen instead of fopen.
19699         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
19700         (gl_FUNC_FOPEN): Invoke it.
19701         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
19702
19703 2008-09-28  Bruno Haible  <bruno@clisp.org>
19704
19705         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
19706         SIGPIPE.
19707
19708 2008-09-28  Bruno Haible  <bruno@clisp.org>
19709
19710         * tests/test-sigaction.c (handler, main): Disable the check whether
19711         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
19712         glibc systems with LinuxThreads.
19713
19714 2008-09-28  Bruno Haible  <bruno@clisp.org>
19715
19716         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
19717
19718         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
19719         with AIX xlc.
19720         * lib/fcntl.in.h (open): Likewise.
19721         Reported by Rainer Tammer <tammer@tammer.net>.
19722
19723 2008-09-28  Bruno Haible  <bruno@clisp.org>
19724
19725         * modules/posix_spawnp-tests: New file.
19726         * tests/test-posix_spawn.c: New file.
19727         * tests/test-posix_spawn.in.sh: New file.
19728
19729         New module 'posix_spawnp'.
19730         * modules/posix_spawnp: New file.
19731         * lib/spawnp.c: New file, from GNU libc with modifications.
19732         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
19733
19734         New module 'posix_spawn'.
19735         * modules/posix_spawn: New file.
19736         * lib/spawn.c: New file, from GNU libc with modifications.
19737         * doc/posix-functions/posix_spawn.texi: Mention the new module.
19738
19739         New module 'posix_spawnattr_destroy'.
19740         * modules/posix_spawnattr_destroy: New file.
19741         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
19742         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
19743         module.
19744
19745         New module 'posix_spawnattr_setsigmask'.
19746         * modules/posix_spawnattr_setsigmask: New file.
19747         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
19748         modifications.
19749         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
19750         new module.
19751
19752         New module 'posix_spawnattr_getsigmask'.
19753         * modules/posix_spawnattr_getsigmask: New file.
19754         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
19755         modifications.
19756         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
19757         new module.
19758
19759         New module 'posix_spawnattr_setsigdefault'.
19760         * modules/posix_spawnattr_setsigdefault: New file.
19761         * lib/spawnattr_setdefault.c: New file, from GNU libc with
19762         modifications.
19763         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
19764         new module.
19765
19766         New module 'posix_spawnattr_getsigdefault'.
19767         * modules/posix_spawnattr_getsigdefault: New file.
19768         * lib/spawnattr_getdefault.c: New file, from GNU libc with
19769         modifications.
19770         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
19771         new module.
19772
19773         New module 'posix_spawnattr_setschedpolicy'.
19774         * modules/posix_spawnattr_setschedpolicy: New file.
19775         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
19776         modifications.
19777         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
19778         new module.
19779
19780         New module 'posix_spawnattr_getschedpolicy'.
19781         * modules/posix_spawnattr_getschedpolicy: New file.
19782         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
19783         modifications.
19784         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
19785         new module.
19786
19787         New module 'posix_spawnattr_setschedparam'.
19788         * modules/posix_spawnattr_setschedparam: New file.
19789         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
19790         modifications.
19791         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
19792         new module.
19793
19794         New module 'posix_spawnattr_getschedparam'.
19795         * modules/posix_spawnattr_getschedparam: New file.
19796         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
19797         modifications.
19798         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
19799         new module.
19800
19801         New module 'posix_spawnattr_setpgroup'.
19802         * modules/posix_spawnattr_setpgroup: New file.
19803         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
19804         modifications.
19805         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
19806         module.
19807
19808         New module 'posix_spawnattr_getpgroup'.
19809         * modules/posix_spawnattr_getpgroup: New file.
19810         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
19811         modifications.
19812         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
19813         module.
19814
19815         New module 'posix_spawnattr_setflags'.
19816         * modules/posix_spawnattr_setflags: New file.
19817         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
19818         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
19819         module.
19820
19821         New module 'posix_spawnattr_getflags'.
19822         * modules/posix_spawnattr_getflags: New file.
19823         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
19824         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
19825         module.
19826
19827         New module 'posix_spawnattr_init'.
19828         * modules/posix_spawnattr_init: New file.
19829         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
19830         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
19831         module.
19832
19833         New module 'posix_spawn_file_actions_destroy'.
19834         * modules/posix_spawn_file_actions_destroy: New file.
19835         * lib/spawn_faction_destroy.c: New file, from GNU libc with
19836         modifications.
19837         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
19838         the new module.
19839
19840         New module 'posix_spawn_file_actions_addopen'.
19841         * modules/posix_spawn_file_actions_addopen: New file.
19842         * lib/spawn_faction_addopen.c: New file, from GNU libc with
19843         modifications.
19844         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
19845         the new module.
19846
19847         New module 'posix_spawn_file_actions_adddup2'.
19848         * modules/posix_spawn_file_actions_adddup2: New file.
19849         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
19850         modifications.
19851         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
19852         the new module.
19853
19854         New module 'posix_spawn_file_actions_addclose'.
19855         * modules/posix_spawn_file_actions_addclose: New file.
19856         * lib/spawn_faction_addclose.c: New file, from GNU libc with
19857         modifications.
19858         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
19859         the new module.
19860
19861         New module 'posix_spawn_file_actions_init'.
19862         * modules/posix_spawn_file_actions_init: New file.
19863         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
19864         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
19865         new module.
19866
19867         New module 'posix_spawn-internal'.
19868         * modules/posix_spawn-internal: New file.
19869         * lib/spawn_int.h: New file, from GNU libc with modifications.
19870         * lib/spawni.c: New file, from GNU libc with modifications.
19871         * m4/posix_spawn.m4: New file.
19872
19873         New module 'spawn'.
19874         * modules/spawn: New file.
19875         * lib/spawn.in.h: New file, from GNU libc with modifications.
19876         * m4/spawn_h.m4: New file.
19877         * doc/posix-headers/spawn.texi: Mention the new module.
19878
19879 2008-09-28  Bruno Haible  <bruno@clisp.org>
19880
19881         * modules/sched-tests: New file.
19882         * tests/test-sched.c: New file.
19883
19884         New module 'sched'.
19885         * modules/sched: New file.
19886         * lib/sched.in.h: New file.
19887         * m4/sched_h.m4: New file.
19888         * doc/posix-headers/sched.texi: Mention the new module.
19889
19890 2008-09-27  Eric Blake  <ebb9@byu.net>
19891
19892         Fix previous patch, and tweak references to $0.
19893         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
19894         (func_version, func_gnulib_dir): Don't call this program
19895         gnulib-tool.
19896         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
19897         with using $0 in function.
19898         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
19899         (func_fatal_error): Reuse the name the user invoked us with.
19900
19901 2008-09-27  Bruno Haible  <bruno@clisp.org>
19902
19903         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
19904         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
19905         (gl_ICONV_H): Not here.
19906         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
19907         instead of assigning ICONV_H directly.
19908
19909         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
19910         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
19911         WCHAR_H directly.
19912
19913 2008-09-27  Bruno Haible  <bruno@clisp.org>
19914
19915         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
19916         * modules/arpa_inet (Depends-on): Add link-warning.
19917         (Makefile.am): Insert the definition of GL_LINK-WARNING.
19918         * modules/unistd (Makefile.am): Likewise.
19919
19920 2008-09-26  Bruno Haible  <bruno@clisp.org>
19921
19922         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
19923         variables.
19924         (func_version): Essentially copied from gnulib-tool.
19925         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
19926         func_readlink): Copied from gnulib-tool.
19927
19928 2008-09-26  Bruno Haible  <bruno@clisp.org>
19929
19930         * gnulib-tool (func_version): Change directory to $gnulib_dir before
19931         invoking git-version-gen.
19932
19933 2008-09-26  Bruno Haible  <bruno@clisp.org>
19934
19935         * posix-modules: Update to directory names changed on 2008-01-19.
19936         Remove commas in output before splitting into words. No more need to
19937         avoid 'ftruncate' since 2007-02-19.
19938
19939 2008-09-26  Bruno Haible  <bruno@clisp.org>
19940
19941         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
19942
19943 2008-09-26  Bruno Haible  <bruno@clisp.org>
19944
19945         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
19946         * modules/fwriteerror (Depends-on): Add errno.
19947
19948 2008-09-26  Bruno Haible  <bruno@clisp.org>
19949
19950         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
19951         * tests/test-vc-list-files-cvs.sh: Likewise.
19952
19953 2008-09-26  Bruno Haible  <bruno@clisp.org>
19954
19955         * doc/posix-headers/sys_resource.texi: Reorder items.
19956
19957 2008-09-26  Jim Meyering  <meyering@redhat.com>
19958
19959         fts: tweak inode comparison function
19960         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
19961         inode numbers, as documented.
19962
19963         fts: sort dirent entries on inode number before traversing
19964         This avoids a quadratic, seek-related performance penalty when
19965         operating on a directory containing many entries (measurable at 10k;
19966         3.5 hours at 2 million entries with a cold cache) on certain types
19967         of file systems, including ext3 and ext4, but not tmpfs.
19968         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
19969         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
19970         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
19971         (fs_handles_readdir_ordered_dirents_efficiently): New function.
19972         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
19973         (fts_build): Set the stat.st_ino member from D_INO.
19974         If it is likely to be useful, sort dirent entries on inode number.
19975
19976         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
19977         and the struct statfs.f_type member.
19978         * modules/fts (Depends-on): Add d-ino.
19979
19980 2008-09-26  Bruno Haible  <bruno@clisp.org>
19981
19982         * modules/sigpipe-die (Depends-on): Add sigpipe.
19983
19984         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
19985         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
19986         and GNULIB_STDIO_H_SIGPIPE are set.
19987         * lib/stdio-write.c: New file.
19988         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
19989         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
19990         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
19991         REPLACE_STDIO_WRITE_FUNCS.
19992         (gl_STDIO_H_DEFAULTS): Initialize 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         * modules/stdio (Files): Add lib/stdio-write.c.
19997         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
19998         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
19999         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20000         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20001         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
20002         REPLACE_FPRINTF_POSIX.
20003         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
20004         REPLACE_PRINTF_POSIX.
20005         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
20006         REPLACE_VFPRINTF_POSIX.
20007         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
20008         REPLACE_VPRINTF_POSIX.
20009         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
20010         SIGPIPE issue.
20011         * doc/posix-functions/fputc.texi: Likewise.
20012         * doc/posix-functions/fputs.texi: Likewise.
20013         * doc/posix-functions/fwrite.texi: Likewise.
20014         * doc/posix-functions/printf.texi: Likewise.
20015         * doc/posix-functions/putc.texi: Likewise.
20016         * doc/posix-functions/putchar.texi: Likewise.
20017         * doc/posix-functions/puts.texi: Likewise.
20018         * doc/posix-functions/vfprintf.texi: Likewise.
20019         * doc/posix-functions/vprintf.texi: Likewise.
20020
20021         * modules/safe-write (Depends-on): Add write.
20022
20023         * modules/sigpipe-tests: New file.
20024         * tests/test-sigpipe.c: New file.
20025         * tests/test-sigpipe.sh: New file.
20026
20027         * modules/write: New file.
20028         * lib/unistd.in.h: Include <sys/types.h>.
20029         (write): New declaration.
20030         * lib/write.c: New file.
20031         * m4/write.m4: New file.
20032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20033         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
20034         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
20035         GNULIB_WRITE, REPLACE_WRITE.
20036         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
20037         and the SIGPIPE issue.
20038
20039         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
20040         (raise): New declaration.
20041         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
20042         (ext_signal): New function.
20043         (rpl_raise): New function.
20044         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
20045         GNULIB_SIGNAL_H_SIGPIPE.
20046         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
20047         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
20048
20049         * modules/sigpipe: New file.
20050         * m4/sigpipe.m4: New file.
20051
20052 2008-09-25  Derek Price  <derek@ximbiot.com>
20053             Bruno Haible  <bruno@clisp.org>
20054
20055         * gnulib-tool (func_import): Report all license incompatibilities, not
20056         just the first one.
20057
20058 2008-09-25  Bruno Haible  <bruno@clisp.org>
20059
20060         * gnulib-tool (func_import): When computing the edits, consider not
20061         only the Makefile.ams that exist but also those that will be generated.
20062
20063 2008-09-25  Simon Josefsson  <simon@josefsson.org>
20064
20065         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
20066         fixes gnulib-tool --test warning about duplicate dependency.
20067
20068 2008-09-25  Bruno Haible  <bruno@clisp.org>
20069
20070         * gnulib-tool: Don't ask the user to perform edits in the generated
20071         Makefile.ams.
20072         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
20073         apply to the Makefile.am being generated.
20074         (func_emit_tests_Makefile_am): Execute edits that apply to the
20075         Makefile.am being generated.
20076         (func_import): Setup list of Makefile.am edits before emitting the
20077         Makefile.ams, not at the end.
20078         (func_create_testdir): Update.
20079         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20080
20081 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20082
20083         * gnulib-tool (func_import): Store the --tests-base option in the
20084         comment in gnulib-cache.m4.
20085
20086 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
20087
20088         * NEWS: Document increased portability that sys_select now provides.
20089
20090         * lib/sys_select.in.h: Install select wrapper.
20091         * lib/sys_socket.in.h: Use more descriptive name when there is no
20092         select wrapper.
20093         * lib/winsock-select.c: New.
20094         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
20095         Require gl_HEADER_SYS_SOCKET.
20096         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
20097         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
20098         * tests/test-sys_select.c: Add functional tests.
20099
20100 2008-09-24  Eric Blake  <ebb9@byu.net>
20101
20102         open, fopen: close fd leak in last patch
20103         * lib/open.c (rpl_open): Close fd before returning error.
20104         * lib/fopen.c (rpl_fopen): Close fd before returning error.
20105         * doc/posix-functions/open.texi (open): Document that Irix also
20106         has the bug.
20107         * doc/posix-functions/fopen.texi (fopen): Likewise.
20108         Reported by Paolo Bonzini.
20109
20110 2008-09-24  Bruno Haible  <bruno@clisp.org>
20111
20112         Ensure that a filename ending in a slash cannot be used to access a
20113         non-directory.
20114         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
20115         to check whether it's really a directory.
20116         * lib/fopen.c: Include fcntl.h, unistd.h.
20117         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
20118         and fdopen().
20119         * modules/fopen (Depends-on): Add unistd.
20120         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
20121         * tests/test-fopen.c (main): Likewise.
20122         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
20123         * doc/posix-functions/fopen.texi: Likewise.
20124         Reported by Eric Blake.
20125
20126 2008-09-23  Eric Blake  <ebb9@byu.net>
20127
20128         c-stack: avoid compiler optimizations when provoking overflow
20129         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
20130         recursion harder to optimize, to ensure a stack overflow occurs.
20131         * tests/test-c-stack.c (recurse): Likewise.
20132         Borrowed from libsigsegv.
20133
20134         c-stack: work around Irix sigaltstack bug
20135         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
20136         whether sigaltstack uses wrong end of stack_t (copied in part from
20137         libsigsegv).
20138         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
20139         Irix bug, without requiring an over-allocation.
20140         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
20141         bug.
20142
20143         fopen: document mingw bug on directories
20144         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
20145         not allowing a stream visiting a directory, even though reading
20146         from such a stream is not portable.
20147
20148 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
20149
20150         * lib/poll.c: Rewrite.
20151         * modules/poll: Depend on alloca.
20152
20153 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
20154
20155         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
20156         instead define prototypes for a full set of wrappers.  Ensure
20157         that Cygwin does not use the compatibility code, which is only
20158         for MinGW.
20159         * lib/winsock.c: New.
20160         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
20161         * modules/sys_socket: Add lib/winsock.c.
20162
20163         * modules/poll-tests: Add errno and perror.
20164         * tests/test-poll.c: Use ioctl, not ioctlsocket.
20165
20166 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
20167
20168         * tests/test-poll.c: Downgrade minimum needed Winsock version.
20169
20170 2008-09-23  Bruno Haible  <bruno@clisp.org>
20171
20172         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
20173         * doc/glibc-functions/*: Likewise.
20174
20175 2008-09-23  Simon Josefsson  <simon@josefsson.org>
20176
20177         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
20178         success.
20179
20180 2008-09-22  Eric Blake  <ebb9@byu.net>
20181             Bruno Haible  <bruno@clisp.org>
20182
20183         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
20184         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
20185         supply %A but mishandle pseudo-NaN.
20186         Reported by Simon Josefsson.
20187
20188 2008-09-21  Bruno Haible  <bruno@clisp.org>
20189
20190         * tests/test-lock.c (main): Tweak skip message.
20191         * tests/test-tls.c (main): Likewise.
20192
20193 2008-09-21  Bruno Haible  <bruno@clisp.org>
20194
20195         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
20196         whether 'struct sigaction' has sa_sigaction here...
20197         (gl_PREREQ_SIG_HANDLER_H): ... not here.
20198         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
20199
20200 2008-09-21  Bruno Haible  <bruno@clisp.org>
20201
20202         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
20203         section.
20204         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
20205         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
20206         the new section.
20207         (Support for obsolete systems lacking POSIX:2001): New section.
20208         (String handling <string.h>): Move strdup to the new section.
20209         Suggested by Simon Josefsson and Paolo Bonzini.
20210
20211 2008-09-21  Bruno Haible  <bruno@clisp.org>
20212
20213         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
20214         exponents in %e and %g results on 'long double'. Needed for mingw's
20215         improved *printf functions.
20216         * tests/test-vasprintf-posix.c (test_function): Likewise.
20217         * tests/test-snprintf-posix.h (test_function): Likewise.
20218         * tests/test-sprintf-posix.h (test_function): Likewise.
20219         Reported by Eric Blake.
20220
20221 2008-09-21  Bruno Haible  <bruno@clisp.org>
20222
20223         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
20224         * tests/test-sprintf-posix.h (test_function): Likewise.
20225
20226 2008-09-21  Bruno Haible  <bruno@clisp.org>
20227
20228         * modules/getpass (Depends-on): Add strdup-posix.
20229
20230         New module 'strdup-posix'.
20231         * modules/strdup-posix: New file.
20232         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
20233         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
20234         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20235         REPLACE_STRDUP.
20236         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
20237         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
20238         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20239         strdup-posix.
20240
20241         * modules/strdup (Depends-on): Remove malloc-posix.
20242
20243 2008-09-20  Bruno Haible  <bruno@clisp.org>
20244
20245         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
20246         Wildenhues.
20247
20248 2008-09-20  Bruno Haible  <bruno@clisp.org>
20249
20250         Ensure that wint_t gets defined on IRIX 5.3.
20251         * lib/wchar.in.h (wint_t): Define if not defined by the system.
20252         * lib/wctype.in.h (wint_t): Likewise.
20253         (__wctype_wint_t): Remove type.
20254         (isw*): Use wint_t instead of __wctype_wint_t.
20255         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
20256         * modules/wchar (Files): Add m4/wint_t.m4.
20257         (Makefile.am): Substitute HAVE_WINT_T.
20258         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
20259         * tests/test-wctype.c: Check that wint_t is defined.
20260         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
20261         * doc/posix-headers/wctype.texi: Likewise.
20262         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20263
20264 2008-09-18  Bruno Haible  <bruno@clisp.org>
20265
20266         * gnulib-tool (func_exit): Update comment.
20267
20268 2008-09-18  Simon Josefsson  <simon@josefsson.org>
20269
20270         * modules/getaddrinfo (Depends-on): Remove strdup, this module
20271         assumes strdup exists and does not depend on strdup to return
20272         ENOMEM on out of memory conditions.
20273
20274 2008-09-18  Bruno Haible  <bruno@clisp.org>
20275
20276         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
20277         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
20278         digits for the exponent.
20279
20280 2008-09-18  Jim Meyering  <meyering@redhat.com>
20281             Bruno Haible  <bruno@clisp.org>
20282
20283         * lib/vasnprintf.c (decimal_point_char): Define also if
20284         NEED_PRINTF_INFINITE_LONG_DOUBLE.
20285
20286 2008-09-16  Bruno Haible  <bruno@clisp.org>
20287         and Eric Blake  <ebb9@byu.net>
20288
20289         vasnprintf: support Irix 5.3
20290         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
20291         that mishandle long double infinity.
20292         Reported by Tom G. Christensen.
20293
20294 2008-09-16  Bruno Haible  <bruno@clisp.org>
20295
20296         * doc/glibc-functions/scandir.texi: Mention the function is missing on
20297         Solaris 9.
20298         * doc/glibc-functions/alphasort.texi: Likewise.
20299         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
20300
20301 2008-09-16  Jim Meyering  <meyering@redhat.com>
20302
20303         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
20304         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
20305         a umask modification leak out of a subshell.  Otherwise, the
20306         opensolaris /bin/sh would be accepted and thus cause unwarranted
20307         failures in the coreutils test suite.
20308
20309 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
20310
20311         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
20312         to succeed.
20313
20314 2008-09-16  Jim Meyering  <meyering@redhat.com>
20315
20316         avoid spurious test failure when library is built without ACL support
20317         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
20318         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
20319         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
20320         * tests/test-copy-acl.sh: Likewise.
20321
20322 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20323
20324         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
20325         based on character occurrence counts.
20326
20327 2008-09-15  Eric Blake  <ebb9@byu.net>
20328
20329         tests: avoid some compiler warnings
20330         * tests/test-memchr.c (main): Pass NULL indirectly.
20331         * tests/test-closein.c (main): Avoid unused variable.
20332
20333 2008-09-15  Bruno Haible  <bruno@clisp.org>
20334
20335         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
20336         are missing on OpenBSD 4.0 individually.
20337         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20338
20339 2008-09-15  Bruno Haible  <bruno@clisp.org>
20340
20341         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
20342         * doc/posix-functions/strerror.texi: Mention also Cygwin.
20343         * doc/posix-functions/perror.texi: Likewise.
20344         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
20345         is missing.
20346         Reported by Eric Blake.
20347
20348         * lib/errno.in.h: Use replacement values >= 2000.
20349         Reported by Eric Blake.
20350
20351 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20352
20353         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
20354         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
20355         limit.
20356         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
20357         compareseq was aborted.
20358
20359 2008-09-14  Bruno Haible  <bruno@clisp.org>
20360
20361         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
20362         yvec_edit_count.
20363         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
20364         (fstrcmp_bounded): Simplify result computation accordingly.
20365
20366 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20367
20368         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
20369         (fstrcmp): Define in terms of fstrcmp_bounded.
20370         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
20371         lower_bound argument.
20372         Return quickly if the result is certainly < lower_bound.
20373         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
20374
20375 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20376
20377         * lib/diffseq.h (EARLY_ABORT): New macro.
20378         (compareseq): Change return type to bool. Return true when EARLY_ABORT
20379         evaluates to true.
20380
20381 2008-09-14  Bruno Haible  <bruno@clisp.org>
20382
20383         * modules/perror-tests: New file.
20384         * tests/test-perror.sh: New file.
20385         * tests/test-perror.c: New file.
20386
20387         New module 'perror'.
20388         * lib/stdio.in.h (perror): New declaration.
20389         * lib/perror.c: New file.
20390         * m4/perror.m4: New file.
20391         * modules/perror: New file.
20392         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
20393         * doc/posix-functions/perror.texi: Mention the perror module.
20394         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
20395         REPLACE_PERROR.
20396         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
20397         REPLACE_PERROR.
20398
20399 2008-09-14  Bruno Haible  <bruno@clisp.org>
20400
20401         * modules/stdio (Makefile.am): Reorder to match the order in
20402         lib/stdio.in.h.
20403         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20404
20405 2008-09-13  Bruno Haible  <bruno@clisp.org>
20406
20407         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
20408
20409 2008-09-13  Bruno Haible  <bruno@clisp.org>
20410
20411         Extend strerror to cover the added errno values.
20412         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
20413         (rpl_strerror): Provide error messages for the added errno values and
20414         for the WSA* values.
20415         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
20416         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
20417         strerror.
20418         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
20419         * modules/strerror (Depends-on): Add errno.
20420         * doc/posix-functions/strerror.texi: Document the change.
20421         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
20422         and EOVERFLOW.
20423
20424 2008-09-13  Bruno Haible  <bruno@clisp.org>
20425
20426         * modules/EOVERFLOW: Remove file.
20427         * m4/eoverflow.m4: Remove file.
20428         * modules/EOVERFLOW-tests: Remove file.
20429         * tests/test-EOVERFLOW.c: Remove file.
20430         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
20431         * modules/ftell (Depends-on): Likewise.
20432         * modules/getdelim (Depends-on): Likewise.
20433         * modules/getugroups (Depends-on): Likewise.
20434         * modules/poll (Depends-on): Likewise.
20435         * modules/snprintf (Depends-on): Likewise.
20436         * modules/sprintf-posix (Depends-on): Likewise.
20437         * modules/vasnprintf (Depends-on): Likewise.
20438         * modules/vasprintf (Depends-on): Likewise.
20439         * modules/vfprintf-posix (Depends-on): Likewise.
20440         * modules/vsnprintf (Depends-on): Likewise.
20441         * modules/vsprintf-posix (Depends-on): Likewise.
20442         * modules/xvasprintf (Depends-on): Likewise.
20443         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20444         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
20445         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
20446         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
20447         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20448         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
20449         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
20450         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
20451         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20452         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
20453         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
20454         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
20455         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20456         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
20457         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
20458         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
20459         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20460         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
20461         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
20462         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
20463         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20464         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
20465         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
20466         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
20467         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
20468         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20469         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
20470         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
20471         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
20472         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
20473         * MODULES.html.sh: Remove EOVERFLOW.
20474         * NEWS: Mention the change.
20475
20476 2008-09-13  Bruno Haible  <bruno@clisp.org>
20477
20478         * modules/errno-tests: New file.
20479         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
20480
20481         * lib/errno.in.h: New file.
20482         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
20483         * modules/errno: New file.
20484         * doc/posix-headers/errno.texi: Update documentation.
20485         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
20486
20487 2008-09-13  Bruno Haible  <bruno@clisp.org>
20488
20489         * tests/test-poll.c: Use #if for native Windows, rather than testing
20490         __MSVCRT__.
20491
20492 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20493             Bruno Haible  <bruno@clisp.org>
20494
20495         * lib/glob.c: Don't include <pwd.h> on native Windows.
20496         (WINDOWS32): New macro.
20497         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
20498
20499 2008-09-13  Bruno Haible  <bruno@clisp.org>
20500
20501         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
20502         (ETIMEDOUT): Remove macro.
20503         (glthread_cond_timedwait_multithreaded): New declaration.
20504         (glthread_cond_timedwait): Use it.
20505         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
20506         (glthread_cond_timedwait_multithreaded): New function.
20507
20508 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
20509
20510         * modules/poll-tests: Do not check for io.h.
20511         * tests/test-poll.c: Check for __MSVCRT__ instead.
20512
20513 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
20514
20515         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
20516         * modules/poll-tests: Add inet_pton, stdbool, sockets.
20517         * tests/test-poll.c: Use them.  Use _pipe on Windows.
20518
20519 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
20520
20521         * modules/poll-tests: New.
20522         * tests/test-poll.c: New.
20523
20524 2008-09-12  Eric Blake  <ebb9@byu.net>
20525
20526         frexp: test for NetBSD failure on -0.0
20527         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
20528         not all, bugs from NetBSD 3.0 have been fixed.
20529         * doc/posix-functions/frexp.texi (frexp): Document bug.
20530         Reported by Thomas Klausner.
20531
20532         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
20533         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
20534         literal -0.0.
20535         Reported by Jonathan C. Patschke <jp@centtech.com>.
20536
20537 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20538
20539         * lib/glthread/cond.h: Use dummy implementation also if
20540         USE_WIN32_THREADS.
20541
20542 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20543
20544         * modules/fnmatch-posix (License): Change to LGPLv2+.
20545         * modules/fnmatch-gnu (License): Likewise.
20546
20547 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20548
20549         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
20550
20551 2008-09-11  Jim Meyering  <meyering@redhat.com>
20552
20553         * users.txt: Add gtk-vnc.
20554
20555 2008-09-08  Simon Josefsson  <simon@josefsson.org>
20556
20557         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
20558         rotate amounts.
20559
20560         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
20561         required for 16-bit and 8-bit rotates.
20562         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
20563         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
20564         UINT8_MAX instead of hard-coded constants.
20565         Suggested by Paul Eggert.
20566
20567 2008-09-07  Bruno Haible  <bruno@clisp.org>
20568
20569         * tests/test-striconveh.c (main): Check behaviour when converting from
20570         UTF-7.
20571
20572         Make striconveh work better with stateful encodings.
20573         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
20574         that iconv does not increment the inptr when returning -1/EINVAL.
20575
20576 2008-09-07  Bruno Haible  <bruno@clisp.org>
20577
20578         * build-aux/config.rpath: Update according to libtool-2.2.6.
20579         * build-aux/config.libpath: Likewise.
20580
20581 2008-09-06  Bruno Haible  <bruno@clisp.org>
20582
20583         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
20584         * lib/freadptr.c (freadptr): Likewise.
20585         * lib/freadseek.c (freadptrinc): Likewise.
20586         Reported by Simon Josefsson.
20587
20588 2008-09-06  Bruno Haible  <bruno@clisp.org>
20589
20590         * modules/freadptr (License): Change to LGPLv2+.
20591         * modules/freadseek (License): Likewise.
20592         Suggested by Eric Blake.
20593
20594         * modules/memchr2 (License): Change to LGPLv2+.
20595         Approved by Eric Blake.
20596
20597 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20598             Bruno Haible  <bruno@clisp.org>
20599
20600         Make gnulib-tool work with native 'sed' on AIX.
20601         * gnulib-tool (sed_noop): New variable.
20602         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
20603         func_add_or_update, func_create_testdir): Use it to initialize sed
20604         script variables.
20605         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20606
20607 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
20608             Bruno Haible  <bruno@clisp.org>
20609
20610         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
20611         also works after #include directives.
20612
20613 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
20614
20615         getdate.y: reject an out-of-range timezone value
20616         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
20617         the range [-24...+24].  When specified with only one or two digits,
20618         * tests/test-getdate.c: Tests for the fix.
20619         * doc/getdate.texi: Document this change.
20620
20621 2008-09-03  Bruno Haible  <bruno@clisp.org>
20622
20623         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
20624
20625 2008-09-02  Simon Josefsson  <simon@josefsson.org>
20626
20627         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
20628         <bruce.korb@gmail.com> with ideas from Ben Pfaff
20629         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
20630         Blake <ebb9@byu.net>.
20631
20632         * tests/test-bitrotate.c: Add more test vectors.
20633
20634 2008-09-02  Eric Blake  <ebb9@byu.net>
20635
20636         vasnprintf-posix: handle large precision via %.*d
20637         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
20638         when handling it ourselves.
20639         * tests/test-vasnprintf-posix.c (test_function): Add test.
20640         * tests/test-snprintf-posix.h (test_function): Likewise.
20641         * tests/test-sprintf-posix.h (test_function): Likewise.
20642         * tests/test-vasprintf-posix.c (test_function): Likewise.
20643         Reported by Alain Guibert.
20644
20645 2008-09-01  Eric Blake  <ebb9@byu.net>
20646
20647         c-stack: make configure-time check more robust
20648         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
20649         successful sigaction call.
20650         Reported by Tom G. Christensen.
20651
20652 2008-09-01  Bruno Haible  <bruno@clisp.org>
20653
20654         New module 'findprog-lgpl'.
20655         * modules/findprog-lgpl: New file.
20656         * lib/findprog-lgpl.c: New file.
20657         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
20658         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
20659         to decide whether to use strdup or xstrdup, concatenated_filename or
20660         xconcatenated_filename.
20661
20662 2008-09-01  Bruno Haible  <bruno@clisp.org>
20663
20664         Split module 'concat-filename' into 'concat-filename' (LGPL) and
20665         'xconcat-filename' (GPL).
20666         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
20667         (License): Change to LGPLv2+.
20668         * modules/xconcat-filename: New file.
20669         * lib/concat-filename.h (concatenated_filename): Change specification.
20670         (xconcatenated_filename): New declaration.
20671         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
20672         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
20673         memory situations.
20674         * lib/xconcat-filename.c: New file.
20675         * NEWS: Mention the change.
20676         * lib/findprog.c: Include concat-filename.h, not filename.h.
20677         (find_in_path): Use xconcatenated_filename instead of
20678         concatenated_filename.
20679         * lib/javacomp.c: Include concat-filename.h, not filename.h.
20680         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
20681         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
20682         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
20683         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
20684         instead of concatenated_filename.
20685         * lib/javaexec.c: Include concat-filename.h, not filename.h.
20686         (execute_java_class): Use xconcatenated_filename instead of
20687         concatenated_filename.
20688         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
20689         * modules/javacomp (Depends-on): Likewise.
20690         * modules/javaexec (Depends-on): Likewise.
20691
20692 2008-09-01  Bruno Haible  <bruno@clisp.org>
20693
20694         Split module 'filename' into 'filename' and 'concat-filename'.
20695         * modules/filename: Keep only lib/filename.h.
20696         (License): Change to LGPLv2+.
20697         * modules/concat-filename: New file, extracted from modules/filename.
20698         * lib/filename.h (concatenated_filename): Remove declaration.
20699         * lib/concat-filename.h: New file, extracted from lib/filename.h.
20700         * lib/concat-filename.c: Include concat-filename.h.
20701         * NEWS: Mention the change.
20702
20703 2008-09-01  Simon Josefsson  <simon@josefsson.org>
20704
20705         * lib/bitrotate.h (rotl8, rotr8): Add.
20706
20707         * modules/bitrotate (configure.ac): Need
20708         AC_REQUIRE([AC_C_INLINE]).
20709         (Description): Mention stdint.h.  Reported by Bruno Haible
20710         <bruno@clisp.org>.
20711
20712         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
20713         Paolo Bonzini <bonzini@gnu.org>.
20714
20715 2008-08-31  Bruno Haible  <bruno@clisp.org>
20716
20717         Assume Solaris specific bi-arch conventions on Solaris systems.
20718         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
20719         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
20720         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
20721         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
20722         like acl_libdirstem.
20723         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
20724         acl_libdirstem.
20725         * NEWS: Mention the change.
20726         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
20727
20728 2008-08-31  Jim Meyering  <meyering@redhat.com>
20729
20730         * lib/strftime.h: Add comments describing the two added arguments.
20731
20732         remove duplicate #include directives
20733         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
20734         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
20735
20736 2008-08-31  Bruno Haible  <bruno@clisp.org>
20737
20738         New module 'sigpipe-die'.
20739         * modules/sigpipe-die: New file.
20740         * lib/sigpipe-die.h: New file.
20741         * lib/sigpipe-die.c: New file.
20742         * MODULES.html.sh (Signal handling): Add sigpipe-die.
20743
20744 2008-08-31  Bruno Haible  <bruno@clisp.org>
20745
20746         Don't override previously installed signal handlers.
20747         * lib/fatal-signal.c (saved_sigactions): New variable.
20748         (uninstall_handlers): Reset the signal to the saved handler, not
20749         to SIG_DFL (except when ignored).
20750         (install_handlers): Save the previous handlers.
20751
20752 2008-08-30  Bruno Haible  <bruno@clisp.org>
20753
20754         * gnulib-tool (func_reset_sigpipe): New function.
20755         (func_get_automake_snippet, func_modules_transitive_closure,
20756         func_import): Invoke it before a join command that reads from stdin,
20757         to avoid "echo: write error: Broken pipe" error messages on stderr.
20758         Reported by Sam Steingold <sds@gnu.org>.
20759
20760 2008-08-30  Bruno Haible  <bruno@clisp.org>
20761
20762         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
20763         Code copied from m4/open.m4.
20764         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
20765         access and the filename ends in a slash. Code copied from lib/open.c.
20766         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
20767         * tests/test-fopen.c (main): Check against bug with trailing slash.
20768
20769 2008-08-29  Bruno Haible  <bruno@clisp.org>
20770
20771         Avoid some "gcc -pedantic" warnings.
20772         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
20773         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
20774         * lib/dirent.in.h: Likewise.
20775         * lib/fcntl.in.h: Likewise.
20776         * lib/float.in.h: Likewise.
20777         * lib/iconv.in.h: Likewise.
20778         * lib/inttypes.in.h: Likewise.
20779         * lib/locale.in.h: Likewise.
20780         * lib/math.in.h: Likewise.
20781         * lib/netinet_in.in.h: Likewise.
20782         * lib/search.in.h: Likewise.
20783         * lib/signal.in.h: Likewise.
20784         * lib/stdarg.in.h: Likewise.
20785         * lib/stdint.in.h: Likewise.
20786         * lib/stdio.in.h: Likewise.
20787         * lib/stdlib.in.h: Likewise.
20788         * lib/string.in.h: Likewise.
20789         * lib/strings.in.h: Likewise.
20790         * lib/sys_select.in.h: Likewise.
20791         * lib/sys_socket.in.h: Likewise.
20792         * lib/sys_stat.in.h: Likewise.
20793         * lib/sys_time.in.h: Likewise.
20794         * lib/sysexits.in.h: Likewise.
20795         * lib/time.in.h: Likewise.
20796         * lib/unistd.in.h: Likewise.
20797         * lib/wchar.in.h: Likewise.
20798         * lib/wctype.in.h: Likewise.
20799         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
20800         * modules/fchdir (Makefile.am): Likewise.
20801         * modules/fcntl (Makefile.am): Likewise.
20802         * modules/float (Makefile.am): Likewise.
20803         * modules/iconv_open (Makefile.am): Likewise.
20804         * modules/inttypes (Makefile.am): Likewise.
20805         * modules/locale (Makefile.am): Likewise.
20806         * modules/math (Makefile.am): Likewise.
20807         * modules/netinet_in (Makefile.am): Likewise.
20808         * modules/search (Makefile.am): Likewise.
20809         * modules/signal (Makefile.am): Likewise.
20810         * modules/stdarg (Makefile.am): Likewise.
20811         * modules/stdint (Makefile.am): Likewise.
20812         * modules/stdio (Makefile.am): Likewise.
20813         * modules/stdlib (Makefile.am): Likewise.
20814         * modules/string (Makefile.am): Likewise.
20815         * modules/strings (Makefile.am): Likewise.
20816         * modules/sys_select (Makefile.am): Likewise.
20817         * modules/sys_socket (Makefile.am): Likewise.
20818         * modules/sys_stat (Makefile.am): Likewise.
20819         * modules/sys_time (Makefile.am): Likewise.
20820         * modules/sysexits (Makefile.am): Likewise.
20821         * modules/time (Makefile.am): Likewise.
20822         * modules/unistd (Makefile.am): Likewise.
20823         * modules/wchar (Makefile.am): Likewise.
20824         * modules/wctype (Makefile.am): Likewise.
20825         Reported by Reuben Thomas <rrt@sc3d.org>.
20826
20827 2008-08-29  Bruno Haible  <bruno@clisp.org>
20828
20829         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
20830         any more.
20831
20832 2008-08-29  Simon Josefsson  <simon@josefsson.org>
20833
20834         * MODULES.html.sh (Misc): Add bitrotate.
20835
20836         * modules/bitrotate: New file.
20837
20838         * lib/bitrotate.h: New file.
20839
20840         * modules/bitrotate-tests: New file.
20841
20842         * tests/test-bitrotate.c: New file.
20843
20844         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
20845         on the bitrotate module.
20846
20847         * lib/arctwo.c: Use new bitrotate module.
20848
20849 2008-08-29  Jim Meyering  <meyering@redhat.com>
20850
20851         bootstrap: merge changes from coreutils
20852         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
20853         of copied files.  Remove a kludge, now that this is fixed.
20854         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
20855         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
20856         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
20857
20858 2008-08-29  Bruno Haible  <bruno@clisp.org>
20859
20860         * MODULES.html.sh: Remove --cvs-urls option.
20861
20862 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
20863
20864         maint.mk: adjust to file name change
20865         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
20866
20867 2008-08-28  Jim Meyering  <meyering@redhat.com>
20868
20869         * modules/getndelim2 (License): Relicense to LGPLv2+.
20870         Approved by Richard Stallman for the version of 1995, and by
20871         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
20872
20873 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
20874
20875         * lib/getdelim.c (flockfile, funlockfile): Make all of them
20876         dummy if one is not available.  Do not touch them if
20877         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
20878         (getc_maybe_unlocked): New.
20879         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
20880
20881 2008-08-26  Eric Blake  <ebb9@byu.net>
20882
20883         doc/INSTALL: resync from autoconf
20884         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
20885         (INSTALL_PRELUDE): Delete; this is done more efficiently by
20886         moving...
20887         * install.texi [!autoconf]: ...here.  Resync from autoconf.
20888         * INSTALL: Regenerate.
20889         * INSTALL.ISO: New file.
20890         * INSTALL.UTF-8: Likewise.
20891
20892 2008-08-26  Jim Meyering  <meyering@redhat.com>
20893
20894         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
20895         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
20896         these definitions conditional, so that they may be overridden, too.
20897
20898 2008-08-26  Bruno Haible  <bruno@clisp.org>
20899
20900         Generate INSTALL file variants with prettier quotes.
20901         * doc/Makefile (INSTALL_PRELUDE): New macro.
20902         (INSTALL): Use it.
20903         (INSTALL.ISO, INSTALL.UTF-8): New rules.
20904
20905 2008-08-26  Bruno Haible  <bruno@clisp.org>
20906
20907         Run makeinfo in an English locale.
20908         * doc/Makefile (MAKEINFO): New variable.
20909
20910 2008-08-26  Bruno Haible  <bruno@clisp.org>
20911
20912         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
20913         Suggested by Eric Blake.
20914
20915 2008-08-25  Bruno Haible  <bruno@clisp.org>
20916
20917         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
20918
20919 2008-08-25  Eric Blake  <ebb9@byu.net>
20920
20921         c-stack: test that stack overflow can be caught
20922         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
20923         that platform allows handling stack overflow; at least OS/2 EMX
20924         has sigaltstack, but crashes before transferring control to
20925         handler on stack overflow.
20926         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
20927         check for HAVE_STACK_OVERFLOW_HANDLING.
20928         Reported by Elbert Pol.
20929
20930 2008-08-25  Bruno Haible  <bruno@clisp.org>
20931
20932         * doc/posix-functions/strftime.texi: Fix description of strftime
20933         module.
20934
20935 2008-08-24  Bruno Haible  <bruno@clisp.org>
20936
20937         * tests/uniwidth/test-uc_width2.c: New file.
20938         * tests/uniwidth/test-uc_width2.sh: New file.
20939         * modules/uniwidth/width-tests (Files): Add the new files.
20940         (TESTS): Add uniwidth/test-uc_width2.sh.
20941         (TESTS_ENVIRONMENT): New variable.
20942         (check_PROGRAMS): Add test-uc_width2.
20943         (test_uc_width2_SOURCES): New variable.
20944
20945         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
20946         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
20947         not 0x00AB.
20948         Reported by Alexander V. Lukyanov <lav@netis.ru>.
20949
20950 2008-08-22  Eric Blake  <ebb9@byu.net>
20951
20952         test-lock, test-tls: mention why a test is skipped
20953         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
20954         skipped.
20955         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
20956
20957         count-one-bits: relax license
20958         * modules/count-one-bits (License): Relicense to LGPLv2+.
20959         Suggested by Ludovic Courtès, approved by Ben Pfaff.
20960
20961 2008-08-22  Andreas Schwab  <schwab@suse.de>
20962
20963         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
20964         Remove spurious space in assignment.
20965
20966 2008-08-21  Simon Josefsson  <simon@josefsson.org>
20967
20968         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
20969         Paul Eggert <eggert@CS.UCLA.EDU>.
20970
20971 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
20972
20973         * modules/gettext: Add m4/threadlib.m4.
20974
20975 2008-08-19  Eric Blake  <ebb9@byu.net>
20976
20977         test-c-stack: fix compilation failure on FreeBSD 5.0
20978         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
20979         headers before <sys/resource.h>.
20980         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
20981         the bug.
20982         Reported by Nelson H. F. Beebe.
20983
20984         strverscmp: migrate from "strverscmp.h" to <string.h>
20985         * modules/string (Makefile.am): Add new hooks.
20986         * modules/strverscmp (Files): Remove strverscmp.h.
20987         (Depends-on): Add string.
20988         (configure.ac): Add indicator.
20989         (Include): Mention new header.
20990         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
20991         defaults.
20992         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
20993         results.
20994         * lib/strverscmp.h: Delete.
20995         * lib/string.in.h (strverscmp): Provide declaration, when needed.
20996         * tests/test-strverscmp.c (includes): Adjust client.
20997         * lib/check-version.c (includes): Likewise.
20998         * NEWS: Document the change.
20999
21000         strverscmp: add unit test
21001         * modules/strverscmp-tests: New file.
21002         * tests/test-strverscmp.c: Likewise.
21003
21004 2008-08-19  Simon Josefsson  <simon@josefsson.org>
21005
21006         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
21007         regarding Windows crypto stuff, from Mono.
21008
21009 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
21010
21011         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
21012         if present, for intel RND.  Return error on failures.
21013
21014 2008-08-18  Ben Pfaff  <blp@gnu.org>
21015
21016         gitlog-to-changelog: give better diagnostic for failed pipe-open
21017         * build-aux/gitlog-to-changelog: Improve error message: suggest
21018         that the version of Git may be too old.
21019
21020 2008-08-18  Simon Josefsson  <simon@josefsson.org>
21021
21022         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
21023         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
21024
21025 2008-08-18  Bruno Haible  <bruno@clisp.org>
21026
21027         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
21028         pthread_in_use().
21029
21030 2008-08-18  Bruno Haible  <bruno@clisp.org>
21031
21032         * lib/glthread/threadlib.c: Include <pthread.h>.
21033
21034 2008-08-18  Bruno Haible  <bruno@clisp.org>
21035
21036         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
21037         glthread_recursive_lock_* macros.
21038         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
21039         Fix syntax error.
21040
21041 2008-08-18  Bruno Haible  <bruno@clisp.org>
21042
21043         * lib/glthread/thread.c: Avoid forcing a context switch right after
21044         thread creation.
21045
21046 2008-08-17  Bruno Haible  <bruno@clisp.org>
21047
21048         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
21049         * lib/glthread/thread.h: Provide Win32 specific implementation.
21050         * modules/thread (Files): Add lib/glthread/thread.c.
21051         (Depends-on): Add lock.
21052         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
21053
21054 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21055
21056         New module 'yield'.
21057         * modules/yield: New file.
21058         * lib/glthread/yield.h: New file.
21059         * m4/yield.m4: New file.
21060         * MODULES.html.sh (Multithreading): Add yield.
21061
21062 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21063
21064         New module 'thread'.
21065         * modules/thread: New file.
21066         * lib/glthread/thread.h: New file.
21067         * m4/thread.m4: New file.
21068         * MODULES.html.sh (Multithreading): Add thread.
21069
21070 2008-08-17  Bruno Haible  <bruno@clisp.org>
21071
21072         * lib/glthread/lock.h: Include <stdlib.h> always.
21073         * lib/glthread/tls.h: Likewise.
21074         * lib/glthread/cond.h: Likewise.
21075
21076 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21077
21078         New module 'cond'.
21079         * modules/cond: New file.
21080         * lib/glthread/cond.h: New file.
21081         * lib/glthread/cond.c: New file.
21082         * m4/cond.m4: New file.
21083         * MODULES.html.sh (Multithreading): Add cond.
21084
21085 2008-08-16  Eric Blake  <ebb9@byu.net>
21086
21087         c-stack: fix regression on Irix 5.3 from 2008-06-21
21088         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
21089         sa_sigaction...
21090         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
21091         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
21092         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
21093         * modules/signal (Makefile.am): Use the value.
21094         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
21095         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
21096         * doc/posix-headers/signal.texi (signal.h): Document this
21097         portability issue.
21098         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
21099         Reported by Tom G. Christensen.
21100
21101 2008-08-17  Bruno Haible  <bruno@clisp.org>
21102
21103         New module 'threadlib'.
21104         * modules/threadlib: New file.
21105         * lib/glthread/threadlib.c: New file, extracted from
21106         lib/glthread/lock.c.
21107         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
21108         functions.
21109         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
21110         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
21111         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
21112         macros.
21113         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
21114         (gl_DISABLE_THREADS): Remove macro.
21115         * modules/lock (Files): Remove build-aux/config.rpath.
21116         (Depends-on): Remove havelib. Add threadlib.
21117         (configure.ac-early): Remove section.
21118         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
21119         * modules/tls (Depends-on): Remove lock. Add threadlib.
21120         (Link): New section, copied from threadlib.
21121         * MODULES.html.sh (Multithreading): Add threadlib.
21122
21123 2008-08-14  Bruno Haible  <bruno@clisp.org>
21124
21125         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
21126         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
21127         glthread_rwlock_unlock, glthread_rwlock_destroy,
21128         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
21129         glthread_recursive_lock_destroy): Define as macros always.
21130         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
21131         glthread_lock_lock.
21132         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
21133         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
21134         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
21135         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
21136         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
21137         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
21138         (glthread_recursive_lock_lock_func): Renamed from
21139         glthread_recursive_lock_lock.
21140         (glthread_recursive_lock_unlock_func): Renamed from
21141         glthread_recursive_lock_unlock.
21142         (glthread_recursive_lock_destroy_func): Renamed from
21143         glthread_recursive_lock_destroy.
21144
21145 2008-08-14  Bruno Haible  <bruno@clisp.org>
21146
21147         * lib/glthread/lock.h: Renamed from lib/lock.h.
21148         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
21149         * lib/glthread/tls.h: Renamed from lib/tls.h.
21150         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
21151         * lib/fstrcmp.c: Update includes.
21152         * lib/strsignal.c: Update includes.
21153         * modules/lock (Files, Makefile.am): Update.
21154         (Include): Change to "glthread/lock.h".
21155         * modules/tls (Files, Makefile.am): Update.
21156         (Include): Change to "glthread/tls.h".
21157         * tests/test-lock.c: Update includes.
21158         * tests/test-tls.c: Update includes.
21159         * NEWS: Mention the renamed header files.
21160
21161 2008-08-11  Jim Meyering  <meyering@redhat.com>
21162
21163         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
21164
21165 2008-08-11  Eric Blake  <ebb9@byu.net>
21166
21167         test-c-stack: avoid C99-ism
21168         * tests/test-c-stack.c (main): Fix whitespace, move declaration
21169         before statement.
21170         Reported by Alain Guibert.
21171
21172 2008-08-10  Jim Meyering  <meyering@redhat.com>
21173
21174         ensure that return value of uinttostr et al are not ignored
21175         * lib/inttostr.h (__GNUC_PREREQ): Define.
21176         (__attribute_warn_unused_result__): Define.
21177         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
21178
21179 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
21180
21181         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
21182         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
21183
21184 2008-08-07  Jim Meyering  <meyering@redhat.com>
21185
21186         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
21187
21188         * modules/mkstemp (License): Relicense under LGPLv2+.
21189         * modules/tempname (License): Likewise.
21190
21191 2008-08-06  Bruno Haible  <bruno@clisp.org>
21192
21193         * lib/poll.c (poll): Further micro-optimization.
21194
21195 2008-08-06  Jim Meyering  <meyering@redhat.com>
21196
21197         inet_pton.c: use locale-independent tolower
21198         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
21199         (inet_pton6): Use c_tolower rather than tolower.
21200         * modules/inet_pton (Depends-on): Add c-ctype.
21201
21202 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
21203
21204         * lib/poll.c (poll): Avoid division when timeout is 0, cache
21205         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
21206
21207 2008-08-06  Jim Meyering  <meyering@redhat.com>
21208
21209         * modules/inet_pton (License): Relicense under LGPLv2+.
21210
21211 2008-08-03  Bruno Haible  <bruno@clisp.org>
21212
21213         Additional non-aborting API for lock and tls.
21214         * lib/lock.h: Include <errno.h>.
21215         (glthread_lock_init): New macro/function.
21216         (gl_lock_init): Define as wrapper around glthread_lock_init.
21217         (glthread_lock_lock): New macro/function.
21218         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
21219         (glthread_lock_unlock): New macro/function.
21220         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
21221         (glthread_lock_destroy): New macro/function.
21222         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
21223         (glthread_rwlock_init): New macro/function.
21224         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
21225         (glthread_rwlock_rdlock): New macro/function.
21226         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
21227         (glthread_rwlock_wrlock): New macro/function.
21228         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
21229         (glthread_rwlock_unlock): New macro/function.
21230         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
21231         (glthread_rwlock_destroy): New macro/function.
21232         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
21233         (glthread_recursive_lock_init): New macro/function.
21234         (gl_recursive_lock_init): Define as wrapper around
21235         glthread_recursive_lock_init.
21236         (glthread_recursive_lock_lock): New macro/function.
21237         (gl_recursive_lock_lock): Define as wrapper around
21238         glthread_recursive_lock_lock.
21239         (glthread_recursive_lock_unlock): New macro/function.
21240         (gl_recursive_lock_unlock): Define as wrapper around
21241         glthread_recursive_lock_unlock.
21242         (glthread_recursive_lock_destroy): New macro/function.
21243         (gl_recursive_lock_destroy): Define as wrapper around
21244         glthread_recursive_lock_destroy.
21245         (glthread_once): New macro/function.
21246         (gl_once): Define as wrapper around glthread_once.
21247         Update function declarations.
21248         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
21249         glthread_rwlock_init. Return error code.
21250         (glthread_rwlock_rdlock_multithreaded): Renamed from
21251         glthread_rwlock_rdlock. Return error code.
21252         (glthread_rwlock_wrlock_multithreaded): Renamed from
21253         glthread_rwlock_wrlock. Return error code.
21254         (glthread_rwlock_unlock_multithreaded): Renamed from
21255         glthread_rwlock_unlock. Return error code.
21256         (glthread_rwlock_destroy_multithreaded): Renamed from
21257         glthread_rwlock_destroy. Return error code.
21258         (glthread_recursive_lock_init_multithreaded): Renamed from
21259         glthread_recursive_lock_init. Return error code.
21260         (glthread_recursive_lock_lock_multithreaded): Renamed from
21261         glthread_recursive_lock_lock. Return error code.
21262         (glthread_recursive_lock_unlock_multithreaded): Renamed from
21263         glthread_recursive_lock_unlock. Return error code.
21264         (glthread_recursive_lock_destroy_multithreaded): Renamed from
21265         glthread_recursive_lock_destroy. Return error code.
21266         (glthread_once_call): Make static.
21267         (glthread_once_multithreaded): Renamed from glthread_once.
21268         * lib/tls.h: Include <errno.h>.
21269         (glthread_tls_key_init): New macro/function.
21270         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
21271         (glthread_tls_set): New macro/function.
21272         (gl_tls_set): Define as wrapper around glthread_tls_set.
21273         (glthread_tls_key_destroy): New macro/function.
21274         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
21275         Update function declarations.
21276         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
21277         glthread_tls_get.
21278         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21279
21280 2008-08-04  Eric Blake  <ebb9@byu.net>
21281
21282         gnumakefile: use space, not TAB, outside of targets
21283         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
21284
21285 2008-08-02  Jim Meyering  <meyering@redhat.com>
21286
21287         getdate.y: avoid locale-dependent date parsing failure
21288         In Turkish locales, getdate would fail to recognize keywords
21289         containing a lowercase "i".  The solution is not to rely on
21290         locale-sensitive case-conversion.
21291         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
21292         (lookup_word): Use c_toupper in place of toupper.
21293         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
21294         Reported by Vefa Bicakci <bicave@superonline.com> in
21295         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
21296         * modules/getdate (Depends-on): Add c-ctype.
21297
21298 2008-08-02  Bruno Haible  <bruno@clisp.org>
21299
21300         * gnulib-tool (func_import): When updating or creating a .gitignore
21301         file, prepend each added line with a slash, and ignore leading slashes
21302         from the existing lines.
21303         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
21304
21305 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21306
21307         Portability fix for GNU make 3.79.1.
21308         * top/GNUmakefile: Avoid 'else COND', which older GNU make
21309         versions do not understand.
21310
21311 2008-08-01  Bruno Haible  <bruno@clisp.org>
21312
21313         Work around bug of HP-UX 10.20 cc with -0.0 literal.
21314         * tests/test-isnanf.h (zero): New variable.
21315         (main): Avoid literal -0.0f.
21316         * tests/test-isnand.h (zero): New variable.
21317         (main): Avoid literal -0.0.
21318         * tests/test-isnanl.h (zero): New variable.
21319         (main): Avoid literal -0.0L.
21320         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
21321         (test_float, test_double, test_long_double): Avoid literals -0.0f,
21322         -0.0, -0.0L.
21323         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
21324         (test_signbitd): Avoid literal -0.0.
21325         (test_signbitl): Avoid literal -0.0L.
21326         * tests/test-ceilf1.c (zero): New variable.
21327         (main): Avoid literal -0.0f.
21328         * tests/test-ceill.c (zero): New variable.
21329         (main): Avoid literal -0.0L.
21330         * tests/test-floorf1.c (zero): New variable.
21331         (main): Avoid literal -0.0f.
21332         * tests/test-floorl.c (zero): New variable.
21333         (main): Avoid literal -0.0L.
21334         * tests/test-roundf1.c (zero): New variable.
21335         (main): Avoid literal -0.0f.
21336         * tests/test-round1.c (zero): New variable.
21337         (main): Avoid literal -0.0.
21338         * tests/test-roundl.c (zero): New variable.
21339         (main): Avoid literal -0.0L.
21340         * tests/test-truncf1.c (zero): New variable.
21341         (main): Avoid literal -0.0f.
21342         * tests/test-trunc1.c (zero): New variable.
21343         (main): Avoid literal -0.0.
21344         * tests/test-truncl.c (zero): New variable.
21345         (main): Avoid literal -0.0L.
21346         * tests/test-frexp.c (zero): New variable.
21347         (main): Avoid literal -0.0.
21348         * tests/test-frexpl.c (zero): New variable.
21349         (main): Avoid literal -0.0L.
21350         * tests/test-ldexpl.c (zero): New variable.
21351         (main): Avoid literal -0.0L.
21352         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21353         (zerod, zerol): New variables.
21354         (test_function): Avoid literals -0.0, -0.0L.
21355         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21356         (zerod, zerol): New variables.
21357         (test_function): Avoid literals -0.0, -0.0L.
21358         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21359         (zerod, zerol): New variables.
21360         (test_function): Avoid literals -0.0, -0.0L.
21361         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21362         (zerod, zerol): New variables.
21363         (test_function): Avoid literals -0.0, -0.0L.
21364         * tests/test-strtod.c (zero): New variable.
21365         (main): Avoid literal -0.0.
21366         Reported by Jonathan C. Patschke <jp@centtech.com>.
21367
21368 2008-07-31  Jim Meyering  <meyering@redhat.com>
21369
21370         sha256.h: correct definition of SHA224_DIGEST_SIZE
21371         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
21372         Reported by Paulie Pena IV <paulie4@gmail.com>.
21373         Define as 224 / 8, rather than as a literal.
21374         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
21375         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
21376         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
21377
21378 2008-07-31  Bruno Haible  <bruno@clisp.org>
21379
21380         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
21381         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
21382         Reported by Jonathan Patschke <jp@centtech.com>.
21383
21384 2008-07-31  Bruno Haible  <bruno@clisp.org>
21385
21386         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
21387         Reported by Paolo Bonzini <bonzini@gnu.org>.
21388
21389 2008-07-30  Eric Blake  <ebb9@byu.net>
21390
21391         test-strtod: allow compilation without -lm
21392         * tests/test-strtod.c (main): Avoid link dependence on fabs.
21393         Reported by Dennis Clarke <blastwave@gmail.com>.
21394
21395 2008-07-28  Jim Meyering  <meyering@redhat.com>
21396
21397         bootstrap: work also when there are no .po files in po/
21398         * build-aux/bootstrap (update_po_files): Complete the change
21399         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
21400
21401 2008-07-27  Jim Meyering  <meyering@redhat.com>
21402
21403         * users.txt: Add zile.
21404
21405 2008-07-26  Ben Pfaff  <blp@gnu.org>
21406
21407         Add missing dependencies on new m4/exponent[fdl].m4 files.
21408         * modules/isnanf-nolibm: Add m4/exponentf.m4.
21409         * modules/isnand-nolibm: Add m4/exponentd.m4.
21410         * modules/isnanl-nolibm: Add m4/exponentl.m4.
21411         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
21412         m4/isnan[fdl].m4, because the macros actually used moved.
21413         Reported by Jim Meyering.
21414
21415 2008-07-14  Ben Pfaff  <blp@gnu.org>
21416
21417         Add isinf module.
21418         * lib/isinf.c: New file.
21419         * lib/math.in.h: Define isinf macro if we have decided to replace
21420         it.
21421         * m4/isinf.m4: New file.
21422         * m4/math_h.m4: Initialize and substitute variables for isinf
21423         module.
21424         * modules/isinf: New file.
21425         * modules/isinf-tests: New file.
21426         * modules/math: Add substitutions for new module.
21427         * tests/test-isinf.c: New file.
21428         * doc/posix-functions/isinf.texi: Mention new module.
21429         * MODULES.html.sh: Mention new module.
21430
21431 2008-07-14  Ben Pfaff  <blp@gnu.org>
21432
21433         Factor out some macros for use by additional modules.
21434         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
21435         exponentf.m4.
21436         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
21437         exponentd.m4.
21438         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
21439         file exponentl.m4.
21440         * m4/exponentf.m4: New file.
21441         * m4/exponentd.m4: New file.
21442         * m4/exponentl.m4: New file.
21443         * modules/isnanf: Use new file m4/exponentf.m4.
21444         * modules/isnand: Use new file m4/exponentd.m4.
21445         * modules/isnanl: Use new file m4/exponentl.m4.
21446
21447 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
21448
21449         mktime.c: normalize tp->tm_isdst value to -1/0/1.
21450         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
21451         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
21452         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
21453
21454         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
21455         readlink on platforms without PATH_MAX.
21456
21457 2008-07-21  Eric Blake  <ebb9@byu.net>
21458
21459         Warn, not fail, on stale version.
21460         * top/GNUmakefile (_curr-ver): Tone down previous patch.
21461
21462         Don't allow installation with stale devel version number.
21463         * top/GNUmakefile (_is-install-target): New macro.
21464         (_curr-ver): Forbid installation with stale version number.
21465
21466 2008-07-20  Bruno Haible  <bruno@clisp.org>
21467
21468         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
21469         TESTS_ENVIRONMENT.
21470         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
21471
21472 2008-07-20  Bruno Haible  <bruno@clisp.org>
21473
21474         * lib/c-stack.h (c_stack_action): Add documentation.
21475         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
21476
21477 2008-07-20  Bruno Haible  <bruno@clisp.org>
21478
21479         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
21480         * modules/readlink (License): Likewise.
21481
21482 2008-07-17  Eric Blake  <ebb9@byu.net>
21483
21484         * modules/c-stack (Link): Fix typo.
21485
21486         Make c-stack use libsigsegv, when available.
21487         * modules/c-stack (Depends-on): Add libsigsegv.
21488         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
21489         needed.
21490         * lib/c-stack.c (SIGSTKSZ): Define fallback.
21491         (segv_handler, overflow_handler, c_stack_action)
21492         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
21493         implementation when libsigsegv is available, but only when using
21494         the library is necessary.
21495         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
21496         comment, explaining why XSI check fails on Linux.
21497         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
21498         * tests/test-c-stack2.sh: Tweak skip message.
21499         * NEWS: Document new link-time requirements.
21500
21501 2008-07-16  Eric Blake  <ebb9@byu.net>
21502
21503         c-stack: Expose false positives when not using libsigsegv.
21504         * modules/c-stack-tests (Files): Expand test.
21505         * tests/test-c-stack.c (main): Add means to conditionally trigger
21506         non-overflow SIGSEGV.
21507         * tests/test-c-stack2.sh: New file.
21508
21509 2008-07-14  Bruno Haible  <bruno@clisp.org>
21510
21511         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
21512         Reported by Eric Blake.
21513
21514 2008-07-14  Sam Steingold  <sds@gnu.org>
21515             Bruno Haible  <bruno@clisp.org>
21516
21517         New module libsigsegv.
21518         * modules/libsigsegv: New file.
21519         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
21520         modifications.
21521         * MODULES.html.sh (Signal handling): New section.
21522
21523 2008-07-14  Bruno Haible  <bruno@clisp.org>
21524
21525         * modules/unictype/ctype-* (Description): Add the word "function".
21526         Improves the resulting doc in MODULES.html.
21527
21528 2008-07-12  Ben Pfaff  <blp@gnu.org>
21529
21530         Add longlong module.
21531         * modules/longlong: New file.
21532
21533 2008-07-12  Bruno Haible  <bruno@clisp.org>
21534
21535         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
21536         to empty.
21537
21538 2008-07-10  Ben Pfaff  <blp@gnu.org>
21539
21540         Add isnan module.
21541         * doc/posix-functions/isnan.texi: Mention new module.
21542         * lib/math.in.h: Define isnan macro if we have decided to replace
21543         it.
21544         * m4/isnan.m4: New file.
21545         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
21546         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
21547         also.
21548         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
21549         redundancy.
21550         * m4/math_h.m4: Initialize and substitute variables for isnan
21551         module.
21552         * modules/isnan: New file.
21553         * modules/isnan-tests: New file.
21554         * modules/math: Add substitutions for new module.
21555         * tests/test-isnan.c: New file.
21556         * MODULES.html.sh: Mention new module.
21557
21558 2008-07-10  Ben Pfaff  <blp@gnu.org>
21559
21560         Add isnanf module.
21561         * lib/isnanf.m4: New file.
21562         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
21563         (gl_HAVE_ISNANF_IN_LIBM): New macro.
21564         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
21565         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
21566         * modules/isnanf: New file.
21567         * modules/isnanf-tests: New file.
21568         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
21569         files.
21570         * tests/test-isnanf-nolibm.c: factored most of its contents into
21571         new file tests/test-isnanf.h.
21572         * tests/test-isnanf.h: New file.
21573         * tests/test-isnanf.c: New file.
21574         * MODULES.html.sh: Mention new module.
21575         * doc/glibc-functions/isnanf.texi: Mention new module.
21576
21577 2008-07-10  Ben Pfaff  <blp@gnu.org>
21578
21579         Add isnand module.
21580         * lib/isnand.h: New file.
21581         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
21582         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
21583         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
21584         functionality also.
21585         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
21586         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
21587         (gl_HAVE_ISNAND_IN_LIBM): New macro.
21588         * modules/isnand: New file.
21589         * modules/isnand-tests: New file.
21590         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
21591         files.
21592         * tests/test-isnand-nolibm.c: factored most of its contents into
21593         new file tests/test-isnand.h.
21594         * tests/test-isnand.h: New file.
21595         * tests/test-isnand.c: New file.
21596         * MODULES.html.sh: Mention new module.
21597
21598 2008-07-10  Ben Pfaff  <blp@gnu.org>
21599
21600         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
21601         * lib/isnand.h: Rename lib/isnand-nolibm.h.
21602         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
21603         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
21604         * modules/isnanf-nolibm: Update references to renamed files.
21605         * modules/isnand-nolibm: Likewise.
21606         * modules/isnanf-nolibm-tests: Likewise.
21607         * modules/isnand-nolibm-tests: Likewise.
21608         * lib/frexp.c: Likewise.
21609         * lib/isfinite.c: Likewise.
21610         * lib/signbitd.c: Likewise.
21611         * lib/signbitf.c: Likewise.
21612         * lib/vasnprintf.c: Likewise.
21613         * tests/test-ceilf1.c: Likewise.
21614         * tests/test-ceilf2.c: Likewise.
21615         * tests/test-floorf1.c: Likewise.
21616         * tests/test-floorf2.c: Likewise.
21617         * tests/test-frexp.c: Likewise.
21618         * tests/test-round1.c: Likewise.
21619         * tests/test-round2.c: Likewise.
21620         * tests/test-roundf1.c: Likewise.
21621         * tests/test-strtod.c: Likewise.
21622         * tests/test-trunc1.c: Likewise.
21623         * tests/test-trunc2.c: Likewise.
21624         * tests/test-truncf1.c: Likewise.
21625         * tests/test-truncf2.c: Likewise.
21626         * NEWS: Mention the renamed header files.
21627
21628 2008-07-11  Jim Meyering  <meyering@redhat.com>
21629
21630         vc-list-files: make the last-resort awk code more portable
21631         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
21632         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
21633         does not support it.
21634
21635 2008-07-10  Eric Blake  <ebb9@byu.net>
21636
21637         Work with tar's bootstrap.
21638         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
21639         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
21640         an m4 comment.
21641
21642 2008-07-09  Jim Meyering  <meyering@redhat.com>
21643
21644         posix-shell.m4: fix typo that made this test malfunction
21645         * m4/posix-shell.m4: Remove capitalization in variable name.
21646
21647 2008-07-08  Bruno Haible  <bruno@clisp.org>
21648
21649         * m4/onceonly.m4: Update comments.
21650         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21651
21652 2008-07-04  Jim Meyering  <meyering@redhat.com>
21653
21654         * users.txt: Add vc-dwim.
21655         (bison, coreutils): Use the gitweb URL.
21656
21657 2008-07-03  Jim Meyering  <meyering@redhat.com>
21658
21659         * users.txt: Add libffcall.  From Sam Steingold.
21660
21661 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
21662
21663         getdate.y: do not ignore TZ with relative day, month or year offset
21664         * lib/getdate.y (get_date): Move the tz-handling block to follow the
21665         relative-date-handling, since otherwise, the latter would clobber the
21666         sole output (an updated Start value) of the tz-handling block.
21667         * tests/test-getdate.c: Tests for the fix
21668
21669 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21670
21671         Recognize 'foo_LIBRARIES += libgnu.a'.
21672         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
21673         makefile snippet has already specified an installation location,
21674         also using '+='.
21675
21676 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
21677
21678         getdate.y: factor out common actions
21679         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
21680         Use them in place of open-coded actions.
21681
21682 2008-07-01  Simon Josefsson  <simon@josefsson.org>
21683
21684         Add self-test for getdate module.
21685         * modules/getdate-tests: New file.
21686         * tests/test-getdate.c: New file.
21687
21688 2008-06-29  Bruno Haible  <bruno@clisp.org>
21689
21690         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
21691         .gitignore.
21692         Reported by Sylvain Beucler <beuc@beuc.net>.
21693
21694 2008-06-29  Bruno Haible  <bruno@clisp.org>
21695
21696         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
21697         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
21698
21699 2008-06-29  Bruno Haible  <bruno@clisp.org>
21700
21701         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
21702         EXTRA_DIST.
21703         Reported by Sylvain Beucler <beuc@beuc.net>.
21704
21705 2008-06-26  Jim Meyering  <meyering@redhat.com>
21706
21707         make several modules depend on the "open" module
21708         This provides slightly increased consistency when opening-for-write
21709         the name of a non-directory spelled with a trailing slash.
21710         * modules/chdir-safer: Likewise.
21711         * modules/chown: Likewise.
21712         * modules/clean-temp: Likewise.
21713         * modules/copy-file: Likewise.
21714         * modules/fchdir: Likewise.
21715         * modules/fcntl-safer: Likewise.
21716         * modules/pipe: Likewise.
21717         * modules/utime: Likewise.
21718         Prompted by Eric Blake and Bruno Haible.
21719
21720 2008-06-24  Andreas Schwab  <schwab@suse.de>
21721
21722         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
21723         literals can be used as initializers for global variables.
21724
21725 2008-06-23  Eric Blake  <ebb9@byu.net>
21726
21727         Make gnulib-cache.m4 easier to diff.
21728         * gnulib-tool (func_import): Allow newlines when reading cached
21729         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
21730
21731 2008-06-23  Bruno Haible  <bruno@clisp.org>
21732
21733         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
21734         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
21735         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
21736         m4/signalblocking.m4.
21737         (gl_PREREQ_SIGACTION): Don't invoke it.
21738         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
21739         gl_PREREQ_SIG_HANDLER_H.
21740         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21741         Don't check for sigaction here.
21742
21743 2008-06-23  Bruno Haible  <bruno@clisp.org>
21744
21745         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
21746         (install_handlers): Don't set the SA_RESETHAND flag.
21747
21748 2008-06-23  Bruno Haible  <bruno@clisp.org>
21749
21750         * m4/sigaction.m4: Comment fixes.
21751         * lib/signal.in.h: Likewise.
21752
21753 2008-06-23  Eric Blake  <ebb9@byu.net>
21754
21755         Fix typo.
21756         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
21757
21758         Avoid SA_ namespace.
21759         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
21760         Reported by Ralf Wildenhues.
21761
21762         Avoid test failure due to SA_RESTORER.
21763         * tests/test-sigaction.c (SA_MASK): New macro.
21764         (main): Avoid failing due to extension flags being set.
21765         Reported by Jim Meyering.
21766
21767         Revert use of sig-handler.h in sigprocmask.c.
21768         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
21769         it requires the existence of struct sigaction.
21770         * lib/sigprocmask.c (handler_t): Restore typedef.
21771         (rpl_signal, old_handlers): Use local type.
21772
21773 2008-06-22  Bruno Haible  <bruno@clisp.org>
21774
21775         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
21776         conditionally.
21777         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21778
21779 2008-06-22  Bruno Haible  <bruno@clisp.org>
21780
21781         * doc/posix-functions/siginterrupt.texi: Move note.
21782
21783         * lib/signal.in.h (SA_RESTART): New macro.
21784         * lib/sigaction.c: Update comment.
21785
21786         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
21787
21788         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
21789         (gl_PREREQ_SIGPROCMASK): Invoke it.
21790         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
21791
21792         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
21793
21794         * lib/sigprocmask.c: Update a comment.
21795
21796 2008-06-21  Eric Blake  <ebb9@byu.net>
21797
21798         Use sigaction module rather than signal().
21799         * modules/c-stack (Depends-on): Add sigaction.
21800         * modules/fatal-signal (Depends-on): Likewise.
21801         * modules/nanosleep (Depends-on): Likewise.
21802         * modules/sigprocmask (Files): Add sig-handler.h.
21803         * modules/sigaction (Files): Likewise.
21804         * lib/sig-handler.h (get_handler): New file, suggested by Paul
21805         Eggert.
21806         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
21807         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
21808         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
21809         (init_fatal_signals): Likewise.
21810         * lib/nanosleep.c (rpl_nanosleep): Likewise.
21811         (siginterrupt): Delete fallback.
21812         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
21813         instead.
21814         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
21815         siginterrupt.
21816
21817         New module sigaction, for mingw.
21818         * modules/sigaction: New module...
21819         * modules/sigaction-tests: ...and its test.
21820         * m4/sigaction.m4: New file.
21821         * lib/sigaction.c: Likewise.
21822         * tests/test-sigaction.c: Likewise.
21823         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
21824         * modules/signal (Makefile.am): Likewise.
21825         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
21826         needed.
21827         * doc/posix-headers/signal.texi (signal.h): Mention provided
21828         types.
21829         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
21830         that sigaction is preferable.
21831         * doc/posix-functions/sigaction.texi (sigaction): Mention new
21832         module.
21833         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21834         sigaction.
21835
21836         Improve robustness of sigprocmask by overriding signal.
21837         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
21838         is in use.
21839         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
21840         (SIGKILL, SIGSTOP): Provide fallbacks.
21841         (rpl_signal): Implement.
21842         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
21843         signal can be called inside handlers.
21844
21845         Fix nanosleep module on mingw.
21846         * modules/nanosleep (Depends-on): Add sys_select.
21847         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
21848
21849         Fix licensing of sigprocmask.
21850         * modules/raise (License): Relicense as LGPL.
21851
21852 2008-06-21  Bruno Haible  <bruno@clisp.org>
21853
21854         * lib/propername.c (proper_name_utf8): Don't use the transliterated
21855         result if it contains question marks.
21856         Reported by Michael Geng <linux@michaelgeng.de>.
21857
21858 2008-06-19  Bruno Haible  <bruno@clisp.org>
21859
21860         Fix CVS-ism.
21861         * doc/gnulib.texi: Include updated-stamp.texi.
21862         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
21863         (updated-stamp.texi): New rule.
21864         (gnulib.info): Depend on it.
21865         * doc/.gitignore: Add updated-stamp.texi.
21866         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
21867
21868 2008-06-19  Bruno Haible  <bruno@clisp.org>
21869
21870         * doc/Makefile (gnulib.info): Update and simplify dependencies.
21871         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21872
21873 2008-06-19  Eric Blake  <ebb9@byu.net>
21874
21875         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
21876         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
21877         Reported by Stepan Kasal.
21878
21879 2008-06-18  Bruno Haible  <bruno@clisp.org>
21880
21881         * lib/fatal-signal.c (init_fatal_signals): Add comment.
21882         Reported by Eric Blake.
21883
21884 2008-06-18  Eric Blake  <ebb9@byu.net>
21885
21886         Work around cygwin 1.5.25 strsignal bug.
21887         * tests/test-strsignal.c: Allow for const char *.
21888         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
21889
21890 2008-06-18  Simon Josefsson  <simon@josefsson.org>
21891
21892         * users.txt: Update URL to article and add author/date
21893         information.
21894
21895 2008-06-17  Bruno Haible  <bruno@clisp.org>
21896
21897         New macro gl_DISABLE_THREADS.
21898         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
21899         if the user did not pass --enable-threads or --disable-threads option.
21900         (gl_DISABLE_THREADS): New macro.
21901         Reported by Eric Blake <ebb9@byu.net>.
21902
21903 2008-06-17  Bruno Haible  <bruno@clisp.org>
21904
21905         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
21906         when the macro ignores it.
21907         Based on a patch by Eric Blake <ebb9@byu.net>.
21908
21909 2008-06-17  Bruno Haible  <bruno@clisp.org>
21910
21911         * modules/tls (License): Change to LGPLv2+.
21912         Reported by Eric Blake.
21913
21914 2008-06-17  Eric Blake  <ebb9@byu.net>
21915
21916         Simplify c-stack prerequisites.
21917         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
21918         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
21919         no longer requires <ucontext.h> to exist.  Optimize setrlimit
21920         check.
21921         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
21922         <sys/resource.h>.
21923
21924         Move c-stack test into testsuite.
21925         * modules/c-stack-tests: New file.
21926         * lib/c-stack.c [DEBUG]: Move test program...
21927         * tests/test-c-stack.c: ...into this new file.  Skip rather than
21928         fail test if sigaltstack is lacking.
21929         * tests/test-c-stack.sh: New driver file.
21930
21931 2008-06-16  Eric Blake  <ebb9@byu.net>
21932
21933         Use raise module consistently.
21934         * modules/fatal-signal (Depends-on): Add raise.
21935         * modules/sigprocmask (Depends-on): Likewise.
21936         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
21937         * lib/sigprocmask.c (sigprocmask): Likewise.
21938         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21939         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
21940
21941         Fix compliance bug in sigpending.
21942         * lib/sigprocmask.c (sigpending): Return pending array via
21943         parameter, not return value.
21944
21945 2008-06-14  Eric Blake  <ebb9@byu.net>
21946
21947         Improve obstack-printf test code.
21948         * tests/test-obstack-printf.c (test_function): Fix comment, and
21949         simplify usage of obstack_* in macros.  Add a test for coverage.
21950         Reported by Bruno Haible.
21951
21952 2008-06-14  Bruno Haible  <bruno@clisp.org>
21953
21954         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
21955         array size as a constant, not as a const variable.
21956         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
21957         AC_USE_SYSTEM_EXTENSIONS.
21958         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
21959         Test whether the obstack_printf function actually exists.
21960         * modules/obstack-printf (Depends-on): Add extensions.
21961         (Include): Remove obstack.h.
21962         * modules/obstack-printf-posix (Depends-on): Add extensions.
21963         (Include): Remove obstack.h.
21964
21965 2008-06-13  Eric Blake  <ebb9@byu.net>
21966
21967         Add obstack-printf and obstack-printf-posix modules.
21968         * modules/obstack-printf: New file.
21969         * modules/obstack-printf-posix: Likewise.
21970         * MODULES.html.sh (Misc): Mention them.
21971         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
21972         Likewise.
21973         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
21974         Likewise.
21975         * modules/stdio (Makefile.am): Accomodate new modules.
21976         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21977         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
21978         Declare.
21979         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
21980         functions.
21981         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
21982         (gl_REPLACE_OBSTACK_PRINTF): New macros
21983         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
21984         * tests/test-obstack-printf.c: New file.
21985         * modules/obstack-printf-tests: Likewise.
21986         * modules/obstack-printf-posix-tests: Likewise.
21987
21988 2008-06-11  Bruno Haible  <bruno@clisp.org>
21989
21990         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
21991         * lib/open.c: Include errno.h.
21992         (open): Fail when attempting to write to a file that has a trailing
21993         slash.
21994         * tests/test-open.c (main): Test against trailing slash bug.
21995         * doc/posix-functions/open.texi: Mention the trailing slash bug.
21996
21997 2008-06-10  Bruno Haible  <bruno@clisp.org>
21998
21999         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
22000         for $? to work inside the trap command, with various /bin/sh-s.
22001         * tests/test-vc-list-files-cvs.sh: Likewise.
22002
22003 2008-06-10  Bruno Haible  <bruno@clisp.org>
22004
22005         * lib/acl-internal.h: Don't include gettext.h here.
22006         * lib/set-mode-acl.c: Include gettext.h here.
22007         * lib/copy-acl.c: Likewise.
22008
22009 2008-06-10  Bruno Haible  <bruno@clisp.org>
22010
22011         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
22012         * lib/wait-process.c (wait_subprocess): Likewise.
22013         * lib/execute.h (execute): Add termsigp argument.
22014         * lib/execute.c (execute): Likewise.
22015         * lib/csharpcomp.c (compile_csharp_using_pnet,
22016         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
22017         * lib/csharpexec.c (execute_csharp_using_pnet,
22018         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
22019         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
22020         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
22021         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
22022         is_jikes_present): Update.
22023         * lib/javaexec.c (execute_java_class): Update.
22024         * lib/javaversion.c (execute_and_read_line): Update.
22025         * NEWS: Document the changes.
22026         Reported by Eric Blake.
22027
22028 2008-06-10  Eric Blake  <ebb9@byu.net>
22029
22030         Add missing include.
22031         * tests/test-strstr.c (includes): Add <signal.h>.
22032         * tests/test-strcasestr.c (includes): Likewise.
22033         * tests/test-memmem.c (includes): Likewise.
22034
22035 2008-06-10  Bruno Haible  <bruno@clisp.org>
22036
22037         * lib/wait-process.c (wait_subprocess): Add an assertion.
22038
22039 2008-06-10  Bruno Haible  <bruno@clisp.org>
22040
22041         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
22042
22043 2008-06-10  Bruno Haible  <bruno@clisp.org>
22044
22045         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
22046         using alarm().
22047         * tests/test-strcasestr.c (main): Likewise.
22048         * tests/test-strstr.c (main): Likewise.
22049
22050 2008-06-09  Bruno Haible  <bruno@clisp.org>
22051
22052         Work around the Solaris 10 ACE ACLs ABI change.
22053         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
22054         declare if ACL_NO_TRIVIAL is present.
22055         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
22056         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
22057         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
22058         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
22059         define if ACL_NO_TRIVIAL is present.
22060         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
22061         and use the current ABI.
22062         (file_has_acl): Use same #if condition as elsewhere.
22063         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
22064         in use, and use the current ABI.
22065         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
22066         Reported by Jim Meyering.
22067
22068 2008-06-09  Eric Blake  <ebb9@byu.net>
22069
22070         Work around environments that (stupidly) ignore SIGALRM.
22071         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
22072         before using alarm().
22073         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22074         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22075         Reported by Ian Beckwith <ianb@erislabs.net>.
22076
22077         Produce autobuild blurb earlier in log.
22078         * modules/autobuild (configure.ac-early): Move AB_INIT here.
22079
22080 2008-06-09  Jim Meyering  <meyering@redhat.com>
22081         and OndÅ™ej Vašík  <ovasik@redhat.com>
22082
22083         utimens.c: correct kernel bug work-around
22084         OndÅ™ej Vašík found that the invalid return value of 280 indicates
22085         failure, not success, and the kernel bug we're trying to work
22086         around affects not just the utimensat call, but also the fallback
22087         futimens call.
22088         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
22089         not success.
22090         [HAVE_FUTIMENS]: Use the same work-around, here.
22091
22092 2008-06-09  Jim Meyering  <meyering@redhat.com>
22093
22094         add more guards around definition of ACE_-related code
22095         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
22096         ALLOW and ACE_OWNER are also defined.
22097
22098 2008-06-08  Bruno Haible  <bruno@clisp.org>
22099
22100         * lib/acl-internal.h: Add me as co-author.
22101         * lib/file-has-acl.c: Likewise.
22102         * lib/set-mode-acl.c: Likewise.
22103         * lib/copy-acl.c: Likewise.
22104
22105 2008-06-08  Bruno Haible  <bruno@clisp.org>
22106
22107         Add support for AIX ACLs.
22108         * lib/acl-internal.h (acl_nontrivial): New declaration.
22109         * lib/file-has-acl.c (acl_nontrivial): New function.
22110         (file_has_acl): Add implementation using AIX 4 ACL API.
22111         * lib/set-mode-acl.c (qset_acl): Likewise.
22112         * lib/copy-acl.c (qcopy_acl): Likewise.
22113
22114 2008-06-08  Bruno Haible  <bruno@clisp.org>
22115
22116         Add support for HP-UX ACLs.
22117         * lib/acl-internal.h (acl_nontrivial): New declaration.
22118         * lib/file-has-acl.c (acl_nontrivial): New function.
22119         (file_has_acl): Add implementation using HP-UX 11 ACL API.
22120         * lib/set-mode-acl.c (qset_acl): Likewise.
22121         * lib/copy-acl.c (qcopy_acl): Likewise.
22122
22123 2008-06-08  Bruno Haible  <bruno@clisp.org>
22124
22125         Add support for Cygwin ACLs.
22126         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
22127         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
22128         the chmod_or_fchmod call.
22129         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
22130
22131 2008-06-08  Bruno Haible  <bruno@clisp.org>
22132
22133         Fix bug with setuid modes in Solaris 10+ code.
22134         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
22135         succeeded, when the mode contains some special bits.
22136
22137 2008-06-08  Bruno Haible  <bruno@clisp.org>
22138
22139         Add support for Solaris 7..10 ACLs.
22140         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
22141         declarations.
22142         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
22143         functions.
22144         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
22145         * lib/set-mode-acl.c (qset_acl): Likewise.
22146         * lib/copy-acl.c (qcopy_acl): Likewise.
22147
22148 2008-06-08  Bruno Haible  <bruno@clisp.org>
22149
22150         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
22151         declaration.
22152         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
22153         (acl_access_nontrivial): Remove MacOS X case.
22154         (file_has_acl): Use acl_extended_nontrivial.
22155         * lib/copy-acl.c (qcopy_acl): Likewise.
22156
22157 2008-06-08  Bruno Haible  <bruno@clisp.org>
22158
22159         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
22160
22161 2008-06-08  Jim Meyering  <meyering@redhat.com>
22162
22163         * modules/acl (Maintainer): Add Bruno Haible.
22164
22165 2008-06-07  Bruno Haible  <bruno@clisp.org>
22166
22167         Improve support for Tru64 ACLs.
22168         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
22169         ACL on OSF/1.
22170
22171 2008-06-07  Bruno Haible  <bruno@clisp.org>
22172
22173         Add support for MacOS X ACLs.
22174         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
22175         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
22176         * lib/set-mode-acl.c (qset_acl): Likewise.
22177         * lib/copy-acl.c (qcopy_acl): Likewise.
22178
22179 2008-06-07  Bruno Haible  <bruno@clisp.org>
22180
22181         Fix memory leak introduced on 2008-05-22.
22182         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
22183         use.
22184
22185 2008-06-07  Bruno Haible  <bruno@clisp.org>
22186
22187         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
22188         to construct an empty ACL.
22189
22190 2008-06-07  Bruno Haible  <bruno@clisp.org>
22191
22192         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
22193         precisely.
22194         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
22195
22196 2008-06-07  Bruno Haible  <bruno@clisp.org>
22197
22198         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
22199         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
22200
22201 2008-06-07  Bruno Haible  <bruno@clisp.org>
22202
22203         * doc/posix-functions/_setjmp.texi: Explain the use of this function
22204         regardless of POSIX.
22205         * doc/posix-functions/_longjmp.texi: Likewise.
22206         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
22207         SystemV platform in this case.
22208
22209 2008-06-06  Eric Blake  <ebb9@byu.net>
22210
22211         Document abort() bugs.
22212         * doc/posix-functions/abort.texi (abort): Mention anomalies.
22213
22214         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
22215         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
22216         sigsetjmp.
22217         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
22218         siglongjmp, but only as a macro.
22219         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
22220         is obsolete.
22221         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
22222
22223         Tweak documentation to cover cygwin argz bugs.
22224         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
22225         argz bug fix; no code change needed since no cygwin releases
22226         occurred between the last fix and the bug being tested.
22227         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
22228         module and recently fixed cygwin bugs.
22229         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
22230         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
22231         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
22232         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
22233         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
22234         Likewise.
22235         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
22236         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
22237         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
22238         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
22239         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
22240         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
22241         Likewise.
22242
22243         Avoid gcc warning on cygwin.
22244         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
22245         !ACL_NO_TRIVIAL]: Avoid unused variable.
22246
22247 2008-06-05  Eric Blake  <ebb9@byu.net>
22248
22249         Be tolerant of UNKNOWN version in gnulib-tool test dir.
22250         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
22251         git-version-gen fails to come up with a version.
22252         Reported by Simon Josefsson.
22253
22254 2008-06-05  Jim Meyering  <meyering@redhat.com>
22255             Paul Eggert  <eggert@cs.ucla.edu>
22256
22257         utimens.c: work around a probable Linux kernel bug
22258         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
22259         appears to be a kernel bug that causes utimensat to return 280
22260         instead of 0, indicating success.
22261
22262 2008-06-04  Bruno Haible  <bruno@clisp.org>
22263
22264         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
22265         2008-06-01 commit.
22266
22267 2008-06-04  Bruno Haible  <bruno@clisp.org>
22268
22269         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
22270         * lib/file-has-acl.c (acl_access_nontrivial): New function.
22271         (file_has_acl): Use it. Save errno afterwards.
22272         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
22273
22274 2008-06-03  Bruno Haible  <bruno@clisp.org>
22275
22276         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
22277         draft code. Simplify #ifs.
22278         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
22279         Put Solaris code after POSIX-draft code. Fix comments regarding
22280         Solaris 10, HP-UX. Mention Cygwin.
22281         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
22282
22283 2008-06-03  Eric Blake  <ebb9@byu.net>
22284
22285         Provide fallback for older kernels.
22286         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
22287         Provide runtime fallback if kernel lacks support.
22288         Reported by Mike Frysinger.
22289
22290 2008-06-02  Bruno Haible  <bruno@clisp.org>
22291
22292         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
22293         it exists.
22294
22295 2008-06-02  Bruno Haible  <bruno@clisp.org>
22296
22297         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
22298         * lib/copy-acl.c (qcopy_acl): Update comment.
22299
22300 2008-06-02  Bruno Haible  <bruno@clisp.org>
22301
22302         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
22303         like ACL APIs.
22304
22305 2008-06-02  Bruno Haible  <bruno@clisp.org>
22306
22307         * tests/test-file-has-acl.sh: Use different code for Cygwin.
22308         * tests/test-set-mode-acl.sh: Likewise.
22309         * tests/test-copy-acl.sh: Likewise.
22310         * tests/test-copy-file.sh: Likewise.
22311
22312 2008-06-02  Bruno Haible  <bruno@clisp.org>
22313
22314         * tests/test-file-has-acl.sh: Remove unused code.
22315
22316 2008-06-01  Bruno Haible  <bruno@clisp.org>
22317
22318         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
22319         (copy_acl): Just a wrapper around qcopy_acl that emits the error
22320         messages.
22321         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
22322
22323 2008-06-01  Bruno Haible  <bruno@clisp.org>
22324
22325         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
22326         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
22327         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
22328         APIs.
22329         * modules/acl-tests (configure.ac): Remove tests now contained in
22330         m4/acl.m4.
22331
22332 2008-06-02  Jim Meyering  <meyering@redhat.com>
22333
22334         announce-gen: use a better key-server host name
22335         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
22336         it may be more consistently reliable.  Suggested by Werner Koch
22337         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
22338
22339 2008-06-01  Bruno Haible  <bruno@clisp.org>
22340
22341         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
22342         Reported by Voroskoi Andras <voroskoi@gmail.com>.
22343
22344 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
22345
22346         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
22347
22348 2008-06-01  Bruno Haible  <bruno@clisp.org>
22349
22350         New ACL tests.
22351         * tests/test-file-has-acl.sh: New file.
22352         * tests/test-file-has-acl.c: New file.
22353         * tests/test-set-mode-acl.sh: New file.
22354         * tests/test-set-mode-acl.c: New file.
22355         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
22356         * tests/test-copy-acl.c: New file.
22357         * modules/acl-tests: New file, based on modules/copy-file-tests.
22358         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
22359         (Depends-on): Add acl-tests.
22360         (configure.ac): Remove checks.
22361         (Makefile.am): Don't create test-sameacls program here any more.
22362
22363 2008-06-01  Bruno Haible  <bruno@clisp.org>
22364
22365         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
22366         * tests/test-sameacls.c: Include progname.h.
22367         (main): Invoke set_program_name. Portability fixes for MacOS X,
22368         Solaris, HP-UX.
22369
22370 2008-06-01  Bruno Haible  <bruno@clisp.org>
22371
22372         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
22373         function.
22374         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
22375
22376 2008-06-01  Bruno Haible  <bruno@clisp.org>
22377
22378         * modules/rpmatch (Depends-on): Add strdup.
22379
22380 2008-06-01  Bruno Haible  <bruno@clisp.org>
22381
22382         * lib/pipe.c: Include unistd-safer.h.
22383         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
22384         * modules/pipe (Depends-on): Add unistd-safer.
22385
22386 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22387
22388         * modules/autobuild (configure.ac): Call AB_INIT.
22389
22390 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22391
22392         * tests/test-getaddrinfo.c: Don't print debug messages by default.
22393         Suggested by Bruno Haible <bruno@clisp.org>.
22394
22395 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22396
22397         * tests/test-base64.c: Cast size_t to unsigned long when invoking
22398         printf.  Use %lu instead of %d.  Reported by Bruno Haible
22399         <bruno@clisp.org>.
22400
22401 2008-05-29  Eric Blake  <ebb9@byu.net>
22402
22403         Prefer new POSIX 200x interfaces over futimesat.
22404         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
22405         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
22406         when available.
22407         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
22408
22409 2008-05-28  Bruno Haible  <bruno@clisp.org>
22410
22411         * modules/stpcpy (License): Change to LGPLv2+.
22412         Requested by David Lutterkort <dlutter@redhat.com>.
22413
22414 2008-05-27  Bruno Haible  <bruno@clisp.org>
22415
22416         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
22417         current mingw.
22418         Reported by Jose E. Marchesi <jemarch@gnu.org>.
22419
22420 2008-05-27  Bruno Haible  <bruno@clisp.org>
22421
22422         * modules/iconv_open (Link): New section, from module 'iconv'.
22423         * modules/striconv (Link): Likewise.
22424         * modules/striconveh (Link): Likewise.
22425         * modules/xstriconv (Link): Likewise.
22426         * modules/unicodeio (Link): Likewise.
22427         * modules/propername (Link): Likewise.
22428         Reported by Jim Meyering.
22429
22430 2008-05-26  Jim Meyering  <meyering@redhat.com>
22431
22432         sha256: do not artificially restrict buffer length to be < 2^32
22433         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
22434         uint32_t to size_t.
22435         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
22436         to match.
22437
22438         avoid unaligned access errors, e.g., on sparc
22439         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
22440         direct access through a possibly-unaligned uint64* pointer.
22441         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
22442         direct access through a possibly-unaligned uint32* pointer.
22443         Prompted by this patch from Tom "spot" Callaway:
22444         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
22445
22446         sha512.c: fix typo in comment
22447         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
22448
22449 2008-05-25  Bruno Haible  <bruno@clisp.org>
22450
22451         * lib/set-mode-acl.c: Renamed from lib/acl.c.
22452         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
22453         (Makefile.am): Update lib_SOURCES.
22454
22455 2008-05-25  Bruno Haible  <bruno@clisp.org>
22456
22457         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
22458
22459 2008-05-25  Jim Meyering  <meyering@redhat.com>
22460
22461         useless-if-before-free: freed expr may have white-space differences
22462         * build-aux/useless-if-before-free: Recognize cases in which the
22463         freed expression differs from the tested one in embedded white
22464         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
22465         $1 was used, so we can't make any regexp shy.  Improved tests now
22466         detect this.
22467
22468         useless-if-before-free: accept white space in the expression.
22469         * build-aux/useless-if-before-free: For now, any white space
22470         in the expression must be identical in the free argument.
22471
22472         useless-if-before-free: efficiency tweak
22473         * build-aux/useless-if-before-free: Make the expression-matching
22474         regexp "shy".
22475         Make the *outer* regexp shy, not the expr-matching one.
22476
22477         update code-in-comment to accept cast of free arg
22478         * build-aux/useless-if-before-free: Update regexp.
22479
22480 2008-05-25  Bruno Haible  <bruno@clisp.org>
22481
22482         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
22483         * modules/copy-file-tests (Files, Makefile.am): Update.
22484         * tests/test-copy-file.c (func_test_copy): Update.
22485
22486 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
22487
22488         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
22489
22490 2008-05-23  Bruno Haible  <bruno@clisp.org>
22491
22492         Improve support for ACLs on OSF/1.
22493         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
22494         Remove fallback for unknown flavors of ACLs.
22495
22496 2008-05-22  Bruno Haible  <bruno@clisp.org>
22497
22498         Add support for ACLs on OSF/1.
22499         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
22500         replacements.
22501         (acl_free_text): New macro fallback.
22502         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
22503         acl_free.
22504         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
22505         acl_free_text function. Require AC_C_INLINE.
22506
22507 2008-05-22  Bruno Haible  <bruno@clisp.org>
22508
22509         Make copy_acl work on MacOS X 10.5.
22510         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
22511         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
22512         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
22513         If MODE_INSIDE_ACL, don't assume that every system has the same text
22514         representation for ACLs as FreeBSD.
22515         * lib/copy-acl.c (copy_acl): Add support for platforms with
22516         !MODE_INSIDE_ACL.
22517         * lib/file-has-acl.c (file_has_acl): Likewise.
22518         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
22519         FreeBSD, MacOS X, or IRIX, respectively.
22520
22521 2008-05-22  Bruno Haible  <bruno@clisp.org>
22522
22523         * lib/acl.h: Don't include <sys/acl.h>.
22524         (GETACLCNT): Move fallback to lib/acl-internal.h.
22525         * lib/acl-internal.h: Include <sys/acl.h> here.
22526         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
22527
22528 2008-05-22  Bruno Haible  <bruno@clisp.org>
22529
22530         Split off copy_acl function to separate file.
22531         * lib/copy-acl.c: New file, extracted from lib/acl.c.
22532         * lib/acl.c (copy_acl): Moved function to separate file.
22533         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
22534         * modules/acl (Files): Add lib/copy-acl.c.
22535         (Makefiles.am): Augment lib_SOURCES.
22536
22537 2008-05-22  Bruno Haible  <bruno@clisp.org>
22538
22539         * modules/copy-file-tests: New file.
22540         * tests/test-copy-file.sh: New file.
22541         * tests/test-copy-file.c: New file.
22542         * tests/test-copy-file-sameacls.c: New file.
22543
22544 2008-05-22  Eric Blake  <ebb9@byu.net>
22545
22546         Avoid gcc warning.
22547         * tests/test-memcmp.c (main): Pass NULL indirectly.
22548
22549 2008-05-21  Bruno Haible  <bruno@clisp.org>
22550
22551         Add reference doc about ACLs.
22552         * doc/acl-resources.txt: New file.
22553         * doc/acl-cygwin.txt: New file.
22554
22555 2008-05-21  Bruno Haible  <bruno@clisp.org>
22556
22557         Avoid one more warning from gcc.
22558         * lib/vasnprintf.c (IF_LINT): Update comments.
22559         (VASNPRINTF): Use it also for the 'prefix' array initializer.
22560
22561 2008-05-21  Jim Meyering  <meyering@redhat.com>
22562
22563         avoid a warning from gcc
22564         * lib/vasnprintf.c (IF_LINT): Define.
22565         (scale10_round_decimal_long_double):
22566         Use it to avoid a "may be used uninitialized" warning.
22567         (scale10_round_decimal_double): Likewise.
22568
22569 2008-05-21  Simon Josefsson  <simon@josefsson.org>
22570
22571         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
22572         declared.
22573
22574 2008-05-20  Bruno Haible  <bruno@clisp.org>
22575
22576         * tests/test-memcmp.c (main): Test also the sign of the result. Test
22577         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
22578
22579 2008-05-20  Simon Josefsson  <simon@josefsson.org>
22580
22581         * modules/memcmp-tests: New file.
22582         * tests/test-memcmp.c: New file.
22583
22584 2008-05-19  Bruno Haible  <bruno@clisp.org>
22585
22586         * modules/propername (Notice, configure.ac): Put quoted "..." into
22587         --keyword option.
22588         * lib/propername.h: Update comments accordingly.
22589         Reported by Eric Blake.
22590
22591 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
22592
22593         * modules/getpass-gnu (Depends-on): Add fseeko.
22594
22595 2008-05-19  Simon Josefsson  <simon@josefsson.org>
22596
22597         * modules/base64-tests: New file.
22598
22599 2008-05-19  Bo Borgerson <gigabo@gmail.com>
22600
22601         * lib/base64.c (base64_decode_ctx): If a decode context structure
22602         was passed in use it to ignore newlines.  If a context structure
22603         was _not_ passed in, continue to treat newlines as garbage (this
22604         is the historical behavior).  Formerly base64_decode.
22605         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
22606         takes a decode context structure.
22607         * lib/base64.h (base64_decode): Macro for four-argument calls.
22608         (base64_decode_alloc): Likewise.
22609         * lib/base64.c (base64_decode_ctx): If a decode context structure
22610         was passed in use it to ignore newlines.  If a context structure
22611         was _not_ passed in, continue to treat newlines as garbage (this
22612         is the historical behavior).  Formerly base64_decode.
22613         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
22614         takes a decode context structure.
22615         * lib/base64.h (base64_decode): Macro for four-argument calls.
22616         (base64_decode_alloc): Likewise.
22617
22618 2008-05-19  Jim Meyering  <meyering@redhat.com>
22619
22620         avoid a warning from gcc
22621         * lib/trim.c (IF_LINT): Define.
22622         (trim2): Use it to avoid a "may be used uninitialized" warning.
22623
22624         Fix doc typo.
22625         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
22626
22627 2008-05-19  Bruno Haible  <bruno@clisp.org>
22628
22629         * doc/glibc-functions/getpass.texi: Document limits of other
22630         implementations.
22631
22632 2008-05-19  Simon Josefsson  <simon@josefsson.org>
22633             Bruno Haible <bruno@clisp.org>
22634
22635         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
22636
22637 2008-05-18  Bruno Haible  <bruno@clisp.org>
22638
22639         * modules/propername: New file, from GNU gettext.
22640         * lib/propername.h: New file, from GNU gettext.
22641         * lib/propername.c: New file, from GNU gettext.
22642         * MODULES.html.sh (Internationalization functions): Add propername.
22643
22644 2008-05-16  Jim Meyering  <meyering@redhat.com>
22645             Bruno Haible  <bruno@clisp.org>
22646
22647         Avoid some warnings from "gcc -Wshadow".
22648         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
22649
22650 2008-05-15  Eric Blake  <ebb9@byu.net>
22651
22652         Extend previous patch to cygwin 1.7.0.
22653         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
22654         fast implementation in cygwin >= 1.7.0.
22655         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22656         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22657
22658 2008-05-15  Bruno Haible  <bruno@clisp.org>
22659
22660         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
22661         implementation in glibc >= 2.9.
22662         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22663         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22664
22665 2008-05-15  Bruno Haible  <bruno@clisp.org>
22666
22667         * MODULES.html.sh (Internationalization functions): Remove linebreak.
22668         (Unicode string functions): Add unilbrk/*.
22669         Reported by Karl Berry.
22670
22671 2008-05-15  Eric Blake  <ebb9@byu.net>
22672
22673         Fix violation of <stdbool.h> replacement in regex.
22674         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
22675         * lib/regexec.c (re_search_internal): Likewise.
22676         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
22677
22678 2008-05-15  Jim Meyering  <meyering@redhat.com>
22679
22680         avoid distracting test output when git or cvs is not found
22681         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
22682         * tests/test-vc-list-files-git.sh: Likewise.
22683
22684 2008-05-15  Eric Blake  <ebb9@byu.net>
22685
22686         Glibc finally accepted the memmem speedup code, bugzilla #5514.
22687         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
22688         glibc version.
22689         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
22690         * doc/posix-functions/strstr.texi (strstr): Likewise.
22691         * lib/str-two-way.h (MAX): Sychronize with glibc.
22692
22693 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
22694
22695         * lib/regcomp.c (optimize_utf8): Add a note on why we test
22696         opr.ctx_type.
22697         (calc_first): Initialize constraint field.
22698         (duplicate_node_closure): Use it instead of special casing ANCHORS.
22699         Fix grammar.
22700         (duplicate_node): Merge constraint field for all node types.
22701         (calc_eclosure_iter): Look at constraint field for all node types.
22702         * lib/regex_internal.c (create_cd_newstate): Don't look at
22703         opr.ctx_type.
22704
22705 2008-05-14  Bruno Haible  <bruno@clisp.org>
22706
22707         Help GCC to do better code generation.
22708         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
22709         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
22710         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
22711         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
22712         Declare with attribute 'malloc' if supported.
22713
22714 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
22715
22716         use "echo STR|wc -c" rather than unportable "expr length STR"
22717         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
22718         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
22719
22720 2008-05-14  Jim Meyering  <meyering@redhat.com>
22721
22722         use dd ibs=$n count=1 ... rather than less-portable head -c$n
22723         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
22724         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
22725         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
22726         via Collin Lasse.
22727
22728 2008-05-14  Eric Blake  <ebb9@byu.net>
22729
22730         Avoid quadratic growth in gl_LIBSOURCES.
22731         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
22732         Suggested by Bruno Haible.
22733
22734         Test xmemdup0.
22735         * modules/xmemdup0-tests: New file.
22736         * tests/test-xmemdup0.c: Likewise.
22737
22738 2008-05-13  Eric Blake  <ebb9@byu.net>
22739
22740         Split xmemdup0 into its own module.
22741         * modules/xmemdup0: New file.
22742         * lib/xmemdup0.h: Likewise.
22743         * lib/xmemdup0.c: Likewise.
22744         * MODULES.html.sh (Memory management functions): Add xmemdup0.
22745         * lib/xalloc.h (xmemdup0): Remove.
22746         * lib/xmalloc.c (xmemdup0): Likewise.
22747
22748 2008-05-13  Eric Blake  <ebb9@byu.net>
22749             Bruno Haible  <bruno@clisp.org>
22750
22751         Reduce number of forks required during autoconf.
22752         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
22753         and gl_LIBSOURCES_DIR.
22754         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
22755         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
22756         m4_syscmd per file.
22757         <m4_foreach_w>: Move...
22758         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
22759
22760 2008-05-13  Eric Blake  <ebb9@byu.net>
22761
22762         * gnulib-tool: Fix various comment typos.
22763
22764 2008-05-12  Bruno Haible  <bruno@clisp.org>
22765
22766         Tailor the linebreaking algorithm.
22767         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
22768
22769 2008-05-12  Bruno Haible  <bruno@clisp.org>
22770
22771         Update to Unicode 5.0.0.
22772         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
22773         LBP_JV, LBP_JT. Redistribute values.
22774         (unilbrk_table): Change size.
22775         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
22776         Unicode TR#14 rev. 22.
22777         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
22778         LBP_JV, LBP_JT. Redistribute values.
22779         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
22780         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
22781         Update.
22782         * lib/unilbrk/lbrkprop1.h: Regenerated.
22783         * lib/unilbrk/lbrkprop2.h: Regenerated.
22784         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
22785         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
22786         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
22787         Likewise.
22788         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
22789         Likewise.
22790         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
22791         result.
22792         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22793         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22794         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22795         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
22796         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
22797         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
22798
22799 2008-05-11  Bruno Haible  <bruno@clisp.org>
22800
22801         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
22802
22803 2008-05-11  Bruno Haible  <bruno@clisp.org>
22804
22805         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
22806         * modules/unilbrk/gen-lbrk: New file.
22807
22808 2008-05-11  Bruno Haible  <bruno@clisp.org>
22809
22810         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
22811         * m4/sha512.m4 (gl_SHA512): Likewise.
22812
22813 2008-05-11  Jim Meyering  <meyering@redhat.com>
22814
22815         New modules: crypto/sha256, crypto/sha512 (from coreutils)
22816         * modules/crypto/sha256: New file.
22817         * modules/crypto/sha512: Likewise.
22818         * lib/sha256.c: Likewise.
22819         * lib/sha256.h: Likewise.
22820         * lib/sha512.c: Likewise.
22821         * lib/sha512.h: Likewise.
22822         * lib/u64.h: Likewise.
22823         * m4/sha256.m4: Likewise.
22824         * m4/sha512.m4: Likewise.
22825         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
22826
22827 2008-05-10  Bruno Haible  <bruno@clisp.org>
22828
22829         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
22830         (Input/Output <stdio.h>): Add xprintf.
22831         (Signal handling <signal.h>): Add strsignal.
22832         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
22833         (Core language properties): Add func.
22834         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
22835         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
22836         strings.
22837         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
22838         (Input/output): New section.
22839         (File system functions): Add openat-die, stat-macros.
22840         (Networking functions): Add sockets.
22841         (Unicode string functions): Add unictype/*.
22842         (Support for building libraries and executables): Add gperf.
22843         (Support for building documentation): Add agpl-3.0.
22844         (Misc): Add nocrash.
22845
22846 2008-05-10  Bruno Haible  <bruno@clisp.org>
22847
22848         * modules/unictype/gen-ctype: New file.
22849
22850 2008-05-10  Jim Meyering  <meyering@redhat.com>
22851
22852         Make chdir-safer.c more efficient on a system with no symlinks.
22853         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
22854         also if ELOOP is zero.  Suggested by Bruno Haible.
22855
22856         Make chdir-safer.c slightly safer.
22857         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
22858         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
22859
22860         Avoid compile failure on systems without ELOOP (like mingw).
22861         * lib/chdir-safer.c (ELOOP): Define if not already defined.
22862         Reported by Bruno Haible.
22863
22864 2008-05-10  Bruno Haible  <bruno@clisp.org>
22865
22866         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
22867         (is_utf8_encoding): Use a case-insensitive comparison.
22868         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
22869         streq.
22870
22871 2008-05-10  Bruno Haible  <bruno@clisp.org>
22872
22873         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
22874         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
22875         * lib/unilbrk/ulc-common.h (iconv_string_length,
22876         iconv_string_keeping_offsets): Remove declarations.
22877         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
22878         Don't include <iconv.h>, streq.h, xsize.h.
22879         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
22880         conversion.
22881         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
22882         <iconv.h>, streq.h, xsize.h.
22883         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
22884         conversion.
22885         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
22886         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
22887         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
22888         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
22889
22890 2008-05-10  Bruno Haible  <bruno@clisp.org>
22891
22892         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
22893         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
22894
22895         * modules/unilbrk/u32-width-linebreaks-tests: New file.
22896         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
22897
22898         * modules/unilbrk/u16-width-linebreaks-tests: New file.
22899         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
22900
22901         * modules/unilbrk/u8-width-linebreaks-tests: New file.
22902         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
22903
22904         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
22905         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
22906
22907         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
22908         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
22909
22910         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
22911         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
22912
22913         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
22914         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
22915
22916 2008-05-10  Bruno Haible  <bruno@clisp.org>
22917
22918         Split up 'linebreak' module.
22919         * lib/unilbrk.h: New file, based on lib/linebreak.h.
22920         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
22921         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
22922         modifications.
22923         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
22924         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
22925         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
22926         lib/linebreak.c.
22927         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
22928         lib/linebreak.c.
22929         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
22930         lib/linebreak.c.
22931         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
22932         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
22933         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
22934         lib/linebreak.c.
22935         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
22936         lib/linebreak.c.
22937         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
22938         lib/linebreak.c.
22939         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
22940         lib/linebreak.c.
22941         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
22942         lib/linebreak.c.
22943         * modules/unilbrk/base: New file.
22944         * modules/unilbrk/tables: New file.
22945         * modules/unilbrk/u8-possible-linebreaks: New file.
22946         * modules/unilbrk/u16-possible-linebreaks: New file.
22947         * modules/unilbrk/u32-possible-linebreaks: New file.
22948         * modules/unilbrk/ulc-common: New file.
22949         * modules/unilbrk/ulc-possible-linebreaks: New file.
22950         * modules/unilbrk/u8-width-linebreaks: New file.
22951         * modules/unilbrk/u16-width-linebreaks: New file.
22952         * modules/unilbrk/u32-width-linebreaks: New file.
22953         * modules/unilbrk/ulc-width-linebreaks: New file.
22954         * lib/linebreak.h: Remove file.
22955         * lib/linebreak.c: Remove file.
22956         * m4/linebreak.m4: Remove file.
22957         * modules/linebreak: Remove file.
22958         * NEWS: Mention the changes.
22959
22960 2008-05-09  Eric Blake  <ebb9@byu.net>
22961
22962         Add xmemdup0.
22963         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
22964         implementation.
22965         * lib/xmalloc.c (xmemdup0): New C implementation.
22966
22967 2008-05-08  Bruno Haible  <bruno@clisp.org>
22968
22969         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
22970
22971 2008-05-07  Eric Blake  <ebb9@byu.net>
22972
22973         Support cross-compilation of <wctype.h>.
22974         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
22975         AC_CACHE_CHECK.
22976
22977 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
22978
22979         * build-aux/vc-list-files: Add support for bzr.
22980
22981 2008-05-03  Jim Meyering  <meyering@redhat.com>
22982
22983         avoid failed assertion with tight malloc
22984         * tests/test-getndelim2.c: Correct an off-by-one assertion.
22985
22986 2008-05-03  Simon Josefsson  <simon@josefsson.org>
22987
22988         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
22989         are needed from arpa/inet.h.
22990         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
22991         Reported by Bruno Haible.
22992
22993 2008-05-02  Jim Meyering  <meyering@redhat.com>
22994
22995         avoid compilation error on FreeBSD 6
22996         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
22997
22998 2008-05-01  Jim Meyering  <meyering@redhat.com>
22999
23000         useless-if-before-free: correct --help's exit status description
23001         * build-aux/useless-if-before-free (usage): Like grep, exit 0
23002         for one or more matches, etc.  Reported by Bruno Haible.
23003
23004         vc-list-files: make the stand-alone gnulib test work
23005         * modules/vc-list-files-tests (configure.ac):
23006         Define and AC_SUBST abs_aux_dir.
23007         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
23008         $(abs_top_srcdir) to each script and having each of them
23009         duplicate the work of setting PATH, set PATH here, using
23010         the new variable, abs_aux_dir instead.
23011         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
23012         * tests/test-vc-list-files-git.sh: Likewise.
23013         Reported by Bruno Haible.
23014
23015 2008-05-01  Bruno Haible  <bruno@clisp.org>
23016
23017         * lib/getndelim2.c (getndelim2): Fix newsize computation during
23018         reallocation. Rename 'done' to 'found_delimiter'.
23019
23020 2008-05-01  Jim Meyering  <meyering@redhat.com>
23021
23022         vc-list-files: accommodate /bin/sh like the one from Solaris 10
23023         * build-aux/vc-list-files: Use `...`, not $(...).
23024
23025 2008-04-30  Jim Meyering  <meyering@redhat.com>
23026
23027         add tests for vc-list-files
23028         * modules/vc-list-files-tests: New module.
23029         * tests/test-vc-list-files-cvs.sh: New file.
23030         * tests/test-vc-list-files-git.sh: New file.
23031
23032         avoid a warning from gcc
23033         * lib/getndelim2.c (IF_LINT): Define.
23034         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
23035
23036         vc-list-files: work properly with build-aux/cvsu, too
23037         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
23038         to all cvs-based clauses.
23039
23040         vc-list-files: work properly in the CVS+awk case, too
23041         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
23042
23043         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
23044         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
23045         take more than one file argument, so .  Add quotes, just in case $dir
23046         ever contains a shell meta-character.  Prompted by Soren Hansen in
23047         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
23048
23049 2008-04-29  Eric Blake  <ebb9@byu.net>
23050
23051         Optimize getndelim2 to use block operations when possible.
23052         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
23053         freadseek, and memchr2.
23054         * lib/getndelim2.c (getndelim2): Use them for block reads.
23055
23056 2008-04-29  Bruno Haible  <bruno@clisp.org>
23057
23058         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
23059         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23060         * modules/inet_ntop (Depends-on): Add extensions.
23061         * modules/inet_pton (Depends-on): Likewise.
23062         Reported by Simon Josefsson.
23063
23064 2008-04-29  Jim Meyering  <meyering@redhat.com>
23065
23066         When the is more than one match in a block, match all of them.
23067         * build-aux/useless-if-before-free: Iterate through each block
23068         until there are no more matches.
23069
23070         Fix broken useless-if-before-free script.
23071         * build-aux/useless-if-before-free: Fix typo: missing "?" after
23072         the expression to match cast of argument to free-like function.
23073
23074 2008-04-29  Eric Blake  <ebb9@byu.net>
23075
23076         Use new header.
23077         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
23078
23079 2008-04-29  Jim Meyering  <meyering@redhat.com>
23080
23081         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
23082         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
23083         by gnulib to exist and to declare e.g., inet_ntop.
23084         Don't include "inet_ntop.h", now removed.
23085
23086         * m4/arpa_inet_h.m4: Remove trailing blanks.
23087
23088 2008-04-29  Eric Blake  <ebb9@byu.net>
23089
23090         Silence valgrind on safe reads beyond potential array bounds.
23091         * lib/rawmemchr.valgrind: New file.
23092         * lib/strchrnul.valgrind: Likewise.
23093         * modules/rawmemchr (Files): Distribute new file.
23094         * modules/strchrnul (Files): Likewise.
23095         Suggested by Bruno Haible.
23096
23097 2008-04-29  Bruno Haible  <bruno@clisp.org>
23098
23099         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
23100         (inet_ntop, inet_pton): Change portability warning's wording.
23101         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
23102         Invoke gl_CHECK_NEXT_HEADERS.
23103         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
23104         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
23105         set ARPA_INET_H.
23106         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23107         * modules/arpa_inet (Description): No longer only for systems that
23108         lack it.
23109         (Depends-on): Add include_next.
23110         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
23111         HAVE_ARPA_INET_H.
23112
23113 2008-04-29  Jim Meyering  <meyering@redhat.com>
23114
23115         * modules/mkdir (License): Re-license as LGPLv2+.
23116
23117 2008-04-29  Bruno Haible  <bruno@clisp.org>
23118
23119         * modules/rawmemchr (Maintainer): Set to Eric.
23120         * modules/strchrnul (Maintainer): Likewise.
23121
23122 2008-04-29  Simon Josefsson  <simon@josefsson.org>
23123
23124         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
23125         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
23126
23127         * modules/arpa_inet (arpa/inet.h): Use them.
23128
23129 2008-04-28  Eric Blake  <ebb9@byu.net>
23130
23131         Test getndelim2.
23132         * modules/getndelim2-tests: New file.
23133         * tests/test-getndelim2.c: Likewise.
23134         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
23135         stream.
23136         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
23137
23138         * MODULES.html.sh: Document new module.
23139
23140 2008-04-20  Bruno Haible  <bruno@clisp.org>
23141
23142         * lib/c-stack.c (die): Use raise.
23143         * modules/c-stack (Depends-on): Add raise.
23144
23145 2008-04-28  Bruno Haible  <bruno@clisp.org>
23146
23147         Expect rpmatch to be declared.
23148         * lib/yesno.c (rpmatch): Remove declaration.
23149
23150         Declare rpmatch.
23151         * lib/stdlib.in.h (rpmatch): New declaration.
23152         * lib/rpmatch.c: Include <stdlib.h> first.
23153         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
23154         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
23155         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
23156         HAVE_RPMATCH.
23157         * modules/rpmatch (Depends-on): Add stdlib, extensions.
23158         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23159         (Include): Set to <stdlib.h>.
23160         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
23161         HAVE_RPMATCH.
23162         * NEWS: Document the change.
23163
23164 2008-04-28  Bruno Haible  <bruno@clisp.org>
23165
23166         Change rpmatch to use nl_langinfo when appropriate.
23167         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
23168         (N_): New macro.
23169         (localized_pattern): New function/macro.
23170         (try): Remove match, nomatch arguments. Copy the pattern into safe
23171         memory before caching it.
23172         (rpmatch): Use localized_pattern. Add translator comments.
23173         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
23174         Suggested by Eric Blake.
23175         * modules/rpmatch (Depends-on): Add stdbool.
23176
23177 2008-04-28  Eric Blake  <ebb9@byu.net>
23178
23179         Add rawmemchr module, matching glibc.
23180         * modules/string (Makefile.am): New indicator.
23181         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
23182         * lib/string.in.h (rawmemchr): Declare when appropriate.
23183         * modules/rawmemchr: New file.
23184         * m4/rawmemchr.m4: Likewise.
23185         * lib/rawmemchr.c: Likewise.
23186         * modules/rawmemchr-tests: Likewise.
23187         * tests/test-rawmemchr.c: Likewise.
23188         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
23189         module.
23190         * modules/strchrnul (Depends-on): Add rawmemchr.
23191         * lib/strchrnul.c (strchrnul): Optimize a corner case.
23192
23193         Whitespace cleanup.
23194         * tests/test-strchrnul.c: Reindent.
23195         * lib/strchrnul.c: Likewise.
23196
23197         Optimize and test strchrnul.
23198         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
23199         * modules/strchrnul-tests: New file.
23200         * tests/test-strchrnul.c: Likewise.
23201
23202         Remove intprops dependency.
23203         * modules/memchr (Depends-on): Remove intprops.
23204         * modules/memrchr (Depends-on): Likewise.
23205         * modules/memchr2 (Depends-on): Likewise.
23206         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
23207         * lib/memrchr.c (__memrchr): Likewise.
23208         * lib/memrchr2.c (memchr2): Likewise.
23209         Reported by Simon Josefsson.
23210
23211 2008-04-28  Simon Josefsson  <simon@josefsson.org>
23212
23213         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
23214         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23215
23216 2008-04-28  Simon Josefsson  <simon@josefsson.org>
23217
23218         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
23219
23220         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
23221
23222         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
23223
23224         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
23225         declarations.
23226         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
23227
23228         * m4/inet_pton.m4: Don't check for header files.
23229
23230         * m4/inet_ntop.m4: Don't check for header files.
23231
23232 2008-04-28  Simon Josefsson  <simon@josefsson.org>
23233
23234         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
23235         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
23236         trigger for cygwin).
23237         Reported by Bruno Haible  <bruno@clisp.org>.
23238
23239 2008-04-28  Bruno Haible  <bruno@clisp.org>
23240
23241         * doc/posix-functions/strdup.texi: Mention mingw problem.
23242
23243 2008-04-27  Bruno Haible  <bruno@clisp.org>
23244
23245         * modules/stat-time-tests (Depends-on): Add sleep.
23246         * tests/test-stat-time.c (force_unlink): New function.
23247         (cleanup): Use it.
23248         (test_mtime): Remove the ctime related tests.
23249         (test_ctime): New function, containing the ctime related tests.
23250         (main): Call test_ctime, except on native Windows platforms.
23251
23252 2008-04-27  Bruno Haible  <bruno@clisp.org>
23253
23254         * lib/rpmatch.c (rpmatch): Add some comments.
23255         Reported by James Youngman <jay@gnu.org>.
23256
23257 2008-04-27  Bruno Haible  <bruno@clisp.org>
23258
23259         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
23260         quiet NaNs.
23261
23262 2008-04-27  Bruno Haible  <bruno@clisp.org>
23263
23264         Make test-yesno.sh work on mingw.
23265         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
23266         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
23267         (main): Set stdin to binary mode.
23268         * modules/yesno-tests (Depends-on): Add binary-io.
23269
23270 2008-04-27  Bruno Haible  <bruno@clisp.org>
23271
23272         Fix 'isfinite' on x86, x86_64, ia64 platforms.
23273         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
23274         argument that lie outside the IEEE 854 domain.
23275         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
23276         (gl_ISFINITE): Use it.
23277         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
23278
23279 2008-04-27  Bruno Haible  <bruno@clisp.org>
23280
23281         Allow local renaming in config.h.
23282         * lib/memrchr.c (memrchr): Don't undefine outside libc.
23283
23284 2008-04-27  Bruno Haible  <bruno@clisp.org>
23285
23286         * lib/memchr.c (__memchr): Change type of 'i'.
23287         * lib/memchr2.c (memchr2): Likewise.
23288
23289 2008-04-26  Eric Blake  <ebb9@byu.net>
23290         and Bruno Haible  <bruno@clisp.org>
23291
23292         Optimize and test memrchr.
23293         * modules/memrchr (Depends-on): Add intprops.
23294         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
23295         * modules/memrchr-tests: New file.
23296         * tests/test-memrchr.c: New file.
23297
23298 2008-04-26  Bruno Haible  <bruno@clisp.org>
23299
23300         Add tentative support for DragonFly BSD.
23301         * lib/stdio-impl.h: Add macros for DragonFly BSD.
23302         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
23303         fp.
23304         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23305         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
23306         * lib/fpurge.c (fpurge): Likewise.
23307         * lib/freadable.c (freaadable): Likewise.
23308         * lib/freadahead.c (freadahead): Likewise.
23309         * lib/freading.c (freading): Likewise.
23310         * lib/freadptr.c (freadptr): Likewise.
23311         * lib/freadseek.c (freadptrinc): Likewise.
23312         * lib/fseeko.c (fseeko): Likewise.
23313         * lib/fseterr.c (fseterr): Likewise.
23314         * lib/fwritable.c (fwritable): Likewise.
23315         * lib/fwriting.c (fwriting): Likewise.
23316
23317 2008-04-26  Bruno Haible  <bruno@clisp.org>
23318
23319         * lib/stdio-impl.h: New file.
23320         * lib/fbufmode.c: Include stdio-impl.h.
23321         (fbufmode): Use fp_, remove redundant #defines.
23322         * lib/fflush.c: Include stdio-impl.h.
23323         (clear_ungetc_buffer): Remove redundant #defines.
23324         * lib/fpurge.c: Include stdio-impl.h.
23325         (fpurge): Remove redundant #defines.
23326         * lib/freadable.c: Include stdio-impl.h.
23327         (freadable): Remove redundant #defines.
23328         * lib/freadahead.c: Include stdio-impl.h.
23329         (freadahead): Remove redundant #defines.
23330         * lib/freading.c: Include stdio-impl.h.
23331         (freading): Remove redundant #defines.
23332         * lib/freadptr.c: Include stdio-impl.h.
23333         (freadptr): Remove redundant #defines.
23334         * lib/freadseek.c: Include stdio-impl.h.
23335         (freadptrinc): Remove redundant #defines.
23336         * lib/fseeko.c: Include stdio-impl.h.
23337         (rpl_fseeko): Remove redundant #defines.
23338         * lib/fseterr.c: Include stdio-impl.h.
23339         (fseterr): Remove redundant #defines.
23340         * lib/fwritable.c: Include stdio-impl.h.
23341         (fwritable: Remove redundant #defines.
23342         * lib/fwriting.c: Include stdio-impl.h.
23343         (fwriting): Remove redundant #defines.
23344         * modules/fbufmode (Files): Add lib/stdio-impl.h.
23345         * modules/fflush (Files): Likewise.
23346         * modules/fpurge (Files): Likewise.
23347         * modules/freadable (Files): Likewise.
23348         * modules/freadahead (Files): Likewise.
23349         * modules/freading (Files): Likewise.
23350         * modules/freadptr (Files): Likewise.
23351         * modules/freadseek (Files): Likewise.
23352         * modules/fseeko (Files): Likewise.
23353         * modules/fseterr (Files): Likewise.
23354         * modules/fwritable (Files): Likewise.
23355         * modules/fwriting (Files): Likewise.
23356
23357 2008-04-26  Bruno Haible  <bruno@clisp.org>
23358
23359         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23360         restore_seek_optimization, update_fpos_cache): New functions, extracted
23361         from rpl_fflush.
23362         (rpl_fflush): Use them.
23363         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
23364         (gl_REPLACE_FFLUSH): Use it.
23365
23366 2008-04-26  Bruno Haible  <bruno@clisp.org>
23367
23368         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
23369         on Solaris.
23370         * tests/test-xstrtoimax.sh: Likewise.
23371         * tests/test-xstrtoumax.sh: Likewise.
23372         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23373
23374 2008-04-26  Bruno Haible  <bruno@clisp.org>
23375
23376         * modules/memchr-tests: New file.
23377         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
23378
23379 2008-04-26  Eric Blake  <ebb9@byu.net>
23380             Bruno Haible  <bruno@clisp.org>
23381
23382         * lib/memchr.c: Include intprops.h.
23383         (__memchr): Optimize parallel detection of matching bytes. Rename local
23384         variables. Add explanatory comments.
23385
23386 2008-04-26  Bruno Haible  <bruno@clisp.org>
23387
23388         Fix module 'memchr', broken since 2000-10-28.
23389         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
23390
23391 2008-04-26  Bruno Haible  <bruno@clisp.org>
23392
23393         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
23394         comments.
23395
23396 2008-04-25  Eric Blake  <ebb9@byu.net>
23397
23398         Use native fstatat on cygwin 1.7.0.
23399         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
23400         first.
23401
23402 2008-04-23  Eric Blake  <ebb9@byu.net>
23403
23404         Improve memchr2 performance.
23405         * lib/memchr2.c (memchr2): Further optimize parallel detection of
23406         NUL bytes.
23407         * modules/memchr2 (Depends-on): Use intprops.h.
23408
23409 2008-04-23  Simon Josefsson  <simon@josefsson.org>
23410
23411         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
23412         an inline function instead of a CPP macro.  Patch by Ben Pfaff
23413         <blp@cs.stanford.edu>.
23414
23415 2008-04-23  Simon Josefsson  <simon@josefsson.org>
23416
23417         * lib/arpa_inet.in.h: New file.
23418
23419         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
23420         (Makefile.am): Sed in substitute header file.
23421
23422         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
23423         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
23424
23425         * modules/inet_ntop (configure.ac): Use
23426         gl_ARPA_INET_MODULE_INDICATOR.
23427
23428         * modules/inet_pton (configure.ac): Use
23429         gl_ARPA_INET_MODULE_INDICATOR.
23430
23431 2008-04-22  Jim Meyering  <meyering@redhat.com>
23432
23433         * modules/verify (License): Re-license as LGPLv2+.
23434
23435 2008-04-22  Simon Josefsson  <simon@josefsson.org>
23436
23437         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
23438         parameter to void* as per POSIX standard (MinGW uses char*).
23439
23440 2008-04-21  Bruno Haible  <bruno@clisp.org>
23441
23442         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23443         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
23444         Define to replacements if REPLACE_ISWCNTRL is 1.
23445         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
23446         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
23447         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
23448         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
23449         what it fixes.
23450         * doc/posix-functions/iswalpha.texi: Likewise.
23451         * doc/posix-functions/iswblank.texi: Likewise.
23452         * doc/posix-functions/iswcntrl.texi: Likewise.
23453         * doc/posix-functions/iswdigit.texi: Likewise.
23454         * doc/posix-functions/iswgraph.texi: Likewise.
23455         * doc/posix-functions/iswlower.texi: Likewise.
23456         * doc/posix-functions/iswprint.texi: Likewise.
23457         * doc/posix-functions/iswpunct.texi: Likewise.
23458         * doc/posix-functions/iswspace.texi: Likewise.
23459         * doc/posix-functions/iswupper.texi: Likewise.
23460         * doc/posix-functions/iswxdigit.texi: Likewise.
23461         Reported by Alain Guibert.
23462
23463 2008-04-21  Bruno Haible  <bruno@clisp.org>
23464
23465         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
23466         Patch by Alain Guibert.
23467
23468 2008-04-21  Bruno Haible  <bruno@clisp.org>
23469
23470         Fix test failures on mingw.
23471         * tests/test-xstrtol.c (print_no_progname): New function.
23472         (main): Install it in error_print_progname hook.
23473         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
23474         * tests/test-xstrtoimax.sh: Likewise.
23475         * tests/test-xstrtoumax.sh: Likewise.
23476
23477 2008-04-21  Bruno Haible  <bruno@clisp.org>
23478
23479         Fix test failure on mingw.
23480         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
23481
23482 2008-04-21  Bruno Haible  <bruno@clisp.org>
23483
23484         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
23485         Actually assign a value.
23486
23487 2008-04-20  Bruno Haible  <bruno@clisp.org>
23488
23489         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
23490         take 2.
23491         * lib/canonicalize.c (canonicalize_file_name): Elide if the
23492         'canonicalize-lgpl' module is also used.
23493         * lib/canonicalize-lgpl.c: Undo last change.
23494         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
23495
23496 2008-04-20  Bruno Haible  <bruno@clisp.org>
23497
23498         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
23499         config.h. Provide _mkdir based fallback for mingw.
23500         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
23501         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
23502         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
23503         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
23504         rather than defining mkdir in config.h.
23505         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
23506         (gl_SYS_STAT_H_DEFAULTS): New macro.
23507         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
23508         HAVE_IO_H any more.
23509         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
23510         HAVE_DECL_MKDIR and HAVE_IO_H.
23511
23512 2008-04-20  Bruno Haible  <bruno@clisp.org>
23513
23514         * lib/isapipe.c: Port to native Windows platforms.
23515
23516 2008-04-20  Bruno Haible  <bruno@clisp.org>
23517
23518         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
23519
23520 2008-04-21  Eric Blake  <ebb9@byu.net>
23521
23522         Work around preprocessors that don't handle UINTMAX_MAX.
23523         * lib/memchr2.c (memchr2): Avoid embedded #if.
23524         Reported by Alain Guibert, fix suggested by Bruno Haible.
23525
23526 2008-04-21  Simon Josefsson  <simon@josefsson.org>
23527
23528         * doc/posix-functions/strftime.texi (strftime): Explain better
23529         Windows incompatibility.  Suggested by Micah Cowan
23530         <micah@cowan.name>.
23531
23532 2008-04-20  Bruno Haible  <bruno@clisp.org>
23533
23534         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
23535         unistr/u8-mblen.
23536
23537 2008-04-20  Bruno Haible  <bruno@clisp.org>
23538
23539         Fix test failure on platforms with non-GNU iconv.
23540         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
23541         (U_TO_U8): Use it, rather than u16_to_u8.
23542         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
23543         units at the end of the input string.
23544         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
23545
23546 2008-04-20  Bruno Haible  <bruno@clisp.org>
23547
23548         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
23549         when the resulting length is 0.
23550         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
23551
23552 2008-04-20  Bruno Haible  <bruno@clisp.org>
23553
23554         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
23555         works.
23556         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
23557
23558 2008-04-20  Bruno Haible  <bruno@clisp.org>
23559
23560         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
23561         * modules/tsearch-tests (configure.ac): Test for initstate function.
23562
23563 2008-04-20  Bruno Haible  <bruno@clisp.org>
23564
23565         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
23566         for nlink_t if missing.
23567         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
23568
23569 2008-04-19  Bruno Haible  <bruno@clisp.org>
23570
23571         Work around snprintf bug on Linux libc5.
23572         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
23573         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
23574         gl_SNPRINTF_SIZE1.
23575         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23576         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
23577         that test failed.
23578         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
23579         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
23580         * modules/snprintf (Files): Add m4/printf.m4.
23581         * modules/vsnprintf (Files): Likewise.
23582         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
23583         * doc/posix-functions/vsnprintf.texi: Likewise.
23584
23585 2008-04-19  Bruno Haible  <bruno@clisp.org>
23586
23587         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
23588         from 0.0058 to less than 10^-7.
23589
23590 2008-04-19  Bruno Haible  <bruno@clisp.org>
23591
23592         Fix rounding when a precision is given.
23593         * lib/vasnprintf.c (is_borderline): New function.
23594         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
23595         9...9x.
23596         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
23597         %e, %g.
23598         * tests/test-vasprintf-posix.c (test_function): Likewise.
23599         * tests/test-snprintf-posix.h (test_function): Likewise.
23600         * tests/test-sprintf-posix.h (test_function): Likewise.
23601         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
23602         * tests/test-printf-posix.h (test_function): Likewise.
23603         * tests/test-printf-posix.output: Update.
23604         Reported by John Darrington <john@darrington.wattle.id.au> via
23605         Ben Pfaff <blp@cs.stanford.edu>.
23606
23607 2008-04-18  Simon Josefsson  <simon@josefsson.org>
23608
23609         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
23610         Suggested by Bruno Haible <bruno@clisp.org>.
23611
23612 2008-04-17  Bruno Haible  <bruno@clisp.org>
23613
23614         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
23615         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
23616         implementation.
23617         Patch by Bruce Merry <bmerry@gmail.com>.
23618
23619 2008-04-17  Simon Josefsson  <simon@josefsson.org>
23620
23621         * doc/posix-functions/strftime.texi (strftime): Mention that %e
23622         doesn't work under Windows.
23623
23624 2008-04-16  Bruno Haible  <bruno@clisp.org>
23625
23626         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
23627         New macros.
23628         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
23629         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
23630         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
23631         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
23632         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
23633         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
23634         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
23635         macros.
23636         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
23637         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
23638         Northern Sotho, Uighur.
23639
23640 2008-04-16  Bruno Haible  <bruno@clisp.org>
23641
23642         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
23643         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
23644         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
23645         Reported by Daniel Bergström <daniel@octocode.com>.
23646
23647 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
23648             Bruno Haible  <bruno@clisp.org>
23649
23650         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
23651         function.
23652         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
23653         New functions, mostly extracted from gl_locale_name_default.
23654         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
23655
23656 2008-04-16  Eric Blake  <ebb9@byu.net>
23657
23658         Adjust strtod detection to catch glibc 2.7 bug.
23659         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
23660         Reported by John Gatewood Ham.
23661
23662 2008-04-16  Bruno Haible  <bruno@clisp.org>
23663
23664         Add tentative support for Linux libc5.
23665         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
23666         * lib/fpurge.c (fpurge): Likewise.
23667         * lib/freadable.c (freadable): Likewise.
23668         * lib/freadahead.c (freadahead): Likewise.
23669         * lib/freading.c (freading): Likewise.
23670         * lib/freadptr.c (freadptr): Likewise.
23671         * lib/freadseek.c (freadptrinc): Likewise.
23672         * lib/fseeko.c (rpl_fseeko): Likewise.
23673         * lib/fseterr.c (fseterr): Likewise.
23674         * lib/fwritable.c (fwritable): Likewise.
23675         * lib/fwriting.c (fwriting): Likewise.
23676         Reported by Alain Guibert <alguibert+bts@free.fr>.
23677
23678 2008-04-15  Bruno Haible  <bruno@clisp.org>
23679
23680         * modules/mathl (configure.ac): Define module indicator.
23681
23682 2008-04-15  Bruno Haible  <bruno@clisp.org>
23683
23684         * lib/logl.c (logl): Remove unused variables.
23685
23686 2008-04-15  Bruno Haible  <bruno@clisp.org>
23687
23688         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
23689         fails.
23690
23691 2008-04-15  Bruno Haible  <bruno@clisp.org>
23692
23693         * lib/trim.c (trim2): Fix argument of isspace() macro.
23694
23695 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
23696
23697         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
23698         to 0.
23699         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
23700
23701 2008-04-14  Bruno Haible  <bruno@clisp.org>
23702
23703         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
23704         AC_LANG_PROGRAM argument.
23705         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
23706         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
23707         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23708         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23709         * m4/math_h.m4 (gl_MATH_H): Likewise.
23710         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
23711         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23712         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
23713         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
23714         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23715         * m4/regex.m4 (gl_REGEX): Likewise.
23716         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
23717         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
23718         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23719         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
23720         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
23721         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23722         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23723         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23724
23725 2008-04-14  Jim Meyering  <meyering@redhat.com>
23726
23727         test-strtod: fix typos: s/abs/fabs/
23728         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
23729
23730 2008-04-13  Bruno Haible  <bruno@clisp.org>
23731
23732         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
23733         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
23734         module is also used and while not building the reloc-wrapper.
23735
23736 2008-04-13  Bruno Haible  <bruno@clisp.org>
23737
23738         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
23739
23740 2008-04-13  Bruno Haible  <bruno@clisp.org>
23741
23742         Fix AIX compilation failure introduced on 2008-04-02.
23743         * tests/test-frexp.c (exp): Undefine before redefining.
23744         * tests/test-frexpl.c (exp): Likewise.
23745
23746 2008-04-13  Bruno Haible  <bruno@clisp.org>
23747
23748         Work around a HP-UX stdio bug.
23749         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
23750         * tests/test-ftello.c (main): Likewise.
23751         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
23752         * doc/posix-functions/ftello.texi: Likewise.
23753
23754 2008-04-13  Bruno Haible  <bruno@clisp.org>
23755
23756         Make test-signbit pass on HP-UX/hppa.
23757         * tests/test-signbit.c (minus_zerol): New variable.
23758         (test_signbitl): Use it.
23759
23760 2008-04-13  Bruno Haible  <bruno@clisp.org>
23761
23762         Make truncl work on OSF/1 4.0.
23763         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
23764         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
23765         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
23766         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
23767         HAVE_DECL_TRUNCL.
23768         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
23769         HAVE_DECL_TRUNCL.
23770         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
23771
23772 2008-04-13  Bruno Haible  <bruno@clisp.org>
23773
23774         * lib/unictype.h: Remove trailing comma from enumeration definitions.
23775
23776 2008-04-13  Bruno Haible  <bruno@clisp.org>
23777
23778         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
23779         expression, so as to avoid HP-UX 11 cc compiler bug.
23780
23781 2008-04-13  Bruno Haible  <bruno@clisp.org>
23782
23783         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
23784
23785 2008-04-13  Bruno Haible  <bruno@clisp.org>
23786
23787         * lib/git-merge-changelog.c: Remove empty declaration outside of
23788         functions.
23789
23790 2008-04-13  Bruno Haible  <bruno@clisp.org>
23791
23792         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
23793
23794 2008-04-13  Bruno Haible  <bruno@clisp.org>
23795
23796         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
23797         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
23798         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
23799         also if it exists but lacks definitions of the SHUT_* macros.
23800         * modules/sys_socket (Description): Update.
23801         Reported by Elbert Pol <e.pol@chello.nl>.
23802
23803 2008-04-13  Bruno Haible  <bruno@clisp.org>
23804
23805         * lib/localcharset.c (OS2): Don't redefine if already defined.
23806         Reported by Elbert Pol <e.pol@chello.nl>.
23807
23808 2008-04-13  Bruno Haible  <bruno@clisp.org>
23809
23810         * lib/binary-io.h [__EMX__]: Include <io.h>.
23811         Reported by Elbert Pol <e.pol@chello.nl>.
23812
23813 2008-04-12  Bruno Haible  <bruno@clisp.org>
23814
23815         * lib/fpucw.h: Enable the definitions also for x86_64.
23816         Needed for NetBSD/x86_64.
23817         Reported by Thomas Klausner <tk@giga.or.at>.
23818
23819 2008-04-12  Bruno Haible  <bruno@clisp.org>
23820
23821         * tests/test-strtod.c: Include isnand.h.
23822         (main): Use isnand instead of isnan.
23823         Reported by Jim Meyering.
23824
23825 2008-04-12  Bruno Haible  <bruno@clisp.org>
23826
23827         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
23828         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
23829
23830 2008-04-12  Jim Meyering  <meyering@redhat.com>
23831
23832         * m4/math_h.m4 (gl_MATH_H): Fix typos.
23833
23834 2008-04-12  Bruno Haible  <bruno@clisp.org>
23835
23836         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
23837         Reported by Elbert Pol <e.pol@chello.nl>.
23838
23839 2008-04-12  Eric Blake  <ebb9@byu.net>
23840
23841         Work around Solaris 10 math.h bug.
23842         * m4/math_h.m4 (gl_MATH_H): Check for bug.
23843         (gl_MATH_H_DEFAULTS): Set up default.
23844         * modules/math (Makefile.am): Replace new indicators.
23845         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
23846         * tests/test-math.c (main): Test this.
23847         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
23848         * doc/posix-headers/math.texi (math.h): Mention bug.
23849         Reported by Nelson H. F. Beebe and Jim Meyering.
23850
23851 2008-04-11  Bruno Haible  <bruno@clisp.org>
23852
23853         Adapt to future versions of Apple GCC.
23854         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
23855         Reported by Peter O'Gorman <peter@pogma.com>.
23856
23857 2008-04-11  Bruno Haible  <bruno@clisp.org>
23858
23859         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
23860
23861 2008-04-11  Bruno Haible  <bruno@clisp.org>
23862
23863         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
23864
23865         * modules/getaddrinfo-tests (Makefile.am): Define
23866         test_getaddrinfo_LDADD.
23867
23868 2008-04-11  Bruno Haible  <bruno@clisp.org>
23869
23870         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
23871         (init): Fix syntax error.
23872         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
23873         is declared.
23874
23875 2008-04-11  Bruno Haible  <bruno@clisp.org>
23876
23877         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
23878         * modules/glob (Depends-on): Add stdbool.
23879
23880 2008-04-11  Bruno Haible  <bruno@clisp.org>
23881
23882         * lib/trim.c: Include <string.h>.
23883
23884 2008-04-11  Eric Blake  <ebb9@byu.net>
23885
23886         Avoid compile failure on OS/2.
23887         * lib/regex_internal.h (internal_function): Disable optimization
23888         on OS/2 (__EMX__), where it caused compiler error.
23889         Reported by Elbert Pol.
23890
23891 2008-04-11  Bruno Haible  <bruno@clisp.org>
23892
23893         Flush the standard error stream before aborting. Needed on mingw.
23894         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
23895         * tests/test-array_list.c (ASSERT): Likewise.
23896         * tests/test-array_oset.c (ASSERT): Likewise.
23897         * tests/test-avltree_list.c (ASSERT): Likewise.
23898         * tests/test-avltree_oset.c (ASSERT): Likewise.
23899         * tests/test-avltreehash_list.c (ASSERT): Likewise.
23900         * tests/test-binary-io.c (ASSERT): Likewise.
23901         * tests/test-byteswap.c (ASSERT): Likewise.
23902         * tests/test-c-ctype.c (ASSERT): Likewise.
23903         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
23904         * tests/test-c-strcasestr.c (ASSERT): Likewise.
23905         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
23906         * tests/test-c-strstr.c (ASSERT): Likewise.
23907         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
23908         * tests/test-canonicalize.c (ASSERT): Likewise.
23909         * tests/test-carray_list.c (ASSERT): Likewise.
23910         * tests/test-ceilf1.c (ASSERT): Likewise.
23911         * tests/test-ceilf2.c (ASSERT): Likewise.
23912         * tests/test-ceill.c (ASSERT): Likewise.
23913         * tests/test-count-one-bits.c (ASSERT): Likewise.
23914         * tests/test-fbufmode.c (ASSERT): Likewise.
23915         * tests/test-fflush2.c (ASSERT): Likewise.
23916         * tests/test-floorf1.c (ASSERT): Likewise.
23917         * tests/test-floorf2.c (ASSERT): Likewise.
23918         * tests/test-floorl.c (ASSERT): Likewise.
23919         * tests/test-fopen.c (ASSERT): Likewise.
23920         * tests/test-fpending.c (ASSERT): Likewise.
23921         * tests/test-fprintf-posix.c (ASSERT): Likewise.
23922         * tests/test-fpurge.c (ASSERT): Likewise.
23923         * tests/test-freadable.c (ASSERT): Likewise.
23924         * tests/test-freadahead.c (ASSERT): Likewise.
23925         * tests/test-freading.c (ASSERT): Likewise.
23926         * tests/test-freadptr.c (ASSERT): Likewise.
23927         * tests/test-freadptr2.c (ASSERT): Likewise.
23928         * tests/test-freadseek.c (ASSERT): Likewise.
23929         * tests/test-freopen.c (ASSERT): Likewise.
23930         * tests/test-frexp.c (ASSERT): Likewise.
23931         * tests/test-frexpl.c (ASSERT): Likewise.
23932         * tests/test-fseek.c (ASSERT): Likewise.
23933         * tests/test-fseeko.c (ASSERT): Likewise.
23934         * tests/test-fstrcmp.c (ASSERT): Likewise.
23935         * tests/test-ftell.c (ASSERT): Likewise.
23936         * tests/test-ftello.c (ASSERT): Likewise.
23937         * tests/test-func.c (ASSERT): Likewise.
23938         * tests/test-fwritable.c (ASSERT): Likewise.
23939         * tests/test-fwriting.c (ASSERT): Likewise.
23940         * tests/test-getdelim.c (ASSERT): Likewise.
23941         * tests/test-getline.c (ASSERT): Likewise.
23942         * tests/test-i-ring.c (ASSERT): Likewise.
23943         * tests/test-iconv-utf.c (ASSERT): Likewise.
23944         * tests/test-iconv.c (ASSERT): Likewise.
23945         * tests/test-isfinite.c (ASSERT): Likewise.
23946         * tests/test-isnand.c (ASSERT): Likewise.
23947         * tests/test-isnanf.c (ASSERT): Likewise.
23948         * tests/test-isnanl.h (ASSERT): Likewise.
23949         * tests/test-ldexpl.c (ASSERT): Likewise.
23950         * tests/test-linked_list.c (ASSERT): Likewise.
23951         * tests/test-linkedhash_list.c (ASSERT): Likewise.
23952         * tests/test-localename.c (ASSERT): Likewise.
23953         * tests/test-lseek.c (ASSERT): Likewise.
23954         * tests/test-mbscasecmp.c (ASSERT): Likewise.
23955         * tests/test-mbscasestr1.c (ASSERT): Likewise.
23956         * tests/test-mbscasestr2.c (ASSERT): Likewise.
23957         * tests/test-mbscasestr3.c (ASSERT): Likewise.
23958         * tests/test-mbscasestr4.c (ASSERT): Likewise.
23959         * tests/test-mbschr.c (ASSERT): Likewise.
23960         * tests/test-mbscspn.c (ASSERT): Likewise.
23961         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
23962         * tests/test-mbspbrk.c (ASSERT): Likewise.
23963         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
23964         * tests/test-mbsrchr.c (ASSERT): Likewise.
23965         * tests/test-mbsspn.c (ASSERT): Likewise.
23966         * tests/test-mbsstr1.c (ASSERT): Likewise.
23967         * tests/test-mbsstr2.c (ASSERT): Likewise.
23968         * tests/test-mbsstr3.c (ASSERT): Likewise.
23969         * tests/test-memchr2.c (ASSERT): Likewise.
23970         * tests/test-memmem.c (ASSERT): Likewise.
23971         * tests/test-open.c (ASSERT): Likewise.
23972         * tests/test-printf-frexp.c (ASSERT): Likewise.
23973         * tests/test-printf-frexpl.c (ASSERT): Likewise.
23974         * tests/test-printf-posix.c (ASSERT): Likewise.
23975         * tests/test-quotearg.c (ASSERT): Likewise.
23976         * tests/test-rbtree_list.c (ASSERT): Likewise.
23977         * tests/test-rbtree_oset.c (ASSERT): Likewise.
23978         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
23979         * tests/test-round1.c (ASSERT): Likewise.
23980         * tests/test-roundf1.c (ASSERT): Likewise.
23981         * tests/test-roundl.c (ASSERT): Likewise.
23982         * tests/test-signbit.c (ASSERT): Likewise.
23983         * tests/test-sleep.c (ASSERT): Likewise.
23984         * tests/test-snprintf-posix.c (ASSERT): Likewise.
23985         * tests/test-snprintf.c (ASSERT): Likewise.
23986         * tests/test-sprintf-posix.c (ASSERT): Likewise.
23987         * tests/test-stat-time.c (ASSERT): Likewise.
23988         * tests/test-strcasestr.c (ASSERT): Likewise.
23989         * tests/test-strerror.c (ASSERT): Likewise.
23990         * tests/test-striconv.c (ASSERT): Likewise.
23991         * tests/test-striconveh.c (ASSERT): Likewise.
23992         * tests/test-striconveha.c (ASSERT): Likewise.
23993         * tests/test-strsignal.c (ASSERT): Likewise.
23994         * tests/test-strstr.c (ASSERT): Likewise.
23995         * tests/test-strtod.c (ASSERT): Likewise.
23996         * tests/test-trunc1.c (ASSERT): Likewise.
23997         * tests/test-trunc2.c (ASSERT): Likewise.
23998         * tests/test-truncf1.c (ASSERT): Likewise.
23999         * tests/test-truncf2.c (ASSERT): Likewise.
24000         * tests/test-truncl.c (ASSERT): Likewise.
24001         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
24002         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
24003         * tests/test-vasnprintf.c (ASSERT): Likewise.
24004         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
24005         * tests/test-vasprintf.c (ASSERT): Likewise.
24006         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
24007         * tests/test-vprintf-posix.c (ASSERT): Likewise.
24008         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
24009         * tests/test-vsnprintf.c (ASSERT): Likewise.
24010         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
24011         * tests/test-wcwidth.c (ASSERT): Likewise.
24012         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
24013         * tests/test-xprintf-posix.c (ASSERT): Likewise.
24014         * tests/test-xvasprintf.c (ASSERT): Likewise.
24015         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
24016         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
24017         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
24018         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
24019         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
24020         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
24021         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
24022         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
24023         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
24024         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
24025         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
24026         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
24027         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
24028         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
24029         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
24030         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
24031         * tests/unictype/test-block_list.c (ASSERT): Likewise.
24032         * tests/unictype/test-block_of.c (ASSERT): Likewise.
24033         * tests/unictype/test-block_test.c (ASSERT): Likewise.
24034         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
24035         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
24036         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
24037         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
24038         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
24039         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
24040         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
24041         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
24042         * tests/unictype/test-combining.c (ASSERT): Likewise.
24043         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
24044         * tests/unictype/test-digit.c (ASSERT): Likewise.
24045         * tests/unictype/test-mirror.c (ASSERT): Likewise.
24046         * tests/unictype/test-numeric.c (ASSERT): Likewise.
24047         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
24048         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
24049         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
24050         * tests/unictype/test-scripts.c (ASSERT): Likewise.
24051         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
24052         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
24053         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
24054         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
24055         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
24056         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
24057         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
24058         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
24059         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
24060         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
24061         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
24062         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
24063         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
24064         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
24065         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
24066         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
24067         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
24068         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
24069         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
24070         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
24071         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
24072         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
24073         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
24074         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
24075         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
24076         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
24077         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
24078         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
24079         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
24080         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
24081         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
24082         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
24083         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
24084         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
24085         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
24086         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
24087         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
24088         Reported by Eric Blake.
24089
24090 2008-04-11  Bruno Haible  <bruno@clisp.org>
24091
24092         * lib/wchar.in.h: Tweak comment.
24093
24094 2008-04-11  Bruno Haible  <bruno@clisp.org>
24095
24096         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
24097         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
24098         gl_COMMON.
24099         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
24100
24101 2008-04-11  Bruno Haible  <bruno@clisp.org>
24102
24103         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
24104
24105 2008-04-11  Simon Josefsson  <simon@josefsson.org>
24106
24107         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
24108         of attempting to use non-existing /dev/*random.  Based on patch
24109         from Adam Strzelecki <ono@java.pl> in
24110         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
24111
24112 2008-04-08  Bruno Haible  <bruno@clisp.org>
24113
24114         Add tentative support for emx+gcc.
24115         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
24116         * lib/fpurge.c (fpurge): Likewise.
24117         * lib/freadable.c (freadable): Likewise.
24118         * lib/freadahead.c (freadahead): Likewise.
24119         * lib/freading.c (freading): Likewise.
24120         * lib/freadptr.c (freadptr): Likewise.
24121         * lib/freadseek.c (freadptrinc): Likewise.
24122         * lib/fseeko.c (rpl_fseeko): Likewise.
24123         * lib/fseterr.c (fseterr): Likewise.
24124         * lib/fwritable.c (fwritable): Likewise.
24125         * lib/fwriting.c (fwriting): Likewise.
24126         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
24127
24128 2008-04-09  Eric Blake  <ebb9@byu.net>
24129
24130         Avoid some autoconf warnings.
24131         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
24132         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
24133         * m4/afs.m4 (gl_AFS): Likewise.
24134         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
24135         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
24136         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24137         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
24138         (gl_INTEGER_TYPE_SUFFIX): Likewise.
24139         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
24140         (AC_CHECK_DECLS_ONCE): Likewise.
24141         Rename file...
24142         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
24143         gnulib-tool requires autoconf 2.59 or better.
24144         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
24145
24146 2008-04-08  Eric Blake  <ebb9@byu.net>
24147
24148         Use 'git describe --match' if present (added in git 1.5.5).
24149         * build-aux/git-version-gen: Limit result to tags that match 'v*'
24150         if possible.
24151
24152 2008-04-08  Bruno Haible  <bruno@clisp.org>
24153
24154         Add tentative support for OpenServer.
24155         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
24156         _ptr, _cnt.
24157         * lib/fpurge.c (fpurge): Likewise.
24158         * lib/freadable.c (freadable): Likewise.
24159         * lib/freadahead.c (freadahead): Likewise.
24160         * lib/freading.c (freading): Likewise.
24161         * lib/freadptr.c (freadptr): Likewise.
24162         * lib/freadseek.c (freadptrinc): Likewise.
24163         * lib/fseeko.c (rpl_fseeko): Likewise.
24164         * lib/fseterr.c (fseterr): Likewise.
24165         * lib/fwritable.c (fwritable): Likewise.
24166         * lib/fwriting.c (fwriting): Likewise.
24167         Reported by Roger Cornelius <rac@tenzing.org> and
24168         Brian K. White <brian@aljex.com>.
24169
24170 2008-04-06  Jim Meyering  <meyering@redhat.com>
24171
24172         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
24173
24174 2008-04-06  Bruno Haible  <bruno@clisp.org>
24175
24176         Avoid possible error with non-ASCII bytes in UTF-8 locales.
24177         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
24178         * tests/test-printf-posix.sh: Likewise.
24179         * tests/test-vfprintf-posix.sh: Likewise.
24180         * tests/test-vprintf-posix.sh: Likewise.
24181         * tests/test-xprintf-posix.sh: Likewise.
24182
24183 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24184
24185         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
24186         hide error from 'ls', needed on OS/2.
24187         Report by Elbert Pol <elbert.pol@gmail.com>.
24188
24189 2008-04-04  Eric Blake  <ebb9@byu.net>
24190
24191         Make test-fseeko.c failures meaningful.
24192         * tests/test-fseeko.c: Print line number on failure.
24193         * tests/test-fseek.c: Likewise.
24194         Reported by Nelson H. F. Beebe.
24195
24196         Improve strtod bug detection check.
24197         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
24198         required for Solaris 10.
24199         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
24200
24201 2008-04-04  Bruno Haible  <bruno@clisp.org>
24202
24203         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
24204         by m4/setenv.m4.
24205
24206 2008-04-03  Eric Blake  <ebb9@byu.net>
24207
24208         Ensure sane .version contents.
24209         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
24210         version string.
24211         * build-aux/git-version-gen: Improve documentation.
24212
24213         Make GNU make output nicer.
24214         * top/GNUmakefile [!_have-Makefile]: Add dependency on
24215         MAKECMDGOALS to enforce message for all command line targets.  Set
24216         srcdir for use in maint.mk.
24217
24218         Another maintainer tweak.
24219         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
24220         a target that regenerates version.
24221
24222 2008-04-03  Jim Meyering  <meyering@redhat.com>
24223
24224         vc-list-files: don't cause coreutils "make po-check" failure
24225         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
24226
24227 2008-04-03  Eric Blake  <ebb9@byu.net>
24228
24229         Allow VPATH usage of vc-list-files.
24230         * build-aux/vc-list-files (scriptversion): Add timestamp.
24231         (options): Add --help, --version, -C.
24232         (CVS): Support installed cvsu.
24233
24234 2008-04-02  Bruno Haible  <bruno@clisp.org>
24235
24236         Avoid some "statement with no effect" warnings from gcc.
24237         * tests/test-wctype.c (main): Explicitly ignore unused values.
24238         Reported by Jim Meyering.
24239
24240 2008-04-02  Jim Meyering  <meyering@redhat.com>
24241
24242         Avoid some warnings from "gcc -Wshadow".
24243         * tests/test-frexp.c (exp): Define to a different identifier.
24244         * tests/test-frexpl.c (exp): Likewise.
24245
24246 2008-04-03  Jim Meyering  <meyering@redhat.com>
24247
24248         bootstrap: remove dangling *.[ch] symlinks from lib
24249         * build-aux/bootstrap [dangling symlink removal]: Move find's
24250         -depth option to precede all others, to avoid a warning.
24251         Remove *.[ch] files too, and from "$source_base" (usually lib/).
24252
24253 2008-04-02  Bruno Haible  <bruno@clisp.org>
24254
24255         Avoid some warnings from "gcc -Wshadow".
24256         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
24257         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
24258         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
24259         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
24260         Reported by Jim Meyering.
24261
24262 2008-04-01  Bruno Haible  <bruno@clisp.org>
24263
24264         Fix test to work on IRIX 6.5 with cc.
24265         * tests/test-math.c (numeric_equal): New function.
24266         (main): Use it.
24267
24268 2008-04-01  Bruno Haible  <bruno@clisp.org>
24269
24270         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
24271
24272 2008-04-01  Bruno Haible  <bruno@clisp.org>
24273
24274         * tests/test-vasnprintf-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/vasnprintf-posix-tests (Files): Add tests/nan.h.
24277         (Depends-on): Remove math.
24278
24279         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
24280         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24281         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
24282         (Depends-on): Remove math.
24283
24284         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
24285         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24286         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
24287         (Depends-on): Remove math.
24288         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
24289         (Depends-on): Remove math.
24290
24291         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
24292         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24293         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
24294         (Depends-on): Remove math.
24295         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
24296         (Depends-on): Remove math.
24297
24298         * tests/test-round1.c: Include nan.h.
24299         (main): Use NaNd instead of NAN.
24300         * modules/round-tests (Files): Add tests/nan.h.
24301
24302         * tests/test-trunc1.c: Include nan.h.
24303         (main): Use NaNd instead of NAN.
24304         * modules/trunc-tests (Files): Add tests/nan.h.
24305
24306         * tests/test-roundf1.c: Include nan.h.
24307         (main): Use NaNf instead of NAN.
24308         * modules/roundf-tests (Files): Add tests/nan.h.
24309
24310         * tests/test-truncf1.c: Include nan.h.
24311         (main): Use NaNf instead of NAN.
24312         * modules/truncf-tests (Files): Add tests/nan.h.
24313
24314         * tests/test-ceilf1.c: Include nan.h.
24315         (main): Use NaNf instead of NAN.
24316         * modules/ceilf-tests (Files): Add tests/nan.h.
24317
24318         * tests/test-floorf1.c: Include nan.h.
24319         (main): Use NaNf instead of NAN.
24320         * modules/floorf-tests (Files): Add tests/nan.h.
24321
24322         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
24323         (main): Use NaNf instead of NAN.
24324         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
24325
24326         * tests/test-isnand.c: Include nan.h instead of <math.h>.
24327         (main): Use NaNd instead of NAN.
24328         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
24329
24330         * tests/test-frexp.c: Include nan.h.
24331         (main): Use NaNd instead of NAN.
24332         * modules/frexp-tests (Files): Add tests/nan.h.
24333
24334         * lib/isnan.c: Don't include <math.h>.
24335         (FUNC): Don't use NAN macro.
24336         * modules/isnand-nolibm (Depends-on): Remove math.
24337         * modules/isnanf-nolibm (Depends-on): Remove math.
24338         * modules/isnanl (Depends-on): Remove math.
24339         * modules/isnanl-nolibm (Depends-on): Remove math.
24340
24341         * tests/nan.h: New file.
24342
24343 2008-04-01  Eric Blake  <ebb9@byu.net>
24344
24345         Fix typos.
24346         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
24347         values to be the right type.
24348
24349         For now, cater to gnulib strtod inaccuracies.
24350         * tests/test-strtod.c (main): Allow 1-ulp error on expected
24351         fractional results.  While not as nice from a QoI perspective, it
24352         is a quicker patch than correctly implementing decimal to binary
24353         rounding.
24354
24355 2008-03-31  Eric Blake  <ebb9@byu.net>
24356
24357         Guarantee a definition of NAN.
24358         * lib/math.in.h (NAN): Define if missing.
24359         * tests/test-math.c (main): Test it.
24360         * doc/posix-headers/math.texi (math.h): Document this.
24361         * lib/isnan.c (rpl_isnand): Use it.
24362         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
24363         * tests/test-floorf1.c (NaN): Likewise.
24364         * tests/test-frexp.c (NaN): Likewise.
24365         * tests/test-isnand.c (NaN): Likewise.
24366         * tests/test-isnanf.c (NaN): Likewise.
24367         * tests/test-round1.c (NaN): Likewise.
24368         * tests/test-roundf1.c (NaN): Likewise.
24369         * tests/test-snprintf-posix.h (NaN): Likewise.
24370         * tests/test-sprintf-posix.h (NaN): Likewise.
24371         * tests/test-trunc1.c (NaN): Likewise.
24372         * tests/test-truncf1.c (NaN): Likewise.
24373         * tests/test-vasnprintf-posix.c (NaN): Likewise.
24374         * tests/test-vasprintf-posix.c (NaN): Likewise.
24375         * modules/isnand-nolibm (Depends-on): Add math.
24376         * modules/isnanf-nolibm (Depends-on): Likewise.
24377         * modules/isnanl (Depends-on): Likewise.
24378         * modules/isnanl-nolibm (Depends-on): Likewise.
24379         * modules/snprintf-posix-tests (Depends-on): Likewise.
24380         * modules/sprintf-posix-tests (Depends-on): Likewise.
24381         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
24382         * modules/vsprintf-posix-tests (Depends-on): Likewise.
24383         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
24384         * modules/vasprintf-posix-tests (Depends-on): Likewise.
24385
24386 2008-03-31  Bruno Haible  <bruno@clisp.org>
24387
24388         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
24389         * doc/posix-functions/strtod.texi: Likewise.
24390
24391 2008-03-31  Bruno Haible  <bruno@clisp.org>
24392
24393         * tests/test-strtod.c (main): Don't use C99 syntax.
24394
24395 2008-03-31  Bruno Haible  <bruno@clisp.org>
24396
24397         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
24398         Reported by Eric Blake.
24399
24400 2008-03-31  Jim Meyering  <meyering@redhat.com>
24401
24402         Don't compare actual signbit return values.
24403         * tests/test-strtod.c (main): Rather, compare only their
24404         zero/non-zero nature.
24405
24406 2008-03-31  Eric Blake  <ebb9@byu.net>
24407
24408         More strtod documentation.
24409         * doc/posix-functions/strtod.texi (strtod): Interpret more test
24410         failures as distinct bugs.
24411
24412 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
24413
24414         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
24415         Problem reported by Erik Benada in
24416         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
24417
24418 2008-03-30  Bruno Haible  <bruno@clisp.org>
24419
24420         * tests/test-strtod.c: Add comments about which assertion fails on which
24421         platform.
24422         * doc/posix-functions/strtod.texi: Add info about many more platforms.
24423
24424 2008-03-30  Eric Blake  <ebb9@byu.net>
24425
24426         Test signbit behavior on zeros.
24427         * tests/test-signbit.c (test_signbitf): Add tests for zero.
24428         (test_signbitd, test_signbitl): Likewise.
24429
24430         More strtod touchups.
24431         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
24432         sign of negative underflow, for now.  Use .5, not .1.
24433         * doc/posix-functions/strtod.texi (strtod): Mention these
24434         limitations.
24435         Reported by Jim Meyering.
24436
24437 2008-03-30  Bruno Haible  <bruno@clisp.org>
24438
24439         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
24440         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
24441
24442 2008-03-30  Bruno Haible  <bruno@clisp.org>
24443
24444         Avoid failure when attempting to return empty iconv results on some
24445         platforms.
24446         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
24447         allocation, don't report ENOMEM when the resulting string is empty.
24448
24449 2008-03-30  Bruno Haible  <bruno@clisp.org>
24450
24451         Fix buffer overrun.
24452         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
24453         Don't consider the width for tmp_length. Check count against tmp_length
24454         before doing the padding. Ensure enough allocation during padding.
24455
24456 2008-03-30  Eric Blake  <ebb9@byu.net>
24457
24458         strtod touchups.
24459         * lib/strtod.c (strtod): Avoid compiler warnings.
24460         Reported by Jim Meyering.
24461
24462 2008-03-30  Bruno Haible  <bruno@clisp.org>
24463
24464         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
24465         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
24466         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
24467         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
24468         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
24469         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
24470         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
24471         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
24472
24473         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
24474         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
24475         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
24476         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
24477         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
24478         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
24479         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
24480         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
24481
24482         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
24483         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
24484         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
24485         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
24486         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
24487         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
24488         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
24489         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
24490
24491         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
24492         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
24493
24494         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
24495         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
24496
24497         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
24498         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
24499
24500         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
24501         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
24502         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
24503
24504         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
24505         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
24506         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
24507
24508         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
24509         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
24510         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
24511
24512         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
24513         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
24514         * modules/vasprintf (Depends-on): Add EOVERFLOW.
24515
24516         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
24517         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
24518         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
24519         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
24520         (Depends-on): Add EOVERFLOW.
24521         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
24522         (Depends-on): Add EOVERFLOW.
24523         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
24524         (Depends-on): Add EOVERFLOW.
24525         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
24526         (Depends-on): Add EOVERFLOW.
24527         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
24528         (Depends-on): Add EOVERFLOW.
24529         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
24530         (Depends-on): Add EOVERFLOW.
24531         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
24532         (Depends-on): Add EOVERFLOW.
24533         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
24534         (Depends-on): Add EOVERFLOW.
24535
24536         * lib/sprintf.c (EOVERFLOW): Remove fallback.
24537         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
24538         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
24539
24540         * lib/snprintf.c (EOVERFLOW): Remove fallback.
24541         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
24542         * modules/snprintf (Depends-on): Add EOVERFLOW.
24543
24544         * lib/poll.c (EOVERFLOW): Remove fallback.
24545         * modules/poll (Depends-on): Add EOVERFLOW.
24546
24547         * lib/getugroups.c (EOVERFLOW): Remove fallback.
24548         * modules/getugroups (Depends-on): Add EOVERFLOW.
24549
24550         * lib/getdelim.c (EOVERFLOW): Remove fallback.
24551         * modules/getdelim (Depends-on): Add EOVERFLOW.
24552
24553         * lib/ftell.c (EOVERFLOW): Remove fallback.
24554         * modules/ftell (Depends-on): Add EOVERFLOW.
24555
24556         * lib/fprintf.c (EOVERFLOW): Remove fallback.
24557         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
24558         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
24559
24560         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
24561
24562         * modules/EOVERFLOW-tests: New file.
24563         * tests/test-EOVERFLOW.c: New file.
24564
24565         * modules/EOVERFLOW: New file.
24566         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
24567
24568 2008-03-30  Bruno Haible  <bruno@clisp.org>
24569
24570         Fix bug introduced on 2007-06-10.
24571         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
24572         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
24573
24574 2008-03-30  Bruno Haible  <bruno@clisp.org>
24575
24576         Improve freadseek's efficiency after ungetc.
24577         * lib/freadseek.c: Include freadahead.h.
24578         (freadptrinc): New function, extracted from freadseek.
24579         (freadseek): Use it in a loop. Use freadahead to determine the number
24580         of loop iterations.
24581         * modules/freadseek (Depends-on): Add freadahead.
24582         (configure.ac): Require AC_C_INLINE.
24583
24584 2008-03-30  Bruno Haible  <bruno@clisp.org>
24585
24586         * lib/freadseek.c (freadseek): Don't ignore the return value of
24587         freadptr.
24588
24589 2008-03-29  Eric Blake  <ebb9@byu.net>
24590
24591         Add hex float support.
24592         * modules/strtod (Depends-on): Add c-ctype.
24593         (Link): Mention POW_LIB.
24594         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
24595         whitespace between 'e' and exponent.
24596         * tests/test-strtod.c (main): Enable hex float tests.
24597         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
24598         now provides.
24599
24600         Document various strtod bugs, with some fixes.
24601         * doc/posix-functions/strtod.texi (strtod): Document bugs with
24602         "-0x", "inf", "nan", and hex constants.
24603         * doc/posix-functions/atof.texi (atof): Likewise.
24604         * modules/stdlib (Makefile.am): Support strtod.
24605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
24606         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
24607         detect additional strtod bugs.
24608         * lib/stdlib.in.h (rpl_strtod): Add declarations.
24609         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
24610         bool where appropriate.  Parse 'inf' and 'nan'.
24611         * tests/test-strtod.c: New file.
24612         * modules/strtod (Depends-on): Add stdbool, stdlib.
24613         (configure.ac): Turn on module indicator.
24614         * modules/strtod-tests: New module.
24615
24616 2008-03-29  Eric Blake  <ebb9@byu.net>
24617
24618         Fix ftell on mingw.
24619         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
24620         * modules/ftell-tests (Depends-on): Add binary-io.
24621         * modules/ftello-tests (Depends-on): Likewise.
24622         * tests/test-ftell.c (main): Enhance test to cover behavior after
24623         ungetc.  Enforce binary mode.
24624         * tests/test-ftello.c (main): Likewise.
24625
24626         Pass test-freadseek on cygwin.
24627         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
24628         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
24629         ungetc buffer.
24630
24631         * tests/test-fflush2.c (main): Fix typo.
24632
24633 2008-03-29  Bruno Haible  <bruno@clisp.org>
24634
24635         * tests/test-fflush2.c (main): Temporarily disable the contents of
24636         this test.
24637         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
24638         Reported by Eric Blake.
24639
24640 2008-03-28  Simon Josefsson  <simon@josefsson.org>
24641
24642         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
24643         (GC_SHA224_DIGEST_SIZE): Add.
24644
24645         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
24646         (gc_hash_digest_length): Likewise.
24647         (gc_hash_buffer): Likewise.
24648
24649 2008-03-25  Bruno Haible  <bruno@clisp.org>
24650
24651         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
24652         detail which gettext release to use.
24653         Reported by Simon Josefsson.
24654
24655 2008-03-26  Jim Meyering  <meyering@redhat.com>
24656
24657         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
24658         * modules/gnumakefile (clean-GNUmakefile): Also, use
24659         test ... && ... || : syntax rather than if-then ... fi.
24660
24661         gnumakefile: Don't double-quote-expand $(VPATH) value.
24662         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
24663
24664 2008-03-24  Eric Blake  <ebb9@byu.net>
24665
24666         Alter GNUmakefile to install into top directory.
24667         * modules/maintainer-makefile: Split, and add dependency...
24668         * modules/gnumakefile: to this new module.
24669         * build-aux/GNUmakefile: Move...
24670         * top/GNUmakefile: ...here.
24671         * build-aux/maint.mk: Move...
24672         * top/maint.mk: ...here.
24673         * MODULES.html.sh (Support for maintaining...): Document new
24674         module.
24675
24676 2008-03-23  Bruno Haible  <bruno@clisp.org>
24677
24678         * gnulib-tool: New options --vc-files, --no-vc-files.
24679         (func_usage): Document them.
24680         (vc_files): New variable.
24681         (func_import): Consider vc_files.
24682         (func_create_testdir): Set vc_files to empty.
24683         Suggested by Jim Meyering and Karl Berry.
24684
24685 2008-03-23  Bruno Haible  <bruno@clisp.org>
24686
24687         Fix regex compilation error on HP-UX 11.
24688         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
24689         * modules/regex (Files): Add m4/mbstate_t.m4.
24690         Reported by Ton Voon <ton.voon@altinity.com>.
24691
24692 2008-03-23  Bruno Haible  <bruno@clisp.org>
24693
24694         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
24695
24696 2008-03-23  Eric Blake  <ebb9@byu.net>
24697             Bruno Haible  <bruno@clisp.org>
24698
24699         Install files from top/ in the destination directory.
24700         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
24701         augmentation also for the files from top/.
24702         (func_import, func_create_testdir): Rewrite file names:
24703         top/filename -> filename.
24704
24705 2008-03-23  Bruno Haible  <bruno@clisp.org>
24706
24707         Tweak "gnulib --version" output.
24708         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
24709
24710 2008-03-23  Bruno Haible  <bruno@clisp.org>
24711
24712         Tweak "gnulib --version" output.
24713         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
24714         rather than contents of ChangeLog, when possible.
24715
24716 2008-03-21  Eric Blake  <ebb9@byu.net>
24717
24718         More --version tweaks.
24719         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
24720         date of last ChangeLog entry.
24721
24722 2008-03-21  Jim Meyering  <meyering@redhat.com>
24723
24724         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
24725
24726 2008-03-20  Eric Blake  <ebb9@byu.net>
24727
24728         VPATH fix.
24729         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
24730
24731 2008-03-20  Simon Josefsson  <simon@josefsson.org>
24732
24733         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
24734         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
24735
24736 2008-03-20  Eric Blake  <ebb9@byu.net>
24737
24738         Sync GNUmakefile with coreutils.
24739         * build-aux/GNUmakefile (have-Makefile): Rename...
24740         (_have-Makefile): ...to this, for namespace consideration.
24741         (GNUmakefile.cfg): Include, if present.
24742         (_autoreconf): Define a default.
24743         (_is-dist-target): New rule for rebuilds to pick up intra-release
24744         version.
24745         (maint-cfg.mk): Rename...
24746         (cfg.mk): ...to this.
24747
24748 2008-03-18  Jim Meyering  <meyering@redhat.com>
24749
24750         New script and module: mktempd
24751         * MODULES.html.sh (maint+release support): Add mktempd.
24752         * build-aux/mktempd: New file.
24753         * modules/mktempd: New file.
24754
24755 2008-03-15  Jim Meyering  <meyering@redhat.com>
24756
24757         Undo last change.
24758         * lib/sha1.c, lib/md5.c: 63 != ~63.
24759         Reported by Andreas Schwab.
24760
24761         sha1.c, md5.c: Hoist a redundant expression.
24762         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
24763         "ctx->buflen" only once, before calling *_process_block.
24764         * lib/md5.c (md5_process_bytes): Likewise.
24765
24766 2008-03-14  Eric Blake  <ebb9@byu.net>
24767
24768         Bump copyright year in files generated by gnulib-tool.
24769         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
24770         gnulib-tool, rather than hard-coding it.
24771
24772         Fix 'gnulib-tool --version' output to work with git.
24773         * gnulib-tool (func_gnulib_dir): New function, extracted from...
24774         (startup): ...here.
24775         (func_version): Use it to invoke git-version-gen, rather than
24776         relying on CVS keyword expansion.  Modernize wording.
24777         (cvsdatestamp, last_checkin_date, version): Kill unused
24778         variables.
24779
24780 2008-03-12  Jim Meyering  <meyering@redhat.com>
24781
24782         Recognize optional cast of the argument to free.
24783         * build-aux/useless-if-before-free: Update regexps.
24784
24785         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
24786
24787 2008-03-11  Bruno Haible  <bruno@clisp.org>
24788
24789         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
24790         by a single package.
24791         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
24792         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
24793         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
24794         Reported by Sam Steingold <sds@gnu.org>.
24795
24796 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
24797
24798         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
24799         repositories.
24800
24801 2008-03-11  Bruno Haible  <bruno@clisp.org>
24802
24803         Avoid conflicts between local macro definitions.
24804         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
24805         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
24806
24807 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
24808             Bruno Haible  <bruno@clisp.org>
24809
24810         Make va_copy work with some version of xlc on AIX 5.1.
24811         * lib/stdarg.in.h: New file.
24812         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
24813         On AIX, use a <stdarg.h> file substitute.
24814         * modules/stdarg (Files): Add lib/stdarg.in.h.
24815         (Depends-on): Add include_next.
24816         (Makefile.am): Build a stdarg.h substitute if requested.
24817         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
24818
24819 2008-03-10  Bruno Haible  <bruno@clisp.org>
24820
24821         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
24822         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24823         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
24824
24825 2008-03-10  Bruno Haible  <bruno@clisp.org>
24826
24827         * modules/stdlib (Depends-on): Add include_next, remove
24828         absolute-header.
24829
24830 2008-03-09  Bruno Haible  <bruno@clisp.org>
24831
24832         * lib/freadahead.h (freadahead): Document more precisely.
24833         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
24834         the sum of both buffer sizes.
24835         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
24836         * NEWS: Document the change.
24837
24838 2008-03-09  Bruno Haible  <bruno@clisp.org>
24839
24840         Extend freadptr to return also the buffer size.
24841         * lib/freadptr.h (freadptr): Add sizep argument.
24842         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
24843         (freadptr): Add sizep argument. Determine buffer size like freadahead
24844         does.
24845         * tests/test-freadptr.c: Don't include freadahead.h.
24846         (main): Adapt for new calling convention of freadptr.
24847         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
24848         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
24849         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
24850         tests/test-freadptr2.sh.
24851         (Depends): Remove freadahead.
24852         (TESTS): Add test-freadptr2.sh.
24853         (check_PROGRAMS): Add test-freadptr2.
24854
24855 2008-03-09  Bruno Haible  <bruno@clisp.org>
24856
24857         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
24858         Report and solution by Simon Josefsson.
24859
24860 2008-03-06  Bruno Haible  <bruno@clisp.org>
24861
24862         Make fflush after ungetc work on BSD platforms.
24863         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
24864         * tests/test-fflush2.c: New file.
24865         * tests/test-fflush2.sh: New file.
24866         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
24867         tests/test-fflush2.c.
24868         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
24869         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
24870
24871 2008-03-06  Eric Blake  <ebb9@byu.net>
24872
24873         Likewise for ftello.
24874         * modules/ftello (Dependencies): Add extensions.
24875         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
24876
24877 2008-03-06  Bruno Haible  <bruno@clisp.org>
24878
24879         * modules/fseeko (Dependencies): Add extensions.
24880         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
24881         Needed on glibc systems.
24882
24883 2008-03-06  Bruno Haible  <bruno@clisp.org>
24884
24885         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
24886         email address.
24887         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24888
24889 2008-03-06  Bruno Haible  <bruno@clisp.org>
24890
24891         * users.txt: Add libgnupdf.
24892
24893 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24894
24895         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
24896         (Header File Substitutes, Function Substitutes,
24897         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
24898         (Build robot for gnulib): Fix typo.
24899
24900 2008-03-06  Bruno Haible  <bruno@clisp.org>
24901
24902         * doc/gnulib-tool.texi (VCS Issues): Small updates.
24903         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24904
24905 2008-03-06  Bruno Haible  <bruno@clisp.org>
24906
24907         * doc/func.texi: New file, extracted from doc/gnulib.texi.
24908         * doc/gnulib.texi: Include it.
24909
24910 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24911
24912         * modules/func (License): Change license to unlimited; there was
24913         no LGPL parts in the module anyway.
24914
24915 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24916
24917         * modules/__func__: Renamed to modules/func.
24918         * modules/__func__-tests: Renamed to modules/func-tests.
24919         * tests/test-__func__.c: Renamed to tests/test-func.c.
24920         * m4/__func__.m4: Renamed to m4/func.m4.
24921         * doc/gnulib.texi (__func__): Section renamed to func.
24922         Suggested by Eric Blake <ebb9@byu.net>.
24923
24924 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24925
24926         * doc/gnulib.texi (__func__): Use C99 terminology when talking
24927         about __func__.  Make example self-contained.  Suggested by Eric
24928         Blake <ebb9@byu.net>.
24929
24930         * tests/test-__func__.c (main): Avoid extraneous () around __func.
24931         Suggested by Eric Blake <ebb9@byu.net>.
24932
24933 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24934
24935         * modules/__func__: New file.
24936         * modules/__func__-tests: New file.
24937         * tests/test-__func__.c: New file.
24938         * m4/__func__.m4: New file.
24939         * doc/gnulib.texi (__func__): Document __func__ module.
24940
24941 2008-03-05  Simon Josefsson  <simon@josefsson.org>
24942
24943         * modules/byteswap (License): Re-license as LGPLv2+.
24944
24945 2008-03-05  Simon Josefsson  <simon@josefsson.org>
24946
24947         * doc/Makefile: Add pdf target.
24948
24949 2008-03-05  Simon Josefsson  <simon@josefsson.org>
24950
24951         * modules/inline (License): Use 'unlimited', since there are only
24952         *.m4 files in this module.
24953
24954 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
24955             Bruno Haible  <bruno@clisp.org>
24956
24957         Add support for HP C 7.1 on OpenVMS 8.3.
24958         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
24959
24960 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
24961
24962         Update VMS specifics.
24963         * lib/getopt.c [VMS]: Remove include of unixlib.h.
24964
24965 2008-03-02  Jim Meyering  <meyering@redhat.com>
24966
24967         Remove the last dependency on the "free" module.
24968         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
24969         Reported by Bob Proulx.
24970
24971         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
24972
24973         Remove useless "if" tests before free.  Deprecate "free" module.
24974         * doc/posix-functions/free.texi: Mention that this
24975         module is no longer useful.
24976         * modules/free (Notice): Say this module is obsolete.
24977         * modules/readutmp (Depends-on): Remove free.
24978         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
24979         * lib/putenv.c (putenv): Likewise.
24980         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
24981         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
24982         * tests/test-c-strcasestr.c (main): Likewise.
24983         * tests/test-c-strstr.c (main): Likewise.
24984         * tests/test-mbscasestr1.c (main): Likewise.
24985         * tests/test-mbscasestr2.c (main): Likewise.
24986         * tests/test-mbsstr1.c (main): Likewise.
24987         * tests/test-mbsstr2.c (main): Likewise.
24988         * tests/test-memmem.c (main): Likewise.
24989         * tests/test-strcasestr.c (main): Likewise.
24990         * tests/test-striconv.c (main): Likewise.
24991         * tests/test-striconveh.c (main): Likewise.
24992         * tests/test-striconveha.c (main): Likewise.
24993         * tests/test-strstr.c (main): Likewise.
24994
24995         * build-aux/git-version-gen: Adjust a comment and the Usage string.
24996
24997         bootstrap: sync from coreutils again
24998         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
24999
25000 2008-03-01  Jim Meyering  <meyering@redhat.com>
25001
25002         bootstrap: sync from coreutils
25003         * build-aux/bootstrap (update_po_files): Copy a .po file into place
25004         also when the target doesn't exist.
25005
25006 2008-03-01  Eric Blake  <ebb9@byu.net>
25007
25008         Fix bugs in last patch.
25009         * lib/memchr2.c (memchr2): Fix typo.
25010         * tests/test-memchr2.c: Test previous bug, and don't use GNU
25011         extension.
25012         Reported by Bruce Korb.
25013
25014         New module 'memchr2'.
25015         * modules/memchr2: New file.
25016         * modules/memchr2-tests: Likewise.
25017         * lib/memchr2.h: Likewise.
25018         * lib/memchr2.c: Likewise, based on memchr.c.
25019         * tests/test-memchr2.c: New test.
25020         * MODULES.html.sh (String handling): Add memchr2.
25021
25022 2008-02-29  Bruno Haible  <bruno@clisp.org>
25023
25024         * modules/freadseek-tests: New file.
25025         * tests/test-freadseek.sh: New file.
25026         * tests/test-freadseek.c: New file.
25027
25028         New module 'freadseek'.
25029         * modules/freadseek: New file.
25030         * lib/freadseek.h: New file.
25031         * lib/freadseek.c: New file.
25032         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
25033
25034 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
25035
25036         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
25037         wydawca.
25038
25039         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
25040         program_invocation_name and program_invocation_short_name are
25041         present.
25042
25043 2008-02-28  Bruno Haible  <bruno@clisp.org>
25044
25045         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
25046         * tests/test-freadptr.sh: Also test non-seekable stdin.
25047
25048 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
25049
25050         * build-aux/bootstrap (source_base, m4_base)
25051         (doc_base, tests_base): New variables.
25052         (gnulib_tool_options): Do not hardcode base directories, use
25053         the above variables instead.
25054
25055 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
25056
25057         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
25058
25059 2008-02-28  Bruno Haible  <bruno@clisp.org>
25060
25061         * modules/freadptr-tests: New file.
25062         * tests/test-freadptr.sh: New file.
25063         * tests/test-freadptr.c: New file.
25064
25065         New module 'freadptr'.
25066         * modules/freadptr: New file.
25067         * lib/freadptr.h: New file.
25068         * lib/freadptr.c: New file.
25069         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
25070
25071 2008-02-26  Karl Berry  <karl@freefriends.org>
25072
25073         Sync from Libtool:
25074         * libltdl/argz.c (argz_add, argz_count): New functions.
25075         * libltdl/argz.in.h: Declare them.
25076         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
25077
25078 2008-02-22  Bruno Haible  <bruno@clisp.org>
25079
25080         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
25081         is a pointer type.  Needed for HP-UX 10.
25082         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
25083         * doc/posix-functions/gmtime_r.texi: Likewise.
25084         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25085
25086 2008-02-24  Bruno Haible  <bruno@clisp.org>
25087
25088         * modules/environ-tests: New file.
25089         * tests/test-environ.c: New file.
25090
25091         New module 'environ'.
25092         * modules/environ: New file.
25093         * lib/unistd.in.h (environ): New declaration.
25094         * m4/environ.m4: New file.
25095         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
25096         after use.
25097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
25098         HAVE_DECL_ENVIRON.
25099         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
25100         HAVE_DECL_ENVIRON.
25101         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
25102         wrong claim that 'environ' is missing on some systems.
25103         * modules/execute (Depends-on): Add environ.
25104         * lib/execute.c (environ): Remove fallback declaration.
25105         * modules/pipe (Depends-on): Add environ.
25106         * lib/pipe.c (environ): Remove fallback declaration.
25107         * modules/setenv (Depends-on): Add environ.
25108         * lib/setenv.c (environ): Remove fallback declaration.
25109         * modules/unsetenv (Depends-on): Add environ.
25110         * lib/unsetenv.c (environ): Remove fallback declaration.
25111         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
25112         m4/environ.m4.
25113         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
25114         (gl_PREREQ_UNSETENV): Likewise.
25115
25116 2008-02-24  Bruno Haible  <bruno@clisp.org>
25117
25118         * doc/posix-functions/environ.texi: Document the MacOS X problem.
25119
25120 2008-02-20  Bob Proulx  <bob@proulx.com>
25121
25122         Enable use of older two part flavor 'git describe'.
25123         * build-aux/git-version-gen: If using the older two part flavor of
25124         git version then recreate the third part now present in the
25125         newer three part flavor of git describe.
25126
25127 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
25128
25129         * lib/fts.c (fts_build): Typo correction to comment.
25130
25131 2008-02-17  Bruno Haible  <bruno@clisp.org>
25132
25133         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
25134         generating no-op conflicts.
25135
25136 2008-02-17  Bruno Haible  <bruno@clisp.org>
25137
25138         Speed up by 10%.
25139         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
25140         result_entries, rather than an index-based loop.
25141
25142 2008-02-17  Bruno Haible  <bruno@clisp.org>
25143
25144         Speed up by 25%.
25145         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
25146         'hashcode_cached'.
25147         (entry_create): New function.
25148         (entry_hashcode): Use the cached hashcode if possible.
25149         (read_changelog_file, try_split_merged_entry): Use entry_create.
25150
25151 2008-02-17  Bruno Haible  <bruno@clisp.org>
25152
25153         Speed up from O(n^2) to O(n) for long ChangeLog files.
25154         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
25155         (read_changelog_file): Change implementation of entries_reversed list
25156         to rbtreehash.
25157         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
25158
25159 2008-02-17  Bruno Haible  <bruno@clisp.org>
25160
25161         New option --split-merged-entry.
25162         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
25163         (find_paragraph_end, try_split_merged_entry): New functions.
25164         (long_options): Add option --split-merged-entry.
25165         (usage): Document option --split-merged-entry.
25166         (main): Implement option --split-merged-entry.
25167         Reported by Eric Blake.
25168
25169 2008-02-17  Bruno Haible  <bruno@clisp.org>
25170
25171         * lib/git-merge-changelog.c: Include c-strstr.h.
25172         (main): Support the "git pull --rebase" situation.
25173         * modules/git-merge-changelog (Depends-on): Add c-strstr.
25174         Reported by Eric Blake.
25175
25176 2008-02-16  Eric Blake  <ebb9@byu.net>
25177
25178         Avoid doubling \ in common case of "c-maybe" quoting style.
25179         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
25180         eliding outer quotes.
25181         * lib/quotearg.h: Document this.
25182         * tests/test-quotearg.c (result_strings, inputs, results_g)
25183         (flag_results, locale_results): Test it by adding a new string to
25184         each test group.
25185         (compare_strings): Test new string.
25186
25187 2008-02-13  Eric Blake  <ebb9@byu.net>
25188
25189         Avoid trigraph quoting in default output.
25190         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
25191         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
25192         unless explicitly requested.
25193         * tests/test-quotearg.c (flag_results, main): Add additional tests.
25194
25195 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
25196
25197         Don't rely on signed integer overflowing to negative value.
25198         * lib/getugroups.c (getugroups): Include <limits.h>.
25199         Instead, compare against INT_MAX, and increment only if the test passes.
25200
25201 2008-02-13  Jim Meyering  <meyering@redhat.com>
25202         and Eric Blake  <ebb9@byu.net>
25203
25204         Avoid shadowing warning and compile errors on Linux.
25205         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
25206         forwarding macros on Linux.
25207         (dcgettext): Define a stub, for Linux.
25208         (results_g, main): Avoid warnings.
25209
25210 2008-02-12  Eric Blake  <ebb9@byu.net>
25211
25212         Silence warning in last patch.
25213         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
25214
25215         Quotearg part 4: add tests, fix c-maybe colon quoting.
25216         * lib/quotearg.h: Improve documentation.
25217         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
25218         escapes when adding outer quotes.  When quoting trigraphs, use
25219         valid C notation.  When quoting NUL, omit extra characters if next
25220         character is not digit.  Alter prototype.
25221         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
25222         callers.
25223         * modules/quotearg-tests: New module.
25224         * tests/test-quotearg.c: New test.
25225
25226 2008-02-07  Eric Blake  <ebb9@byu.net>
25227
25228         Quotearg part 3: add flag to control outer quote elision.
25229         * lib/quotearg.h (c_maybe_quoting_style): New style.
25230         (enum quoting_flags): Better documentation of flags.
25231         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
25232         c-maybe style.
25233         (quotearg_buffer_restyled): Handle new flag to elide outer
25234         quotes.
25235
25236         Quotearg part 2: add flag that can control NUL elision.
25237         * lib/quotearg.h (set_quoting_flags): New prototype.
25238         * lib/quotearg.c (struct quoting_options): Add flag field.
25239         (set_quoting_flags): New function.
25240         (quotearg_buffer_restyled): Add flags parameter.
25241         (quotearg_alloc_mem): Set the flag if length cannot be returned.
25242         (quotearg_n_options): Set the flag, since length cannot be
25243         returned.
25244         (quoting_options_from_style): Default flags correctly.
25245
25246         Quotearg part 1: more wrappers, restore quotearg_char state.
25247         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
25248         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
25249         (quotearg_colon_mem): New wrappers.
25250         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
25251         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
25252         functions.
25253         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
25254         (quotearg_colon_mem): New functions.
25255
25256 2008-02-11  Bruno Haible  <bruno@clisp.org>
25257
25258         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
25259         library in the current directory: it does not work with parallel make.
25260         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25261
25262 2008-02-11  Bruno Haible  <bruno@clisp.org>
25263
25264         * .gitattributes: New file.
25265
25266 2008-02-11  Jim Meyering  <meyering@redhat.com>
25267
25268         useless-if-before-free: Fix reversed exit values.
25269         * build-aux/useless-if-before-free: Use correct values
25270         for EXIT_MATCH and EXIT_NO_MATCH.
25271
25272         * build-aux/useless-if-before-free: Close stdout carefully.
25273
25274 2008-02-10  Bruno Haible  <bruno@clisp.org>
25275
25276         New module 'git-merge-changelog'.
25277         * modules/git-merge-changelog: New file.
25278         * lib/git-merge-changelog.c: New file.
25279
25280 2008-02-10  Jim Meyering  <meyering@redhat.com>
25281
25282         useless-if-before-free: New option: --list (-l).
25283
25284         useless-if-before-free: Don't exit immediately upon open failure.
25285         * build-aux/useless-if-before-free: Exit 2 for errors.
25286         Upon failure to open a file, don't exit immediately.
25287         Rather, just warn and continue with any remaining files.
25288
25289 2008-02-10  Bruno Haible  <bruno@clisp.org>
25290
25291         New abstract list operation 'node_set_value'.
25292         * lib/gl_list.h (gl_list_node_set_value): New function.
25293         (struct gl_list_implementation): New field node_set_value.
25294         * lib/gl_list.c (gl_list_node_set_value): New function.
25295         * lib/gl_array_list.c (gl_array_node_set_value): New function.
25296         (gl_array_list_implementation): Update.
25297         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
25298         (gl_carray_list_implementation): Update.
25299         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
25300         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
25301         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
25302         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
25303         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
25304         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
25305         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
25306         Update.
25307         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
25308         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
25309         (gl_sublist_list_implementation): Update.
25310
25311 2008-02-10  Bruno Haible  <bruno@clisp.org>
25312
25313         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
25314         Needed when ELEMENT is #defined to 'some_type *'.
25315
25316 2008-02-10  Jim Meyering  <meyering@redhat.com>
25317
25318         New script and module: useless-if-before-free
25319         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
25320         * build-aux/useless-if-before-free: New file.
25321         * modules/useless-if-before-free: New file.
25322
25323         * build-aux/gitlog-to-changelog: Use committer date, not author date.
25324
25325         xstrtol_error: Fix typo.
25326         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
25327         s/exit_failure/exit_status/.
25328
25329 2008-02-09  Jim Meyering  <meyering@redhat.com>
25330
25331         New script and module: gitlog-to-changelog
25332         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
25333         * modules/gitlog-to-changelog: New file.
25334         * build-aux/gitlog-to-changelog: New file.
25335
25336 2008-02-08  Jim Meyering  <meyering@redhat.com>
25337
25338         Avoid two "parameter unused" warnings.
25339         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
25340         Mark "st" as used.
25341
25342         Use "git COMMAND", not "git-COMMAND".
25343         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
25344         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
25345         * build-aux/git-version-gen: Use "git status", not "git-status".
25346
25347 2008-02-07  Bruno Haible  <bruno@clisp.org>
25348
25349         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
25350         Avoids a crash on Windows Vista.
25351         Reported by Adam Strzelecki <ono@java.pl> via
25352         Simon Josefsson <simon@josefsson.org>.
25353
25354 2008-02-06  Bruno Haible  <bruno@clisp.org>
25355
25356         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
25357         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
25358         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
25359         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
25360         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25361         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25362         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
25363         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
25364         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25365         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25366         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25367         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25368         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25369         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25370         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25371         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
25372         left-adjust flag.
25373         * tests/test-snprintf-posix.h (test_function): Likewise.
25374         * tests/test-sprintf-posix.h (test_function): Likewise.
25375         * tests/test-vasprintf-posix.c (test_function): Likewise.
25376         * doc/posix-functions/fprintf.texi: Update.
25377         * doc/posix-functions/printf.texi: Update.
25378         * doc/posix-functions/snprintf.texi: Update.
25379         * doc/posix-functions/sprintf.texi: Update.
25380         * doc/posix-functions/vfprintf.texi: Update.
25381         * doc/posix-functions/vprintf.texi: Update.
25382         * doc/posix-functions/vsnprintf.texi: Update.
25383         * doc/posix-functions/vsprintf.texi: Update.
25384         Reported by Peter Fales <psfales@alcatel-lucent.com>.
25385
25386 2008-02-06  Bruno Haible  <bruno@clisp.org>
25387
25388         Fix bug introduced on 2008-01-26.
25389         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
25390
25391 2008-02-06  Bruno Haible  <bruno@clisp.org>
25392
25393         Fix bug introduced on 2007-06-10.
25394         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
25395         !NEED_PRINTF_FLAG_ZERO.
25396
25397 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
25398
25399         getloadavg: use libperfstat on AIX5
25400         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
25401
25402 2008-02-03  Bruno Haible  <bruno@clisp.org>
25403
25404         * lib/diffseq.h: Add comments about required #includes.
25405         Reported by Michael Biggs <gnulib@doubleplum.net>.
25406
25407 2008-02-01  Bruno Haible  <bruno@clisp.org>
25408
25409         * users.txt: Add gnuit.
25410
25411 2008-01-31  Bruno Haible  <bruno@clisp.org>
25412
25413         * lib/md4.c (set_uint32): Mark as inline.
25414         * lib/md5.c (set_uint32): Likewise.
25415         * lib/sha1.c (set_uint32): Likewise.
25416         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
25417         * m4/md5.m4 (gl_MD5): Likewise.
25418         * m4/sha1.m4 (gl_SHA1): Likewise.
25419
25420 2008-01-31  Jim Meyering  <meyering@redhat.com>
25421
25422         Use "sizeof VAR", rather than a literal "4".
25423         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
25424         * lib/md4.c (md4_read_ctx): Likewise.
25425         * lib/sha1.c (sha1_read_ctx): Likewise.
25426
25427 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25428
25429         * tests/test-sha1.c: New file, based on test-md5.c.
25430
25431         * modules/crypto/sha1-tests: New file.
25432
25433 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25434
25435         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
25436
25437 2008-01-31  Jim Meyering  <meyering@redhat.com>
25438
25439         Prefer "sizeof v" over the equivalent "4".
25440         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
25441         * lib/md5.c (set_uint32): Likewise.
25442         * lib/sha1.c (set_uint32): Likewise.
25443
25444 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25445
25446         * lib/sha1.c (set_uint32): Mark function as static.
25447
25448 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25449
25450         md2: clarify comments to say that alignment is not required.
25451         * lib/md2.h: Remove warning about alignment in comment.
25452         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
25453         never been required.
25454
25455 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25456
25457         md4: adapt alignment constraint fix from sha1.
25458         * lib/md4.c (set_uint32): New function, from sha1.c
25459         (md4_read_ctx): Use it.
25460         (md4_finish_ctx): Doc fix.
25461         * lib/md4.h: Doc fix.
25462
25463 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25464
25465         md5: adapt alignment constraint fix from sha1.
25466         * lib/md5.c (set_uint32): New function, from sha1.c
25467         (md5_read_ctx): Use it.
25468         (md5_finish_ctx): Doc fix.
25469         * lib/md5.h: Doc fix.
25470
25471 2008-01-30  Peter Palfrader  <weasel@debian.org>
25472
25473         sha1: remove the result buffer alignment constraint
25474         * lib/sha1.c (set_uint32): New function.
25475         (sha1_read_ctx): Rewrite to remove the result buffer alignment
25476         constraint.
25477         (sha1_finish_ctx): Remove comment warning about alignment constraint.
25478         * lib/sha1.h: Likewise.
25479
25480 2008-01-30  Andreas Schwab  <schwab@suse.de>
25481             Bruno Haible  <bruno@clisp.org>
25482
25483         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
25484         correct definition of LDBL_MIN_EXP.
25485
25486 2008-01-30  Karl Berry  <karl@gnu.org>
25487
25488         * config/srclist-update: try to preserve x bit on updates.
25489         * config/srclistvars.sh: update for karl.
25490
25491 2008-01-29  Jim Meyering  <meyering@redhat.com>
25492
25493         vasnprintf.c: Avoid warning about unused label
25494         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
25495         "overflow" label definition and associated code with the
25496         same cpp condition that guards the sole use of that label.
25497
25498 2008-01-26  Bruno Haible  <bruno@clisp.org>
25499
25500         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
25501         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
25502         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
25503         * lib/isnanl-nolibm.h (isnanl): Likewise.
25504         Reported by Paul Eggert <eggert@cs.ucla.edu>.
25505
25506 2008-01-26  Bruno Haible  <bruno@clisp.org>
25507
25508         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
25509         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
25510
25511 2008-01-26  Bruno Haible  <bruno@clisp.org>
25512
25513         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
25514         GCC >= 4.0 built-in.
25515         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
25516
25517 2008-01-26  Bruno Haible  <bruno@clisp.org>
25518
25519         Rename isnan, applicable to 'double' only, to isnand.
25520         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
25521         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
25522         (configure.ac): Update.
25523         (Include): Replace "isnan.h" with "isnand.h".
25524         * m4/isnand.m4: Renamed from m4/isnan.m4.
25525         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
25526         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
25527         instead of isnan.c.
25528         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
25529         instead of HAVE_ISNAN_IN_LIBC.
25530         (isnand): Renamed from isnan.
25531         * lib/isnand.c: New file.
25532         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
25533         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
25534         (Makefile.am): Update.
25535         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
25536         Include isnand.h instead of isnan.h.
25537         (main): Test isnand instead of isnan.
25538         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
25539         isnan-nolibm.
25540         * modules/frexp (Depends-on): Likewise.
25541         * modules/frexp-tests (Depends-on): Likewise.
25542         * modules/frexp-nolibm (Depends-on): Likewise.
25543         * modules/frexp-nolibm-tests (Depends-on): Likewise.
25544         * modules/isfinite (Depends-on): Likewise.
25545         * modules/round-tests (Depends-on): Likewise.
25546         * modules/signbit (Depends-on): Likewise.
25547         * modules/signbit-tests (Depends-on): Likewise.
25548         * modules/snprintf-posix (Depends-on): Likewise.
25549         * modules/sprintf-posix (Depends-on): Likewise.
25550         * modules/trunc-tests (Depends-on): Likewise.
25551         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25552         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25553         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25554         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25555         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25556         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25557         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25558         * modules/vasnprintf-posix (Depends-on): Likewise.
25559         * modules/vasprintf-posix (Depends-on): Likewise.
25560         * modules/vfprintf-posix (Depends-on): Likewise.
25561         * modules/vsnprintf-posix (Depends-on): Likewise.
25562         * modules/vsprintf-posix (Depends-on): Likewise.
25563         * lib/frexp.c: Include isnand.h instead of isnan.h.
25564         (ISNAN): Set to isnand instead of isnan.
25565         * lib/isfinite.c: Include isnand.h instead of isnan.h.
25566         (gl_isfinited): Use isnand instead of isnan.
25567         * lib/signbitd.c: Include isnand.h instead of isnan.h.
25568         (gl_signbitd): Use isnand instead of isnan.
25569         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
25570         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
25571         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
25572         (main): Use isnand instead of isnan.
25573         * tests/test-round1.c: Include isnand.h.
25574         (main): Use isnand instead of isnan.
25575         * tests/test-round2.c: Include isnand.h instead of isnan.h.
25576         (ISNAN): Set to isnand instead of isnan.
25577         * tests/test-trunc1.c: Include isnand.h.
25578         (main): Use isnand instead of isnan.
25579         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
25580         (equal): Use isnand instead of isnan.
25581         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
25582         isnand-nolibm.
25583         * NEWS: Mention the change.
25584
25585 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
25586             Bruno Haible  <bruno@clisp.org>
25587
25588         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
25589         the GCC builtins for signbits are present and set
25590         REPLACE_SIGNBIT_USING_GCC if so.
25591         * lib/math.in.h (signbit): Define using GCC builtins if
25592         REPLACE_SIGNBIT_USING_GCC is set.
25593         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
25594         REPLACE_SIGNBIT_USING_GCC.
25595         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
25596
25597 2008-01-25  Jim Meyering  <meyering@redhat.com>
25598
25599         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
25600         * lib/poll.c: Include <config.h>, not "config.h".
25601         * tests/test-getaddrinfo.c: Likewise.
25602
25603 2008-01-25  Simon Josefsson  <simon@josefsson.org>
25604
25605         * modules/sockets-tests: New file.
25606
25607 2008-01-24  Simon Josefsson  <simon@josefsson.org>
25608
25609         * modules/sockets: New module, can be used to call WSA_Startup and
25610         WSA_Cleanup when needed.
25611
25612         * lib/sockets.h, lib/sockets.c: New files.
25613
25614         * m4/sockets.m4: New file.
25615
25616         * tests/test-sockets.c: New file.
25617
25618 2008-01-19  Bruno Haible  <bruno@clisp.org>
25619
25620         * doc/posix-headers: Renamed from doc/headers.
25621         * doc/posix-functions: Renamed from doc/functions.
25622         * doc/gnulib.texi: Update.
25623
25624 2008-01-19  Bruno Haible  <bruno@clisp.org>
25625
25626         * doc/glibc-functions/strcasestr.texi: Include contents of
25627         doc/functions/strcasestr.texi, fixing the list of platforms.
25628         * doc/functions/strcasestr.texi: Remove file.
25629
25630 2008-01-19  Bruno Haible  <bruno@clisp.org>
25631
25632         * doc/glibc-functions/memmem.texi: Include contents of
25633         doc/functions/memmem.texi.
25634         * doc/functions/memmem.texi: Remove file.
25635
25636 2008-01-18  Bruno Haible  <bruno@clisp.org>
25637
25638         * doc/glibc-functions/*.texi: New files.
25639         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
25640         to use the new files.
25641
25642 2008-01-17  Bruno Haible  <bruno@clisp.org>
25643
25644         * tests/test-gethostname.c (main): Fix printf statement.
25645
25646 2008-01-17  Simon Josefsson  <simon@josefsson.org>
25647
25648         * modules/gethostname-tests: New file.
25649
25650         * tests/test-gethostname.c: New file.
25651
25652 2008-01-17  Simon Josefsson  <simon@josefsson.org>
25653
25654         * lib/gethostname.c: Include string.h unconditionally, strncpy is
25655         used by the UNAME case.  Reported by Bruno Haible
25656         <bruno@clisp.org>.
25657
25658 2008-01-17  Eric Blake  <ebb9@byu.net>
25659
25660         Convert c-strcasestr to be more efficient.
25661         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
25662         (Depends-on): Add c-strcase, remove malloca, strnlen.
25663         * tests/test-c-strcasestr.c (main): Enhance test.
25664         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
25665
25666 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
25667
25668         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
25669         Use it in creating po/Makevars.
25670
25671 2008-01-15  Simon Josefsson  <simon@josefsson.org>
25672
25673         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
25674         Applications that requires it should initialize libgcrypt
25675         manually.
25676
25677 2008-01-16  Simon Josefsson  <simon@josefsson.org>
25678
25679         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
25680
25681 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25682
25683         Fix problem with getdate on mingw32 reported by Simon Josefsson
25684         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
25685         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
25686         tzname", when deciding whether to declare tzname.
25687         * lib/strftime.c (tzname): Likewise.
25688
25689 2008-01-15  Bruno Haible  <bruno@clisp.org>
25690
25691         Work around a MacOS X 10.5 bug in frexpl().
25692         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
25693         * doc/functions/frexpl.texi: Document the bug.
25694         Reported by Elias Pipping <pipping@gentoo.org>.
25695
25696 2008-01-14  Eric Blake  <ebb9@byu.net>
25697
25698         Touch up previous patch.
25699         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
25700         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
25701
25702         Convert strcasestr module to use Two-Way algorithm.
25703         * modules/strcasestr-simple: New module, based on the old
25704         strcasestr, but with Two-Way rather than KMP.
25705         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
25706         * lib/string.in.h (rpl_strcasestr): Declare.
25707         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
25708         performance.
25709         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
25710         * modules/string (Makefile.am): Support strcasestr.
25711         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
25712         * modules/strcasestr-tests (Depends-on): Check for alarm.
25713         * tests/test-strcasestr.c: Augment test.
25714         * lib/str-two-way.h: Clean up stray macro.
25715         * NEWS: Document new module.
25716         * MODULES.html.sh (string handling): Likewise.
25717         * doc/functions/strcasestr.texi: New file.
25718         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
25719         here, since it is not a POSIX function.
25720
25721 2008-01-14  Colin Watson  <cjwatson@debian.org>
25722             Bruno Haible  <bruno@clisp.org>
25723
25724         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
25725         works fine; if not, set REPLACE_STRSIGNAL.
25726         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
25727         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25728         REPLACE_STRSIGNAL.
25729         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
25730         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
25731         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
25732
25733 2008-01-14  Bruno Haible  <bruno@clisp.org>
25734
25735         * modules/strsignal (Include): Change to <string.h>.
25736
25737 2008-01-14  Colin Watson  <cjwatson@debian.org>
25738
25739         * modules/argp (Notice): Add a notice recommending to change
25740         XGETTEXT_OPTIONS.
25741         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
25742
25743 2008-01-13  Colin Watson  <cjwatson@debian.org>
25744
25745         * modules/strsignal-tests: New file.
25746         * tests/test-strsignal.c: New file.
25747
25748         * lib/strsignal.c: New file, from glibc with modifications.
25749         * lib/siglist.h: New file, from glibc with modifications.
25750         * lib/string.in.h (strsignal): New declaration.
25751         * m4/strsignal.m4: New file.
25752         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25753         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
25754         * modules/strsignal: New file.
25755         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
25756         HAVE_DECL_STRSIGNAL.
25757
25758 2008-01-13  Bruno Haible  <bruno@clisp.org>
25759
25760         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
25761         locale encoding is not ASCII. Needed for OpenBSD 4.0.
25762         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
25763         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25764
25765 2008-01-13  Bruno Haible  <bruno@clisp.org>
25766
25767         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
25768         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
25769         * lib/argp.h (__attribute__): Likewise.
25770         * lib/c-stack.c (__attribute__): Likewise.
25771         * lib/error.h (__attribute__): Likewise.
25772         * lib/fts.c (__attribute__): Likewise.
25773         * lib/openat.h (__attribute__): Likewise.
25774         * lib/stdio.in.h (__attribute__): Likewise.
25775         * lib/string.in.h (__attribute__): Likewise.
25776         * lib/utimens.c (__attribute__): Likewise.
25777         * lib/vasnprintf.h (__attribute__): Likewise.
25778         * lib/xalloc.h (__attribute__): Likewise.
25779         * lib/xprintf.h (__attribute__): Likewise.
25780         * lib/xstrtol.h (__attribute__): Likewise.
25781         * lib/xvasprintf.h (__attribute__): Likewise.
25782
25783 2008-01-12  Bruno Haible  <bruno@clisp.org>
25784
25785         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
25786         * doc/glibc-headers/a.out.texi: New file.
25787         * doc/glibc-headers/aliases.texi: New file.
25788         * doc/glibc-headers/alloca.texi: New file.
25789         * doc/glibc-headers/ar.texi: New file.
25790         * doc/glibc-headers/argp.texi: New file.
25791         * doc/glibc-headers/argz.texi: New file.
25792         * doc/glibc-headers/byteswap.texi: New file.
25793         * doc/glibc-headers/crypt.texi: New file.
25794         * doc/glibc-headers/endian.texi: New file.
25795         * doc/glibc-headers/envz.texi: New file.
25796         * doc/glibc-headers/err.texi: New file.
25797         * doc/glibc-headers/error.texi: New file.
25798         * doc/glibc-headers/execinfo.texi: New file.
25799         * doc/glibc-headers/fpu_control.texi: New file.
25800         * doc/glibc-headers/fstab.texi: New file.
25801         * doc/glibc-headers/fts.texi: New file.
25802         * doc/glibc-headers/getopt.texi: New file.
25803         * doc/glibc-headers/ieee754.texi: New file.
25804         * doc/glibc-headers/ifaddrs.texi: New file.
25805         * doc/glibc-headers/libintl.texi: New file.
25806         * doc/glibc-headers/mcheck.texi: New file.
25807         * doc/glibc-headers/mntent.texi: New file.
25808         * doc/glibc-headers/obstack.texi: New file.
25809         * doc/glibc-headers/paths.texi: New file.
25810         * doc/glibc-headers/printf.texi: New file.
25811         * doc/glibc-headers/pty.texi: New file.
25812         * doc/glibc-headers/resolv.texi: New file.
25813         * doc/glibc-headers/shadow.texi: New file.
25814         * doc/glibc-headers/sysexits.texi: New file.
25815         * doc/glibc-headers/ttyent.texi: New file.
25816
25817 2008-01-12  Jim Meyering  <meyering@redhat.com>
25818
25819         announce-gen: emit Gnulib's git-based version string.
25820         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
25821         New option --gnulib-version=V, where V is expected to be
25822         the output of running git describe in the gnulib directory.
25823         (get_tool_versions): Request feedback on xdelta.  I suspect it's
25824         not useful, and plan to stop publishing an xdelta file with each
25825         coreutils release.
25826
25827         * build-aux/announce-gen: Also check for lzma-compressed files.
25828
25829 2008-01-11  Bruno Haible  <bruno@clisp.org>
25830
25831         * tests/test-memmem.c (main): Increase maximum allowed time.
25832         * tests/test-strstr.c (main): Likewise.
25833
25834 2008-01-11  Bruno Haible  <bruno@clisp.org>
25835
25836         * doc/functions/memmem.texi: Add more precisions about platforms.
25837         * doc/functions/strstr.texi: Likewise.
25838
25839 2008-01-10  Eric Blake  <ebb9@byu.net>
25840
25841         * m4/strstr.m4: Delete cruft from copy-n-paste.
25842         Reported by Bruno Haible.
25843
25844 2008-01-10  Bruno Haible  <bruno@clisp.org>
25845
25846         Make c-strstr rely on strstr.
25847         * lib/c-strstr.c: Don't include str-kmp.h.
25848         (c_strstr): Define in terms of strstr.
25849         * modules/c-strstr (Files): Remove lib/str-kmp.h.
25850         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
25851
25852 2008-01-10  Bruno Haible  <bruno@clisp.org>
25853
25854         * doc/gnulib.texi (String Functions in C Locale): New section.
25855         * doc/c-ctype.texi: New file.
25856         * doc/c-strcase.texi: New file.
25857         * doc/c-strcaseeq.texi: New file.
25858         * doc/c-strcasestr.texi: New file.
25859         * doc/c-strstr.texi: New file.
25860         * doc/c-strtod.texi: New file.
25861         * doc/c-strtold.texi: New file.
25862
25863 2008-01-10  Eric Blake  <ebb9@byu.net>
25864
25865         * lib/relocatable.h: Fix a comment.
25866
25867 2008-01-10  Eric Blake  <ebb9@byu.net>
25868
25869         Share two-way algorithm.
25870         * lib/str-two-way.h: New file, merged from...
25871         * lib/memmem.c: ...here...
25872         * lib/strstr.c: ...and here.
25873         * modules/memmem (Files): Use it.
25874         * modules/strstr (Files): Likewise.
25875
25876         Avoid quadratic strstr implementations.
25877         * lib/strstr.c: New file.
25878         * m4/strstr.m4: Likewise.
25879         * modules/strstr: Likewise.
25880         * modules/strstr-tests: Likewise.
25881         * tests/test-strstr.c: Likewise.
25882         * lib/string.in.h (rpl_strstr): Declare.
25883         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
25884         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
25885         * modules/string (Makefile.am): Likewise.
25886         * MODULES.html.sh (string handling): Mention new module.
25887         * doc/functions/strstr.texi (strstr): Document the bug.
25888
25889 2008-01-10  Bruno Haible  <bruno@clisp.org>
25890
25891         * lib/relocatable.h (relocate): State whether result is freshly
25892         allocated or not.
25893         * lib/relocatable.c (relocate): Return a freshly allocated string
25894         instead of a pointer to a privately held string.
25895         Reported by Sylvain Beucler <beuc@gnu.org>.
25896
25897 2008-01-10  Colin Watson  <cjwatson@debian.org>
25898
25899         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
25900         s/S_ISNLK/S_ISLNK/.
25901
25902 2008-01-09  Bruno Haible  <bruno@clisp.org>
25903
25904         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
25905         and other files.
25906         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
25907         if it's only a guess.
25908         * modules/memmem: Simplify by depending on memmem-simple.
25909
25910 2008-01-09  Bruno Haible  <bruno@clisp.org>
25911
25912         Work around OpenBSD 4.0 tdelete() bug.
25913         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
25914         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
25915         macros and don't redefine the enum values.
25916         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
25917         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
25918         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
25919
25920 2008-01-09  Bruno Haible  <bruno@clisp.org>
25921
25922         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
25923         (main): Don't perform the tests if setlocale did not install a UTF-8
25924         locale. Needed on OpenBSD 4.0.
25925         * modules/wcwidth-tests (Depends-on): Add localcharset.
25926
25927 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
25928
25929         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
25930         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
25931         * NEWS: announce this.
25932         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
25933
25934 2008-01-09  Simon Josefsson  <simon@josefsson.org>
25935         and Eric Blake  <ebb9@byu.net>
25936
25937         Add memmem-simple module.
25938         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
25939         (gl_FUNC_MEMMEM): Separate performance from presence checks.
25940         * modules/memmem-simple: New file.
25941         * modules/memmem (Description): Tweak.
25942         * MODULES.html.sh (string handling): Mention new module.
25943         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
25944         addressed by memmem-simple.
25945         * NEWS: Document the difference.
25946
25947 2008-01-09  Eric Blake  <ebb9@byu.net>
25948
25949         Give gcc some memmem optimization hints.
25950         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
25951         (strcasestr): Declare as pure.
25952         * modules/memmem (Maintainer): Claim my implementation.
25953
25954 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25955
25956         Support AIX 6.1 and higher.
25957         * build-aux/config.libpath: Likewise.
25958         * build-aux/config.rpath: Likewise.
25959
25960 2008-01-08  Jim Meyering  <meyering@redhat.com>
25961             Bruno Haible  <bruno@clisp.org>
25962
25963         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
25964         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
25965         Reported by Peter Fales in
25966         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
25967
25968 2008-01-08  Bruno Haible  <bruno@clisp.org>
25969
25970         * modules/unictype/category-of (Depends-on): Add
25971         unictype/category-none.
25972         * modules/unictype/category-and-tests (Depends-on): Add
25973         unictype/category-{L,N,Lu,Nd}.
25974         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
25975         * modules/unictype/category-or-tests (Depends-on): Add
25976         unictype/category-{L,N}.
25977         * modules/unictype/category-name-tests (Depends-on): Add
25978         unictype/category-{Z,Nl}.
25979         Reported by Simon Josefsson.
25980
25981 2008-01-08  Bruno Haible  <bruno@clisp.org>
25982
25983         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
25984         convention better.
25985         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
25986         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
25987         Reported by Peter Miller <millerp@canb.auug.org.au>.
25988
25989 2008-01-08  Eric Blake  <ebb9@byu.net>
25990
25991         Rewrite memmem to guarantee linear complexity without malloc.
25992         * lib/memmem.c (memmem): Use Two-Way rather than
25993         Knuth-Morris-Pratt, to allow O(1) space usage.
25994         (critical_factorization, two_way_short_needle)
25995         (two_way_long_needle): New functions.
25996         (knuth_morris_pratt): Delete.
25997         * modules/memmem (Depends-on): No longer need malloca or stdbool.
25998         Add stdint.
25999         * tests/test-memmem.c (main): Add tests for periodic needle and
26000         sublinear performance.
26001         * doc/functions/memmem.texi (memmem): Document other deficiencies
26002         in cygwin and older glibc.
26003
26004 2008-01-08  Bruno Haible  <bruno@clisp.org>
26005
26006         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
26007         augmentation.
26008
26009 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
26010
26011         Add a configure time option: --disable-acl.
26012         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
26013         AC_ARG_ENABLE(acl).
26014
26015 2008-01-06  Simon Josefsson  <simon@josefsson.org>
26016
26017         * tests/test-localename.c: Don't include obsolete "setenv.h".
26018
26019         * modules/localename-tests (Depends-on): Need unsetenv.
26020
26021 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26022
26023         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
26024
26025 2008-01-06  Colin Watson  <cjwatson@debian.org>
26026
26027         * users.txt: Add man-db.
26028
26029 2008-01-07  Bruno Haible  <bruno@clisp.org>
26030
26031         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
26032         previous section name.
26033
26034 2008-01-07  Bruno Haible  <bruno@clisp.org>
26035
26036         * lib/progname.c (set_program_name): Don't strip off a leading
26037         "lt-" prefix outside a .libs directory.
26038         Suggested by Paul Eggert.
26039
26040 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
26041             Bruno Haible  <bruno@clisp.org>
26042
26043         Improve memory cleanup in 'relocatable' module.
26044         * lib/relocatable.h (compute_curr_prefix): Change return type to
26045         'char *'.
26046         * lib/relocatable.c (compute_curr_prefix): Change return type to
26047         'char *'. Free curr_installdir after use.
26048         (relocate): Free curr_prefix_better after use.
26049         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
26050
26051 2008-01-01  Bruno Haible  <bruno@clisp.org>
26052
26053         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
26054         failure on older glibc systems.
26055         Reported by Peter Fales <psfales@alcatel-lucent.com>.
26056
26057 2008-01-05  Eric Blake  <ebb9@byu.net>
26058
26059         Avoid quadratic system memmem.
26060         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
26061         Reported by Ralf Wildenhues.
26062
26063         Fix memmem test for mingw.
26064         * modules/memmem-tests (configure.ac): Check for alarm.
26065         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
26066         it.
26067         * doc/functions/memmem.texi: New file.
26068         * doc/gnulib.texi (Function Substitutes): Add memmem.
26069         Reported by Bruno Haible.
26070
26071 2008-01-04  Bruno Haible  <bruno@clisp.org>
26072
26073         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
26074         Require gl_HEADER_STRINGS_H_DEFAULTS, not
26075         gl_HEADER_STRING_H_DEFAULTS.
26076
26077 2008-01-04  Eric Blake  <ebb9@byu.net>
26078
26079         Shorten duration of memmem test.
26080         * tests/test-memmem.c (main): Use alarm to declare failure if test
26081         is taking too long.
26082         Reported by Ralf Wildenhues.
26083
26084 2007-12-21  Simon Josefsson  <simon@josefsson.org>
26085
26086         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
26087         string, needed by strerror.
26088
26089 2008-01-03  Colin Watson  <cjwatson@debian.org>
26090             Bruno Haible  <bruno@clisp.org>
26091
26092         * doc/gnulib-tool.texi (Localization): New section.
26093
26094 2008-01-02  Bruno Haible  <bruno@clisp.org>
26095
26096         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
26097         variables to 'unsigned char *' type.
26098         Reported by Paul Eggert.
26099
26100 2008-01-02  Jim Meyering  <jim@meyering.net>
26101
26102         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
26103
26104 2007-12-31  Jim Meyering  <jim@meyering.net>
26105
26106         Avoid use of private FTS type name.
26107         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
26108
26109 2007-12-30  Karl Berry  <karl@gnu.org>
26110
26111         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
26112         work around defect in Texinfo and/or the standalone Info browser.
26113
26114 2007-12-30  Bruno Haible  <bruno@clisp.org>
26115
26116         Unify 5 copies of the KMP code.
26117         * lib/str-kmp.h: New file.
26118         * lib/c-strcasestr.c: Include str-kmp.h.
26119         (knuth_morris_pratt): Remove function.
26120         (c_strcasestr): Update.
26121         * lib/c-strstr.c: Include str-kmp.h.
26122         (knuth_morris_pratt): Remove function.
26123         (c_strcasestr): Update.
26124         * lib/mbscasestr.c: Include str-kmp.h.
26125         (knuth_morris_pratt_unibyte): Remove function.
26126         * lib/mbsstr.c: Include str-kmp.h.
26127         (knuth_morris_pratt_unibyte): Remove function.
26128         * lib/strcasestr.c: Include str-kmp.h.
26129         (knuth_morris_pratt): Remove function.
26130         (strcasestr): Update.
26131         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
26132         * modules/c-strstr (Files): Likewise.
26133         * modules/mbscasestr (Files): Likewise.
26134         * modules/mbsstr (Files): Likewise.
26135         * modules/strcasestr (Files): Likewise.
26136         Suggested by Paul Eggert.
26137
26138 2007-12-30  Bruno Haible  <bruno@clisp.org>
26139
26140         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
26141         defined.
26142
26143 2007-12-30  Bruno Haible  <bruno@clisp.org>
26144
26145         * lib/xmalloca.h: Include xalloc.h.
26146         (xnmalloca): New macro.
26147
26148 2007-12-30  Bruno Haible  <bruno@clisp.org>
26149
26150         * lib/malloca.h (nmalloca): New macro.
26151         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
26152         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
26153         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
26154         knuth_morris_pratt_multibyte): Likewise.
26155         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
26156         knuth_morris_pratt_multibyte): Likewise.
26157         * lib/memmem.c (knuth_morris_pratt): Likewise.
26158         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
26159
26160 2007-12-25  Bruno Haible  <bruno@clisp.org>
26161
26162         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
26163         * lib/glob.c: Don't include openat.h.
26164         (link_exists2_p): Add back the code that deals with the
26165         !GLOB_ALTDIRFUNC case.
26166         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
26167         let it do the filename concatenation.
26168         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
26169         * modules/glob (Depends-on): Remove openat.
26170
26171 2007-12-31  Bruno Haible  <bruno@clisp.org>
26172
26173         * modules/dirfd (License): Change to LGPLv2+.
26174         Approved by Jim Meyering.
26175
26176 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26177
26178         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
26179         when multiplying M by sizeof (size_t).
26180
26181 2007-12-10  Martin Lambers  <marlam@marlam.de>
26182
26183         Override getpagesize on mingw.
26184         * lib/getpagesize.c: New file.
26185         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
26186         * modules/getpagesize (Files): Add lib/getpagesize.c.
26187         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
26188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26189         REPLACE_GETPAGESIZE.
26190         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
26191
26192 2007-12-25  Bruno Haible  <bruno@clisp.org>
26193
26194         * modules/localcharset (Notice): New field.
26195         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
26196         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
26197
26198 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26199             Bruno Haible  <bruno@clisp.org>
26200
26201         Avoid using the syntax symbol() in formatted documentation.
26202         * MODULES.html.sh (func_module): When replacing symbol() with a
26203         hyperlink, remove the parentheses. Show an error if some remain.
26204         Recognize and render the '...' syntax.
26205         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
26206         Rework. Add paragraph about GCC's inlining.
26207         * doc/alloca.texi: Likewise.
26208         * doc/error.texi: Remove parentheses from symbol reference.
26209         * doc/gnulib-intro.texi: Likewise.
26210         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
26211         * modules/fnmatch (Description): Reword to say "the ... function".
26212         * modules/full-read (Description): Likewise.
26213         * modules/full-write (Description): Likewise.
26214         * modules/safe-read (Description): Likewise.
26215         * modules/safe-write (Description): Likewise.
26216         * modules/strchrnul (Description): Likewise.
26217         * modules/trim (Description): Likewise.
26218         * modules/error (Description): Remove parentheses from symbol
26219         references.
26220         * modules/verror (Description): Likewise.
26221         Reported by Karl Berry.
26222
26223 2007-12-25  Bruno Haible  <bruno@clisp.org>
26224
26225         Fixup after 2007-10-16 commit.
26226         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
26227
26228 2007-12-24  Bruno Haible  <bruno@clisp.org>
26229
26230         Make --enable-relocatable work with DESTDIR.
26231         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
26232         to compute installdir from destprog.
26233         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
26234         also set the RELOC_DESTDIR variable.
26235         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
26236
26237 2007-12-24  Bruno Haible  <bruno@clisp.org>
26238
26239         Fix link error due to xalloc_die().
26240         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
26241         of xreadlink.
26242         * lib/relocwrapper.c: Update comments.
26243         * build-aux/install-reloc: Remove xreadlink.c from file list.
26244         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
26245         xreadlink.c.
26246         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
26247
26248 2007-12-24  Bruno Haible  <bruno@clisp.org>
26249
26250         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
26251         * lib/setenv.h: Remove file.
26252         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
26253         lib/setenv.h.
26254         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
26255         (Depends-on): Add stdlib.
26256         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
26257         gl_FUNC_UNSETENV.
26258         (Include): Replace setenv.h with <stdlib.h>.
26259         * modules/unsetenv: New file.
26260         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
26261         * lib/unsetenv.c: Include <stdlib.h> first.
26262         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
26263         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
26264         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
26265         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
26266         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
26267         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26268         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
26269         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26270         * doc/functions/unsetenv.texi: Update.
26271         * modules/xsetenv (Depends-on): Add unsetenv.
26272         * modules/getdate (Depends-on): Likewise.
26273         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
26274         * lib/xsetenv.c: Don't include setenv.h.
26275         * lib/getdate.y: Likewise.
26276         * lib/relocwrapper.c: Likewise.
26277         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
26278         (Depends-on): Add stdlib.
26279         * NEWS: Mention the changes.
26280         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
26281
26282 2007-12-23  Bruno Haible  <bruno@clisp.org>
26283
26284         * lib/memmem.c (memmem): Use lowercase variable names. Tab
26285         indentation.
26286
26287 2007-12-23  Bruno Haible  <bruno@clisp.org>
26288
26289         * lib/c-strcasestr.c: Add more comments.
26290         * lib/c-strstr.c: Likewise.
26291         * lib/mbscasestr.c: Likewise.
26292         * lib/mbsstr.c: Likewise.
26293         * lib/strcasestr.c: Likewise.
26294         * lib/memmem.c: Likewise.
26295
26296 2007-12-23  Bruno Haible  <bruno@clisp.org>
26297
26298         * tests/test-memmem.c: Include <string.h> first.
26299
26300 2007-12-22  Bruno Haible  <bruno@clisp.org>
26301
26302         * gnulib-tool (func_create_testdir): Change $auxdir while generating
26303         the contents of $testsbase.
26304         Reported by Ralf Wildenhues.
26305
26306 2007-12-22  Bruno Haible  <bruno@clisp.org>
26307
26308         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
26309         two variables local_ldadd_before, local_ldadd_last.
26310
26311 2007-12-20  Eric Blake  <ebb9@byu.net>
26312
26313         Work around circular library issue when cross-compiling.
26314         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
26315         that progname.o does not need to pull in rpl_memcmp.
26316
26317 2007-12-19  Eric Blake  <ebb9@byu.net>
26318
26319         Fix memmem to avoid O(n^2) worst-case complexity.
26320         * lib/memmem.c (knuth_morris_pratt): New function.
26321         (memmem): Use it if first few naive iterations fail.
26322         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
26323         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
26324         * modules/memchr (License): Likewise.
26325         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
26326         malloca.
26327         * tests/test-memmem.c: Rewrite, borrowing ideas from
26328         test-mbsstr1.c; the old version wouldn't even compile!
26329         * modules/memmem-tests: New file.
26330         * lib/string.in.h (rpl_memmem): Add declaration.
26331         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
26332         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
26333         REPLACE_MEMMEM.
26334
26335 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26336
26337         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
26338         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
26339         before any system include files, and undef after them all.  This
26340         should fix a problem on VMS reported by John E. Malmberg in
26341         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
26342
26343 2007-12-17  Eric Blake  <ebb9@byu.net>
26344
26345         Revert addition of verify, for BSD/OS.
26346         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
26347         can't handle large files, for the sake of obsolete platforms.
26348         * modules/fseeko (Depends-on): Remove verify.
26349         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
26350         * doc/functions/ftello.texi (ftello): Likewise.
26351         * doc/functions/fgetpos.texi (fgetpos): Likewise.
26352         Reported by Larry Jones.
26353
26354 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
26355
26356         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
26357         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
26358
26359 2007-12-17  Jim Meyering  <meyering@redhat.com>
26360
26361         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
26362         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
26363         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
26364         * modules/getcwd (Depends-on): Add openat.
26365         Reported by Petr Salinger.
26366
26367 2007-12-17  Bruno Haible  <bruno@clisp.org>
26368
26369         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
26370         avoid a segmentation fault of the configure test on x86_64 systems.
26371
26372 2007-12-15  Jim Meyering  <meyering@redhat.com>
26373
26374         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
26375
26376 2007-12-13  Eric Blake  <ebb9@byu.net>
26377
26378         Another fseek test.
26379         * tests/test-fseek.c (main): Also test ungetc handling.
26380         * tests/test-fseeko.c (main): Likewise.
26381         * modules/fseeko (Depends-on): Add verify.
26382         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
26383         large.
26384         Reported by Larry Jones.
26385
26386         Fix fseeko on mingw.
26387         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
26388         seek.
26389
26390         Beef up fseek tests.
26391         * tests/test-fseek.c (main): Also test eof handling.
26392         * tests/test-fseeko.c (main): Likewise.
26393         Reported by Larry Jones.
26394
26395 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
26396
26397         Fix fseeko on BSD-based platforms.
26398         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
26399         successful seek.
26400
26401 2007-12-12  Eric Blake  <ebb9@byu.net>
26402
26403         Allow circular dependency of separate libtests.a
26404         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
26405         when use_libtests.
26406
26407 2007-12-11  Eric Blake  <ebb9@byu.net>
26408
26409         Fix bug with -0.0L in previous patch.
26410         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
26411         * tests/test-isnan.c (main): Also test on zeroes.
26412         * tests/test-isnanf.c (main): Likewise.
26413         * tests/test-isnanl.h (main): Likewise.
26414
26415         Detect pseudo-denormals on x86 even when cross-compiling.
26416         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
26417         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
26418         invalid bit patterns that happen to satisfy ==.
26419
26420         Avoid link failures with separate libtests.a.
26421         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
26422         last, to satisfy circular dependencies.
26423
26424 2007-12-11  Eric Blake  <ebb9@byu.net>
26425         and Bruno Haible  <bruno@clisp.org>
26426
26427         Fix OpenBSD 4.0 <float.h> handling of long double.
26428         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
26429         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
26430         * doc/headers/float.texi (float.h): Document OpenBSD bug.
26431
26432 2007-12-11  Jim Meyering  <meyering@redhat.com>
26433
26434         * users.txt: Add libvirt.
26435
26436         Support versions of autoconf prior to 2.59c.
26437         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
26438         if it is not already defined.
26439
26440 2007-12-09  Bruno Haible  <bruno@clisp.org>
26441
26442         Let 'gnulib-tool --import' collect sources needed for the tests in
26443         tests/ rather than in lib/.
26444         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
26445         argument. If true, add rules to generate libtests.a, and put libtests.a
26446         into $(LDADD). Consider source files in subdirectories and set
26447         uses_subdirs.
26448         (func_emit_initmacro_start, func_emit_initmacro_end,
26449         func_emit_initmacro_done): Pass all arguments explicitly.
26450         (func_import): Determine two module lists main_modules,
26451         testsrelated_modules. Determine use_libtests. Determine two variables
26452         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
26453         instead of just sed_transform_lib_file. Determine two variables
26454         main_files and testsrelated_files. Compute 'files' as the union of
26455         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
26456         func_add_or_update. In the generated gnulib-comp.m4, collect the
26457         object files for tests/ in different variables than those for lib/.
26458         Substitute LIBTESTS_LIBDEPS.
26459         (func_create_testdir): Combine the uses_subdirs results from
26460         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
26461
26462 2007-12-09  Bruno Haible  <bruno@clisp.org>
26463
26464         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
26465         the build-aux directory.
26466
26467 2007-12-09  Bruno Haible  <bruno@clisp.org>
26468
26469         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
26470         introduced on 2006-09-09.
26471
26472 2007-12-07  Jim Meyering  <meyering@redhat.com>
26473
26474         Let these macros work also with autoconf-2.59.
26475         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
26476         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
26477         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26478
26479 2007-12-06  Jim Meyering  <meyering@redhat.com>
26480
26481         Avoid a configure-time syntax error in gl_FUNC_ACL.
26482         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
26483         function in each branch, before testing the cache variable.
26484
26485 2007-12-04  Eric Blake  <ebb9@byu.net>
26486
26487         Make scripts executable.
26488         * build-aux/config.guess: Add execute permissions.
26489         * build-aux/config.sub: Likewise.
26490         * build-aux/gendocs.sh: Likewise.
26491
26492         Fix frexp on mingw.
26493         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
26494         cross-compiling.
26495         * doc/functions/frexp.texi (frexp): Document the bug.
26496
26497         Make cygwin fseeko check more reliable.
26498         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
26499         version numbers, rather than unrelated feature check.
26500         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
26501         * doc/functions/ftello.texi (ftello): Likewise.
26502         Reported by Bruno Haible.
26503
26504         * m4/strerror.m4: Bump version number.
26505
26506 2007-12-03  Bruno Haible  <bruno@clisp.org>
26507
26508         * doc/functions/mprotect.texi: Mention the mingw problem.
26509
26510 2007-12-03  Eric Blake  <ebb9@byu.net>
26511
26512         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
26513         REPLACE_STRERROR is initialized before this macro.
26514
26515 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
26516
26517         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
26518         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
26519         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
26520         put -lsec in even for programs other than 'ls'.  This fixes a problem
26521         for gettext reported by Bruno Haible in
26522         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
26523         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
26524         Add support for Solaris 10.  This isn't efficient, but should get the
26525         job done for now.
26526
26527 2007-12-03  James Youngman  <jay@gnu.org>
26528
26529         * doc/regexprops-generic.texi: change "an close-group" to "a
26530         close-group" and "illegal" to "not allowed".
26531
26532 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26533
26534         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
26535         pr_byname.h. Needed for the rare case when the maintainer has done
26536         "make maintainer-clean" in the source directory and then attempts a
26537         build outside the source directory.
26538         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
26539         scripts_byname.h.
26540
26541 2007-12-02  Martin Lambers <marlam@marlam.de>
26542             Bruno Haible  <bruno@clisp.org>
26543
26544         * lib/getpagesize.h: Remove file.
26545         * lib/unistd.in.h: Include declaration of getpagesize here.
26546         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
26547         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
26548         HAVE_SYS_PARAM_H.
26549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
26550         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
26551         * modules/getpagesize (Files): Remove lib/getpagesize.h.
26552         (Depends-on): Add unistd.
26553         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26554         (Include): Use <unistd.h> instead of getpagesize.h.
26555         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
26556         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
26557         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
26558         gl_GETPAGESIZE invocation, already handled by module dependency.
26559         * lib/pagealign_alloc.c: Don't include getpagesize.h.
26560
26561 2007-12-02  Bruno Haible  <bruno@clisp.org>
26562
26563         * modules/strings-tests: New file.
26564         * tests/test-strings.c: New file.
26565
26566         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
26567         * lib/strings.in.h: New file.
26568         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
26569         * m4/strings_h.m4: New file.
26570         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
26571         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
26572         * modules/strings: New file.
26573         * modules/string (Makefile.am): Update.
26574         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
26575         Reported by Karl Berry.
26576
26577 2007-12-01  Eric Blake  <ebb9@byu.net>
26578
26579         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
26580         accomodate fix in cygwin 1.5.25.
26581
26582 2007-12-01  Jim Meyering  <meyering@redhat.com>
26583
26584         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
26585         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
26586         that would inhibit utf8-optimization of a regexp containing line-
26587         or buffer-anchors, e.g., `^', `$'.
26588
26589 2007-11-30  Bruno Haible  <bruno@clisp.org>
26590
26591         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
26592         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
26593         glthread_recursive_lock_init.
26594         * lib/lock.c (glthread_recursive_lock_init)
26595         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
26596         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26597
26598 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
26599
26600         New function qset_acl, like set_acl but with syscall semantics.
26601         * lib/acl.h (qset_acl): New decl.
26602         * lib/acl.c (qset_acl): New function.
26603         (set_acl): Use new function.  Use more-consistent diagnostics.
26604
26605 2007-11-28  Jim Meyering  <meyering@redhat.com>
26606
26607         * modules/physmem (License): Change from GPL to LGPLv2+.
26608
26609 2007-11-26  Bruno Haible  <bruno@clisp.org>
26610
26611         * lib/vasnprintf.c (decode_long_double): Don't abort if the
26612         'long double' type has excess precision.
26613         Reported by Jim Meyering in
26614         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
26615
26616 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26617
26618         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
26619         Sync from <http://gnu.org/licenses>.
26620         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
26621         with license text from same location.
26622         * doc/maintain.texi, doc/standards.texi:  Sync from
26623         <http://savannah.gnu.org/projects/gnustandards>.
26624
26625 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
26626         and Jim Meyering  <meyering@redhat.com>
26627
26628         Adjust getdate' grammar to accept a slightly more regular language.
26629         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
26630         Before, the former was rejected.
26631         * lib/getdate.y (digits_to_date_time): New function, factored
26632         out of ...
26633         (number): ...here.  Just call digits_to_date_time.
26634         (hybrid): New non-terminal to handle an <unsigned number,
26635         signed relative offset> sequence consistently.
26636
26637 2007-11-18  Jim Meyering  <meyering@redhat.com>
26638
26639         Pull my changes from coreutils:
26640         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
26641         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
26642         use of $gnulib_tool_option_extras, so that it's separated from the
26643         preceding argument.
26644
26645         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
26646         * build-aux/bootstrap (cp_mark_as_generated): Create any required
26647         parent destination directories before copying a file into place.
26648
26649 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
26650
26651         bootstrap: work also with 4-argument variant of AC_INIT
26652         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
26653
26654 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
26655
26656         Port test-getaddrinfo to Solaris.
26657         Problem reported by Bruno Haible in
26658         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
26659         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
26660         explanation of setting 'hints'.
26661         Don't reject an implementation merely because it returns EAI_SERVICE.
26662         (EAI_SERVICE): Define to 0 if not defined.
26663
26664 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
26665
26666         The license of gnu-make and posix-shell is now "GPLed build tool".
26667         * modules/gnu-make (License): Likewise.
26668         * modules/posix-shell (License): Likewise.
26669
26670         New module posix-shell, for determining a POSIX shell
26671         or perhaps something that is close enough to a POSIX shell.
26672         * m4/posix-shell.m4: New file.
26673         * modules/posix-shell: New file.
26674
26675         * MODULES.html.sh: Mention new module.
26676
26677         New module gnu-make, for determining whether we're using GNU Make.
26678         * m4/gnu-make.m4: New file.
26679         * modules/gnu-make: New file.
26680         * MODULES.html.sh: Mention new module.
26681
26682 2007-11-14  Jim Meyering  <meyering@redhat.com>
26683
26684         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
26685         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
26686         use this macro to create a function _definition_.
26687         Remove useless "#undef ARGMATCH_DIE".
26688
26689 2007-11-14  Bruno Haible  <bruno@clisp.org>
26690
26691         * lib/config.charset: Update for OpenBSD 4.1.
26692         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
26693
26694 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
26695
26696         Document 64-bit #if problems in stdint.texi.
26697         * doc/headers/stdint.texi (stdint.h): Mention problems with
26698         64-bit-#if, and how to work around them.
26699
26700         Don't insist on 'long long int' support in the preprocessor.  It
26701         breaks too many things.  For example, PRIdMAX still uses a 'long
26702         long int' format with the latest Sun compiler, even though
26703         HAVE_LONG_LONG_INT isn't defined due to that compiler's
26704         preprocessor problem.  This causes the latest coreutils to dump
26705         core on Solaris 10 sparc with the Sun C compiler.
26706         Instead, fix the 2007-10-16 problem in a different way, by evaluating
26707         the troublesome expressions at configure-time, not at #if-time.
26708         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
26709         preprocessor.
26710         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
26711         compile-time C checks, done at 'configure'-time.
26712         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
26713         * modules/inttypes (Makefile): Substitute the new symbols that
26714         gl_INTTYPES_H now generates.
26715         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
26716
26717 2007-11-12  Bruno Haible  <bruno@clisp.org>
26718
26719         Tests for Unicode character classification functions.
26720
26721         * modules/unictype/bidicategory-byname-tests: New file.
26722         * modules/unictype/bidicategory-name-tests: New file.
26723         * modules/unictype/bidicategory-of-tests: New file.
26724         * modules/unictype/bidicategory-test-tests: New file.
26725         * modules/unictype/block-list-tests: New file.
26726         * modules/unictype/block-of-tests: New file.
26727         * modules/unictype/block-test-tests: New file.
26728         * modules/unictype/category-C-tests: New file.
26729         * modules/unictype/category-Cc-tests: New file.
26730         * modules/unictype/category-Cf-tests: New file.
26731         * modules/unictype/category-Cn-tests: New file.
26732         * modules/unictype/category-Co-tests: New file.
26733         * modules/unictype/category-Cs-tests: New file.
26734         * modules/unictype/category-L-tests: New file.
26735         * modules/unictype/category-Ll-tests: New file.
26736         * modules/unictype/category-Lm-tests: New file.
26737         * modules/unictype/category-Lo-tests: New file.
26738         * modules/unictype/category-Lt-tests: New file.
26739         * modules/unictype/category-Lu-tests: New file.
26740         * modules/unictype/category-M-tests: New file.
26741         * modules/unictype/category-Mc-tests: New file.
26742         * modules/unictype/category-Me-tests: New file.
26743         * modules/unictype/category-Mn-tests: New file.
26744         * modules/unictype/category-N-tests: New file.
26745         * modules/unictype/category-Nd-tests: New file.
26746         * modules/unictype/category-Nl-tests: New file.
26747         * modules/unictype/category-No-tests: New file.
26748         * modules/unictype/category-P-tests: New file.
26749         * modules/unictype/category-Pc-tests: New file.
26750         * modules/unictype/category-Pd-tests: New file.
26751         * modules/unictype/category-Pe-tests: New file.
26752         * modules/unictype/category-Pf-tests: New file.
26753         * modules/unictype/category-Pi-tests: New file.
26754         * modules/unictype/category-Po-tests: New file.
26755         * modules/unictype/category-Ps-tests: New file.
26756         * modules/unictype/category-S-tests: New file.
26757         * modules/unictype/category-Sc-tests: New file.
26758         * modules/unictype/category-Sk-tests: New file.
26759         * modules/unictype/category-Sm-tests: New file.
26760         * modules/unictype/category-So-tests: New file.
26761         * modules/unictype/category-Z-tests: New file.
26762         * modules/unictype/category-Zl-tests: New file.
26763         * modules/unictype/category-Zp-tests: New file.
26764         * modules/unictype/category-Zs-tests: New file.
26765         * modules/unictype/category-and-not-tests: New file.
26766         * modules/unictype/category-and-tests: New file.
26767         * modules/unictype/category-byname-tests: New file.
26768         * modules/unictype/category-name-tests: New file.
26769         * modules/unictype/category-none-tests: New file.
26770         * modules/unictype/category-of-tests: New file.
26771         * modules/unictype/category-or-tests: New file.
26772         * modules/unictype/category-test-withtable-tests: New file.
26773         * modules/unictype/combining-class-tests: New file.
26774         * modules/unictype/ctype-alnum-tests: New file.
26775         * modules/unictype/ctype-alpha-tests: New file.
26776         * modules/unictype/ctype-blank-tests: New file.
26777         * modules/unictype/ctype-cntrl-tests: New file.
26778         * modules/unictype/ctype-digit-tests: New file.
26779         * modules/unictype/ctype-graph-tests: New file.
26780         * modules/unictype/ctype-lower-tests: New file.
26781         * modules/unictype/ctype-print-tests: New file.
26782         * modules/unictype/ctype-punct-tests: New file.
26783         * modules/unictype/ctype-space-tests: New file.
26784         * modules/unictype/ctype-upper-tests: New file.
26785         * modules/unictype/ctype-xdigit-tests: New file.
26786         * modules/unictype/decimal-digit-tests: New file.
26787         * modules/unictype/digit-tests: New file.
26788         * modules/unictype/mirror-tests: New file.
26789         * modules/unictype/numeric-tests: New file.
26790         * modules/unictype/property-alphabetic-tests: New file.
26791         * modules/unictype/property-ascii-hex-digit-tests: New file.
26792         * modules/unictype/property-bidi-arabic-digit-tests: New file.
26793         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
26794         * modules/unictype/property-bidi-block-separator-tests: New file.
26795         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
26796         * modules/unictype/property-bidi-common-separator-tests: New file.
26797         * modules/unictype/property-bidi-control-tests: New file.
26798         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
26799         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
26800         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
26801         * modules/unictype/property-bidi-european-digit-tests: New file.
26802         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
26803         * modules/unictype/property-bidi-left-to-right-tests: New file.
26804         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
26805         * modules/unictype/property-bidi-other-neutral-tests: New file.
26806         * modules/unictype/property-bidi-pdf-tests: New file.
26807         * modules/unictype/property-bidi-segment-separator-tests: New file.
26808         * modules/unictype/property-bidi-whitespace-tests: New file.
26809         * modules/unictype/property-byname-tests: New file.
26810         * modules/unictype/property-combining-tests: New file.
26811         * modules/unictype/property-composite-tests: New file.
26812         * modules/unictype/property-currency-symbol-tests: New file.
26813         * modules/unictype/property-dash-tests: New file.
26814         * modules/unictype/property-decimal-digit-tests: New file.
26815         * modules/unictype/property-default-ignorable-code-point-tests: New file.
26816         * modules/unictype/property-deprecated-tests: New file.
26817         * modules/unictype/property-diacritic-tests: New file.
26818         * modules/unictype/property-extender-tests: New file.
26819         * modules/unictype/property-format-control-tests: New file.
26820         * modules/unictype/property-grapheme-base-tests: New file.
26821         * modules/unictype/property-grapheme-extend-tests: New file.
26822         * modules/unictype/property-grapheme-link-tests: New file.
26823         * modules/unictype/property-hex-digit-tests: New file.
26824         * modules/unictype/property-hyphen-tests: New file.
26825         * modules/unictype/property-id-continue-tests: New file.
26826         * modules/unictype/property-id-start-tests: New file.
26827         * modules/unictype/property-ideographic-tests: New file.
26828         * modules/unictype/property-ids-binary-operator-tests: New file.
26829         * modules/unictype/property-ids-trinary-operator-tests: New file.
26830         * modules/unictype/property-ignorable-control-tests: New file.
26831         * modules/unictype/property-iso-control-tests: New file.
26832         * modules/unictype/property-join-control-tests: New file.
26833         * modules/unictype/property-left-of-pair-tests: New file.
26834         * modules/unictype/property-line-separator-tests: New file.
26835         * modules/unictype/property-logical-order-exception-tests: New file.
26836         * modules/unictype/property-lowercase-tests: New file.
26837         * modules/unictype/property-math-tests: New file.
26838         * modules/unictype/property-non-break-tests: New file.
26839         * modules/unictype/property-not-a-character-tests: New file.
26840         * modules/unictype/property-numeric-tests: New file.
26841         * modules/unictype/property-other-alphabetic-tests: New file.
26842         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
26843         * modules/unictype/property-other-grapheme-extend-tests: New file.
26844         * modules/unictype/property-other-id-continue-tests: New file.
26845         * modules/unictype/property-other-id-start-tests: New file.
26846         * modules/unictype/property-other-lowercase-tests: New file.
26847         * modules/unictype/property-other-math-tests: New file.
26848         * modules/unictype/property-other-uppercase-tests: New file.
26849         * modules/unictype/property-paired-punctuation-tests: New file.
26850         * modules/unictype/property-paragraph-separator-tests: New file.
26851         * modules/unictype/property-pattern-syntax-tests: New file.
26852         * modules/unictype/property-pattern-white-space-tests: New file.
26853         * modules/unictype/property-private-use-tests: New file.
26854         * modules/unictype/property-punctuation-tests: New file.
26855         * modules/unictype/property-quotation-mark-tests: New file.
26856         * modules/unictype/property-radical-tests: New file.
26857         * modules/unictype/property-sentence-terminal-tests: New file.
26858         * modules/unictype/property-soft-dotted-tests: New file.
26859         * modules/unictype/property-space-tests: New file.
26860         * modules/unictype/property-terminal-punctuation-tests: New file.
26861         * modules/unictype/property-test-tests: New file.
26862         * modules/unictype/property-titlecase-tests: New file.
26863         * modules/unictype/property-unassigned-code-value-tests: New file.
26864         * modules/unictype/property-unified-ideograph-tests: New file.
26865         * modules/unictype/property-uppercase-tests: New file.
26866         * modules/unictype/property-variation-selector-tests: New file.
26867         * modules/unictype/property-white-space-tests: New file.
26868         * modules/unictype/property-xid-continue-tests: New file.
26869         * modules/unictype/property-xid-start-tests: New file.
26870         * modules/unictype/property-zero-width-tests: New file.
26871         * modules/unictype/scripts-tests: New file.
26872         * modules/unictype/syntax-c-ident-tests: New file.
26873         * modules/unictype/syntax-c-whitespace-tests: New file.
26874         * modules/unictype/syntax-java-ident-tests: New file.
26875         * modules/unictype/syntax-java-whitespace-tests: New file.
26876         * tests/unictype/test-bidi_byname.c: New file.
26877         * tests/unictype/test-bidi_name.c: New file.
26878         * tests/unictype/test-bidi_of.c: New file.
26879         * tests/unictype/test-bidi_test.c: New file.
26880         * tests/unictype/test-block_list.c: New file.
26881         * tests/unictype/test-block_of.c: New file.
26882         * tests/unictype/test-block_test.c: New file.
26883         * tests/unictype/test-categ_and.c: New file.
26884         * tests/unictype/test-categ_and_not.c: New file.
26885         * tests/unictype/test-categ_byname.c: New file.
26886         * tests/unictype/test-categ_name.c: New file.
26887         * tests/unictype/test-categ_none.c: New file.
26888         * tests/unictype/test-categ_of.c: New file.
26889         * tests/unictype/test-categ_or.c: New file.
26890         * tests/unictype/test-categ_test_withtable.c: New file.
26891         * tests/unictype/test-combining.c: New file.
26892         * tests/unictype/test-decdigit.c: New file.
26893         * tests/unictype/test-digit.c: New file.
26894         * tests/unictype/test-mirror.c: New file.
26895         * tests/unictype/test-numeric.c: New file.
26896         * tests/unictype/test-pr_byname.c: New file.
26897         * tests/unictype/test-pr_test.c: New file.
26898         * tests/unictype/test-predicate-part1.h: New file.
26899         * tests/unictype/test-predicate-part2.h: New file.
26900         * tests/unictype/test-scripts.c: New file.
26901         * tests/unictype/test-sy_c_ident.c: New file.
26902         * tests/unictype/test-sy_java_ident.c: New file.
26903
26904         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
26905         for Unicode 5.0.0.
26906         * tests/unictype/test-categ_Cc.c: Likewise.
26907         * tests/unictype/test-categ_Cf.c: Likewise.
26908         * tests/unictype/test-categ_Cn.c: Likewise.
26909         * tests/unictype/test-categ_Co.c: Likewise.
26910         * tests/unictype/test-categ_Cs.c: Likewise.
26911         * tests/unictype/test-categ_L.c: Likewise.
26912         * tests/unictype/test-categ_Ll.c: Likewise.
26913         * tests/unictype/test-categ_Lm.c: Likewise.
26914         * tests/unictype/test-categ_Lo.c: Likewise.
26915         * tests/unictype/test-categ_Lt.c: Likewise.
26916         * tests/unictype/test-categ_Lu.c: Likewise.
26917         * tests/unictype/test-categ_M.c: Likewise.
26918         * tests/unictype/test-categ_Mc.c: Likewise.
26919         * tests/unictype/test-categ_Me.c: Likewise.
26920         * tests/unictype/test-categ_Mn.c: Likewise.
26921         * tests/unictype/test-categ_N.c: Likewise.
26922         * tests/unictype/test-categ_Nd.c: Likewise.
26923         * tests/unictype/test-categ_Nl.c: Likewise.
26924         * tests/unictype/test-categ_No.c: Likewise.
26925         * tests/unictype/test-categ_P.c: Likewise.
26926         * tests/unictype/test-categ_Pc.c: Likewise.
26927         * tests/unictype/test-categ_Pd.c: Likewise.
26928         * tests/unictype/test-categ_Pe.c: Likewise.
26929         * tests/unictype/test-categ_Pf.c: Likewise.
26930         * tests/unictype/test-categ_Pi.c: Likewise.
26931         * tests/unictype/test-categ_Po.c: Likewise.
26932         * tests/unictype/test-categ_Ps.c: Likewise.
26933         * tests/unictype/test-categ_S.c: Likewise.
26934         * tests/unictype/test-categ_Sc.c: Likewise.
26935         * tests/unictype/test-categ_Sk.c: Likewise.
26936         * tests/unictype/test-categ_Sm.c: Likewise.
26937         * tests/unictype/test-categ_So.c: Likewise.
26938         * tests/unictype/test-categ_Z.c: Likewise.
26939         * tests/unictype/test-categ_Zl.c: Likewise.
26940         * tests/unictype/test-categ_Zp.c: Likewise.
26941         * tests/unictype/test-categ_Zs.c: Likewise.
26942         * tests/unictype/test-ctype_alnum.c: Likewise.
26943         * tests/unictype/test-ctype_alpha.c: Likewise.
26944         * tests/unictype/test-ctype_blank.c: Likewise.
26945         * tests/unictype/test-ctype_cntrl.c: Likewise.
26946         * tests/unictype/test-ctype_digit.c: Likewise.
26947         * tests/unictype/test-ctype_graph.c: Likewise.
26948         * tests/unictype/test-ctype_lower.c: Likewise.
26949         * tests/unictype/test-ctype_print.c: Likewise.
26950         * tests/unictype/test-ctype_punct.c: Likewise.
26951         * tests/unictype/test-ctype_space.c: Likewise.
26952         * tests/unictype/test-ctype_upper.c: Likewise.
26953         * tests/unictype/test-ctype_xdigit.c: Likewise.
26954         * tests/unictype/test-decdigit.h: Likewise.
26955         * tests/unictype/test-digit.h: Likewise.
26956         * tests/unictype/test-numeric.h: Likewise.
26957         * tests/unictype/test-pr_alphabetic.c: Likewise.
26958         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
26959         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26960         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
26961         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
26962         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
26963         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
26964         * tests/unictype/test-pr_bidi_control.c: Likewise.
26965         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
26966         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
26967         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26968         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
26969         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26970         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26971         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26972         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26973         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
26974         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
26975         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
26976         * tests/unictype/test-pr_combining.c: Likewise.
26977         * tests/unictype/test-pr_composite.c: Likewise.
26978         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26979         * tests/unictype/test-pr_dash.c: Likewise.
26980         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26981         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
26982         * tests/unictype/test-pr_deprecated.c: Likewise.
26983         * tests/unictype/test-pr_diacritic.c: Likewise.
26984         * tests/unictype/test-pr_extender.c: Likewise.
26985         * tests/unictype/test-pr_format_control.c: Likewise.
26986         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26987         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26988         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26989         * tests/unictype/test-pr_hex_digit.c: Likewise.
26990         * tests/unictype/test-pr_hyphen.c: Likewise.
26991         * tests/unictype/test-pr_id_continue.c: Likewise.
26992         * tests/unictype/test-pr_id_start.c: Likewise.
26993         * tests/unictype/test-pr_ideographic.c: Likewise.
26994         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
26995         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
26996         * tests/unictype/test-pr_ignorable_control.c: Likewise.
26997         * tests/unictype/test-pr_iso_control.c: Likewise.
26998         * tests/unictype/test-pr_join_control.c: Likewise.
26999         * tests/unictype/test-pr_left_of_pair.c: Likewise.
27000         * tests/unictype/test-pr_line_separator.c: Likewise.
27001         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27002         * tests/unictype/test-pr_lowercase.c: Likewise.
27003         * tests/unictype/test-pr_math.c: Likewise.
27004         * tests/unictype/test-pr_non_break.c: Likewise.
27005         * tests/unictype/test-pr_not_a_character.c: Likewise.
27006         * tests/unictype/test-pr_numeric.c: Likewise.
27007         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27008         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
27009         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
27010         * tests/unictype/test-pr_other_id_continue.c: Likewise.
27011         * tests/unictype/test-pr_other_id_start.c: Likewise.
27012         * tests/unictype/test-pr_other_lowercase.c: Likewise.
27013         * tests/unictype/test-pr_other_math.c: Likewise.
27014         * tests/unictype/test-pr_other_uppercase.c: Likewise.
27015         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
27016         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
27017         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
27018         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
27019         * tests/unictype/test-pr_private_use.c: Likewise.
27020         * tests/unictype/test-pr_punctuation.c: Likewise.
27021         * tests/unictype/test-pr_quotation_mark.c: Likewise.
27022         * tests/unictype/test-pr_radical.c: Likewise.
27023         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27024         * tests/unictype/test-pr_soft_dotted.c: Likewise.
27025         * tests/unictype/test-pr_space.c: Likewise.
27026         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27027         * tests/unictype/test-pr_titlecase.c: Likewise.
27028         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27029         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27030         * tests/unictype/test-pr_uppercase.c: Likewise.
27031         * tests/unictype/test-pr_variation_selector.c: Likewise.
27032         * tests/unictype/test-pr_white_space.c: Likewise.
27033         * tests/unictype/test-pr_xid_continue.c: Likewise.
27034         * tests/unictype/test-pr_xid_start.c: Likewise.
27035         * tests/unictype/test-pr_zero_width.c: Likewise.
27036         * tests/unictype/test-sy_c_whitespace.c: Likewise.
27037         * tests/unictype/test-sy_java_whitespace.c: Likewise.
27038
27039 2007-11-12  Bruno Haible  <bruno@clisp.org>
27040
27041         Unicode character classification functions.
27042         * lib/unictype.h: New file.
27043         * modules/unictype/base: New file.
27044         * modules/unictype/category-L: New file.
27045         * modules/unictype/category-Lu: New file.
27046         * modules/unictype/category-Ll: New file.
27047         * modules/unictype/category-Lt: New file.
27048         * modules/unictype/category-Lm: New file.
27049         * modules/unictype/category-Lo: New file.
27050         * modules/unictype/category-M: New file.
27051         * modules/unictype/category-Mn: New file.
27052         * modules/unictype/category-Mc: New file.
27053         * modules/unictype/category-Me: New file.
27054         * modules/unictype/category-N: New file.
27055         * modules/unictype/category-Nd: New file.
27056         * modules/unictype/category-Nl: New file.
27057         * modules/unictype/category-No: New file.
27058         * modules/unictype/category-P: New file.
27059         * modules/unictype/category-Pc: New file.
27060         * modules/unictype/category-Pd: New file.
27061         * modules/unictype/category-Ps: New file.
27062         * modules/unictype/category-Pe: New file.
27063         * modules/unictype/category-Pi: New file.
27064         * modules/unictype/category-Pf: New file.
27065         * modules/unictype/category-Po: New file.
27066         * modules/unictype/category-S: New file.
27067         * modules/unictype/category-Sm: New file.
27068         * modules/unictype/category-Sc: New file.
27069         * modules/unictype/category-Sk: New file.
27070         * modules/unictype/category-So: New file.
27071         * modules/unictype/category-Z: New file.
27072         * modules/unictype/category-Zs: New file.
27073         * modules/unictype/category-Zl: New file.
27074         * modules/unictype/category-Zp: New file.
27075         * modules/unictype/category-C: New file.
27076         * modules/unictype/category-Cc: New file.
27077         * modules/unictype/category-Cf: New file.
27078         * modules/unictype/category-Cs: New file.
27079         * modules/unictype/category-Co: New file.
27080         * modules/unictype/category-Cn: New file.
27081         * modules/unictype/category-or: New file.
27082         * modules/unictype/category-of: New file.
27083         * modules/unictype/category-test: New file.
27084         * modules/unictype/category-test-withtable: New file.
27085         * modules/unictype/category-byname: New file.
27086         * modules/unictype/category-none: New file.
27087         * modules/unictype/category-and: New file.
27088         * modules/unictype/category-and-not: New file.
27089         * modules/unictype/category-name: New file.
27090         * modules/unictype/combining-class: New file.
27091         * modules/unictype/category-all: New file.
27092         * modules/unictype/bidicategory-all: New file.
27093         * modules/unictype/bidicategory-byname: New file.
27094         * modules/unictype/bidicategory-name: New file.
27095         * modules/unictype/bidicategory-of: New file.
27096         * modules/unictype/bidicategory-test: New file.
27097         * modules/unictype/decimal-digit: New file.
27098         * modules/unictype/digit: New file.
27099         * modules/unictype/numeric: New file.
27100         * modules/unictype/mirror: New file.
27101         * modules/unictype/property-white-space: New file.
27102         * modules/unictype/property-alphabetic: New file.
27103         * modules/unictype/property-other-alphabetic: New file.
27104         * modules/unictype/property-not-a-character: New file.
27105         * modules/unictype/property-default-ignorable-code-point: New file.
27106         * modules/unictype/property-other-default-ignorable-code-point: New
27107         file.
27108         * modules/unictype/property-deprecated: New file.
27109         * modules/unictype/property-logical-order-exception: New file.
27110         * modules/unictype/property-variation-selector: New file.
27111         * modules/unictype/property-private-use: New file.
27112         * modules/unictype/property-unassigned-code-value: New file.
27113         * modules/unictype/property-uppercase: New file.
27114         * modules/unictype/property-other-uppercase: New file.
27115         * modules/unictype/property-lowercase: New file.
27116         * modules/unictype/property-other-lowercase: New file.
27117         * modules/unictype/property-titlecase: New file.
27118         * modules/unictype/property-soft-dotted: New file.
27119         * modules/unictype/property-id-start: New file.
27120         * modules/unictype/property-other-id-start: New file.
27121         * modules/unictype/property-id-continue: New file.
27122         * modules/unictype/property-other-id-continue: New file.
27123         * modules/unictype/property-xid-start: New file.
27124         * modules/unictype/property-xid-continue: New file.
27125         * modules/unictype/property-pattern-white-space: New file.
27126         * modules/unictype/property-pattern-syntax: New file.
27127         * modules/unictype/property-join-control: New file.
27128         * modules/unictype/property-grapheme-base: New file.
27129         * modules/unictype/property-grapheme-extend: New file.
27130         * modules/unictype/property-other-grapheme-extend: New file.
27131         * modules/unictype/property-grapheme-link: New file.
27132         * modules/unictype/property-bidi-control: New file.
27133         * modules/unictype/property-bidi-left-to-right: New file.
27134         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
27135         * modules/unictype/property-bidi-arabic-right-to-left: New file.
27136         * modules/unictype/property-bidi-european-digit: New file.
27137         * modules/unictype/property-bidi-eur-num-separator: New file.
27138         * modules/unictype/property-bidi-eur-num-terminator: New file.
27139         * modules/unictype/property-bidi-arabic-digit: New file.
27140         * modules/unictype/property-bidi-common-separator: New file.
27141         * modules/unictype/property-bidi-block-separator: New file.
27142         * modules/unictype/property-bidi-segment-separator: New file.
27143         * modules/unictype/property-bidi-whitespace: New file.
27144         * modules/unictype/property-bidi-non-spacing-mark: New file.
27145         * modules/unictype/property-bidi-boundary-neutral: New file.
27146         * modules/unictype/property-bidi-pdf: New file.
27147         * modules/unictype/property-bidi-embedding-or-override: New file.
27148         * modules/unictype/property-bidi-other-neutral: New file.
27149         * modules/unictype/property-hex-digit: New file.
27150         * modules/unictype/property-ascii-hex-digit: New file.
27151         * modules/unictype/property-ideographic: New file.
27152         * modules/unictype/property-unified-ideograph: New file.
27153         * modules/unictype/property-radical: New file.
27154         * modules/unictype/property-ids-binary-operator: New file.
27155         * modules/unictype/property-ids-trinary-operator: New file.
27156         * modules/unictype/property-zero-width: New file.
27157         * modules/unictype/property-space: New file.
27158         * modules/unictype/property-non-break: New file.
27159         * modules/unictype/property-iso-control: New file.
27160         * modules/unictype/property-format-control: New file.
27161         * modules/unictype/property-dash: New file.
27162         * modules/unictype/property-hyphen: New file.
27163         * modules/unictype/property-punctuation: New file.
27164         * modules/unictype/property-line-separator: New file.
27165         * modules/unictype/property-paragraph-separator: New file.
27166         * modules/unictype/property-quotation-mark: New file.
27167         * modules/unictype/property-sentence-terminal: New file.
27168         * modules/unictype/property-terminal-punctuation: New file.
27169         * modules/unictype/property-currency-symbol: New file.
27170         * modules/unictype/property-math: New file.
27171         * modules/unictype/property-other-math: New file.
27172         * modules/unictype/property-paired-punctuation: New file.
27173         * modules/unictype/property-left-of-pair: New file.
27174         * modules/unictype/property-combining: New file.
27175         * modules/unictype/property-composite: New file.
27176         * modules/unictype/property-decimal-digit: New file.
27177         * modules/unictype/property-numeric: New file.
27178         * modules/unictype/property-diacritic: New file.
27179         * modules/unictype/property-extender: New file.
27180         * modules/unictype/property-ignorable-control: New file.
27181         * modules/unictype/property-test: New file.
27182         * modules/unictype/property-byname: New file.
27183         * modules/unictype/property-all: New file.
27184         * modules/unictype/scripts: New file.
27185         * modules/unictype/scripts-all: New file.
27186         * modules/unictype/block-of: New file.
27187         * modules/unictype/block-test: New file.
27188         * modules/unictype/block-list: New file.
27189         * modules/unictype/block-all: New file.
27190         * modules/unictype/syntax-c-whitespace: New file.
27191         * modules/unictype/syntax-java-whitespace: New file.
27192         * modules/unictype/syntax-c-ident: New file.
27193         * modules/unictype/syntax-java-ident: New file.
27194         * modules/unictype/ctype-alnum: New file.
27195         * modules/unictype/ctype-alpha: New file.
27196         * modules/unictype/ctype-cntrl: New file.
27197         * modules/unictype/ctype-digit: New file.
27198         * modules/unictype/ctype-graph: New file.
27199         * modules/unictype/ctype-lower: New file.
27200         * modules/unictype/ctype-print: New file.
27201         * modules/unictype/ctype-punct: New file.
27202         * modules/unictype/ctype-space: New file.
27203         * modules/unictype/ctype-upper: New file.
27204         * modules/unictype/ctype-xdigit: New file.
27205         * modules/unictype/ctype-blank: New file.
27206         * lib/unictype/bidi_byname.c: New file.
27207         * lib/unictype/bidi_name.c: New file.
27208         * lib/unictype/bidi_of.c: New file.
27209         * lib/unictype/bidi_test.c: New file.
27210         * lib/unictype/bitmap.h: New file.
27211         * lib/unictype/block_test.c: New file.
27212         * lib/unictype/blocks.c: New file.
27213         * lib/unictype/categ_C.c: New file.
27214         * lib/unictype/categ_Cc.c: New file.
27215         * lib/unictype/categ_Cf.c: New file.
27216         * lib/unictype/categ_Cn.c: New file.
27217         * lib/unictype/categ_Co.c: New file.
27218         * lib/unictype/categ_Cs.c: New file.
27219         * lib/unictype/categ_L.c: New file.
27220         * lib/unictype/categ_Ll.c: New file.
27221         * lib/unictype/categ_Lm.c: New file.
27222         * lib/unictype/categ_Lo.c: New file.
27223         * lib/unictype/categ_Lt.c: New file.
27224         * lib/unictype/categ_Lu.c: New file.
27225         * lib/unictype/categ_M.c: New file.
27226         * lib/unictype/categ_Mc.c: New file.
27227         * lib/unictype/categ_Me.c: New file.
27228         * lib/unictype/categ_Mn.c: New file.
27229         * lib/unictype/categ_N.c: New file.
27230         * lib/unictype/categ_Nd.c: New file.
27231         * lib/unictype/categ_Nl.c: New file.
27232         * lib/unictype/categ_No.c: New file.
27233         * lib/unictype/categ_P.c: New file.
27234         * lib/unictype/categ_Pc.c: New file.
27235         * lib/unictype/categ_Pd.c: New file.
27236         * lib/unictype/categ_Pe.c: New file.
27237         * lib/unictype/categ_Pf.c: New file.
27238         * lib/unictype/categ_Pi.c: New file.
27239         * lib/unictype/categ_Po.c: New file.
27240         * lib/unictype/categ_Ps.c: New file.
27241         * lib/unictype/categ_S.c: New file.
27242         * lib/unictype/categ_Sc.c: New file.
27243         * lib/unictype/categ_Sk.c: New file.
27244         * lib/unictype/categ_Sm.c: New file.
27245         * lib/unictype/categ_So.c: New file.
27246         * lib/unictype/categ_Z.c: New file.
27247         * lib/unictype/categ_Zl.c: New file.
27248         * lib/unictype/categ_Zp.c: New file.
27249         * lib/unictype/categ_Zs.c: New file.
27250         * lib/unictype/categ_and.c: New file.
27251         * lib/unictype/categ_and_not.c: New file.
27252         * lib/unictype/categ_byname.c: New file.
27253         * lib/unictype/categ_name.c: New file.
27254         * lib/unictype/categ_none.c: New file.
27255         * lib/unictype/categ_of.c: New file.
27256         * lib/unictype/categ_or.c: New file.
27257         * lib/unictype/categ_test.c: New file.
27258         * lib/unictype/combining.c: New file.
27259         * lib/unictype/ctype_alnum.c: New file.
27260         * lib/unictype/ctype_alpha.c: New file.
27261         * lib/unictype/ctype_blank.c: New file.
27262         * lib/unictype/ctype_cntrl.c: New file.
27263         * lib/unictype/ctype_digit.c: New file.
27264         * lib/unictype/ctype_graph.c: New file.
27265         * lib/unictype/ctype_lower.c: New file.
27266         * lib/unictype/ctype_print.c: New file.
27267         * lib/unictype/ctype_punct.c: New file.
27268         * lib/unictype/ctype_space.c: New file.
27269         * lib/unictype/ctype_upper.c: New file.
27270         * lib/unictype/ctype_xdigit.c: New file.
27271         * lib/unictype/decdigit.c: New file.
27272         * lib/unictype/digit.c: New file.
27273         * lib/unictype/identsyntaxmap.h: New file.
27274         * lib/unictype/mirror.c: New file.
27275         * lib/unictype/numeric.c: New file.
27276         * lib/unictype/pr_alphabetic.c: New file.
27277         * lib/unictype/pr_ascii_hex_digit.c: New file.
27278         * lib/unictype/pr_bidi_arabic_digit.c: New file.
27279         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
27280         * lib/unictype/pr_bidi_block_separator.c: New file.
27281         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
27282         * lib/unictype/pr_bidi_common_separator.c: New file.
27283         * lib/unictype/pr_bidi_control.c: New file.
27284         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
27285         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
27286         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
27287         * lib/unictype/pr_bidi_european_digit.c: New file.
27288         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
27289         * lib/unictype/pr_bidi_left_to_right.c: New file.
27290         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
27291         * lib/unictype/pr_bidi_other_neutral.c: New file.
27292         * lib/unictype/pr_bidi_pdf.c: New file.
27293         * lib/unictype/pr_bidi_segment_separator.c: New file.
27294         * lib/unictype/pr_bidi_whitespace.c: New file.
27295         * lib/unictype/pr_byname.c: New file.
27296         * lib/unictype/pr_byname.gperf: New file.
27297         * lib/unictype/pr_combining.c: New file.
27298         * lib/unictype/pr_composite.c: New file.
27299         * lib/unictype/pr_currency_symbol.c: New file.
27300         * lib/unictype/pr_dash.c: New file.
27301         * lib/unictype/pr_decimal_digit.c: New file.
27302         * lib/unictype/pr_default_ignorable_code_point.c: New file.
27303         * lib/unictype/pr_deprecated.c: New file.
27304         * lib/unictype/pr_diacritic.c: New file.
27305         * lib/unictype/pr_extender.c: New file.
27306         * lib/unictype/pr_format_control.c: New file.
27307         * lib/unictype/pr_grapheme_base.c: New file.
27308         * lib/unictype/pr_grapheme_extend.c: New file.
27309         * lib/unictype/pr_grapheme_link.c: New file.
27310         * lib/unictype/pr_hex_digit.c: New file.
27311         * lib/unictype/pr_hyphen.c: New file.
27312         * lib/unictype/pr_id_continue.c: New file.
27313         * lib/unictype/pr_id_start.c: New file.
27314         * lib/unictype/pr_ideographic.c: New file.
27315         * lib/unictype/pr_ids_binary_operator.c: New file.
27316         * lib/unictype/pr_ids_trinary_operator.c: New file.
27317         * lib/unictype/pr_ignorable_control.c: New file.
27318         * lib/unictype/pr_iso_control.c: New file.
27319         * lib/unictype/pr_join_control.c: New file.
27320         * lib/unictype/pr_left_of_pair.c: New file.
27321         * lib/unictype/pr_line_separator.c: New file.
27322         * lib/unictype/pr_logical_order_exception.c: New file.
27323         * lib/unictype/pr_lowercase.c: New file.
27324         * lib/unictype/pr_math.c: New file.
27325         * lib/unictype/pr_non_break.c: New file.
27326         * lib/unictype/pr_not_a_character.c: New file.
27327         * lib/unictype/pr_numeric.c: New file.
27328         * lib/unictype/pr_other_alphabetic.c: New file.
27329         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
27330         * lib/unictype/pr_other_grapheme_extend.c: New file.
27331         * lib/unictype/pr_other_id_continue.c: New file.
27332         * lib/unictype/pr_other_id_start.c: New file.
27333         * lib/unictype/pr_other_lowercase.c: New file.
27334         * lib/unictype/pr_other_math.c: New file.
27335         * lib/unictype/pr_other_uppercase.c: New file.
27336         * lib/unictype/pr_paired_punctuation.c: New file.
27337         * lib/unictype/pr_paragraph_separator.c: New file.
27338         * lib/unictype/pr_pattern_syntax.c: New file.
27339         * lib/unictype/pr_pattern_white_space.c: New file.
27340         * lib/unictype/pr_private_use.c: New file.
27341         * lib/unictype/pr_punctuation.c: New file.
27342         * lib/unictype/pr_quotation_mark.c: New file.
27343         * lib/unictype/pr_radical.c: New file.
27344         * lib/unictype/pr_sentence_terminal.c: New file.
27345         * lib/unictype/pr_soft_dotted.c: New file.
27346         * lib/unictype/pr_space.c: New file.
27347         * lib/unictype/pr_terminal_punctuation.c: New file.
27348         * lib/unictype/pr_test.c: New file.
27349         * lib/unictype/pr_titlecase.c: New file.
27350         * lib/unictype/pr_unassigned_code_value.c: New file.
27351         * lib/unictype/pr_unified_ideograph.c: New file.
27352         * lib/unictype/pr_uppercase.c: New file.
27353         * lib/unictype/pr_variation_selector.c: New file.
27354         * lib/unictype/pr_white_space.c: New file.
27355         * lib/unictype/pr_xid_continue.c: New file.
27356         * lib/unictype/pr_xid_start.c: New file.
27357         * lib/unictype/pr_zero_width.c: New file.
27358         * lib/unictype/scripts.c: New file.
27359         * lib/unictype/sy_c_ident.c: New file.
27360         * lib/unictype/sy_c_whitespace.c: New file.
27361         * lib/unictype/sy_java_ident.c: New file.
27362         * lib/unictype/sy_java_whitespace.c: New file.
27363
27364         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
27365         Unicode 5.0.0.
27366         * lib/unictype/blocks.h: Likewise.
27367         * lib/unictype/categ_C.h: Likewise.
27368         * lib/unictype/categ_Cc.h: Likewise.
27369         * lib/unictype/categ_Cf.h: Likewise.
27370         * lib/unictype/categ_Cn.h: Likewise.
27371         * lib/unictype/categ_Co.h: Likewise.
27372         * lib/unictype/categ_Cs.h: Likewise.
27373         * lib/unictype/categ_L.h: Likewise.
27374         * lib/unictype/categ_Ll.h: Likewise.
27375         * lib/unictype/categ_Lm.h: Likewise.
27376         * lib/unictype/categ_Lo.h: Likewise.
27377         * lib/unictype/categ_Lt.h: Likewise.
27378         * lib/unictype/categ_Lu.h: Likewise.
27379         * lib/unictype/categ_M.h: Likewise.
27380         * lib/unictype/categ_Mc.h: Likewise.
27381         * lib/unictype/categ_Me.h: Likewise.
27382         * lib/unictype/categ_Mn.h: Likewise.
27383         * lib/unictype/categ_N.h: Likewise.
27384         * lib/unictype/categ_Nd.h: Likewise.
27385         * lib/unictype/categ_Nl.h: Likewise.
27386         * lib/unictype/categ_No.h: Likewise.
27387         * lib/unictype/categ_P.h: Likewise.
27388         * lib/unictype/categ_Pc.h: Likewise.
27389         * lib/unictype/categ_Pd.h: Likewise.
27390         * lib/unictype/categ_Pe.h: Likewise.
27391         * lib/unictype/categ_Pf.h: Likewise.
27392         * lib/unictype/categ_Pi.h: Likewise.
27393         * lib/unictype/categ_Po.h: Likewise.
27394         * lib/unictype/categ_Ps.h: Likewise.
27395         * lib/unictype/categ_S.h: Likewise.
27396         * lib/unictype/categ_Sc.h: Likewise.
27397         * lib/unictype/categ_Sk.h: Likewise.
27398         * lib/unictype/categ_Sm.h: Likewise.
27399         * lib/unictype/categ_So.h: Likewise.
27400         * lib/unictype/categ_Z.h: Likewise.
27401         * lib/unictype/categ_Zl.h: Likewise.
27402         * lib/unictype/categ_Zp.h: Likewise.
27403         * lib/unictype/categ_Zs.h: Likewise.
27404         * lib/unictype/categ_of.h: Likewise.
27405         * lib/unictype/combining.h: Likewise.
27406         * lib/unictype/ctype_alnum.h: Likewise.
27407         * lib/unictype/ctype_alpha.h: Likewise.
27408         * lib/unictype/ctype_blank.h: Likewise.
27409         * lib/unictype/ctype_cntrl.h: Likewise.
27410         * lib/unictype/ctype_digit.h: Likewise.
27411         * lib/unictype/ctype_graph.h: Likewise.
27412         * lib/unictype/ctype_lower.h: Likewise.
27413         * lib/unictype/ctype_print.h: Likewise.
27414         * lib/unictype/ctype_punct.h: Likewise.
27415         * lib/unictype/ctype_space.h: Likewise.
27416         * lib/unictype/ctype_upper.h: Likewise.
27417         * lib/unictype/ctype_xdigit.h: Likewise.
27418         * lib/unictype/decdigit.h: Likewise.
27419         * lib/unictype/digit.h: Likewise.
27420         * lib/unictype/mirror.h: Likewise.
27421         * lib/unictype/numeric.h: Likewise.
27422         * lib/unictype/pr_alphabetic.h: Likewise.
27423         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27424         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
27425         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
27426         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27427         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27428         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27429         * lib/unictype/pr_bidi_control.h: Likewise.
27430         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27431         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27432         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
27433         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27434         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
27435         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
27436         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
27437         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
27438         * lib/unictype/pr_bidi_pdf.h: Likewise.
27439         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27440         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27441         * lib/unictype/pr_combining.h: Likewise.
27442         * lib/unictype/pr_composite.h: Likewise.
27443         * lib/unictype/pr_currency_symbol.h: Likewise.
27444         * lib/unictype/pr_dash.h: Likewise.
27445         * lib/unictype/pr_decimal_digit.h: Likewise.
27446         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27447         * lib/unictype/pr_deprecated.h: Likewise.
27448         * lib/unictype/pr_diacritic.h: Likewise.
27449         * lib/unictype/pr_extender.h: Likewise.
27450         * lib/unictype/pr_format_control.h: Likewise.
27451         * lib/unictype/pr_grapheme_base.h: Likewise.
27452         * lib/unictype/pr_grapheme_extend.h: Likewise.
27453         * lib/unictype/pr_grapheme_link.h: Likewise.
27454         * lib/unictype/pr_hex_digit.h: Likewise.
27455         * lib/unictype/pr_hyphen.h: Likewise.
27456         * lib/unictype/pr_id_continue.h: Likewise.
27457         * lib/unictype/pr_id_start.h: Likewise.
27458         * lib/unictype/pr_ideographic.h: Likewise.
27459         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27460         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27461         * lib/unictype/pr_ignorable_control.h: Likewise.
27462         * lib/unictype/pr_iso_control.h: Likewise.
27463         * lib/unictype/pr_join_control.h: Likewise.
27464         * lib/unictype/pr_left_of_pair.h: Likewise.
27465         * lib/unictype/pr_line_separator.h: Likewise.
27466         * lib/unictype/pr_logical_order_exception.h: Likewise.
27467         * lib/unictype/pr_lowercase.h: Likewise.
27468         * lib/unictype/pr_math.h: Likewise.
27469         * lib/unictype/pr_non_break.h: Likewise.
27470         * lib/unictype/pr_not_a_character.h: Likewise.
27471         * lib/unictype/pr_numeric.h: Likewise.
27472         * lib/unictype/pr_other_alphabetic.h: Likewise.
27473         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27474         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27475         * lib/unictype/pr_other_id_continue.h: Likewise.
27476         * lib/unictype/pr_other_id_start.h: Likewise.
27477         * lib/unictype/pr_other_lowercase.h: Likewise.
27478         * lib/unictype/pr_other_math.h: Likewise.
27479         * lib/unictype/pr_other_uppercase.h: Likewise.
27480         * lib/unictype/pr_paired_punctuation.h: Likewise.
27481         * lib/unictype/pr_paragraph_separator.h: Likewise.
27482         * lib/unictype/pr_pattern_syntax.h: Likewise.
27483         * lib/unictype/pr_pattern_white_space.h: Likewise.
27484         * lib/unictype/pr_private_use.h: Likewise.
27485         * lib/unictype/pr_punctuation.h: Likewise.
27486         * lib/unictype/pr_quotation_mark.h: Likewise.
27487         * lib/unictype/pr_radical.h: Likewise.
27488         * lib/unictype/pr_sentence_terminal.h: Likewise.
27489         * lib/unictype/pr_soft_dotted.h: Likewise.
27490         * lib/unictype/pr_space.h: Likewise.
27491         * lib/unictype/pr_terminal_punctuation.h: Likewise.
27492         * lib/unictype/pr_titlecase.h: Likewise.
27493         * lib/unictype/pr_unassigned_code_value.h: Likewise.
27494         * lib/unictype/pr_unified_ideograph.h: Likewise.
27495         * lib/unictype/pr_uppercase.h: Likewise.
27496         * lib/unictype/pr_variation_selector.h: Likewise.
27497         * lib/unictype/pr_white_space.h: Likewise.
27498         * lib/unictype/pr_xid_continue.h: Likewise.
27499         * lib/unictype/pr_xid_start.h: Likewise.
27500         * lib/unictype/pr_zero_width.h: Likewise.
27501         * lib/unictype/scripts.h: Likewise.
27502         * lib/unictype/scripts_byname.gperf: Likewise.
27503         * lib/unictype/sy_c_ident.h: Likewise.
27504         * lib/unictype/sy_c_whitespace.h: Likewise.
27505         * lib/unictype/sy_java_ident.h: Likewise.
27506         * lib/unictype/sy_java_whitespace.h: Likewise.
27507
27508         * lib/unictype/Makefile: New file.
27509         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
27510         glibc.
27511         * lib/unictype/3level.h: New file, copied from glibc.
27512         * lib/unictype/3levelbit.h: New file.
27513
27514 2007-11-11  Bruno Haible  <bruno@clisp.org>
27515
27516         * modules/gperf: New file.
27517         * modules/iconv_open (Depends-on): Add it.
27518         (Makefile.am): Remove the GPERF definition.
27519
27520 2007-11-11  Bruno Haible  <bruno@clisp.org>
27521
27522         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
27523         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
27524
27525 2007-11-11  Bruno Haible  <bruno@clisp.org>
27526
27527         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
27528         (usage): Remove function.
27529
27530 2007-11-11  Bruno Haible  <bruno@clisp.org>
27531
27532         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
27533         gl_FUNC_CEILF_LIBS.
27534         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
27535         gl_FUNC_CEIL_LIBS.
27536         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
27537         gl_FUNC_CEILL_LIBS.
27538         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
27539         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
27540         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
27541
27542 2007-11-11  Bruno Haible  <bruno@clisp.org>
27543
27544         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
27545         roundf were declared but do not exist on functions.
27546         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
27547         roundl were declared but do not exist on functions.
27548         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
27549         HAVE_FLOORL_AND_CEILL, respectively.
27550         Needed for Sun C on Solaris 10.
27551
27552 2007-11-11  Bruno Haible  <bruno@clisp.org>
27553
27554         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
27555         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
27556         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
27557         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
27558         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
27559         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
27560         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
27561         HAVE_DECL_ROUNDF.
27562         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
27563         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
27564         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
27565         of HAVE_DECL_ROUND*.
27566         * modules/math (Makefile.am): Update.
27567
27568 2007-11-10  Bruno Haible  <bruno@clisp.org>
27569
27570         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
27571         ptrdiff_t as m4/intl.m4.
27572
27573 2007-11-10  Jim Meyering  <meyering@redhat.com>
27574
27575         Avoid link failure for the argmatch test.
27576         * tests/test-argmatch.c (usage): Define function to avoid a link
27577         failure: argmatch_die requires a usage function.
27578
27579 2007-11-09  Bruno Haible  <bruno@clisp.org>
27580
27581         * doc/functions/snprintf.texi: Mention BeOS deficiency.
27582         * doc/functions/vsnprintf.texi: Likewise.
27583         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
27584         with a size argument < 2.
27585
27586 2007-11-09  Bruno Haible  <bruno@clisp.org>
27587
27588         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
27589         buffer. Fixes an inefficiency introduced on 2007-11-03.
27590
27591 2007-11-09  Bruno Haible  <bruno@clisp.org>
27592
27593         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
27594         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
27595
27596 2007-11-08  Jim Meyering  <meyering@redhat.com>
27597
27598         Change cache variable name prefix "jm_" to "gl_" everywhere.
27599         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
27600         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
27601         * m4/uptime.m4: s/gl_/jm_/
27602
27603 2007-11-07  Bruno Haible  <bruno@clisp.org>
27604
27605         Update to GNU gettext 0.17.
27606         * m4/intl.m4: Update to GNU gettext 0.17.
27607         * m4/po.m4: Likewise.
27608         * modules/gettext (Files): Remove m4/ulonglong.m4.
27609         (configure.ac): Require gettext infrastructure from version 0.17.
27610
27611 2007-11-06  Bruno Haible  <bruno@clisp.org>
27612
27613         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
27614         symbolic values are not defined in a public header.
27615         * lib/freadable.c (freadable) [QNX]: Likewise.
27616         * lib/freadahead.c (freadahead) [QNX]: Likewise.
27617         * lib/freading.c (freading) [QNX]: Likewise.
27618         * lib/fseterr.c (fseterr) [QNX]: Likewise.
27619         * lib/fwritable.c (fwritable) [QNX]: Likewise.
27620         * lib/fwriting.c (fwriting) [QNX]: Likewise.
27621         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
27622         Reported by Alain Magloire.
27623
27624         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
27625
27626 2007-11-05  Bruno Haible  <bruno@clisp.org>
27627
27628         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
27629         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
27630         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
27631         Reported by Eric Blake.
27632
27633 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27634             Bruno Haible  <bruno@clisp.org>
27635
27636         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
27637         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
27638         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
27639         (malloc): Undefine also before including <stdlib.h>.
27640         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
27641         Needed on OSF/1 4.0.
27642
27643 2007-11-05  Jim Meyering  <meyering@redhat.com>
27644
27645         git-version-gen: sync from coreutils.
27646         * build-aux/git-version-gen: Add comments.
27647         Change the first '-' to '.' in the snapshot version string,
27648         e.g., 6.9-377-08144 -> 6.9.377-08144
27649         Remove first parameter.
27650         Don't declare a version "-dirty" merely because a time
27651         stamp has changed.
27652
27653 2007-11-04  Bruno Haible  <bruno@clisp.org>
27654
27655         * lib/lock.h: Protect all macro definitions containing an 'if'
27656         statement through a "do { ... } while (0)".
27657         * lib/tls.h: Likewise.
27658
27659 2007-11-04  Bruno Haible  <bruno@clisp.org>
27660
27661         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
27662
27663 2007-11-04  Bruno Haible  <bruno@clisp.org>
27664
27665         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
27666         * modules/fprintf-posix (Depends-on): Add nocrash.
27667         * modules/snprintf-posix (Depends-on): Likewise.
27668         * modules/sprintf-posix (Depends-on): Likewise.
27669         * modules/vasnprintf-posix (Depends-on): Likewise.
27670         * modules/vasprintf-posix (Depends-on): Likewise.
27671         * modules/vfprintf-posix (Depends-on): Likewise.
27672         * modules/vsnprintf-posix (Depends-on): Likewise.
27673         * modules/vsprintf-posix (Depends-on): Likewise.
27674         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27675         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27676         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27677         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27678         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27679         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27680         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27681
27682 2007-11-04  Bruno Haible  <bruno@clisp.org>
27683
27684         * modules/nocrash: New file.
27685         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
27686         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
27687
27688 2007-11-04  Bruno Haible  <bruno@clisp.org>
27689
27690         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
27691         precision handling.
27692         * tests/test-vasprintf-posix.c (test_function): Likewise.
27693         * tests/test-snprintf-posix.h (test_function): Likewise.
27694         * tests/test-sprintf-posix.h (test_function): Likewise.
27695
27696         Fix *printf behaviour for large precisions on mingw and BeOS.
27697         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
27698         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
27699         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
27700         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27701         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27702         gl_PRINTF_PRECISION and test its result. Invoke
27703         gl_PREREQ_VASNPRINTF_PRECISION.
27704         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27705         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27706         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27707         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27708         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27709         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27710         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27711         * doc/functions/fprintf.texi: Update.
27712         * doc/functions/printf.texi: Update.
27713         * doc/functions/snprintf.texi: Update.
27714         * doc/functions/sprintf.texi: Update.
27715         * doc/functions/vfprintf.texi: Update.
27716         * doc/functions/vprintf.texi: Update.
27717         * doc/functions/vsnprintf.texi: Update.
27718         * doc/functions/vsprintf.texi: Update.
27719
27720 2007-11-04  Bruno Haible  <bruno@clisp.org>
27721
27722         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
27723
27724 2007-11-04  Bruno Haible  <bruno@clisp.org>
27725
27726         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
27727         Reported by Sylvain Beucler <beuc@gnu.org>.
27728
27729 2007-11-03  Bruno Haible  <bruno@clisp.org>
27730
27731         * tests/test-fprintf-posix2.sh: New file.
27732         * tests/test-fprintf-posix2.c: New file.
27733         * modules/fprintf-posix-tests (Files): Add them.
27734         (TESTS): Add test-fprintf-posix2.sh.
27735         (configure.ac): Check for getrlimit and setrlimit.
27736         (check_PROGRAMS): Add test-fprintf-posix2.
27737
27738         * tests/test-printf-posix2.sh: New file.
27739         * tests/test-printf-posix2.c: New file.
27740         * modules/printf-posix-tests (Files): Add them.
27741         (TESTS): Add test-printf-posix2.sh.
27742         (configure.ac): Check for getrlimit and setrlimit.
27743         (check_PROGRAMS): Add test-printf-posix2.
27744
27745         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
27746         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
27747         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
27748         (decode_double): New function, copied from decode_long_double.
27749         (scale10_round_decimal_decoded): New function, extracted from
27750         scale10_round_decimal_long_double.
27751         (scale10_round_decimal_long_double): Use it.
27752         (scale10_round_decimal_double): New function.
27753         (floorlog10): New function.
27754         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
27755         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
27756         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27757         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27758         gl_PRINTF_ENOMEM and test its result. Invoke
27759         gl_PREREQ_VASNPRINTF_ENOMEM.
27760         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27761         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27762         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27763         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27764         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27765         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27766         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27767         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
27768         * modules/snprintf-posix (Depends-on): Likewise.
27769         * modules/sprintf-posix (Depends-on): Likewise.
27770         * modules/vasnprintf-posix (Depends-on): Likewise.
27771         * modules/vasprintf-posix (Depends-on): Likewise.
27772         * modules/vfprintf-posix (Depends-on): Likewise.
27773         * modules/vsnprintf-posix (Depends-on): Likewise.
27774         * modules/vsprintf-posix (Depends-on): Likewise.
27775         * doc/functions/fprintf.texi: Update.
27776         * doc/functions/printf.texi: Update.
27777         * doc/functions/snprintf.texi: Update.
27778         * doc/functions/sprintf.texi: Update.
27779         * doc/functions/vfprintf.texi: Update.
27780         * doc/functions/vprintf.texi: Update.
27781         * doc/functions/vsnprintf.texi: Update.
27782         * doc/functions/vsprintf.texi: Update.
27783
27784 2007-11-03  Bruno Haible  <bruno@clisp.org>
27785
27786         * modules/frexp-nolibm-tests: New file.
27787
27788         * modules/frexp-nolibm: New file.
27789         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
27790
27791 2007-11-03  Bruno Haible  <bruno@clisp.org>
27792
27793         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
27794         value is C99 compliant.
27795         Needed for OSF/1 5.1.
27796
27797 2007-11-03  Bruno Haible  <bruno@clisp.org>
27798
27799         Fix out-of-memory handling of vasnprintf.
27800         * lib/printf-parse.c: Include <errno.h>.
27801         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
27802         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
27803         is already set.
27804
27805 2007-11-02  Eric Blake  <ebb9@byu.net>
27806
27807         Fix tests on cygwin.
27808         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
27809
27810 2007-11-01  Bruno Haible  <bruno@clisp.org>
27811
27812         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
27813         warning.
27814         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
27815         needed for POSIX compatibility.
27816
27817 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27818
27819         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
27820         for compatibility with GNU.
27821
27822 2007-11-01  Bruno Haible  <bruno@clisp.org>
27823
27824         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
27825         (putenv): Renamed from rpl_putenv. Change argument type from
27826         'const char *' to 'char *'.
27827         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
27828         of defining putenv in config.h, just set REPLACE_PUTENV.
27829         * modules/putenv (Depends-on): Add stdlib.
27830         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27831         (Include): Use <stdlib.h>.
27832         * lib/stdlib.in.h (putenv): New declaration.
27833         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
27834         REPLACE_PUTENV.
27835         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
27836         REPLACE_PUTENV.
27837         Needed for MacOS X 10.5.0.
27838         Reported by Peter O'Gorman <peter@pogma.com>.
27839
27840 2007-11-01  Jim Meyering  <meyering@redhat.com>
27841
27842         Treat an empty date string exactly like "0".
27843         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
27844         if the remaining date string (to be parsed) is empty, use "0".
27845         Reported by Mischa Molhoek and discussed in this thread:
27846         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
27847
27848 2007-10-31  Bruno Haible  <bruno@clisp.org>
27849
27850         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
27851         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
27852         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
27853         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
27854         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
27855         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
27856
27857 2007-10-31  Bruno Haible  <bruno@clisp.org>
27858
27859         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
27860         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
27861         (AC_TYPE_LONG_LONG_INT): Use it.
27862         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
27863         it as well.
27864         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
27865         to m4/longlong.m4.
27866         * modules/stdint (Files): Remove m4/ulonglong.m4.
27867         * modules/strtoull (Files): Use m4/longlong.m4 instead of
27868         m4/ulonglong.m4.
27869         * modules/strtoumax (Files): Likewise.
27870
27871 2007-10-30  Bruno Haible  <bruno@clisp.org>
27872
27873         * modules/xvasprintf-posix: New file.
27874         Suggested by Eric Blake.
27875
27876 2007-10-30  Bruno Haible  <bruno@clisp.org>
27877
27878         * modules/xprintf-posix-tests: New file.
27879         * tests/test-xprintf-posix.sh: New file.
27880         * tests/test-xprintf-posix.c: New file.
27881         * tests/test-xfprintf-posix.c: New file.
27882
27883         * modules/xprintf-posix: New file.
27884
27885 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27886
27887         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
27888         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
27889         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
27890
27891 2007-10-29  Bruno Haible  <bruno@clisp.org>
27892
27893         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
27894         contain the special marker '_cv_'.
27895         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27896         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27897         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27898         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
27899         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27900         Reported by Ralf Wildenhues.
27901
27902 2007-10-29  Bruno Haible  <bruno@clisp.org>
27903
27904         * gnulib-tool (func_import): When --lgpl is not specified, set
27905         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
27906         GPLv3.
27907         Reported by Simon Josefsson.
27908
27909 2007-10-28  Bruno Haible  <bruno@clisp.org>
27910
27911         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
27912         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
27913         HAVE_DECL_ISFINITE.
27914         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
27915         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
27916         HAVE_DECL_ISFINITE.
27917
27918 2007-10-28  Bruno Haible  <bruno@clisp.org>
27919
27920         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
27921         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
27922
27923 2007-10-28  Bruno Haible  <bruno@clisp.org>
27924
27925         Fix link errors with Sun C 5.0 on Solaris 10.
27926         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
27927         function is declared but not present in the compiler's libm.
27928         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
27929         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
27930         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
27931         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
27932         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
27933         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
27934         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
27935         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
27936         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
27937         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
27938         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
27939         HAVE_DECL_FLOORL.
27940
27941 2007-10-28  Bruno Haible  <bruno@clisp.org>
27942
27943         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
27944         gl_FUNC_FLOORL. Cache the result.
27945         (gl_FUNC_FLOORL): Use it.
27946         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
27947         gl_FUNC_CEILL. Cache the result.
27948         (gl_FUNC_CEILL): Use it.
27949
27950         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
27951         gl_FUNC_FLOOR. Cache the result.
27952         (gl_FUNC_FLOOR): Use it.
27953         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
27954         gl_FUNC_CEIL. Cache the result.
27955         (gl_FUNC_CEIL): Use it.
27956
27957         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
27958         gl_FUNC_FLOORF. Cache the result.
27959         (gl_FUNC_FLOORF): Use it.
27960         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
27961         gl_FUNC_CEILF. Cache the result.
27962         (gl_FUNC_CEILF): Use it.
27963
27964 2007-10-28  Bruno Haible  <bruno@clisp.org>
27965
27966         * gnulib-tool: Allow specifying the LGPL version number through
27967         --lgpl=2 or --lgpl=3.
27968         (func_usage): Document --lgpl with argument.
27969         Handle --lgpl=... arguments.
27970         (func_import): Recognize also gl_LGPL calls with an argument. When
27971         --lgpl=2 is used and the module's license is just LGPL, report an
27972         error. Set sed_transform_lib_file according to the lgpl variable. In
27973         the generated files, use --lgpl or gl_LGPL invocations with argument,
27974         if necessary.
27975         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
27976         an LGPv2+ license.
27977         * doc/gnulib-tool.texi (Modified imports): Update explanation of
27978         gl_LGPL macro.
27979
27980 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27981             Bruno Haible  <bruno@clisp.org>
27982
27983         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
27984         (u16_uctomb_aux): Likewise.
27985         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
27986         !HAVE_INLINE.
27987         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
27988
27989 2007-10-28  Bruno Haible  <bruno@clisp.org>
27990
27991         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
27992         Invoke AM_GETTEXT_OPTION if it exists.
27993         * modules/vasprintf: Likewise.
27994         * modules/verror: Likewise.
27995         * modules/xprintf: Likewise.
27996         * modules/xvasprintf: Likewise.
27997
27998 2007-10-27  Ben Pfaff  <blp@gnu.org>
27999
28000         * lib/math.in.h: Define isfinite macro and prototypes for
28001         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
28002         implementations.
28003         * m4/math_h.m4: New substitutions for isfinite module.
28004         * lib/isfinite.c: New file.
28005         * m4/isfinite.m4: New file.
28006         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
28007         * modules/isfinite: New file.
28008         * modules/isfinite-tests: New file.
28009         * tests/tests-isfinite.c: New file.
28010         * doc/functions/isfinite.texi: Mention isfinite module.
28011         * MODULES.html.sh: Mention new module.
28012
28013 2007-10-27  Ben Pfaff  <blp@gnu.org>
28014
28015         Ralf Wildenhues reported that Tru64 4.0D declares the round
28016         functions but does not have definitions.
28017         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
28018         cannot be found in any library, set the output variable to
28019         "missing" instead of "".
28020         * m4/round.m4: Also use our substitute if we cannot find round in
28021         any library, even if it is declared.
28022         * m4/roundf.m4: Likewise for roundf.
28023         * m4/roundl.m4: Likewise for roundl.
28024         * lib/math.in.h: Undefine roundf, round, roundl before defining
28025         their replacements, to allow for hypothetical systems where these
28026         may be defined as macros but not available in libraries.
28027
28028 2007-10-27  Bruno Haible  <bruno@clisp.org>
28029
28030         * doc/gnulib.texi: Invoke @firstparagraphindent.
28031         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
28032         changes in gnulib.
28033         (Source changes): New section.
28034
28035 2007-10-26  Bruno Haible  <bruno@clisp.org>
28036
28037         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
28038         borrowed from autoconf.
28039
28040 2007-10-26  Bruno Haible  <bruno@clisp.org>
28041
28042         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
28043         strerror returned the empty string. Needed on HP-UX 11.00.
28044
28045 2007-10-24  Micah Cowan  <micah@cowan.name>
28046
28047         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
28048         * build-aux/bootstrap: Remove support for now-unnecessary option,
28049         --cvs-user, and envvars CVS_USER, CVS_RSH.
28050
28051 2007-10-24  Jim Meyering  <meyering@redhat.com>
28052
28053         Avoid diagnostics from sha1sum when there is no cached checksum.
28054         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
28055         if the po.s1 file hasn't been created yet.
28056
28057         * build-aux/bootstrap: Sync from coreutils:
28058         2007-10-24  Jim Meyering  <meyering@redhat.com>
28059         Get gnulib from the git repository, not from an obsolete cvs one.
28060         * build-aux/bootstrap: Suggestion from Micah Cowan.
28061         2007-10-04  Jim Meyering  <jim@meyering.net>
28062         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
28063         (update_po_files): Work also when there are no .po files in po/.
28064
28065 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
28066
28067         * README: Append ".git" to git and cg examples.
28068         Problem reported by Benoit Sigoure.
28069
28070 2007-10-23  Micah Cowan  <micah@cowan.name>
28071
28072         * users.txt: Add wget.
28073
28074 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28075
28076         Fix linking of some unistdio tests on FreeBSD.
28077         * modules/unistdio/u16-vsnprintf-tests
28078         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
28079         * modules/unistdio/u16-vsprintf-tests
28080         (test_u16_vsnprintf1_LDADD): Likewise.
28081         * modules/unistdio/u32-vsnprintf-tests
28082         (test_u32_vsnprintf1_LDADD): Likewise.
28083         * modules/unistdio/u32-vsprintf-tests
28084         (test_u32_vsprintf1_LDADD): Likewise.
28085         * modules/unistdio/u8-vsnprintf-tests
28086         (test_u8_vsnprintf1_LDADD): Likewise.
28087         * modules/unistdio/u8-vsprintf-tests
28088         (test_u8_vsprintf1_LDADD): Likewise.
28089         * modules/unistdio/ulc-vsnprintf-tests
28090         (test_ulc_vsnprintf1_LDADD): Likewise.
28091         * modules/unistdio/ulc-vsprintf-tests
28092         (test_ulc_vsprintf1_LDADD): Likewise.
28093
28094         Fix linking of some uniconv tests on FreeBSD.
28095         * modules/uniconv/u16-conv-from-enc-tests
28096         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
28097         * modules/uniconv/u16-conv-to-enc-tests
28098         (test_u16_conv_to_enc_LDADD): Likewise.
28099         * modules/uniconv/u16-strconv-from-enc-tests
28100         (test_u16_strconv_from_enc_LDADD): Likewise.
28101         * modules/uniconv/u16-strconv-to-enc-tests
28102         (test_u16_strconv_to_enc_LDADD): Likewise.
28103         * modules/uniconv/u32-conv-from-enc-tests
28104         (test_u32_conv_from_enc_LDADD): Likewise.
28105         * modules/uniconv/u32-conv-to-enc-tests
28106         (test_u32_conv_to_enc_LDADD): Likewise.
28107         * modules/uniconv/u32-strconv-from-enc-tests
28108         (test_u32_strconv_from_enc_LDADD): Likewise.
28109         * modules/uniconv/u32-strconv-to-enc-tests
28110         (test_u32_strconv_to_enc_LDADD): Likewise.
28111         * modules/uniconv/u8-conv-from-enc-tests
28112         (test_u8_conv_from_enc_LDADD): Likewise.
28113         * modules/uniconv/u8-conv-to-enc-tests
28114         (test_u8_conv_to_enc_LDADD): Likewise.
28115         * modules/uniconv/u8-strconv-from-enc-tests
28116         (test_u8_strconv_from_enc_LDADD): Likewise.
28117         * modules/uniconv/u8-strconv-to-enc-tests
28118         (test_u8_strconv_to_enc_LDADD): Likewise.
28119
28120 2007-10-22  Bruno Haible  <bruno@clisp.org>
28121
28122         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
28123         size.
28124
28125 2007-10-22  Eric Blake  <ebb9@byu.net>
28126
28127         Tweak x*printf documentation.
28128         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
28129         variable name and comments.
28130         Suggested by Bruno Haible.
28131
28132 2007-10-22  Bruno Haible  <bruno@clisp.org>
28133
28134         * lib/acl.c (copy_acl): Fix file name in comment.
28135
28136 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
28137
28138         Fix Tru64 problem with stdbool.h.
28139         * lib/stdbool.in.h (false, true):
28140         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
28141         Don't declare as an enum in this situation; it runs afoul of Tru64.
28142         Problem reported by Steven M. Schweda in
28143         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
28144
28145 2007-10-22  Eric Blake  <ebb9@byu.net>
28146
28147         Also wrap vf?printf.
28148         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
28149         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
28150         (xvprintf, xvfprintf): New functions.
28151
28152 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28153
28154         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
28155         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
28156
28157         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
28158         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
28159
28160 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
28161
28162         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
28163         by Bruno Haible.
28164
28165 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28166
28167         * lib/getloadavg.c
28168         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
28169         Undef `sys' after including sys/table.h, for Tru64 4.0D.
28170
28171         * tests/test-i-ring.c: Work for C89.
28172
28173 2007-10-22  Bruno Haible  <bruno@clisp.org>
28174
28175         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
28176         -1u, in preprocessor expression, so that we don't test for the bug
28177         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
28178         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
28179
28180 2007-10-22  Eric Blake  <ebb9@byu.net>
28181
28182         * tests/test-yesno.sh: Silence stderr during test.
28183
28184 2007-10-22  Simon Josefsson  <simon@josefsson.org>
28185
28186         * modules/crypto/gc-camellia: New file.
28187
28188         * m4/gc-camellia.m4: New file.
28189
28190         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
28191
28192         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
28193
28194 2007-10-22  Simon Josefsson  <simon@josefsson.org>
28195
28196         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
28197         --help to stdout.  Reported by sms@antinode.org (Steven
28198         M. Schweda).
28199
28200 2007-10-22  Simon Josefsson  <simon@josefsson.org>
28201
28202         * users.txt: Fix link to libksba.
28203
28204 2007-10-21  Ben Pfaff  <blp@gnu.org>
28205
28206         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
28207         round.c roundf implementation that depends on floorf and ceilf to
28208         be tested unconditionally.
28209
28210 2007-10-21  Ben Pfaff  <blp@gnu.org>
28211
28212         * m4/check-libm-func.m4: Removed.
28213         * m4/check-math-lib.m4: New file.
28214         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
28215         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
28216         definition and lack of AC_LIBOBJ([roundf]).
28217         * m4/roundl.m4: Ditto, and similarly for roundl.
28218         * modules/round: Reference new m4 file.
28219         * modules/roundf: Ditto.
28220         * modules/roundl: Ditto.
28221         * tests/test-round2.c (main): Use ROUND instead of round.
28222         Bug report from Bruno Haible.
28223
28224 2007-10-21  Bruno Haible  <bruno@clisp.org>
28225
28226         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
28227         context.
28228
28229 2007-10-21  Bruno Haible  <bruno@clisp.org>
28230
28231         * tests/test-wcwidth.c (main): Allow negative result for some control
28232         characters.
28233
28234         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
28235         Needed on OSF/1 5.1.
28236
28237 2007-10-21  Bruno Haible  <bruno@clisp.org>
28238
28239         * tests/test-floorf1.c: Include isnanf.h.
28240         (main): Use isnanf() instead of isnan().
28241         * tests/test-ceilf1.c: Include isnanf.h.
28242         (main): Use isnanf() instead of isnan().
28243         * tests/test-truncf1.c: Include isnanf.h.
28244         (main): Use isnanf() instead of isnan().
28245         * tests/test-roundf1.c: Include isnanf.h.
28246         (main): Use isnanf() instead of isnan().
28247
28248 2007-10-21  Eric Blake  <ebb9@byu.net>
28249
28250         * users.txt: Update URL for m4.
28251
28252 2007-10-21  Bruno Haible  <bruno@clisp.org>
28253
28254         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
28255
28256 2007-10-21  Bruno Haible  <bruno@clisp.org>
28257
28258         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
28259         Git's management files if the CVS files are not present.
28260
28261 2007-10-20  Bruno Haible  <bruno@clisp.org>
28262
28263         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
28264         gcc-3.4.x.
28265
28266 2007-10-20  Ben Pfaff  <blp@gnu.org>
28267
28268         * lib/math.in.h: Declare round, roundf, roundl if we are providing
28269         implementations.
28270         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
28271         * lib/round.c: New file.
28272         * lib/roundf.c: New file.
28273         * lib/roundl.c: New file.
28274         * m4/round.m4: New file.
28275         * m4/roundf.m4: New file.
28276         * m4/roundl.m4: New file.
28277         * m4/check-libm-func-m4: New file.
28278         * modules/math: Replace round, roundf, roundl related @VARS@ in
28279         math.in.h.
28280         * modules/round: New file.
28281         * modules/round-tests: New file.
28282         * modules/roundf: New file.
28283         * modules/roundf-tests: New file.
28284         * modules/roundl: New file.
28285         * modules/roundl-tests: New file.
28286         * tests/test-round1.c: New file.
28287         * tests/test-round2.c: New file.
28288         * tests/test-roundf1.c: New file.
28289         * tests/test-roundf2.c: New file.
28290         * tests/test-roundl.c: New file.
28291         * doc/functions/round.texi: Mention round module.
28292         * doc/functions/roundf.texi: Mention roundf module.
28293         * doc/functions/roundl.texi: Mention roundl module.
28294         * MODULES.html.sh: Mention new modules.
28295         Thanks to Bruno Haible for suggestions.
28296
28297 2007-10-20  Jim Meyering  <meyering@redhat.com>
28298
28299         * lib/xprintf.c: Include <config.h> unconditionally.
28300
28301         Change xprintf's license to GPL.
28302         * modules/xprintf (License): s/LGPL/GPL/, since this module
28303         depends on modules (exit and exitfail) which are GPL.
28304         Suggestion from Bruno Haible.
28305
28306         xprintf fixes.
28307         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
28308         Use a clearer diagnostic.
28309         Patch from Bruno Haible.
28310
28311 2007-10-20  Bruno Haible  <bruno@clisp.org>
28312
28313         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
28314         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
28315         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28316
28317 2007-10-20  Bruno Haible  <bruno@clisp.org>
28318
28319         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
28320         precision in the comparison result > x - 1 or similar.
28321         * tests/test-ceilf2.c (correct_result_p): Likewise.
28322         * tests/test-truncf2.c (correct_result_p): Likewise.
28323         * tests/test-trunc2.c (correct_result_p): Likewise.
28324         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28325
28326 2007-10-20  Bruno Haible  <bruno@clisp.org>
28327
28328         * modules/ceil: New file.
28329         * m4/ceil.m4: New file.
28330         * doc/functions/ceil.texi: Mention the 'ceil' module.
28331
28332 2007-10-20  Bruno Haible  <bruno@clisp.org>
28333
28334         * modules/floor: New file.
28335         * m4/floor.m4: New file.
28336         * doc/functions/floor.texi: Mention the 'floor' module.
28337
28338 2007-10-20  Bruno Haible  <bruno@clisp.org>
28339
28340         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
28341         of %a.
28342         * modules/floorf-tests (Depends-on): Likewise.
28343         * modules/truncf-tests (Depends-on): Likewise.
28344         * modules/trunc-tests (Depends-on): Likewise.
28345         Reported by Ben Pfaff.
28346
28347 2007-10-19  Jim Meyering  <meyering@redhat.com>
28348
28349         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
28350         Don't bother testing specific errno values.  Just test ferror.
28351
28352         New module: xprintf
28353         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
28354
28355 2007-10-19  Bruno Haible  <bruno@clisp.org>
28356
28357         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
28358         syntax.
28359         * modules/javaexec (Makefile.am): Likewise.
28360         * modules/relocatable-prog (Makefile.am): Likewise.
28361         Suggested by Jim Meyering.
28362
28363 2007-10-18  Bruno Haible  <bruno@clisp.org>
28364
28365         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
28366         Reported by Jim Meyering.
28367
28368 2007-10-18  Eric Blake  <ebb9@byu.net>
28369
28370         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
28371
28372 2007-10-18  Bruno Haible  <bruno@clisp.org>
28373
28374         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
28375         the format string into writable memory. Needed in Fortify conditions.
28376
28377 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
28378             Bruno Haible  <bruno@clisp.org>
28379
28380         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
28381         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
28382         * modules/trim (Depends-on): Add mbchar.
28383         (configure.ac): Add gl_FUNC_MBRTOWC.
28384         (Makefile.am): Augment lib_SOURCES.
28385
28386 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
28387
28388         Modify glob.c to use fstatat and dirfd, to simplify it.
28389         Suggested by Eric Blake.
28390         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
28391         Don't include <stdbool.h>; not used.
28392         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
28393         (link_exists_p): Simplify implementation, since we can now assume
28394         dirfd and fstatat.
28395         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
28396
28397 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28398
28399         * gnulib-tool (func_get_dependencies): Fix sed script to
28400         match only tests.
28401
28402 2007-10-17  Bruno Haible  <bruno@clisp.org>
28403
28404         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
28405         allow locale names without encoding suffix.
28406         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
28407         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28408
28409 2007-10-16  Bruno Haible  <bruno@clisp.org>
28410
28411         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
28412         * lib/getgroups.c (getgroups): Likewise.
28413         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
28414
28415 2007-10-16  Bruno Haible  <bruno@clisp.org>
28416
28417         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
28418         * modules/malloc-posix (License): Likewise.
28419         * modules/realloc-posix (License): Likewise.
28420         * modules/calloc-posix (License): Likewise.
28421         * modules/intprops (License): Change from GPL to LGPL, with
28422         Paul Eggert's approval.
28423
28424 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28425
28426         Merge glibc changes into lib/glob.c.
28427
28428         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
28429         2007-10-15 04:59:03 UTC.  Here are the changes:
28430
28431         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
28432
28433         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
28434
28435         * lib/glob.c: Add some branch prediction throughout.
28436
28437         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
28438
28439         [BZ #5103]
28440         * lib/glob.c (glob): Recognize patterns starting \/.
28441
28442         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
28443
28444         [BZ #3996]
28445         * lib/glob.c (attribute_hidden): Define if not defined.
28446         (glob): Unescape dirname, filename or username when needed and not
28447         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
28448         is NULL.  Handle unescaped [ in pattern without closing ].
28449         Don't pass GLOB_CHECK down to recursive glob for directories.
28450         (__glob_pattern_type): New function.
28451         (__glob_pattern_p): Implement using __glob_pattern_type.
28452         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
28453         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
28454         Remove unreachable code.
28455
28456         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
28457
28458         * lib/glob.c (glob_in_dir): Add some comments and asserts to
28459         explain why there are no leaks.
28460
28461         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
28462
28463         [BZ #3253]
28464         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
28465         time, rather allocate increasingly bigger arrays of pointers, if
28466         possible with alloca, if too large with malloc.
28467
28468 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28469
28470         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
28471         Problem reported by H.Merijn Brand in
28472         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
28473         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
28474         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
28475
28476 2007-10-15  Bruno Haible  <bruno@clisp.org>
28477
28478         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
28479         with explicit rpl_ prefix.
28480         * lib/fopen.c (fopen): Likewise.
28481         * lib/freopen.c (freopen): Likewise.
28482         * lib/iconv.c (iconv): Likewise.
28483         * lib/iconv_close.c (iconv_close): Likewise.
28484
28485 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28486
28487         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
28488
28489 2007-10-15  Bruno Haible  <bruno@clisp.org>
28490
28491         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
28492         <stddef.h> instead of <stdlib.h> since we only need NULL.
28493         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28494
28495 2007-10-15  Bruno Haible  <bruno@clisp.org>
28496
28497         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
28498         Replace paragraph talking about LIBOBJS.
28499         Reported by Colin Watson <cjwatson@debian.org>.
28500
28501 2007-10-15  Bruno Haible  <bruno@clisp.org>
28502
28503         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
28504         <stdlib.h> before using NULL.
28505
28506 2007-10-15  Simon Josefsson  <simon@josefsson.org>
28507
28508         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
28509         Reported by Albert Chin <china@thewrittenword.com>.
28510
28511 2007-10-14  Bruno Haible  <bruno@clisp.org>
28512
28513         * modules/iconv_open-utf-tests: New file.
28514         * tests/test-iconv-utf.c: New file.
28515
28516         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
28517         * modules/iconv_open-utf: New file.
28518         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
28519         (iconv, iconv_close): New declarations.
28520         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
28521         be defined.
28522         (iconv_open): Add special handling of conversion between UTF-8 and
28523         UTF-{16,32}{BE,LE}.
28524         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
28525         * lib/iconv_close.c: New file.
28526         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
28527         gl_FUNC_ICONV_OPEN.
28528         (gl_FUNC_ICONV_OPEN): Use it.
28529         (gl_FUNC_ICONV_OPEN_UTF): New macro.
28530         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
28531         and REPLACE_ICONV_UTF.
28532         * modules/iconv_open (Depends-on): Add c-strcase.
28533         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
28534         ICONV_CONST.
28535         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
28536
28537 2007-10-13  Albert Chin  <china@thewrittenword.com>
28538             Bruno Haible  <bruno@clisp.org>
28539
28540         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
28541         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
28542
28543 2007-10-13  Bruno Haible  <bruno@clisp.org>
28544
28545         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
28546         defined, use the ISO C99 inline semantics.
28547         * lib/argp.h (ARGP_EI): Likewise.
28548
28549 2007-10-13  Bruno Haible  <bruno@clisp.org>
28550
28551         Handle 'inline' change in gcc 4.3.0.
28552         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
28553         argp_fmtstream_write, argp_fmtstream_set_lmargin,
28554         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
28555         argp_fmtstream_point): Disable 'extern' declaration if the function
28556         definition is going to be provided inline.
28557         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
28558         semantics, not the ISO C99 inline semantics.
28559         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
28560         'extern' declaration if the function definition is going to be provided
28561         inline.
28562         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
28563         the GNU C inline semantics, not the ISO C99 inline semantics. With
28564         GCC 4.2, avoid a warning.
28565
28566 2007-10-13  Bruno Haible  <bruno@clisp.org>
28567
28568         * lib/freading.h (freading): Enable the use of __freading for
28569         glibc >= 2.7.
28570         * lib/freading.c (freading): Likewise.
28571
28572 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
28573
28574         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
28575         "warning: C99 inline functions are not supported; using GNU89".
28576
28577 2007-10-12  Bruno Haible  <bruno@clisp.org>
28578
28579         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
28580         of 2.
28581         * tests/test-ceilf2.c: New file.
28582         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
28583
28584         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
28585         * modules/ceilf-tests: Update.
28586
28587 2007-10-12  Bruno Haible  <bruno@clisp.org>
28588
28589         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
28590         of 2.
28591         * tests/test-floorf2.c: New file.
28592         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
28593
28594         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
28595         * modules/floorf-tests: Update.
28596
28597 2007-10-12  Bruno Haible  <bruno@clisp.org>
28598
28599         * tests/test-trunc2.c: New file.
28600         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
28601
28602         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
28603         * modules/trunc-tests: Update.
28604
28605 2007-10-12  Bruno Haible  <bruno@clisp.org>
28606
28607         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
28608         of 2.
28609         * tests/test-truncf2.c: New file.
28610         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
28611
28612         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
28613         * modules/truncf-tests: Update.
28614
28615 2007-10-11  Eric Blake  <ebb9@byu.net>
28616
28617         Don't claim strerror is broken on Interix.
28618         * doc/functions/strerror.texi (strerror): Known broken systems are
28619         now Solaris 8, and not Interix.
28620         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
28621         Interix on cross-compile.
28622         Reported by Martin Koeppe in
28623         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
28624
28625 2007-10-11  Bruno Haible  <bruno@clisp.org>
28626
28627         * modules/i-ring-tests: New file.
28628         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
28629         instead of assert.
28630
28631 2007-10-11  Bruno Haible  <bruno@clisp.org>
28632
28633         * modules/filenamecat-tests: New file.
28634         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
28635         * lib/filenamecat.c: Remove test code.
28636
28637 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28638
28639         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
28640
28641         * lib/strerror.c: Include <string.h> always, to test interface,
28642         and to remove the need for the dummy.
28643         Include intprops.h to compute width instead of doing it ourselves
28644         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
28645         (strerror): Define it to return NULL if there's no system strerror.
28646         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
28647         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
28648         ancient pre-strerror Unix systems well any more.  Saying "unknown
28649         system error" is enough.
28650         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
28651         simpler strerror.c implementation.
28652         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
28653         Simplify the tests to reflect the simpler strerror implementation.
28654         * modules/strerror (Depends-on): Add intprops.
28655
28656 2007-10-09  Eric Blake  <ebb9@byu.net>
28657
28658         Silence test-fpending.
28659         * modules/fpending-tests (Files): Add wrapper script.
28660         * tests/test-fpending.sh: New file.
28661
28662 2007-10-09  Bruno Haible  <bruno@clisp.org>
28663
28664         * MODULES.html.sh (func_module): Don't create a hyperlink for
28665         function names like 'printf_frexp'.
28666         (Misc): Add crc, memxor.
28667         (Characteristics of floating types): New section.
28668         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
28669         isnanf-nolibm, signbit, trunc, truncf, truncl.
28670         (Enhancements for ISO C 99 functions): New subsection Input/output.
28671         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
28672         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
28673         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
28674         (Compatibility checks for POSIX:2001 functions): Add clock-time.
28675         (Enhancements for POSIX:2001 functions): Add chdir-long.
28676         (File system functions): Add areadlink, chdir-safer, read-file.
28677         Remove cycle-check.
28678         (File system as inode set): New section.
28679         (Date and time): Add gethrxtime.
28680         (Multithreading): Add openmp.
28681         (Internationalization functions): Add localename.
28682         (Unicode string functions): Add unistr/u*-mbsnlen.
28683         (Support for maintaining and releasing projects): Add git-version-gen.
28684         (Lone files): Remove directories.
28685
28686 2007-10-08  Ben Pfaff  <blp@gnu.org>
28687
28688         * lib/xmalloca.h: Fix typo in comment.
28689
28690 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28691
28692         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
28693         when avoiding problems with integer overflow.  Use a portable test
28694         instead.
28695
28696 2007-10-08  Simon Josefsson  <simon@josefsson.org>
28697
28698         * modules/dummy (License): Change to LGPLv2+.
28699         * modules/float (License): Likewise
28700         * modules/realloc (License): Likewise
28701         * modules/stdlib (License): Likewise
28702
28703 2007-10-07  Bruno Haible  <bruno@clisp.org>
28704
28705         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
28706         * floor.c (TWO_MANT_DIG): Likewise.
28707         * ceil.c (TWO_MANT_DIG): Likewise.
28708         Reported by Ben Pfaff.
28709
28710 2007-10-07  Bruno Haible  <bruno@clisp.org>
28711
28712         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
28713         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
28714         * lib/frexp.c (FUNC): Likewise.
28715         * lib/printf-frexp.h (printf_frexp): Likewise.
28716         * lib/printf-frexpl.h (printf_frexpl): Likewise.
28717         * lib/printf-frexp.c (FUNC): Likewise.
28718         Suggested by Jim Meyering.
28719
28720 2007-10-07  Jim Meyering  <meyering@redhat.com>
28721
28722         Make xnanosleep's integer overflow test more robust.
28723         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
28724         so that gcc-4.3.0 doesn't optimize away this test for overflow.
28725
28726 2007-10-07  Bruno Haible  <bruno@clisp.org>
28727
28728         * NEWS: Mention the license change.
28729
28730         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
28731         abbreviations in the modules files.
28732
28733         Change copyright notice from GPLv2+ to GPLv3+.
28734         * README: Change copyright notice.
28735         * MODULES.html.sh: Likewise.
28736         * build-aux/bootstrap.conf: Likewise.
28737         * build-aux/config.libpath: Likewise.
28738         * build-aux/csharpcomp.sh.in: Likewise.
28739         * build-aux/csharpexec.sh.in: Likewise.
28740         * build-aux/install-reloc: Likewise.
28741         * build-aux/javacomp.sh.in: Likewise.
28742         * build-aux/javaexec.sh.in: Likewise.
28743         * build-aux/ldd.sh.in: Likewise.
28744         * build-aux/reloc-ldflags: Likewise.
28745         * build-aux/relocatable.sh.in: Likewise.
28746         * build-aux/x-to-1.in: Likewise.
28747         * check-module: Likewise.
28748         * config/srclistvars.sh: Likewise.
28749         * gnulib-tool: Likewise.
28750         * lib/acl-internal.h: Likewise.
28751         * lib/acl.c: Likewise.
28752         * lib/acl.h: Likewise.
28753         * lib/acl_entries.c: Likewise.
28754         * lib/areadlink-with-size.c: Likewise.
28755         * lib/areadlink.c: Likewise.
28756         * lib/areadlink.h: Likewise.
28757         * lib/argmatch.c: Likewise.
28758         * lib/argmatch.h: Likewise.
28759         * lib/argp-ba.c: Likewise.
28760         * lib/argp-eexst.c: Likewise.
28761         * lib/argp-fmtstream.c: Likewise.
28762         * lib/argp-fmtstream.h: Likewise.
28763         * lib/argp-fs-xinl.c: Likewise.
28764         * lib/argp-help.c: Likewise.
28765         * lib/argp-namefrob.h: Likewise.
28766         * lib/argp-parse.c: Likewise.
28767         * lib/argp-pin.c: Likewise.
28768         * lib/argp-pv.c: Likewise.
28769         * lib/argp-pvh.c: Likewise.
28770         * lib/argp-xinl.c: Likewise.
28771         * lib/argp.h: Likewise.
28772         * lib/at-func.c: Likewise.
28773         * lib/atanl.c: Likewise.
28774         * lib/backupfile.c: Likewise.
28775         * lib/backupfile.h: Likewise.
28776         * lib/basename.c: Likewise.
28777         * lib/binary-io.h: Likewise.
28778         * lib/byteswap.in.h: Likewise.
28779         * lib/c-stack.c: Likewise.
28780         * lib/c-stack.h: Likewise.
28781         * lib/c-strcasestr.c: Likewise.
28782         * lib/c-strcasestr.h: Likewise.
28783         * lib/c-strstr.c: Likewise.
28784         * lib/c-strstr.h: Likewise.
28785         * lib/c-strtod.c: Likewise.
28786         * lib/calloc.c: Likewise.
28787         * lib/canon-host.c: Likewise.
28788         * lib/canon-host.h: Likewise.
28789         * lib/canonicalize-lgpl.c: Likewise.
28790         * lib/canonicalize.c: Likewise.
28791         * lib/canonicalize.h: Likewise.
28792         * lib/ceil.c: Likewise.
28793         * lib/ceilf.c: Likewise.
28794         * lib/ceill.c: Likewise.
28795         * lib/chdir-long.c: Likewise.
28796         * lib/chdir-long.h: Likewise.
28797         * lib/chdir-safer.c: Likewise.
28798         * lib/chdir-safer.h: Likewise.
28799         * lib/chown.c: Likewise.
28800         * lib/classpath.c: Likewise.
28801         * lib/classpath.h: Likewise.
28802         * lib/clean-temp.c: Likewise.
28803         * lib/clean-temp.h: Likewise.
28804         * lib/cloexec.c: Likewise.
28805         * lib/close-stream.c: Likewise.
28806         * lib/closein.c: Likewise.
28807         * lib/closein.h: Likewise.
28808         * lib/closeout.c: Likewise.
28809         * lib/closeout.h: Likewise.
28810         * lib/concat-filename.c: Likewise.
28811         * lib/copy-file.c: Likewise.
28812         * lib/copy-file.h: Likewise.
28813         * lib/count-one-bits.h: Likewise.
28814         * lib/crc.c: Likewise.
28815         * lib/crc.h: Likewise.
28816         * lib/creat-safer.c: Likewise.
28817         * lib/csharpcomp.c: Likewise.
28818         * lib/csharpcomp.h: Likewise.
28819         * lib/csharpexec.c: Likewise.
28820         * lib/csharpexec.h: Likewise.
28821         * lib/cycle-check.c: Likewise.
28822         * lib/cycle-check.h: Likewise.
28823         * lib/diacrit.c: Likewise.
28824         * lib/diacrit.h: Likewise.
28825         * lib/diffseq.h: Likewise.
28826         * lib/dirchownmod.c: Likewise.
28827         * lib/dirent.in.h: Likewise.
28828         * lib/dirfd.c: Likewise.
28829         * lib/dirfd.h: Likewise.
28830         * lib/dirname.c: Likewise.
28831         * lib/dirname.h: Likewise.
28832         * lib/dummy.c: Likewise.
28833         * lib/dup-safer.c: Likewise.
28834         * lib/dup2.c: Likewise.
28835         * lib/eealloc.h: Likewise.
28836         * lib/error.c: Likewise.
28837         * lib/error.h: Likewise.
28838         * lib/euidaccess.c: Likewise.
28839         * lib/exclude.c: Likewise.
28840         * lib/exclude.h: Likewise.
28841         * lib/execute.c: Likewise.
28842         * lib/execute.h: Likewise.
28843         * lib/exitfail.c: Likewise.
28844         * lib/exitfail.h: Likewise.
28845         * lib/expl.c: Likewise.
28846         * lib/fatal-signal.c: Likewise.
28847         * lib/fatal-signal.h: Likewise.
28848         * lib/fbufmode.c: Likewise.
28849         * lib/fbufmode.h: Likewise.
28850         * lib/fchdir.c: Likewise.
28851         * lib/fchmodat.c: Likewise.
28852         * lib/fchownat.c: Likewise.
28853         * lib/fcntl--.h: Likewise.
28854         * lib/fcntl-safer.h: Likewise.
28855         * lib/fcntl.in.h: Likewise.
28856         * lib/fd-safer.c: Likewise.
28857         * lib/fflush.c: Likewise.
28858         * lib/file-has-acl.c: Likewise.
28859         * lib/file-set.c: Likewise.
28860         * lib/file-type.c: Likewise.
28861         * lib/file-type.h: Likewise.
28862         * lib/fileblocks.c: Likewise.
28863         * lib/filemode.c: Likewise.
28864         * lib/filemode.h: Likewise.
28865         * lib/filename.h: Likewise.
28866         * lib/filenamecat.c: Likewise.
28867         * lib/filenamecat.h: Likewise.
28868         * lib/findprog.c: Likewise.
28869         * lib/findprog.h: Likewise.
28870         * lib/float.in.h: Likewise.
28871         * lib/floor.c: Likewise.
28872         * lib/floorf.c: Likewise.
28873         * lib/floorl.c: Likewise.
28874         * lib/fopen-safer.c: Likewise.
28875         * lib/fopen.c: Likewise.
28876         * lib/fpending.c: Likewise.
28877         * lib/fpending.h: Likewise.
28878         * lib/fprintf.c: Likewise.
28879         * lib/fprintftime.h: Likewise.
28880         * lib/fpucw.h: Likewise.
28881         * lib/fpurge.c: Likewise.
28882         * lib/fpurge.h: Likewise.
28883         * lib/freadable.c: Likewise.
28884         * lib/freadable.h: Likewise.
28885         * lib/freadahead.c: Likewise.
28886         * lib/freadahead.h: Likewise.
28887         * lib/freading.c: Likewise.
28888         * lib/freading.h: Likewise.
28889         * lib/free.c: Likewise.
28890         * lib/freopen.c: Likewise.
28891         * lib/frexp.c: Likewise.
28892         * lib/frexpl.c: Likewise.
28893         * lib/fseek.c: Likewise.
28894         * lib/fseterr.c: Likewise.
28895         * lib/fseterr.h: Likewise.
28896         * lib/fstatat.c: Likewise.
28897         * lib/fstrcmp.c: Likewise.
28898         * lib/fstrcmp.h: Likewise.
28899         * lib/fsusage.c: Likewise.
28900         * lib/fsusage.h: Likewise.
28901         * lib/ftell.c: Likewise.
28902         * lib/ftello.c: Likewise.
28903         * lib/fts-cycle.c: Likewise.
28904         * lib/fts.c: Likewise.
28905         * lib/fts_.h: Likewise.
28906         * lib/full-read.c: Likewise.
28907         * lib/full-read.h: Likewise.
28908         * lib/full-write.c: Likewise.
28909         * lib/full-write.h: Likewise.
28910         * lib/fwritable.c: Likewise.
28911         * lib/fwritable.h: Likewise.
28912         * lib/fwriteerror.c: Likewise.
28913         * lib/fwriteerror.h: Likewise.
28914         * lib/fwriting.c: Likewise.
28915         * lib/fwriting.h: Likewise.
28916         * lib/gcd.c: Likewise.
28917         * lib/gcd.h: Likewise.
28918         * lib/getcwd.c: Likewise.
28919         * lib/getdate.h: Likewise.
28920         * lib/getdate.y: Likewise.
28921         * lib/getdomainname.c: Likewise.
28922         * lib/getdomainname.h: Likewise.
28923         * lib/getgroups.c: Likewise.
28924         * lib/gethostname.c: Likewise.
28925         * lib/gethrxtime.c: Likewise.
28926         * lib/gethrxtime.h: Likewise.
28927         * lib/getloadavg.c: Likewise.
28928         * lib/getndelim2.c: Likewise.
28929         * lib/getndelim2.h: Likewise.
28930         * lib/getnline.c: Likewise.
28931         * lib/getnline.h: Likewise.
28932         * lib/getopt.c: Likewise.
28933         * lib/getopt.in.h: Likewise.
28934         * lib/getopt1.c: Likewise.
28935         * lib/getopt_int.h: Likewise.
28936         * lib/getpagesize.h: Likewise.
28937         * lib/getsubopt.c: Likewise.
28938         * lib/gettime.c: Likewise.
28939         * lib/getugroups.c: Likewise.
28940         * lib/getugroups.h: Likewise.
28941         * lib/getusershell.c: Likewise.
28942         * lib/gl_anyavltree_list1.h: Likewise.
28943         * lib/gl_anyavltree_list2.h: Likewise.
28944         * lib/gl_anyhash_list1.h: Likewise.
28945         * lib/gl_anyhash_list2.h: Likewise.
28946         * lib/gl_anylinked_list1.h: Likewise.
28947         * lib/gl_anylinked_list2.h: Likewise.
28948         * lib/gl_anyrbtree_list1.h: Likewise.
28949         * lib/gl_anyrbtree_list2.h: Likewise.
28950         * lib/gl_anytree_list1.h: Likewise.
28951         * lib/gl_anytree_list2.h: Likewise.
28952         * lib/gl_anytree_oset.h: Likewise.
28953         * lib/gl_anytreehash_list1.h: Likewise.
28954         * lib/gl_anytreehash_list2.h: Likewise.
28955         * lib/gl_array_list.c: Likewise.
28956         * lib/gl_array_list.h: Likewise.
28957         * lib/gl_array_oset.c: Likewise.
28958         * lib/gl_array_oset.h: Likewise.
28959         * lib/gl_avltree_list.c: Likewise.
28960         * lib/gl_avltree_list.h: Likewise.
28961         * lib/gl_avltree_oset.c: Likewise.
28962         * lib/gl_avltree_oset.h: Likewise.
28963         * lib/gl_avltreehash_list.c: Likewise.
28964         * lib/gl_avltreehash_list.h: Likewise.
28965         * lib/gl_carray_list.c: Likewise.
28966         * lib/gl_carray_list.h: Likewise.
28967         * lib/gl_linked_list.c: Likewise.
28968         * lib/gl_linked_list.h: Likewise.
28969         * lib/gl_linkedhash_list.c: Likewise.
28970         * lib/gl_linkedhash_list.h: Likewise.
28971         * lib/gl_list.c: Likewise.
28972         * lib/gl_list.h: Likewise.
28973         * lib/gl_oset.c: Likewise.
28974         * lib/gl_oset.h: Likewise.
28975         * lib/gl_rbtree_list.c: Likewise.
28976         * lib/gl_rbtree_list.h: Likewise.
28977         * lib/gl_rbtree_oset.c: Likewise.
28978         * lib/gl_rbtree_oset.h: Likewise.
28979         * lib/gl_rbtreehash_list.c: Likewise.
28980         * lib/gl_rbtreehash_list.h: Likewise.
28981         * lib/gl_sublist.c: Likewise.
28982         * lib/gl_sublist.h: Likewise.
28983         * lib/group-member.c: Likewise.
28984         * lib/group-member.h: Likewise.
28985         * lib/hard-locale.c: Likewise.
28986         * lib/hard-locale.h: Likewise.
28987         * lib/hash-pjw.c: Likewise.
28988         * lib/hash-pjw.h: Likewise.
28989         * lib/hash-triple.c: Likewise.
28990         * lib/hash.c: Likewise.
28991         * lib/hash.h: Likewise.
28992         * lib/human.c: Likewise.
28993         * lib/human.h: Likewise.
28994         * lib/i-ring.c: Likewise.
28995         * lib/i-ring.h: Likewise.
28996         * lib/idcache.c: Likewise.
28997         * lib/imaxabs.c: Likewise.
28998         * lib/imaxdiv.c: Likewise.
28999         * lib/inet_pton.c: Likewise.
29000         * lib/inet_pton.h: Likewise.
29001         * lib/intprops.h: Likewise.
29002         * lib/inttostr.c: Likewise.
29003         * lib/inttostr.h: Likewise.
29004         * lib/inttypes.in.h: Likewise.
29005         * lib/isapipe.c: Likewise.
29006         * lib/isdir.c: Likewise.
29007         * lib/isnan.c: Likewise.
29008         * lib/isnan.h: Likewise.
29009         * lib/isnanf.c: Likewise.
29010         * lib/isnanf.h: Likewise.
29011         * lib/isnanl-nolibm.h: Likewise.
29012         * lib/isnanl.c: Likewise.
29013         * lib/isnanl.h: Likewise.
29014         * lib/javacomp.c: Likewise.
29015         * lib/javacomp.h: Likewise.
29016         * lib/javaexec.c: Likewise.
29017         * lib/javaexec.h: Likewise.
29018         * lib/javaversion.c: Likewise.
29019         * lib/javaversion.h: Likewise.
29020         * lib/javaversion.java: Likewise.
29021         * lib/lbrkprop.h: Likewise.
29022         * lib/lchmod.h: Likewise.
29023         * lib/lchown.c: Likewise.
29024         * lib/ldexpl.c: Likewise.
29025         * lib/linebreak.c: Likewise.
29026         * lib/linebreak.h: Likewise.
29027         * lib/linebuffer.c: Likewise.
29028         * lib/linebuffer.h: Likewise.
29029         * lib/locale.in.h: Likewise.
29030         * lib/logl.c: Likewise.
29031         * lib/long-options.c: Likewise.
29032         * lib/long-options.h: Likewise.
29033         * lib/lstat.c: Likewise.
29034         * lib/lstat.h: Likewise.
29035         * lib/math.in.h: Likewise.
29036         * lib/mbchar.c: Likewise.
29037         * lib/mbchar.h: Likewise.
29038         * lib/mbfile.h: Likewise.
29039         * lib/mbiter.h: Likewise.
29040         * lib/mbscasecmp.c: Likewise.
29041         * lib/mbscasestr.c: Likewise.
29042         * lib/mbschr.c: Likewise.
29043         * lib/mbscspn.c: Likewise.
29044         * lib/mbslen.c: Likewise.
29045         * lib/mbsncasecmp.c: Likewise.
29046         * lib/mbsnlen.c: Likewise.
29047         * lib/mbspbrk.c: Likewise.
29048         * lib/mbspcasecmp.c: Likewise.
29049         * lib/mbsrchr.c: Likewise.
29050         * lib/mbssep.c: Likewise.
29051         * lib/mbsspn.c: Likewise.
29052         * lib/mbsstr.c: Likewise.
29053         * lib/mbstok_r.c: Likewise.
29054         * lib/mbswidth.c: Likewise.
29055         * lib/mbswidth.h: Likewise.
29056         * lib/mbuiter.h: Likewise.
29057         * lib/memcasecmp.c: Likewise.
29058         * lib/memcasecmp.h: Likewise.
29059         * lib/memchr.c: Likewise.
29060         * lib/memcmp.c: Likewise.
29061         * lib/memcoll.c: Likewise.
29062         * lib/memcoll.h: Likewise.
29063         * lib/memcpy.c: Likewise.
29064         * lib/memrchr.c: Likewise.
29065         * lib/mkancesdirs.c: Likewise.
29066         * lib/mkdir-p.c: Likewise.
29067         * lib/mkdir-p.h: Likewise.
29068         * lib/mkdir.c: Likewise.
29069         * lib/mkdirat.c: Likewise.
29070         * lib/mkdtemp.c: Likewise.
29071         * lib/mkstemp-safer.c: Likewise.
29072         * lib/mkstemp.c: Likewise.
29073         * lib/modechange.c: Likewise.
29074         * lib/modechange.h: Likewise.
29075         * lib/mountlist.c: Likewise.
29076         * lib/mountlist.h: Likewise.
29077         * lib/mpsort.c: Likewise.
29078         * lib/nanosleep.c: Likewise.
29079         * lib/obstack.c: Likewise.
29080         * lib/obstack.h: Likewise.
29081         * lib/open-safer.c: Likewise.
29082         * lib/open.c: Likewise.
29083         * lib/openat-die.c: Likewise.
29084         * lib/openat-priv.h: Likewise.
29085         * lib/openat-proc.c: Likewise.
29086         * lib/openat.c: Likewise.
29087         * lib/openat.h: Likewise.
29088         * lib/pagealign_alloc.c: Likewise.
29089         * lib/pagealign_alloc.h: Likewise.
29090         * lib/physmem.c: Likewise.
29091         * lib/physmem.h: Likewise.
29092         * lib/pipe-safer.c: Likewise.
29093         * lib/pipe.c: Likewise.
29094         * lib/pipe.h: Likewise.
29095         * lib/posixtm.c: Likewise.
29096         * lib/posixtm.h: Likewise.
29097         * lib/posixver.c: Likewise.
29098         * lib/printf-frexp.c: Likewise.
29099         * lib/printf-frexp.h: Likewise.
29100         * lib/printf-frexpl.c: Likewise.
29101         * lib/printf-frexpl.h: Likewise.
29102         * lib/printf.c: Likewise.
29103         * lib/progname.c: Likewise.
29104         * lib/progname.h: Likewise.
29105         * lib/progreloc.c: Likewise.
29106         * lib/putenv.c: Likewise.
29107         * lib/quote.c: Likewise.
29108         * lib/quote.h: Likewise.
29109         * lib/quotearg.c: Likewise.
29110         * lib/quotearg.h: Likewise.
29111         * lib/raise.c: Likewise.
29112         * lib/readline.c: Likewise.
29113         * lib/readline.h: Likewise.
29114         * lib/readlink.c: Likewise.
29115         * lib/readtokens.c: Likewise.
29116         * lib/readtokens.h: Likewise.
29117         * lib/readtokens0.c: Likewise.
29118         * lib/readtokens0.h: Likewise.
29119         * lib/readutmp.c: Likewise.
29120         * lib/readutmp.h: Likewise.
29121         * lib/realloc.c: Likewise.
29122         * lib/relocwrapper.c: Likewise.
29123         * lib/rename-dest-slash.c: Likewise.
29124         * lib/rename.c: Likewise.
29125         * lib/rmdir.c: Likewise.
29126         * lib/rpmatch.c: Likewise.
29127         * lib/safe-read.c: Likewise.
29128         * lib/safe-read.h: Likewise.
29129         * lib/safe-write.c: Likewise.
29130         * lib/safe-write.h: Likewise.
29131         * lib/same-inode.h: Likewise.
29132         * lib/same.c: Likewise.
29133         * lib/same.h: Likewise.
29134         * lib/save-cwd.c: Likewise.
29135         * lib/save-cwd.h: Likewise.
29136         * lib/savedir.c: Likewise.
29137         * lib/savedir.h: Likewise.
29138         * lib/savewd.c: Likewise.
29139         * lib/savewd.h: Likewise.
29140         * lib/search.in.h: Likewise.
29141         * lib/setenv.c: Likewise.
29142         * lib/setenv.h: Likewise.
29143         * lib/settime.c: Likewise.
29144         * lib/sh-quote.c: Likewise.
29145         * lib/sh-quote.h: Likewise.
29146         * lib/sig2str.c: Likewise.
29147         * lib/sig2str.h: Likewise.
29148         * lib/signal.in.h: Likewise.
29149         * lib/signbitd.c: Likewise.
29150         * lib/signbitf.c: Likewise.
29151         * lib/signbitl.c: Likewise.
29152         * lib/sigprocmask.c: Likewise.
29153         * lib/sincosl.c: Likewise.
29154         * lib/sleep.c: Likewise.
29155         * lib/sprintf.c: Likewise.
29156         * lib/sqrtl.c: Likewise.
29157         * lib/stat-time.h: Likewise.
29158         * lib/stdio--.h: Likewise.
29159         * lib/stdio-safer.h: Likewise.
29160         * lib/stdlib--.h: Likewise.
29161         * lib/stdlib-safer.h: Likewise.
29162         * lib/stdlib.in.h: Likewise.
29163         * lib/stpcpy.c: Likewise.
29164         * lib/stpncpy.c: Likewise.
29165         * lib/strchrnul.c: Likewise.
29166         * lib/strcspn.c: Likewise.
29167         * lib/strerror.c: Likewise.
29168         * lib/strftime.c: Likewise.
29169         * lib/strftime.h: Likewise.
29170         * lib/striconveh.c: Likewise.
29171         * lib/striconveh.h: Likewise.
29172         * lib/striconveha.c: Likewise.
29173         * lib/striconveha.h: Likewise.
29174         * lib/stripslash.c: Likewise.
29175         * lib/strnlen1.c: Likewise.
29176         * lib/strnlen1.h: Likewise.
29177         * lib/strtod.c: Likewise.
29178         * lib/strtoimax.c: Likewise.
29179         * lib/strtok_r.c: Likewise.
29180         * lib/strtol.c: Likewise.
29181         * lib/strtoll.c: Likewise.
29182         * lib/strtoul.c: Likewise.
29183         * lib/strtoull.c: Likewise.
29184         * lib/sysexits.in.h: Likewise.
29185         * lib/tempname.c: Likewise.
29186         * lib/tempname.h: Likewise.
29187         * lib/timespec.h: Likewise.
29188         * lib/tls.c: Likewise.
29189         * lib/tls.h: Likewise.
29190         * lib/tmpdir.c: Likewise.
29191         * lib/tmpdir.h: Likewise.
29192         * lib/tmpfile-safer.c: Likewise.
29193         * lib/tmpfile.c: Likewise.
29194         * lib/trigl.c: Likewise.
29195         * lib/trigl.h: Likewise.
29196         * lib/trim.c: Likewise.
29197         * lib/trim.h: Likewise.
29198         * lib/trunc.c: Likewise.
29199         * lib/truncf.c: Likewise.
29200         * lib/truncl.c: Likewise.
29201         * lib/tsearch.c: Likewise.
29202         * lib/unicodeio.c: Likewise.
29203         * lib/unicodeio.h: Likewise.
29204         * lib/unistd--.h: Likewise.
29205         * lib/unistd-safer.h: Likewise.
29206         * lib/unistdio/ulc-fprintf.c: Likewise.
29207         * lib/unistdio/ulc-vfprintf.c: Likewise.
29208         * lib/unlinkdir.c: Likewise.
29209         * lib/unlinkdir.h: Likewise.
29210         * lib/unlocked-io.h: Likewise.
29211         * lib/unsetenv.c: Likewise.
29212         * lib/userspec.c: Likewise.
29213         * lib/utime.c: Likewise.
29214         * lib/utimecmp.c: Likewise.
29215         * lib/utimecmp.h: Likewise.
29216         * lib/utimens.c: Likewise.
29217         * lib/verify.h: Likewise.
29218         * lib/verror.c: Likewise.
29219         * lib/verror.h: Likewise.
29220         * lib/version-etc-fsf.c: Likewise.
29221         * lib/version-etc.c: Likewise.
29222         * lib/version-etc.h: Likewise.
29223         * lib/vfprintf.c: Likewise.
29224         * lib/vprintf.c: Likewise.
29225         * lib/vsprintf.c: Likewise.
29226         * lib/w32spawn.h: Likewise.
29227         * lib/wait-process.c: Likewise.
29228         * lib/wait-process.h: Likewise.
29229         * lib/wcwidth.c: Likewise.
29230         * lib/write-any-file.c: Likewise.
29231         * lib/xalloc-die.c: Likewise.
29232         * lib/xalloc.h: Likewise.
29233         * lib/xasprintf.c: Likewise.
29234         * lib/xgetcwd.c: Likewise.
29235         * lib/xgetcwd.h: Likewise.
29236         * lib/xgetdomainname.c: Likewise.
29237         * lib/xgetdomainname.h: Likewise.
29238         * lib/xgethostname.c: Likewise.
29239         * lib/xmalloc.c: Likewise.
29240         * lib/xmalloca.c: Likewise.
29241         * lib/xmalloca.h: Likewise.
29242         * lib/xmemcoll.c: Likewise.
29243         * lib/xnanosleep.c: Likewise.
29244         * lib/xreadlink.c: Likewise.
29245         * lib/xreadlink.h: Likewise.
29246         * lib/xsetenv.c: Likewise.
29247         * lib/xsetenv.h: Likewise.
29248         * lib/xstriconv.c: Likewise.
29249         * lib/xstriconv.h: Likewise.
29250         * lib/xstrndup.c: Likewise.
29251         * lib/xstrndup.h: Likewise.
29252         * lib/xstrtod.c: Likewise.
29253         * lib/xstrtod.h: Likewise.
29254         * lib/xstrtol-error.c: Likewise.
29255         * lib/xstrtol.c: Likewise.
29256         * lib/xstrtol.h: Likewise.
29257         * lib/xtime.h: Likewise.
29258         * lib/xvasprintf.c: Likewise.
29259         * lib/xvasprintf.h: Likewise.
29260         * lib/yesno.c: Likewise.
29261         * lib/yesno.h: Likewise.
29262         * posix-modules: Likewise.
29263         * tests/test-alloca-opt.c: Likewise.
29264         * tests/test-arcfour.c: Likewise.
29265         * tests/test-arctwo.c: Likewise.
29266         * tests/test-argmatch.c: Likewise.
29267         * tests/test-argp-2.sh: Likewise.
29268         * tests/test-argp.c: Likewise.
29269         * tests/test-arpa_inet.c: Likewise.
29270         * tests/test-array_list.c: Likewise.
29271         * tests/test-array_oset.c: Likewise.
29272         * tests/test-atexit.c: Likewise.
29273         * tests/test-avltree_list.c: Likewise.
29274         * tests/test-avltree_oset.c: Likewise.
29275         * tests/test-avltreehash_list.c: Likewise.
29276         * tests/test-base64.c: Likewise.
29277         * tests/test-binary-io.c: Likewise.
29278         * tests/test-byteswap.c: Likewise.
29279         * tests/test-c-ctype.c: Likewise.
29280         * tests/test-c-strcasecmp.c: Likewise.
29281         * tests/test-c-strcasestr.c: Likewise.
29282         * tests/test-c-strncasecmp.c: Likewise.
29283         * tests/test-c-strstr.c: Likewise.
29284         * tests/test-canonicalize-lgpl.c: Likewise.
29285         * tests/test-canonicalize.c: Likewise.
29286         * tests/test-carray_list.c: Likewise.
29287         * tests/test-ceilf.c: Likewise.
29288         * tests/test-ceill.c: Likewise.
29289         * tests/test-count-one-bits.c: Likewise.
29290         * tests/test-crc.c: Likewise.
29291         * tests/test-dirname.c: Likewise.
29292         * tests/test-fbufmode.c: Likewise.
29293         * tests/test-fcntl.c: Likewise.
29294         * tests/test-fflush.c: Likewise.
29295         * tests/test-floorf.c: Likewise.
29296         * tests/test-floorl.c: Likewise.
29297         * tests/test-fopen.c: Likewise.
29298         * tests/test-fprintf-posix.c: Likewise.
29299         * tests/test-fprintf-posix.h: Likewise.
29300         * tests/test-fpurge.c: Likewise.
29301         * tests/test-freadable.c: Likewise.
29302         * tests/test-freadahead.c: Likewise.
29303         * tests/test-freading.c: Likewise.
29304         * tests/test-freopen.c: Likewise.
29305         * tests/test-frexp.c: Likewise.
29306         * tests/test-frexpl.c: Likewise.
29307         * tests/test-fseek.c: Likewise.
29308         * tests/test-fseeko.c: Likewise.
29309         * tests/test-fseterr.c: Likewise.
29310         * tests/test-fstrcmp.c: Likewise.
29311         * tests/test-ftell.c: Likewise.
29312         * tests/test-ftello.c: Likewise.
29313         * tests/test-fwritable.c: Likewise.
29314         * tests/test-fwriting.c: Likewise.
29315         * tests/test-getaddrinfo.c: Likewise.
29316         * tests/test-getpass.c: Likewise.
29317         * tests/test-gettimeofday.c: Likewise.
29318         * tests/test-hmac-md5.c: Likewise.
29319         * tests/test-hmac-sha1.c: Likewise.
29320         * tests/test-iconv.c: Likewise.
29321         * tests/test-iconvme.c: Likewise.
29322         * tests/test-inttypes.c: Likewise.
29323         * tests/test-isnan.c: Likewise.
29324         * tests/test-isnanf.c: Likewise.
29325         * tests/test-isnanl-nolibm.c: Likewise.
29326         * tests/test-isnanl.c: Likewise.
29327         * tests/test-isnanl.h: Likewise.
29328         * tests/test-ldexpl.c: Likewise.
29329         * tests/test-linked_list.c: Likewise.
29330         * tests/test-linkedhash_list.c: Likewise.
29331         * tests/test-locale.c: Likewise.
29332         * tests/test-localename.c: Likewise.
29333         * tests/test-lock.c: Likewise.
29334         * tests/test-lseek.c: Likewise.
29335         * tests/test-malloca.c: Likewise.
29336         * tests/test-math.c: Likewise.
29337         * tests/test-mbscasecmp.c: Likewise.
29338         * tests/test-mbscasestr1.c: Likewise.
29339         * tests/test-mbscasestr2.c: Likewise.
29340         * tests/test-mbscasestr3.c: Likewise.
29341         * tests/test-mbscasestr4.c: Likewise.
29342         * tests/test-mbschr.c: Likewise.
29343         * tests/test-mbscspn.c: Likewise.
29344         * tests/test-mbsncasecmp.c: Likewise.
29345         * tests/test-mbspbrk.c: Likewise.
29346         * tests/test-mbspcasecmp.c: Likewise.
29347         * tests/test-mbsrchr.c: Likewise.
29348         * tests/test-mbsspn.c: Likewise.
29349         * tests/test-mbsstr1.c: Likewise.
29350         * tests/test-mbsstr2.c: Likewise.
29351         * tests/test-mbsstr3.c: Likewise.
29352         * tests/test-md5.c: Likewise.
29353         * tests/test-memmem.c: Likewise.
29354         * tests/test-netinet_in.c: Likewise.
29355         * tests/test-open.c: Likewise.
29356         * tests/test-printf-frexp.c: Likewise.
29357         * tests/test-printf-frexpl.c: Likewise.
29358         * tests/test-printf-posix.c: Likewise.
29359         * tests/test-printf-posix.h: Likewise.
29360         * tests/test-rbtree_list.c: Likewise.
29361         * tests/test-rbtree_oset.c: Likewise.
29362         * tests/test-rbtreehash_list.c: Likewise.
29363         * tests/test-read-file.c: Likewise.
29364         * tests/test-rijndael.c: Likewise.
29365         * tests/test-search.c: Likewise.
29366         * tests/test-signbit.c: Likewise.
29367         * tests/test-sleep.c: Likewise.
29368         * tests/test-snprintf-posix.c: Likewise.
29369         * tests/test-snprintf-posix.h: Likewise.
29370         * tests/test-snprintf.c: Likewise.
29371         * tests/test-sprintf-posix.c: Likewise.
29372         * tests/test-sprintf-posix.h: Likewise.
29373         * tests/test-stat-time.c: Likewise.
29374         * tests/test-stdbool.c: Likewise.
29375         * tests/test-stdint.c: Likewise.
29376         * tests/test-stdio.c: Likewise.
29377         * tests/test-stdlib.c: Likewise.
29378         * tests/test-stpncpy.c: Likewise.
29379         * tests/test-strcasestr.c: Likewise.
29380         * tests/test-striconv.c: Likewise.
29381         * tests/test-striconveh.c: Likewise.
29382         * tests/test-striconveha.c: Likewise.
29383         * tests/test-string.c: Likewise.
29384         * tests/test-sys_select.c: Likewise.
29385         * tests/test-sys_socket.c: Likewise.
29386         * tests/test-sys_stat.c: Likewise.
29387         * tests/test-sys_time.c: Likewise.
29388         * tests/test-sysexits.c: Likewise.
29389         * tests/test-time.c: Likewise.
29390         * tests/test-tls.c: Likewise.
29391         * tests/test-trunc.c: Likewise.
29392         * tests/test-truncf.c: Likewise.
29393         * tests/test-truncl.c: Likewise.
29394         * tests/test-unistd.c: Likewise.
29395         * tests/test-vasnprintf-posix.c: Likewise.
29396         * tests/test-vasnprintf-posix2.c: Likewise.
29397         * tests/test-vasnprintf.c: Likewise.
29398         * tests/test-vasprintf-posix.c: Likewise.
29399         * tests/test-vasprintf.c: Likewise.
29400         * tests/test-verify.c: Likewise.
29401         * tests/test-vfprintf-posix.c: Likewise.
29402         * tests/test-vprintf-posix.c: Likewise.
29403         * tests/test-vsnprintf-posix.c: Likewise.
29404         * tests/test-vsnprintf.c: Likewise.
29405         * tests/test-vsprintf-posix.c: Likewise.
29406         * tests/test-wchar.c: Likewise.
29407         * tests/test-wctype.c: Likewise.
29408         * tests/test-wcwidth.c: Likewise.
29409         * tests/test-xstrtol.c: Likewise.
29410         * tests/test-xvasprintf.c: Likewise.
29411         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29412         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29413         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29414         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29415         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29416         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29417         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29418         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29419         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29420         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29421         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29422         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29423         * tests/uniname/test-uninames.c: Likewise.
29424         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29425         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
29426         * tests/unistdio/test-u16-printf1.h: Likewise.
29427         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29428         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29429         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29430         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29431         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29432         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29433         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29434         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
29435         * tests/unistdio/test-u32-printf1.h: Likewise.
29436         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29437         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29438         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29439         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29440         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29441         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29442         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29443         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
29444         * tests/unistdio/test-u8-printf1.h: Likewise.
29445         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29446         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29447         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29448         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29449         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29450         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29451         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29452         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
29453         * tests/unistdio/test-ulc-printf1.h: Likewise.
29454         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29455         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29456         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29457         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29458         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29459         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29460         * tests/uniwidth/test-u16-strwidth.c: Likewise.
29461         * tests/uniwidth/test-u16-width.c: Likewise.
29462         * tests/uniwidth/test-u32-strwidth.c: Likewise.
29463         * tests/uniwidth/test-u32-width.c: Likewise.
29464         * tests/uniwidth/test-u8-strwidth.c: Likewise.
29465         * tests/uniwidth/test-u8-width.c: Likewise.
29466         * tests/uniwidth/test-uc_width.c: Likewise.
29467         * config/srclist-update: Likewise.
29468         (fixlicense): Update to GPLv3+.
29469
29470         Change copyright notice from LGPLv2.1+ to LGPLv3+.
29471         * tests/test-tsearch.c: Change copyright notice.
29472
29473         Change copyright notice from LGPLv2.0+ to LGPLv3+.
29474         * lib/c-strcaseeq.h: Change copyright notice.
29475         * lib/streq.h: Likewise.
29476         * lib/uniconv.h: Likewise.
29477         * lib/uniconv/u-conv-from-enc.h: Likewise.
29478         * lib/uniconv/u-conv-to-enc.h: Likewise.
29479         * lib/uniconv/u-strconv-from-enc.h: Likewise.
29480         * lib/uniconv/u-strconv-to-enc.h: Likewise.
29481         * lib/uniconv/u16-conv-from-enc.c: Likewise.
29482         * lib/uniconv/u16-conv-to-enc.c: Likewise.
29483         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
29484         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
29485         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
29486         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
29487         * lib/uniconv/u32-conv-from-enc.c: Likewise.
29488         * lib/uniconv/u32-conv-to-enc.c: Likewise.
29489         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
29490         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
29491         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
29492         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
29493         * lib/uniconv/u8-conv-from-enc.c: Likewise.
29494         * lib/uniconv/u8-conv-to-enc.c: Likewise.
29495         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
29496         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
29497         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
29498         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
29499         * lib/uniname.h: Likewise.
29500         * lib/uniname/uniname.c: Likewise.
29501         * lib/unistdio.h: Likewise.
29502         * lib/unistdio/u-asnprintf.h: Likewise.
29503         * lib/unistdio/u-asprintf.h: Likewise.
29504         * lib/unistdio/u-printf-args.c: Likewise.
29505         * lib/unistdio/u-printf-args.h: Likewise.
29506         * lib/unistdio/u-printf-parse.h: Likewise.
29507         * lib/unistdio/u-snprintf.h: Likewise.
29508         * lib/unistdio/u-sprintf.h: Likewise.
29509         * lib/unistdio/u-vasprintf.h: Likewise.
29510         * lib/unistdio/u-vsnprintf.h: Likewise.
29511         * lib/unistdio/u-vsprintf.h: Likewise.
29512         * lib/unistdio/u16-asnprintf.c: Likewise.
29513         * lib/unistdio/u16-asprintf.c: Likewise.
29514         * lib/unistdio/u16-printf-parse.c: Likewise.
29515         * lib/unistdio/u16-snprintf.c: Likewise.
29516         * lib/unistdio/u16-sprintf.c: Likewise.
29517         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
29518         * lib/unistdio/u16-u16-asprintf.c: Likewise.
29519         * lib/unistdio/u16-u16-snprintf.c: Likewise.
29520         * lib/unistdio/u16-u16-sprintf.c: Likewise.
29521         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
29522         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
29523         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
29524         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
29525         * lib/unistdio/u16-vasnprintf.c: Likewise.
29526         * lib/unistdio/u16-vasprintf.c: Likewise.
29527         * lib/unistdio/u16-vsnprintf.c: Likewise.
29528         * lib/unistdio/u16-vsprintf.c: Likewise.
29529         * lib/unistdio/u32-asnprintf.c: Likewise.
29530         * lib/unistdio/u32-asprintf.c: Likewise.
29531         * lib/unistdio/u32-printf-parse.c: Likewise.
29532         * lib/unistdio/u32-snprintf.c: Likewise.
29533         * lib/unistdio/u32-sprintf.c: Likewise.
29534         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
29535         * lib/unistdio/u32-u32-asprintf.c: Likewise.
29536         * lib/unistdio/u32-u32-snprintf.c: Likewise.
29537         * lib/unistdio/u32-u32-sprintf.c: Likewise.
29538         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
29539         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
29540         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
29541         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
29542         * lib/unistdio/u32-vasnprintf.c: Likewise.
29543         * lib/unistdio/u32-vasprintf.c: Likewise.
29544         * lib/unistdio/u32-vsnprintf.c: Likewise.
29545         * lib/unistdio/u32-vsprintf.c: Likewise.
29546         * lib/unistdio/u8-asnprintf.c: Likewise.
29547         * lib/unistdio/u8-asprintf.c: Likewise.
29548         * lib/unistdio/u8-printf-parse.c: Likewise.
29549         * lib/unistdio/u8-snprintf.c: Likewise.
29550         * lib/unistdio/u8-sprintf.c: Likewise.
29551         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
29552         * lib/unistdio/u8-u8-asprintf.c: Likewise.
29553         * lib/unistdio/u8-u8-snprintf.c: Likewise.
29554         * lib/unistdio/u8-u8-sprintf.c: Likewise.
29555         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
29556         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
29557         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
29558         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
29559         * lib/unistdio/u8-vasnprintf.c: Likewise.
29560         * lib/unistdio/u8-vasprintf.c: Likewise.
29561         * lib/unistdio/u8-vsnprintf.c: Likewise.
29562         * lib/unistdio/u8-vsprintf.c: Likewise.
29563         * lib/unistdio/ulc-asnprintf.c: Likewise.
29564         * lib/unistdio/ulc-asprintf.c: Likewise.
29565         * lib/unistdio/ulc-printf-parse.c: Likewise.
29566         * lib/unistdio/ulc-snprintf.c: Likewise.
29567         * lib/unistdio/ulc-sprintf.c: Likewise.
29568         * lib/unistdio/ulc-vasnprintf.c: Likewise.
29569         * lib/unistdio/ulc-vasprintf.c: Likewise.
29570         * lib/unistdio/ulc-vsnprintf.c: Likewise.
29571         * lib/unistdio/ulc-vsprintf.c: Likewise.
29572         * lib/unistr.h: Likewise.
29573         * lib/unistr/u-cpy-alloc.h: Likewise.
29574         * lib/unistr/u-cpy.h: Likewise.
29575         * lib/unistr/u-endswith.h: Likewise.
29576         * lib/unistr/u-move.h: Likewise.
29577         * lib/unistr/u-set.h: Likewise.
29578         * lib/unistr/u-startswith.h: Likewise.
29579         * lib/unistr/u-stpcpy.h: Likewise.
29580         * lib/unistr/u-stpncpy.h: Likewise.
29581         * lib/unistr/u-strcat.h: Likewise.
29582         * lib/unistr/u-strcpy.h: Likewise.
29583         * lib/unistr/u-strcspn.h: Likewise.
29584         * lib/unistr/u-strdup.h: Likewise.
29585         * lib/unistr/u-strlen.h: Likewise.
29586         * lib/unistr/u-strncat.h: Likewise.
29587         * lib/unistr/u-strncpy.h: Likewise.
29588         * lib/unistr/u-strnlen.h: Likewise.
29589         * lib/unistr/u-strpbrk.h: Likewise.
29590         * lib/unistr/u-strspn.h: Likewise.
29591         * lib/unistr/u-strstr.h: Likewise.
29592         * lib/unistr/u-strtok.h: Likewise.
29593         * lib/unistr/u16-check.c: Likewise.
29594         * lib/unistr/u16-chr.c: Likewise.
29595         * lib/unistr/u16-cmp.c: Likewise.
29596         * lib/unistr/u16-cpy-alloc.c: Likewise.
29597         * lib/unistr/u16-cpy.c: Likewise.
29598         * lib/unistr/u16-endswith.c: Likewise.
29599         * lib/unistr/u16-mblen.c: Likewise.
29600         * lib/unistr/u16-mbsnlen.c: Likewise.
29601         * lib/unistr/u16-mbtouc-aux.c: Likewise.
29602         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
29603         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
29604         * lib/unistr/u16-mbtouc.c: Likewise.
29605         * lib/unistr/u16-mbtoucr.c: Likewise.
29606         * lib/unistr/u16-move.c: Likewise.
29607         * lib/unistr/u16-next.c: Likewise.
29608         * lib/unistr/u16-prev.c: Likewise.
29609         * lib/unistr/u16-set.c: Likewise.
29610         * lib/unistr/u16-startswith.c: Likewise.
29611         * lib/unistr/u16-stpcpy.c: Likewise.
29612         * lib/unistr/u16-stpncpy.c: Likewise.
29613         * lib/unistr/u16-strcat.c: Likewise.
29614         * lib/unistr/u16-strchr.c: Likewise.
29615         * lib/unistr/u16-strcmp.c: Likewise.
29616         * lib/unistr/u16-strcpy.c: Likewise.
29617         * lib/unistr/u16-strcspn.c: Likewise.
29618         * lib/unistr/u16-strdup.c: Likewise.
29619         * lib/unistr/u16-strlen.c: Likewise.
29620         * lib/unistr/u16-strmblen.c: Likewise.
29621         * lib/unistr/u16-strmbtouc.c: Likewise.
29622         * lib/unistr/u16-strncat.c: Likewise.
29623         * lib/unistr/u16-strncmp.c: Likewise.
29624         * lib/unistr/u16-strncpy.c: Likewise.
29625         * lib/unistr/u16-strnlen.c: Likewise.
29626         * lib/unistr/u16-strpbrk.c: Likewise.
29627         * lib/unistr/u16-strrchr.c: Likewise.
29628         * lib/unistr/u16-strspn.c: Likewise.
29629         * lib/unistr/u16-strstr.c: Likewise.
29630         * lib/unistr/u16-strtok.c: Likewise.
29631         * lib/unistr/u16-to-u32.c: Likewise.
29632         * lib/unistr/u16-to-u8.c: Likewise.
29633         * lib/unistr/u16-uctomb-aux.c: Likewise.
29634         * lib/unistr/u16-uctomb.c: Likewise.
29635         * lib/unistr/u32-check.c: Likewise.
29636         * lib/unistr/u32-chr.c: Likewise.
29637         * lib/unistr/u32-cmp.c: Likewise.
29638         * lib/unistr/u32-cpy-alloc.c: Likewise.
29639         * lib/unistr/u32-cpy.c: Likewise.
29640         * lib/unistr/u32-endswith.c: Likewise.
29641         * lib/unistr/u32-mblen.c: Likewise.
29642         * lib/unistr/u32-mbsnlen.c: Likewise.
29643         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
29644         * lib/unistr/u32-mbtouc.c: Likewise.
29645         * lib/unistr/u32-mbtoucr.c: Likewise.
29646         * lib/unistr/u32-move.c: Likewise.
29647         * lib/unistr/u32-next.c: Likewise.
29648         * lib/unistr/u32-prev.c: Likewise.
29649         * lib/unistr/u32-set.c: Likewise.
29650         * lib/unistr/u32-startswith.c: Likewise.
29651         * lib/unistr/u32-stpcpy.c: Likewise.
29652         * lib/unistr/u32-stpncpy.c: Likewise.
29653         * lib/unistr/u32-strcat.c: Likewise.
29654         * lib/unistr/u32-strchr.c: Likewise.
29655         * lib/unistr/u32-strcmp.c: Likewise.
29656         * lib/unistr/u32-strcpy.c: Likewise.
29657         * lib/unistr/u32-strcspn.c: Likewise.
29658         * lib/unistr/u32-strdup.c: Likewise.
29659         * lib/unistr/u32-strlen.c: Likewise.
29660         * lib/unistr/u32-strmblen.c: Likewise.
29661         * lib/unistr/u32-strmbtouc.c: Likewise.
29662         * lib/unistr/u32-strncat.c: Likewise.
29663         * lib/unistr/u32-strncmp.c: Likewise.
29664         * lib/unistr/u32-strncpy.c: Likewise.
29665         * lib/unistr/u32-strnlen.c: Likewise.
29666         * lib/unistr/u32-strpbrk.c: Likewise.
29667         * lib/unistr/u32-strrchr.c: Likewise.
29668         * lib/unistr/u32-strspn.c: Likewise.
29669         * lib/unistr/u32-strstr.c: Likewise.
29670         * lib/unistr/u32-strtok.c: Likewise.
29671         * lib/unistr/u32-to-u16.c: Likewise.
29672         * lib/unistr/u32-to-u8.c: Likewise.
29673         * lib/unistr/u32-uctomb.c: Likewise.
29674         * lib/unistr/u8-check.c: Likewise.
29675         * lib/unistr/u8-chr.c: Likewise.
29676         * lib/unistr/u8-cmp.c: Likewise.
29677         * lib/unistr/u8-cpy-alloc.c: Likewise.
29678         * lib/unistr/u8-cpy.c: Likewise.
29679         * lib/unistr/u8-endswith.c: Likewise.
29680         * lib/unistr/u8-mblen.c: Likewise.
29681         * lib/unistr/u8-mbsnlen.c: Likewise.
29682         * lib/unistr/u8-mbtouc-aux.c: Likewise.
29683         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
29684         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
29685         * lib/unistr/u8-mbtouc.c: Likewise.
29686         * lib/unistr/u8-mbtoucr.c: Likewise.
29687         * lib/unistr/u8-move.c: Likewise.
29688         * lib/unistr/u8-next.c: Likewise.
29689         * lib/unistr/u8-prev.c: Likewise.
29690         * lib/unistr/u8-set.c: Likewise.
29691         * lib/unistr/u8-startswith.c: Likewise.
29692         * lib/unistr/u8-stpcpy.c: Likewise.
29693         * lib/unistr/u8-stpncpy.c: Likewise.
29694         * lib/unistr/u8-strcat.c: Likewise.
29695         * lib/unistr/u8-strchr.c: Likewise.
29696         * lib/unistr/u8-strcmp.c: Likewise.
29697         * lib/unistr/u8-strcpy.c: Likewise.
29698         * lib/unistr/u8-strcspn.c: Likewise.
29699         * lib/unistr/u8-strdup.c: Likewise.
29700         * lib/unistr/u8-strlen.c: Likewise.
29701         * lib/unistr/u8-strmblen.c: Likewise.
29702         * lib/unistr/u8-strmbtouc.c: Likewise.
29703         * lib/unistr/u8-strncat.c: Likewise.
29704         * lib/unistr/u8-strncmp.c: Likewise.
29705         * lib/unistr/u8-strncpy.c: Likewise.
29706         * lib/unistr/u8-strnlen.c: Likewise.
29707         * lib/unistr/u8-strpbrk.c: Likewise.
29708         * lib/unistr/u8-strrchr.c: Likewise.
29709         * lib/unistr/u8-strspn.c: Likewise.
29710         * lib/unistr/u8-strstr.c: Likewise.
29711         * lib/unistr/u8-strtok.c: Likewise.
29712         * lib/unistr/u8-to-u16.c: Likewise.
29713         * lib/unistr/u8-to-u32.c: Likewise.
29714         * lib/unistr/u8-uctomb-aux.c: Likewise.
29715         * lib/unistr/u8-uctomb.c: Likewise.
29716         * lib/unitypes.h: Likewise.
29717         * lib/uniwidth.h: Likewise.
29718         * lib/uniwidth/cjk.h: Likewise.
29719         * lib/uniwidth/u16-strwidth.c: Likewise.
29720         * lib/uniwidth/u16-width.c: Likewise.
29721         * lib/uniwidth/u32-strwidth.c: Likewise.
29722         * lib/uniwidth/u32-width.c: Likewise.
29723         * lib/uniwidth/u8-strwidth.c: Likewise.
29724         * lib/uniwidth/u8-width.c: Likewise.
29725         * lib/uniwidth/width.c: Likewise.
29726
29727 2007-10-07  Bruno Haible  <bruno@clisp.org>
29728
29729         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
29730         The file is still under LGPL (see modules/inttypes).
29731
29732 2007-10-06  Bruno Haible  <bruno@clisp.org>
29733
29734         * modules/trunc (Dependencies): Add 'extensions'.
29735         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
29736         Reported by Ben Pfaff <blp@gnu.org>.
29737
29738 2007-10-06  Bruno Haible  <bruno@clisp.org>
29739
29740         * modules/freopen-tests: New file.
29741         * tests/test-freopen.c: New file.
29742
29743         * modules/fopen-tests: New file.
29744         * tests/test-fopen.c: New file.
29745
29746         * modules/fopen: New file.
29747         * lib/fopen.c: New file.
29748         * m4/fopen.m4: New file.
29749         * modules/freopen: New file.
29750         * lib/freopen.c: New file.
29751         * m4/freopen.m4: New file.
29752         * lib/stdio.in.h (fopen, freopen): New declarations.
29753         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
29754         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
29755         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
29756         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
29757         * doc/functions/fopen.texi: Mention the 'fopen' module.
29758         * doc/functions/freopen.texi: Mention the 'freopen' module.
29759
29760 2007-10-06  Bruno Haible  <bruno@clisp.org>
29761
29762         * modules/open-tests: New file.
29763         * tests/test-open.c: New file.
29764
29765         * modules/open: New file.
29766         * lib/open.c: New file.
29767         * m4/open.m4: New file.
29768         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
29769         lib/open.c does.
29770         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
29771         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
29772         macros.
29773         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
29774         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
29775         REPLACE_OPEN.
29776         * doc/functions/open.texi: Mention the 'open' module.
29777
29778 2007-10-04  Bruno Haible  <bruno@clisp.org>
29779
29780         * modules/ceill-tests: New file.
29781         * tests/test-ceill.c: New file.
29782
29783         * modules/ceill: New file.
29784         * lib/ceill.c: Replace entire file.
29785         * m4/ceill.m4: New file.
29786         * lib/math.in.h (ceill): Replace declaration.
29787         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
29788         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
29789         * doc/functions/ceill.texi: Mention the 'ceill' module.
29790         * modules/mathl (Files): Remove lib/ceill.c.
29791         (Depends-on): Add ceill.
29792
29793 2007-10-04  Bruno Haible  <bruno@clisp.org>
29794
29795         * modules/ceilf-tests: New file.
29796         * tests/test-ceilf.c: New file.
29797
29798         * modules/ceilf: New file.
29799         * lib/ceil.c: New file.
29800         * lib/ceilf.c: New file.
29801         * m4/ceilf.m4: New file.
29802         * lib/math.in.h (ceilf): New declaration.
29803         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
29804         HAVE_DECL_CEILF.
29805         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
29806         HAVE_DECL_CEILF.
29807         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
29808
29809 2007-10-04  Bruno Haible  <bruno@clisp.org>
29810
29811         * modules/floorl-tests: New file.
29812         * tests/test-floorl.c: New file.
29813
29814         * modules/floorl: New file.
29815         * lib/floorl.c: Replace entire file.
29816         * m4/floorl.m4: New file.
29817         * lib/math.in.h (floorl): Replace declaration.
29818         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
29819         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
29820         * doc/functions/floorl.texi: Mention the 'floorl' module.
29821         * modules/mathl (Files): Remove lib/floorl.c.
29822         (Depends-on): Add floorl.
29823
29824 2007-10-04  Bruno Haible  <bruno@clisp.org>
29825
29826         * modules/floorf-tests: New file.
29827         * tests/test-floorf.c: New file.
29828
29829         * modules/floorf: New file.
29830         * lib/floor.c: New file.
29831         * lib/floorf.c: New file.
29832         * m4/floorf.m4: New file.
29833         * lib/math.in.h (floorf): New declaration.
29834         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
29835         HAVE_DECL_FLOORF.
29836         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
29837         HAVE_DECL_FLOORF.
29838         * doc/functions/floorf.texi: Mention the 'floorf' module.
29839
29840 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
29841             Bruno Haible  <bruno@clisp.org>
29842
29843         Advertise for the Git server instead of the CVS server.
29844         * doc/gnulib-intro.texi (Steady Development): Mention the Git
29845         repository instead of the CVS one.
29846         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
29847         about all VCS systems generically.
29848         * doc/gnulib.texi (Introduction): Capitalize `Git'.
29849
29850 2007-10-04  Bruno Haible  <bruno@clisp.org>
29851
29852         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
29853         means.
29854         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
29855
29856 2007-10-04  Bruno Haible  <bruno@clisp.org>
29857
29858         * modules/truncl-tests: New file.
29859         * tests/test-truncl.c: New file.
29860
29861         * modules/truncl: New file.
29862         * lib/truncl.c: New file.
29863         * m4/truncl.m4: New file.
29864         * lib/math.in.h (truncl): New declaration.
29865         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
29866         HAVE_DECL_TRUNCL.
29867         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
29868         HAVE_DECL_TRUNCL.
29869         * doc/functions/truncl.texi: Mention the 'truncl' module.
29870
29871 2007-10-04  Bruno Haible  <bruno@clisp.org>
29872
29873         * modules/truncf-tests: New file.
29874         * tests/test-truncf.c: New file.
29875
29876         * modules/truncf: New file.
29877         * lib/trunc.c: Make paramerizable through USE_* macros.
29878         * lib/truncf.c: New file.
29879         * m4/truncf.m4: New file.
29880         * lib/math.in.h (truncf): New declaration.
29881         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
29882         HAVE_DECL_TRUNCF.
29883         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
29884         HAVE_DECL_TRUNCF.
29885         * doc/functions/truncf.texi: Mention the 'truncf' module.
29886
29887 2007-10-03  Bruno Haible  <bruno@clisp.org>
29888
29889         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
29890         augmentation also for tests modules.
29891         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
29892         * modules/atexit-tests (Makefile.am): Likewise.
29893         * modules/binary-io-tests (Makefile.am): Likewise.
29894         * modules/c-strcase-tests (Makefile.am): Likewise.
29895         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
29896         * modules/canonicalize-tests (Makefile.am): Likewise.
29897         * modules/closein-tests (Makefile.am): Likewise.
29898         * modules/fprintf-posix-tests (Makefile.am): Likewise.
29899         * modules/freadahead-tests (Makefile.am): Likewise.
29900         * modules/fseek-tests (Makefile.am): Likewise.
29901         * modules/fseeko-tests (Makefile.am): Likewise.
29902         * modules/ftell-tests (Makefile.am): Likewise.
29903         * modules/ftello-tests (Makefile.am): Likewise.
29904         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
29905         * modules/isnanl-tests (Makefile.am): Likewise.
29906         * modules/lseek-tests (Makefile.am): Likewise.
29907         * modules/mbscasecmp-tests (Makefile.am): Likewise.
29908         * modules/mbscasestr-tests (Makefile.am): Likewise.
29909         * modules/mbschr-tests (Makefile.am): Likewise.
29910         * modules/mbscspn-tests (Makefile.am): Likewise.
29911         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
29912         * modules/mbspbrk-tests (Makefile.am): Likewise.
29913         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
29914         * modules/mbsrchr-tests (Makefile.am): Likewise.
29915         * modules/mbsspn-tests (Makefile.am): Likewise.
29916         * modules/mbsstr-tests (Makefile.am): Likewise.
29917         * modules/printf-posix-tests (Makefile.am): Likewise.
29918         * modules/snprintf-posix-tests (Makefile.am): Likewise.
29919         * modules/sprintf-posix-tests (Makefile.am): Likewise.
29920         * modules/tsearch-tests (Makefile.am): Likewise.
29921         * modules/uniname/uniname-tests (Makefile.am): Likewise.
29922         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
29923         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
29924         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
29925         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
29926         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
29927         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
29928         * modules/vprintf-posix-tests (Makefile.am): Likewise.
29929         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
29930         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
29931         * modules/xstrtoimax-tests (Makefile.am): Likewise.
29932         * modules/xstrtol-tests (Makefile.am): Likewise.
29933         * modules/xstrtoumax-tests (Makefile.am): Likewise.
29934         * modules/yesno-tests (Makefile.am): Likewise.
29935
29936 2007-10-03  Bruno Haible  <bruno@clisp.org>
29937
29938         * modules/trunc-tests: New file.
29939         * tests/test-trunc.c: New file.
29940
29941         * modules/trunc: New file.
29942         * lib/trunc.c: New file.
29943         * m4/trunc.m4: New file.
29944         * lib/math.in.h (trunc): New declaration.
29945         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
29946         HAVE_DECL_TRUNC.
29947         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
29948         HAVE_DECL_TRUNC.
29949         * doc/functions/trunc.texi: Mention the 'trunc' module.
29950
29951 2007-10-03  Bruno Haible  <bruno@clisp.org>
29952
29953         * tests/test-fpending.c: New file, mostly copied
29954         from coreutils/lib/t-fpending.c.
29955         * modules/fpending-tests: New file.
29956
29957 2007-10-03  Bruno Haible  <bruno@clisp.org>
29958
29959         Port the stdio extensions to QNX (untested).
29960         * lib/fseterr.c (fseterr): Add support for QNX.
29961         * lib/fbufmode.c (fbufmode): Likewise.
29962         * lib/freadable.c (freadable): Likewise.
29963         * lib/fwritable.c (fwritable): Likewise.
29964         * lib/freading.c (freading): Likewise.
29965         * lib/fwriting.c (fwriting): Likewise.
29966         * lib/freadahead.c (freadahed): Likewise.
29967         * lib/fpurge.c (fpurge): Likewise.
29968         * lib/fseeko.c (rpl_fseeko): Likewise.
29969
29970 2007-10-03  Bruno Haible  <bruno@clisp.org>
29971             Jim Meyering  <jim@meyering.net>
29972             Eric Blake  <ebb9@byu.net>
29973
29974         * doc/relocatable.texi: Use @command instead of @program.
29975
29976 2007-10-02  Jim Meyering  <jim@meyering.net>
29977
29978         Perform one more "_.h" -> ".in.h" substitution.
29979         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
29980         instead of unistd_.h here, too.
29981
29982 2007-10-01  Bruno Haible  <bruno@clisp.org>
29983
29984         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
29985         Needed for the alloca-opt module.
29986
29987 2007-09-30  Bruno Haible  <bruno@clisp.org>
29988
29989         * lib/alloca.in.h: Renamed from lib/alloca_.h.
29990         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
29991         alloca_.h.
29992         * lib/argz.in.h: Renamed from lib/argz_.h.
29993         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
29994         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
29995         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
29996         byteswap_.h.
29997         * lib/dirent.in.h: Renamed from lib/dirent_.h.
29998         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
29999         dirent_.h.
30000         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
30001         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
30002         fcntl_.h.
30003         * lib/float.in.h: Renamed from lib/float_.h.
30004         * modules/float (Files, Makefile.am): Use float.in.h instead of
30005         float_.h.
30006         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
30007         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
30008         fnmatch_.h.
30009         * lib/getopt.in.h: Renamed from lib/getopt_.h.
30010         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
30011         getopt_.h.
30012         * lib/glob.in.h: Renamed from lib/glob_.h.
30013         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
30014         * lib/iconv.in.h: Renamed from lib/iconv_.h.
30015         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
30016         iconv_.h.
30017         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
30018         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
30019         inttypes_.h.
30020         * lib/locale.in.h: Renamed from lib/locale_.h.
30021         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
30022         locale_.h.
30023         * lib/math.in.h: Renamed from lib/math_.h.
30024         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
30025         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
30026         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
30027         of netinet_in_.h. Add dependency.
30028         * lib/poll.in.h: Renamed from lib/poll_.h.
30029         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
30030         * lib/search.in.h: Renamed from lib/search_.h.
30031         * modules/search (Files, Makefile.am): Use search.in.h instead of
30032         search_.h.
30033         * lib/signal.in.h: Renamed from lib/signal_.h.
30034         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
30035         _signal.h.
30036         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
30037         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
30038         stdbool_.h.
30039         * lib/stdint.in.h: Renamed from lib/stdint_.h.
30040         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
30041         stdint_.h.
30042         * lib/stdio.in.h: Renamed from lib/stdio_.h.
30043         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
30044         stdio_.h.
30045         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
30046         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
30047         stdlib_.h.
30048         * lib/string.in.h: Renamed from lib/string_.h.
30049         * modules/string (Files, Makefile.am): Use string.in.h instead of
30050         string_.h.
30051         * doc/gnulib-tool.texi (Initial import): Update.
30052         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
30053         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
30054         of sys_select_.h. Add dependency.
30055         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
30056         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
30057         of sys_socket_.h.
30058         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
30059         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
30060         sys_stat_.h.
30061         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
30062         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
30063         sys_time_.h.
30064         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
30065         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
30066         sysexits_.h.
30067         * lib/time.in.h: Renamed from lib/time_.h.
30068         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
30069         * lib/unistd.in.h: Renamed from lib/unistd_.h.
30070         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
30071         unistd_.h.
30072         * lib/wchar.in.h: Renamed from lib/wchar_.h.
30073         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
30074         wchar_.h.
30075         * lib/wctype.in.h: Renamed from lib/wctype_.h.
30076         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
30077         wctype_.h.
30078         * build-aux/bootstrap (slurp): Update.
30079         * lib/.cppi-disable: Update.
30080
30081 2007-09-30  Bruno Haible  <bruno@clisp.org>
30082
30083         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
30084         Needed on BeOS.
30085
30086 2007-09-30  Bruno Haible  <bruno@clisp.org>
30087
30088         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
30089
30090 2007-09-29  Bruno Haible  <bruno@clisp.org>
30091
30092         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
30093
30094 2007-09-29  Bruno Haible  <bruno@clisp.org>
30095
30096         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
30097         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
30098         * build-aux/install-reloc: Compile also areadlink.c.
30099         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
30100
30101 2007-09-29  Bruno Haible  <bruno@clisp.org>
30102
30103         * gnulib-tool (func_emit_initmacro_done): Indentation.
30104
30105 2007-09-29  Bruno Haible  <bruno@clisp.org>
30106
30107         * README: Add CVS checkout update instructions.
30108         Info from Bob Proulx <bob@proulx.com>.
30109
30110 2007-09-28  Eric Blake  <ebb9@byu.net>
30111
30112         Provide move-if-change.
30113         * build-aux/move-if-change: New file, based on best practice
30114         rather than any canonical upstream location.
30115
30116 2007-09-28  Jim Meyering  <jim@meyering.net>
30117
30118         Fix canonicalize loop-detection corner case.
30119         Do not attempt to stat the symlink values stored via seen_triple.
30120         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
30121         on linux-2.6.18, (but not 2.6.22).
30122         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
30123         triple_compare.  The former compares dev,ino,filename, while the latter
30124         would actually stat dirname(filename) when dev and ino were equal.
30125         * lib/hash-triple.c: Install <string.h>.
30126         (STREQ): Define.
30127         (triple_compare_ino_str): New function.
30128         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
30129
30130 2007-09-28  Eric Blake  <ebb9@byu.net>
30131
30132         Enforce that AC_REPLACE_FUNCS files exist.
30133         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
30134         override check for typos.
30135
30136         Fix test-closein on Solaris 10.
30137         * tests/test-closein.c (main): Don't assume stdin can be inherited
30138         closed on all systems.
30139         * tests/test-closein.sh: Likewise.
30140         Reported by Piotr Tarnowski.
30141
30142 2007-09-28  Jim Meyering  <jim@meyering.net>
30143
30144         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
30145
30146 2007-09-27  Jim Meyering  <jim@meyering.net>
30147
30148         canonicalize: Avoid a false-positive cycle failure.
30149         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
30150         Sort.  Remove cycle-check.
30151         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
30152         not cycle-check.h.
30153         (seen_triple): New function.
30154         (canonicalize_filename_mode): Use it instead of cycle-check.
30155         * tests/test-canonicalize.c: Add a test for this bug.
30156         * tests/test-canonicalize.sh: Set up and run the test.
30157
30158         New module, file-set, from coreutils.
30159         * modules/file-set: Define it.
30160         * lib/file-set.c, lib/file-set.h: Implement.
30161
30162         New module, hash-triple, from coreutils.
30163         * modules/hash-triple: Define it.
30164         * lib/hash-triple.c, lib/hash-triple.h: Implement.
30165
30166 2007-09-25  Eric Blake  <ebb9@byu.net>
30167
30168         Fix strerror on Interix.
30169         * lib/string_.h (strerror): Declare replacement.
30170         * doc/functions/strerror.texi (strerror): Document the Interix
30171         shortcoming.
30172         * modules/string (Makefile.am): Support new hooks.
30173         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
30174         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
30175         gl_FUNC_STRERROR_SEPARATE.
30176         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
30177         * lib/strerror.c (rpl_strerror): Provide replacement.
30178         * modules/strerror (Depends-on): Add string.
30179         (configure.ac): Detect use of module.
30180         * tests/test-strerror.c: New file.
30181         * modules/strerror-tests: New test module.
30182         * modules/argp (Depends-on): Add strerror.
30183         * modules/error (Depends-on): Likewise.
30184         Reported by Martin Koeppe.
30185
30186 2007-09-24  Bruno Haible  <bruno@clisp.org>
30187
30188         * README: Update git instructions.
30189
30190 2007-09-24  Eric Blake  <ebb9@byu.net>
30191
30192         Revert fpending breakage from 2007-09-08.
30193         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
30194         __fpending.c.
30195
30196 2007-09-24  Jim Meyering  <jim@meyering.net>
30197
30198         filenamecat.c: Add a test.
30199         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
30200         showing how the function works when DIR is the empty string.
30201
30202 2007-09-21  Simon Josefsson  <simon@josefsson.org>
30203
30204         * tests/test-canonicalize.sh: Turn on executable bit.
30205
30206 2007-09-19  Eric Blake  <ebb9@byu.net>
30207
30208         * README: Update CVS instructions.
30209
30210 2007-09-18  Bruno Haible  <bruno@clisp.org>
30211
30212         * modules/areadlink: New file.
30213         * lib/areadlink.h (areadlink): New declaration.
30214         * lib/areadlink.c: New file, based on lib/xreadlink.c.
30215
30216 2007-09-17  Jim Meyering  <jim@meyering.net>
30217
30218         * lib/savewd.c (ESTALE) [!defined]: Define.
30219         Reported to be required on Interix by Martin Koeppe.
30220
30221 2007-09-17  Bruno Haible  <bruno@clisp.org>
30222
30223         * gnulib-tool (func_version): Use $version.
30224
30225 2007-09-16  Bruno Haible  <bruno@clisp.org>
30226
30227         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
30228         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
30229         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
30230         Reported by Greg Schafer <gschafer@zip.com.au>.
30231
30232 2007-09-15  Bruno Haible  <bruno@clisp.org>
30233
30234         * gnulib-tool (sed): Try a little harder to make bash understand the
30235         alias.
30236         Reported by Bruce Korb <bruce.korb@gmail.com>.
30237
30238 2007-09-13  Eric Blake  <ebb9@byu.net>
30239
30240         * ChangeLog: Remove conflict markers.
30241
30242 2007-09-13  Simon Josefsson  <simon@josefsson.org>
30243
30244         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
30245         Reported by Bruno Haible <bruno@clisp.org>.
30246
30247 2007-09-12  Bruno Haible  <bruno@clisp.org>
30248
30249         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
30250         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
30251         is not defined.
30252
30253 2007-09-12  Eric Blake  <ebb9@byu.net>
30254
30255         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
30256         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
30257         Autoconf definition.
30258         * modules/euidaccess (Depends-on): Add extensions, for
30259         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
30260         * modules/fnmatch (Depends-on): Likewise.
30261         * modules/getaddrinfo (Depends-on): Likewise.
30262         * modules/getdelim (Depends-on): Likewise.
30263         * modules/getline (Depends-on): Likewise.
30264         * modules/getsubopt (Depends-on): Likewise.
30265         * modules/gettext (Depends-on): Likewise.
30266         * modules/group-member (Depends-on): Likewise.
30267         * modules/mbchar (Depends-on): Likewise.
30268         * modules/memmem (Depends-on): Likewise.
30269         * modules/mempcpy (Depends-on): Likewise.
30270         * modules/memrchr (Depends-on): Likewise.
30271         * modules/pagealign_alloc (Depends-on): Likewise.
30272         * modules/readutmp (Depends-on): Likewise.
30273         * modules/stpcpy (Depends-on): Likewise.
30274         * modules/stpncpy (Depends-on): Likewise.
30275         * modules/strchrnul (Depends-on): Likewise.
30276         * modules/strndup (Depends-on): Likewise.
30277         * modules/strsep (Depends-on): Likewise.
30278         * modules/strverscmp (Depends-on): Likewise.
30279         * modules/vasprintf (Depends-on): Likewise.
30280         * modules/wcwidth (Depends-on): Likewise.
30281         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
30282         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
30283         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
30284         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
30285         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
30286         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30287         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
30288         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
30289         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
30290         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30291         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30292         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
30293         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
30294         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
30295         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
30296         * m4/readutmp.m4 (gl_READUTMP): Likewise.
30297         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30298         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
30299         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30300         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
30301         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30302         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
30303         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
30304         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
30305         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
30306         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30307         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
30308         so that lock.m4 can be used in gettext without extensions module.
30309
30310 2007-09-11  Bruno Haible  <bruno@clisp.org>
30311
30312         * m4/isc-posix.m4: Remove file.
30313         Suggested by Eric Blake.
30314
30315 2007-09-11  Eric Blake  <ebb9@byu.net>
30316
30317         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
30318
30319 2007-09-10  Bruno Haible  <bruno@clisp.org>
30320
30321         * posix-modules: Fix typo in error message.
30322         Reported by Matt <mkraai@beckman.com>.
30323
30324 2007-09-09  Bruno Haible  <bruno@clisp.org>
30325
30326         * doc/functions/getdelim.texi: Update list of platforms lacking the
30327         function.
30328         * doc/functions/getline.texi: Likewise.
30329
30330 2007-09-09  Jim Meyering  <jim@meyering.net>
30331
30332         * lib/hash.c (hash_initialize): Detect calloc failure.
30333         Reported by Bruno Haible.
30334
30335 2007-09-09  Bruno Haible  <bruno@clisp.org>
30336
30337         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
30338         malloc or realloc fails.
30339
30340 2007-09-09  Bruno Haible  <bruno@clisp.org>
30341
30342         * modules/getcwd (Depends-on): Add malloc-posix.
30343         * modules/glob (Depends-on): Likewise.
30344         * modules/putenv (Depends-on): Likewise.
30345         * modules/strdup (Depends-on): Likewise.
30346         * modules/getdelim (Depends-on): Add realloc-posix.
30347         * modules/read-file (Depends-on): Likewise.
30348
30349 2007-09-09  Bruno Haible  <bruno@clisp.org>
30350
30351         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
30352         (gl_FUNC_MALLOC_POSIX): Require it.
30353         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
30354         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
30355         * modules/realloc (Files): Add m4/malloc.m4.
30356         * modules/calloc (Files): Likewise.
30357
30358 2007-09-09  Bruno Haible  <bruno@clisp.org>
30359
30360         * modules/malloc-posix: New file.
30361         * modules/malloc (Depends-on): Add malloc-posix.
30362         * lib/malloc.c: Include errno.h.
30363         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
30364         and a POSIX-compatible malloc into a single function. Set ENOMEM
30365         when returning NULL.
30366         * m4/malloc.m4: New file.
30367         * doc/functions/malloc.texi: Mention the malloc-posix module.
30368         * lib/stdlib_.h (malloc): New declaration.
30369         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30370         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
30371         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
30372         and HAVE_MALLOC_POSIX.
30373
30374 2007-09-09  Bruno Haible  <bruno@clisp.org>
30375
30376         * modules/realloc-posix: New file.
30377         * modules/realloc (Depends-on): Add realloc-posix.
30378         * lib/realloc.c: Include errno.h.
30379         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
30380         and a POSIX-compatible realloc into a single function. Set ENOMEM
30381         when returning NULL.
30382         * m4/realloc.m4: New file.
30383         * doc/functions/realloc.texi: Mention the realloc-posix module.
30384         * lib/stdlib_.h (realloc): New declaration.
30385         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30386         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
30387         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
30388         and HAVE_REALLOC_POSIX.
30389
30390 2007-09-09  Bruno Haible  <bruno@clisp.org>
30391
30392         * modules/calloc-posix: New file.
30393         * modules/calloc (Depends-on): Add calloc-posix.
30394         * lib/calloc.c: Include errno.h.
30395         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
30396         and a POSIX-compatible calloc into a single function. Set ENOMEM
30397         when returning NULL.
30398         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
30399         * doc/functions/calloc.texi: Mention the calloc-posix module.
30400         * lib/stdlib_.h (calloc): New declaration.
30401         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30402         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
30403         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
30404         and HAVE_CALLOC_POSIX.
30405
30406 2007-09-09  Bruno Haible  <bruno@clisp.org>
30407
30408         Allow for modules to show an arbitrary notice.
30409         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
30410         * gnulib-tool: New option --extract-notice.
30411         (func_usage): Document it.
30412         (sed_extract_prog): Update.
30413         (func_get_notice): New function.
30414         (func_modules_notice): New function.
30415         (func_import, func_create_testdir): Invoke it.
30416         Suggested by Jim Meyering.
30417
30418 2007-09-09  Bruno Haible  <bruno@clisp.org>
30419
30420         * gnulib-tool: New options --verbose, --quiet.
30421         (func_usage): Document them.
30422         (verbose): New variable.
30423         (func_execute_command): New function.
30424         (func_import): Don't show the module list and the file list if
30425         $verbose < 0.
30426         (func_create_testdir): Likewise. Use func_execute_command.
30427         (func_create_megatestdir): Use func_execute_command.
30428
30429 2007-09-08  Bruno Haible  <bruno@clisp.org>
30430
30431         * gnulib-tool (func_import): Prefer rsync over wget when available,
30432         for fetching the PO files.
30433
30434 2007-09-08  Bruno Haible  <bruno@clisp.org>
30435
30436         * posix-modules: New file. Portions copied from gnulib-tool.
30437         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
30438
30439 2007-09-08  Jim Meyering  <jim@meyering.net>
30440
30441         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
30442         * lib/fpending.h: Rename from __fpending.h.
30443         * lib/fpending.c: Rename from __fpending.c.
30444         Include "fpending.h", not "__fpending.h".
30445         * lib/__fpending.h, lib/__fpending.c: Remove files.
30446         * modules/fpending (Files): Reflect new file names.
30447         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
30448
30449 2007-09-08  Bruno Haible  <bruno@clisp.org>
30450
30451         * m4/inttypes-h.m4: Remove stub file.
30452
30453 2007-09-07  Simon Josefsson  <simon@josefsson.org>
30454
30455         * doc/headers/stdint.texi: Discuss #include_next issue.
30456
30457 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
30458
30459         * build-aux/bootstrap: Remove obsolete comment about wget --help.
30460
30461 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30462
30463         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
30464         in variable name.
30465
30466 2007-09-03  Jim Meyering  <jim@meyering.net>
30467
30468         New module: git-version-gen.
30469         * modules/git-version-gen: New file.
30470
30471         Import changes from coreutils for bootstrap script.
30472
30473         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
30474
30475         bootstrap: uses rsync to download the .po files
30476         * build-aux/bootstrap (po_download_command_format): New global.
30477         (download_po_files): Use rsync.
30478         (update_po_files): Don't remove .po files after download,
30479         so future rsync runs can take advantage of the copies.
30480
30481         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
30482
30483         Solve the unnecessary-.po-file-regeneration problem once and for all.
30484         * build-aux/bootstrap (download_po_files): New function, renamed from
30485         get_translations.  Now, downloads, but doesn't update LINGUAS.
30486         (update_po_files): New function.
30487
30488         bootstrap: Ignore more.
30489         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
30490         uniwidth to e.g., lib/.gitignore.
30491         (slurp): Handle the sys_stat_.h -> sys mapping, too.
30492
30493         * build-aux/bootstrap: New setting: vc_ignore.
30494         (insert_sorted_if_absent): Create $file if absent.
30495         Adapt to new, possibly empty, list: $vc_ignore.
30496
30497         bootstrap: generate more ignorable names
30498         * build-aux/bootstrap (slurp): When generating ignorable names,
30499         also map .sin to .sed, .gperf to .c, and .y to .c.
30500
30501 2007-09-03  Jim Meyering  <jim@meyering.net>
30502
30503         * build-aux/git-version-gen: New file, from coreutils.  For details, see
30504         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
30505
30506 2007-09-02  Bruno Haible  <bruno@clisp.org>
30507
30508         Fix mis-recognition of 'mcs' on QNX 6.
30509         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
30510         output contains the string "Mono".
30511         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
30512         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
30513
30514 2007-09-01  Bruno Haible  <bruno@clisp.org>
30515
30516         Fix collision between uniwidth/* and linebreak modules.
30517         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
30518         u32_width): Remove declarations.
30519         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
30520         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
30521         streq3, streq2, streq1, streq0): Remove functions.
30522         (STREQ): Remove macro.
30523         (is_cjk_encoding): Remove function.
30524         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
30525         (uc_width, u8_width, u16_width, u32_width): Remove functions.
30526         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
30527         * NEWS: Document the change.
30528
30529 2007-09-01  Bruno Haible  <bruno@clisp.org>
30530
30531         * lib/streq.h: Add double-inclusion guard.
30532
30533 2007-09-01  Karl Berry  <karl@gnu.org>
30534
30535         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
30536
30537 2007-08-28  Jim Meyering  <jim@meyering.net>
30538
30539         Rename mreadlink_with_size to areadlink_with_size.
30540         * NEWS: Document the change.
30541         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
30542         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
30543         * lib/mreadlink.h: Rename this to...
30544         * lib/areadlink.h: ...this.
30545         * modules/mreadlink-with-size: Rename this to...
30546         * modules/areadlink-with-size: ...this.
30547         * lib/canonicalize.c: Reflect the renaming.
30548         * modules/canonicalize: Likewise.
30549
30550 2007-08-26  Bruno Haible  <bruno@clisp.org>
30551
30552         * gnulib-tool (func_import): When deciding which files to remove,
30553         consider also dangling symbolic links.
30554         Reported by Eric Blake.
30555
30556 2007-08-26  Bruno Haible  <bruno@clisp.org>
30557
30558         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
30559
30560 2007-08-23  Simon Josefsson  <simon@josefsson.org>
30561
30562         * lib/readline.c: Don't include getline.h, the prototype is now
30563         found in stdio.h.
30564
30565 2007-08-23  Jim Meyering  <jim@meyering.net>
30566
30567         Getdelim touchup.
30568         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
30569         around the funlockfile call, since funlockfile never sets errno.
30570         Don't set errno upon failed realloc.
30571
30572 2007-08-22  Eric Blake  <ebb9@byu.net>
30573
30574         Getline touchups.
30575         * lib/getdelim.c (getdelim): Revert regression that required *n to
30576         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
30577         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
30578         getdelim, rather than whether implementation is missing.
30579         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
30580         * lib/stdio_.h (getline): Also declare if replacement is
30581         required.
30582         * doc/functions/getdelim.texi: New file.
30583         * doc/functions/getline.texi: Likewise.
30584         * doc/gnulib.texi (Function Substitutes): Add new files.
30585         Reported by Bruno Haible.
30586
30587 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
30588
30589         * users.txt: Add Guile.
30590
30591 2007-08-22  Eric Blake  <ebb9@byu.net>
30592
30593         * tests/test-getdelim.c (main): Use remove, not unlink.
30594         * tests/test-getline.c (main): Likewise.
30595
30596         Move getline and getdelim into stdio.h, per POSIX 200x.
30597         * modules/getline (Files): Remove getline.h.
30598         (Depends-on): Add stdio.
30599         (configure.ac): Add module indicator.
30600         * modules/getdelim (Files): Remove getdelim.h.
30601         (Depends-on): Add stdio.
30602         (configure.ac): Add module indicator.
30603         * modules/stdio (Makefile.am): Work with new indicators.
30604         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
30605         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
30606         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30607         * lib/getdelim.h: Delete.
30608         * lib/getline.h: Delete.
30609         * lib/stdio_.h (getdelim, getline): Declare.
30610         * modules/getdelim-tests: New module.
30611         * modules/getline-tests: Likewise.
30612         * tests/test-getdelim.c: New file.
30613         * tests/test-getline.c: Likewise.
30614         * NEWS: Document the change.
30615         * lib/getline.c: Update choice of header.
30616         * lib/csharpcomp.c: Likewise.
30617         * lib/getpass.c: Likewise.
30618         * lib/javacomp.c: Likewise.
30619         * lib/javaversion.c: Likewise.
30620         * lib/yesno.c: Likewise.
30621         * lib/getdelim.c: Likewise.
30622         (getdelim): Set errno on failure, and avoid memory leak.
30623
30624 2007-08-19  Bruno Haible  <bruno@clisp.org>
30625
30626         * modules/closein (Depends-on): Add freadahead.
30627         * lib/closein.c: Include freadahead.h.
30628         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
30629         is zero.
30630
30631 2007-08-19  Bruno Haible  <bruno@clisp.org>
30632
30633         * modules/freadahead-tests: New file.
30634         * tests/test-freadahead.sh: New file.
30635         * tests/test-freadahead.c: New file.
30636
30637         * modules/freadahead: New file.
30638         * lib/freadahead.h: New file.
30639         * lib/freadahead.c: New file.
30640         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
30641         fbufmode, fpurge, freadable, fwritable.
30642
30643 2007-08-19  Eric Blake  <ebb9@byu.net>
30644
30645         Test yesno in combination with closein.
30646         * lib/yesno.c (yesno): Document use of stdin.
30647         * modules/yesno-tests (Files): New module.
30648         * tests/test-yesno.c (main): New file.
30649         * tests/test-yesno.sh: Likewise.
30650
30651 2007-08-19  Bruno Haible  <bruno@clisp.org>
30652
30653         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
30654         * lib/fseeko.c (rpl_fseeko): Likewise.
30655         * lib/fseterr.c (fseterr): Likewise.
30656
30657 2007-08-19  Bruno Haible  <bruno@clisp.org>
30658
30659         * tests/test-lseek.c (main): Disable a test for BeOS.
30660         * doc/functions/lseek.texi: Document the BeOS bug.
30661
30662 2007-08-19  Bruno Haible  <bruno@clisp.org>
30663             Eric Blake  <ebb9@byu.net>
30664
30665         * lib/lseek.c: Include <sys/stat.h>.
30666         (rpl_lseek): Add workaround code also for Unix platforms.
30667         Needed for BeOS.
30668         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
30669         * doc/functions/lseek.texi: Document BeOS definiency.
30670
30671 2007-08-18  Bruno Haible  <bruno@clisp.org>
30672
30673         * modules/fstrcmp-tests: New file.
30674         * tests/test-fstrcmp.c: New file.
30675
30676 2007-08-18  Bruno Haible  <bruno@clisp.org>
30677
30678         * modules/fstrcmp: New file, from GNU gettext with modifications.
30679         * lib/fstrcmp.h: New file, from GNU gettext.
30680         * lib/fstrcmp.c: New file, from GNU gettext.
30681         * MODULES.html.sh (String handling): Add fstrcmp.
30682
30683 2007-08-18  Bruno Haible  <bruno@clisp.org>
30684
30685         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
30686         'bool'.
30687         (diag, compareseq): Remove const from the ctxt argument.
30688         (USE_HEURISTIC): Undefine at the end.
30689
30690 2007-08-18  Jim Meyering  <jim@meyering.net>
30691
30692         New file: lib/idcache.h
30693         * NEWS: Mention the addition.
30694         * modules/idcache (Files): Add lib/idcache.h
30695         * lib/idcache.c: Include "idcache.h".
30696         Don't include <sys/types.h>.
30697         Add a FIXME comment.
30698         Move file-scoped "static" declarations to the top.
30699         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
30700
30701 2007-08-17  Bruno Haible  <bruno@clisp.org>
30702         and Paul Eggert  <eggert@cs.ucla.edu>
30703
30704         * MODULES.html.sh: Add diffseq.
30705         * modules/diffseq: New file.
30706         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
30707         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
30708
30709 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30710
30711         Import changes from coreutils for bootstrap script.
30712
30713         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
30714
30715         * build-aux/bootstrap (slurp): Work even in environments where
30716         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
30717         current code does not slurp files whose names start with ".", and
30718         this looks like it might be a troublesome area.
30719
30720         2007-07-11  Jim Meyering  <jim@meyering.net>
30721
30722         If there's a GPL vN copyright comment, require that N == 3.
30723
30724         2007-07-08  Jim Meyering  <jim@meyering.net>
30725
30726         Run the coreutils-specific code only if tests/Makefile.am.in exists.
30727         * build-aux/bootstrap (mam_template): Move definition out of loop.
30728
30729         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
30730
30731         * build-aux/bootstrap (symlink_to_dir): Rename function from
30732         symlink_to_gnulib.  Add a directory parameter.  Update all
30733         callers.
30734         (cp_mark_as_generated): Also check for -- and link to -- files in
30735         gl/.
30736
30737         2007-07-08  Jim Meyering  <jim@meyering.net>
30738
30739         Adapt to deeper hierarchy in gnulib.
30740         * build-aux/bootstrap (symlink_to_dir): If the destination
30741         directory doesn't exist, create it. This is required at least for
30742         "lib/uniwidth/cjk.h".
30743
30744         2007-05-15  Jim Meyering  <jim@meyering.net>
30745
30746         * build-aux/bootstrap: Now that generated Makefile.am files
30747         are no longer under version control, they must be created at
30748         bootstrap time.
30749
30750 2007-08-14  Ben Pfaff  <blp@gnu.org>
30751
30752         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
30753
30754 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30755
30756         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
30757         given the changes below.
30758         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
30759         even on hosts that have padding bits beyond the supported 64.
30760
30761 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30762
30763         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
30764         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
30765         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
30766         depends on it.
30767         (xstrtol_error): Remove.
30768         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
30769         but with a different signature.
30770         (ATTRIBUTE_NORETURN, __attribute__): New macros.
30771         * lib/xstrtol-error.c: Include exitfail.h.
30772         (xstrtol_fatal): New function, with a different signature from the
30773         old xstrtol_error, so that the caller need not worry about passing
30774         in an exit status, or about storage management of the option argument.
30775         (xstrtol_error): Now a static function.  Redo signature to
30776         implement xstrtol_fatal.  Output the correct number of hyphens in
30777         front of the option so that the caller need not worry about
30778         storage management.
30779         (N_): New macro.
30780         (_): Remove; not used now.
30781         * modules/xstrtol: Depend on getopt.
30782         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
30783         of old STRTOL_FATAL_ERROR macro.
30784         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
30785         of test program.
30786         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
30787         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
30788
30789 2007-08-08  Eric Blake  <ebb9@byu.net>
30790
30791         * lib/xstrtol-error.c: Add missing include.
30792
30793         Move xstrtol messages into gnulib domain, when --pobase is used.
30794         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
30795         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
30796         * modules/xstrtol (Files): Distribute new file.
30797         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
30798         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
30799         * tests/test-xstrtol.c: ...into new file.
30800         * tests/test-xstrtoul.c: Also test xstrtoul.
30801         * tests/test-xstrtoimax.c: Also test xstrtoimax.
30802         * tests/test-xstrtoumax.c: Also test xstrtoumax.
30803         * tests/test-xstrtol.sh: Drive the tests.
30804         * tests/test-xstrtoimax.sh: Likewise.
30805         * tests/test-xstrtoumax.sh: Likewise.
30806         * modules/xstrtol-tests: New module.
30807         * modules/xstrtoimax-tests: Likewise.
30808         * modules/xstrtoumax-tests: Likewise.
30809
30810 2007-08-08  Jim Meyering  <jim@meyering.net>
30811
30812         New function: mfile_name_concat.
30813         * lib/filenamecat.c (mfile_name_concat): New function, just like
30814         file_name_concat, but return NULL upon failure rather than exiting
30815         with a diagnostic.
30816         * lib/filenamecat.h: Declare it.
30817
30818 2007-08-07  Bruno Haible  <bruno@clisp.org>
30819
30820         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
30821         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
30822         warning from gcc.
30823         Reported by Eric Blake.
30824
30825 2007-08-07  Simon Josefsson  <simon@josefsson.org>
30826
30827         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
30828         * modules/crypto/arcfour (License): Likewise.
30829         * modules/crypto/des-tests (License): Likewise.
30830         * modules/crypto/gc-arctwo-tests (License): Likewise.
30831         * modules/crypto/gc-des-tests (License): Likewise.
30832         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
30833         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
30834         * modules/crypto/gc-md2-tests (License): Likewise.
30835         * modules/crypto/gc-md4-tests (License): Likewise.
30836         * modules/crypto/gc-md5-tests (License): Likewise.
30837         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
30838         * modules/crypto/gc-rijndael-tests (License): Likewise.
30839         * modules/crypto/gc-sha1-tests (License): Likewise.
30840         * modules/crypto/gc-tests (License): Likewise.
30841         * modules/crypto/hmac-md5 (License): Likewise.
30842         * modules/crypto/hmac-sha1 (License): Likewise.
30843         * modules/crypto/md2-tests (License): Likewise.
30844         * modules/crypto/md4-tests (License): Likewise.
30845         * modules/crypto/md5 (License): Likewise.
30846         * modules/crypto/rijndael (License): Likewise.
30847         * modules/crypto/sha1 (License): Likewise.
30848         * modules/memxor (License): Likewise.
30849
30850 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
30851         and Bruno Haible  <bruno@clisp.org>
30852
30853         * NEWS: Describe interface changes to human, xstrtol.
30854         * lib/human.h: Include <xstrtol.h>.
30855         (human_options): Return enum strtol_error, not int.  Remove
30856         bool arg; take int * instead.
30857         * lib/human.c: Don't include "gettext.h".
30858         (_): Remove; no longer used.
30859         Don't include <xstrtol.h>, since human.h does it.
30860         (human_options): Adjust to abovementioned interface changes.
30861         Do not report error to stderr; that's now the caller's
30862         responsibility.
30863         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
30864         interface change.
30865         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
30866         Str, Argument_type_string.  All uses changed.  Put " argument"
30867         in diagnostics to make them clearer.  Change wording of suffix
30868         message for clarity.
30869         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
30870         Argument_type_string.
30871         (STRTOL_FATAL_WARN): Remove; no longer used.
30872         * modules/human (Depends-on): Remove gettext-h.
30873
30874 2007-08-06  Simon Josefsson  <simon@josefsson.org>
30875
30876         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
30877
30878 2007-07-31  Bruno Haible  <bruno@clisp.org>
30879
30880         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
30881         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
30882         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
30883
30884 2007-07-31  Bruno Haible  <bruno@clisp.org>
30885
30886         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
30887         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
30888
30889 2007-07-30  Bruno Haible  <bruno@clisp.org>
30890
30891         * modules/base64 (License): Use the synonymous term "LGPLv2+".
30892         * modules/c-ctype (License): Likewise.
30893         * modules/c-strcase (License): Likewise.
30894         * modules/check-version (License): Likewise.
30895         * modules/iconv (License): Likewise.
30896         * modules/iconv_open (License): Likewise.
30897         * modules/read-file (License): Likewise.
30898         * modules/striconv (License): Likewise.
30899         * modules/strverscmp (License): Likewise.
30900         * modules/vasprintf (License): Likewise.
30901         * modules/crypto/des (License): Likewise.
30902         * modules/crypto/gc (License): Likewise.
30903         * modules/crypto/gc-arcfour (License): Likewise.
30904         * modules/crypto/gc-arctwo (License): Likewise.
30905         * modules/crypto/gc-des (License): Likewise.
30906         * modules/crypto/gc-hmac-md5 (License): Likewise.
30907         * modules/crypto/gc-hmac-sha1 (License): Likewise.
30908         * modules/crypto/gc-md2 (License): Likewise.
30909         * modules/crypto/gc-md4 (License): Likewise.
30910         * modules/crypto/gc-md5 (License): Likewise.
30911         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
30912         * modules/crypto/gc-random (License): Likewise.
30913         * modules/crypto/gc-rijndael (License): Likewise.
30914         * modules/crypto/gc-sha1 (License): Likewise.
30915         * modules/crypto/md2 (License): Likewise.
30916         * modules/crypto/md4 (License): Likewise.
30917
30918 2007-07-30  Jim Meyering  <jim@meyering.net>
30919
30920         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
30921         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
30922         it has valid stat data.  This bug would cause du not to count the
30923         sizes of inaccessible directories.
30924         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
30925         in <http://bugzilla.redhat.com/250077>.
30926
30927 2007-07-25  Peter O'Gorman  <peter@pogma.com>
30928             Bruno Haible  <bruno@clisp.org>
30929
30930         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
30931         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
30932         #include_next, gives a diagnostic about it, but reports no error in
30933         the exit code.
30934         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
30935
30936 2007-07-24  Ben Pfaff  <blp@gnu.org>
30937
30938         Improve name: "count-one-bits" is better than "popcount".
30939         * MODULES.html.sh: Update name.
30940         * lib/popcount.h: Renamed lib/count-one-bits.h.
30941         (popcount): Renamed count_one_bits.
30942         (popcountl): Renamed count_one_bits_l.
30943         (popcountll): Renamed count_one_bits_ll.
30944         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
30945         * modules/popcount: Renamed module/count-one-bits.
30946         * modules/popcount-tests: Renamed module/count-one-bits-tests.
30947         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
30948
30949 2007-07-23  Ben Pfaff  <blp@gnu.org>
30950
30951         * lib/popcount.h (popcount32): Reduce size of constants, to allow
30952         better code generation, and add U to large constants to avoid
30953         warnings, in non-GCC case.
30954         Suggested by Bruno Haible.
30955
30956 2007-07-23  Ben Pfaff  <blp@gnu.org>
30957
30958         * lib/popcount.h: Use verify_true instead of if...abort.
30959         * modules/popcount: Depend on verify module.
30960         Suggested by Jim Meyering.
30961
30962 2007-07-23  Bruno Haible  <bruno@clisp.org>
30963
30964         * gnulib-tool (func_import): Create a .cvsignore file also when the
30965         directory is not yet in CVS but the toplevel directory is. When
30966         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
30967         Reported by Karl Berry.
30968
30969 2007-07-22  Ben Pfaff  <blp@gnu.org>
30970
30971         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
30972         case.
30973         Suggested by Eric Blake.
30974
30975 2007-07-22  Ben Pfaff  <blp@gnu.org>
30976
30977         New module: popcount.
30978         * MODULES.html.sh: Add popcount.
30979         * modules/popcount: New file.
30980         * modules/popcount-tests: New file.
30981         * tests/test-popcount.c: New file.
30982         * lib/popcount.h: New file.
30983         * m4/popcount.m4: New file.
30984
30985 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
30986
30987         * build-aux/announce-gen: Update to GPLv3.
30988
30989         * build-aux/config.guess: Update from config.
30990
30991 2007-07-21  Bruno Haible  <bruno@clisp.org>
30992
30993         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
30994         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
30995
30996 2007-07-20  Jim Meyering  <jim@meyering.net>
30997
30998         * check-module: Diagnose a self-dependency.
30999
31000 2007-07-19  Bruno Haible  <bruno@clisp.org>
31001
31002         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
31003         empty.
31004         Reported by Eric Blake.
31005
31006 2007-07-18  Bruno Haible  <bruno@clisp.org>
31007
31008         * gnulib-tool: New options --po-base, --po-domain.
31009         (func_usage): Document them.
31010         (pobase, po_domain): New variables.
31011         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
31012         DEFAULT_TEXT_DOMAIN.
31013         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
31014         (func_import): Consider pobase and po_domain. Create a po/ directory.
31015         (func_create_testdir): Set pobase and po_domain to empty.
31016         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
31017         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
31018
31019 2007-07-18  Bruno Haible  <bruno@clisp.org>
31020
31021         * gnulib-tool (func_get_automake_snippet): Synthesize also an
31022         EXTRA_DIST augmentation for files in build-aux/.
31023
31024 2007-07-16  Bruno Haible  <bruno@clisp.org>
31025
31026         * modules/lseek (License): Use the synonymous term "LGPLv2+".
31027         * modules/getdelim (License): Likewise.
31028
31029 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31030
31031         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
31032         * modules/d-type (License): Likewise.
31033         * modules/extensions (License): Likewise.
31034         * modules/fnmatch (License): Likewise.
31035         * modules/fseeko (License): Likewise.
31036         * modules/getaddrinfo (License): Likewise.
31037         * modules/getline (License): Likewise.
31038         * modules/getlogin_r (License): Likewise.
31039         * modules/getpass (License): Likewise.
31040         * modules/gettimeofday (License): Likewise.
31041         * modules/glob (License): Likewise.
31042         * modules/inet_ntop (License): Likewise.
31043         * modules/malloc (License): Likewise.
31044         * modules/malloca (License): Likewise.
31045         * modules/memmem (License): Likewise.
31046         * modules/mempcpy (License): Likewise.
31047         * modules/memset (License): Likewise.
31048         * modules/minmax (License): Likewise.
31049         * modules/mktime (License): Likewise.
31050         * modules/netinet_in (License): Likewise.
31051         * modules/pathmax (License): Likewise.
31052         * modules/poll (License): Likewise.
31053         * modules/regex (License): Likewise.
31054         * modules/snprintf (License): Likewise.
31055         * modules/stdbool (License): Likewise.
31056         * modules/stdint (License): Likewise.
31057         * modules/stdio (License): Likewise.
31058         * modules/strcase (License): Likewise.
31059         * modules/strcasestr (License): Likewise.
31060         * modules/strdup (License): Likewise.
31061         * modules/string (License): Likewise.
31062         * modules/strndup (License): Likewise.
31063         * modules/strnlen (License): Likewise.
31064         * modules/strpbrk (License): Likewise.
31065         * modules/strptime (License): Likewise.
31066         * modules/strsep (License): Likewise.
31067         * modules/sys_select (License): Likewise.
31068         * modules/sys_socket (License): Likewise.
31069         * modules/sys_stat (License): Likewise.
31070         * modules/sys_time (License): Likewise.
31071         * modules/time (License): Likewise.
31072         * modules/time_r (License): Likewise.
31073         * modules/timegm (License): Likewise.
31074         * modules/unistd (License): Likewise.
31075         * modules/vsnprintf (License): Likewise.
31076         * modules/wctype (License): Likewise.
31077
31078 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31079
31080         * modules/argz (License): LGPLv2+.
31081
31082 2007-07-15  Karl Berry  <karl@gnu.org>
31083
31084         * doc/gnulib.texi: revise node structure per new fdl.texi.
31085
31086 2007-07-14  Bruno Haible  <bruno@clisp.org>
31087
31088         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
31089         the output file.
31090         * lib/uniname/uninames.h: Regenerated.
31091
31092 2007-07-14  Karl Berry  <karl@gnu.org>
31093
31094         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
31095         omitting sectioning and index commands.
31096
31097 2007-07-13  Bruno Haible  <bruno@clisp.org>
31098
31099         New gnulib-tool option --more-symlinks.
31100         * gnulib-tool (func_usage): Document --more-symlinks.
31101         (do_copyrights): New variable.
31102         Recognize option --more-symlinks.
31103         (func_import): Don't add a copyright notice transform to
31104         sed_transform_lib_file if do_copyrights is empty.
31105
31106 2007-07-13  Bruno Haible  <bruno@clisp.org>
31107
31108         * lib/vasnprintf.c (decimal_point_char): Define also if
31109         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
31110         && !NEED_PRINTF_DIRECTIVE_A.
31111         Reported by Clemens Koller <clemens.koller@anagramm.de> via
31112         Gary V. Vaughan <gary@gnu.org>.
31113
31114 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
31115
31116         * lib/inttypes_.h: Undo previous change, since it was fixed
31117         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
31118
31119 2007-07-13  Bruno Haible  <bruno@clisp.org>
31120
31121         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
31122         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
31123
31124 2007-07-13  Jim Meyering  <jim@meyering.net>
31125
31126         df: Don't fail for Tru64's "file-on-file mount".
31127         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
31128         so we fall through and use statfs instead.  Details here:
31129         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
31130         Reported by Albert Chin.
31131
31132 2007-07-13  Bruno Haible  <bruno@clisp.org>
31133
31134         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
31135         * modules/configmake (License): Likewise.
31136         * modules/gettext (License): Likewise.
31137         * modules/gettext-h (License): Likewise.
31138         * modules/include_next (License): Likewise.
31139         * modules/link-warning (License): Likewise.
31140         * modules/localcharset (License): Likewise.
31141         * modules/localename (License): Likewise.
31142         * modules/lock (License): Likewise.
31143         * modules/relocatable-lib-lgpl (License): Likewise.
31144         * modules/size_max (License): Likewise.
31145         * modules/vasnprintf (License): Likewise.
31146         * modules/wchar (License): Likewise.
31147         * modules/xsize (License): Likewise.
31148
31149 2007-07-13  Bruno Haible  <bruno@clisp.org>
31150
31151         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
31152         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
31153
31154 2007-07-12  Bruno Haible  <bruno@clisp.org>
31155
31156         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
31157         in the modules files.
31158
31159 2007-07-11  Karl Berry  <karl@gnu.org>
31160
31161         * MODULES.html.sh (func_module): use
31162          sed -e '\|^'"${includefile}"'$|d'
31163          instead of /.../d, to avoid errors on $includefile's containing /.
31164
31165 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
31166
31167         * gnulib-tool (func_import): Avoid duplication of --avoid
31168         statements
31169         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
31170         names to `_' in variable names.
31171
31172 2007-07-10  Eric Blake  <ebb9@byu.net>
31173
31174         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
31175         * NEWS: Document this change.
31176
31177 2007-07-08  Bruno Haible  <bruno@clisp.org>
31178
31179         Update to Unicode 5.0.
31180         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
31181         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
31182         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
31183         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
31184         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
31185         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
31186         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
31187         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
31188         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
31189         U+10A3F, U+1D242..U+1D244.
31190         (nonspacing_table_ind): Update.
31191         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
31192         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
31193
31194 2007-07-08  Bruno Haible  <bruno@clisp.org>
31195
31196         Update to Unicode 5.0.
31197         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
31198         code transform. Extend the name index field of unicode_name_to_code and
31199         unicode_code_to_name from 16 to 24 bits.
31200         * lib/uniname/uniname.c (unicode_character_name,
31201         unicode_name_character): Add the range 0x12xxx to the code transform.
31202         * lib/uniname/uninames.h: Regenerated.
31203         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
31204
31205 2007-07-07  Bruno Haible  <bruno@clisp.org>
31206
31207         * modules/wcwidth-tests: New file.
31208         * tests/test-wcwidth.c: New file.
31209
31210         Work around MacOS X wcwidth() bug.
31211         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
31212         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
31213         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
31214         original wcwidth in non-UTF-8 locales.
31215         * modules/wcwidth (Depends-on): Add localcharset, streq,
31216         uniwidth/width.
31217         * doc/functions/wcwidth.texi: Update.
31218
31219 2007-07-07  Bruno Haible  <bruno@clisp.org>
31220
31221         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
31222         (wcwidth): New declaration.
31223         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
31224         macros.
31225         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
31226         here. Prepare for creating <wchar.h> unconditionally.
31227         * modules/wchar (Depends-on): Add link-warning.
31228         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
31229         REPLACE_WCWIDTH, and GL_LINK_WARNING.
31230         * lib/wcwidth.h: Remove file.
31231         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
31232         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
31233         * modules/wcwidth (Files): Remove lib/wcwidth.h.
31234         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
31235         (Include): Replace wcwidth.h with <wchar.h>.
31236         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
31237         * lib/mbchar.h: Don't include wcwidth.h.
31238         * lib/mbswidth.c: Likewise.
31239         * NEWS: Mention the change.
31240
31241 2007-07-07  Bruno Haible  <bruno@clisp.org>
31242
31243         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
31244         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
31245         definition with an external declaration.
31246         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
31247         defined as a function. Remove AC_C_INLINE requirement.
31248         * modules/wcwidth (Files): Add lib/wcwidth.c.
31249         (Makefile.am): Remove redundant statement.
31250
31251 2007-07-07  Bruno Haible  <bruno@clisp.org>
31252
31253         * MODULES.html.sh (Unicode string functions): Add the new modules.
31254
31255         * tests/uniwidth/test-u32-strwidth.c: New file.
31256         * modules/uniwidth/u32-strwidth-tests: New file.
31257
31258         * lib/uniwidth/u32-strwidth.c: New file.
31259         * modules/uniwidth/u32-strwidth: New file.
31260
31261         * tests/uniwidth/test-u16-strwidth.c: New file.
31262         * modules/uniwidth/u16-strwidth-tests: New file.
31263
31264         * lib/uniwidth/u16-strwidth.c: New file.
31265         * modules/uniwidth/u16-strwidth: New file.
31266
31267         * tests/uniwidth/test-u8-strwidth.c: New file.
31268         * modules/uniwidth/u8-strwidth-tests: New file.
31269
31270         * lib/uniwidth/u8-strwidth.c: New file.
31271         * modules/uniwidth/u8-strwidth: New file.
31272
31273         * tests/uniwidth/test-u32-width.c: New file.
31274         * modules/uniwidth/u32-width-tests: New file.
31275
31276         * lib/uniwidth/u32-width.c: New file.
31277         * modules/uniwidth/u32-width: New file.
31278
31279         * tests/uniwidth/test-u16-width.c: New file.
31280         * modules/uniwidth/u16-width-tests: New file.
31281
31282         * lib/uniwidth/u16-width.c: New file.
31283         * modules/uniwidth/u16-width: New file.
31284
31285         * tests/uniwidth/test-u8-width.c: New file.
31286         * modules/uniwidth/u8-width-tests: New file.
31287
31288         * lib/uniwidth/u8-width.c: New file.
31289         * modules/uniwidth/u8-width: New file.
31290
31291         * tests/uniwidth/test-uc_width.c: New file.
31292         * modules/uniwidth/width-tests: New file.
31293
31294         * lib/uniwidth/width.c: New file, from GNU libiconv.
31295         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
31296         * modules/uniwidth/width: New file.
31297
31298         * lib/uniwidth.h: New file, from GNU libiconv.
31299         * modules/uniwidth/base: New file.
31300
31301 2007-07-07  Bruno Haible  <bruno@clisp.org>
31302
31303         * lib/uniname.h: New file, from GNU gettext.
31304         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
31305         * lib/uniname/uninames.h: New file, from GNU gettext.
31306         * lib/uniname/uniname.c: New file, from GNU gettext.
31307         * tests/uniname/test-uninames.sh: New file.
31308         * tests/uniname/test-uninames.c: New file, from GNU gettext.
31309         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
31310         * modules/uniname/base: New file.
31311         * modules/uniname/uniname: New file.
31312         * modules/uniname/uniname-tests: New file.
31313         * MODULES.html.sh (Unicode string functions): Add the new modules.
31314
31315 2007-07-06  Bruno Haible  <bruno@clisp.org>
31316
31317         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
31318
31319 2007-07-06  Bruno Haible  <bruno@clisp.org>
31320
31321         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
31322         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
31323         includes <cygwin/sys_time.h> which includes <sys/select.h> which
31324         include <sys/time.h>.
31325         Reported by Eric Blake.
31326
31327 2007-07-06  Eric Blake  <ebb9@byu.net>
31328
31329         Fix testing canonicalize on cygwin.
31330         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
31331         Revert patch from 2007-06-19.
31332         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
31333         canonicalize module is also in use.
31334         * tests/test-canonicalize.c: New file.
31335         * tests/test-canonicalize.sh: Likewise.
31336         * modules/canonicalize-tests: Likewise.
31337
31338 2007-07-06  Jim Meyering  <jim@meyering.net>
31339
31340         * lib/getugroups.c (getugroups): Detect getgrent failure.
31341         Adjust comment to reflect reality: this function may return -1.
31342
31343 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
31344
31345         * build-aux/bootstrap (TP_URL,get_translations): Update to use
31346         the new TP address.
31347         (usage): Fix typo
31348         (gnulib_mk): New variable.
31349
31350 2007-07-05  Jim Meyering  <jim@meyering.net>
31351
31352         Don't let endgrent clobber errno, no matter how improbable.
31353         * lib/getugroups.c (getugroups): Save and restore errno around
31354         endgrent call.
31355
31356         Close the group DB even when failing with 2^31 or more members.
31357         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
31358
31359 2007-07-04  Jim Meyering  <jim@meyering.net>
31360
31361         * lib/getugroups.h: New file.
31362         * lib/getugroups.c: Include "getugroups.h".
31363         Remove uses of "register" keyword.
31364         Move local variable, "cp", down into scope where used.
31365         Give "username" parameter the "const" attribute.
31366         * modules/getugroups (Files): Add lib/getugroups.h
31367
31368 2007-07-04  Karl Berry  <karl@gnu.org>
31369
31370         * MODULES.html.sh (func_all_modules): Complete rename of
31371         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
31372
31373 2007-07-02  Bruno Haible  <bruno@clisp.org>
31374
31375         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
31376         mode, when inttypes.h comes from gnulib.
31377         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
31378
31379 2007-07-02  Simon Josefsson  <simon@josefsson.org>
31380
31381         * NEWS: Mention lgpl module name change.
31382
31383         * modules/lgpl-2.1: Renamed from lgpl.
31384
31385         * NEWS: Mention gpl module name change.
31386
31387         * modules/gpl-3.0: New file, based on gpl-2.0.
31388
31389         * modules/gpl-2.0: Renamed from gpl.
31390
31391         * modules/gpl: Fix filename, doc/gpl.texi is now found at
31392         doc/gpl-2.0.texi.
31393
31394 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
31395
31396         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
31397         #define __STDC_LIMIT_MACROS temporarily while including
31398         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
31399         Problem reported by Joel E. Denny in
31400         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
31401
31402 2007-07-01  Bruno Haible  <bruno@clisp.org>
31403
31404         * lib/unistdio.h: New file.
31405         * lib/unistdio/u-asnprintf.h: New file.
31406         * lib/unistdio/u-asprintf.h: New file.
31407         * lib/unistdio/u-printf-args.c: New file.
31408         * lib/unistdio/u-printf-args.h: New file.
31409         * lib/unistdio/u-printf-parse.h: New file.
31410         * lib/unistdio/u-snprintf.h: New file.
31411         * lib/unistdio/u-sprintf.h: New file.
31412         * lib/unistdio/u-vasprintf.h: New file.
31413         * lib/unistdio/u-vsnprintf.h: New file.
31414         * lib/unistdio/u-vsprintf.h: New file.
31415         * lib/unistdio/ulc-asnprintf.c: New file.
31416         * lib/unistdio/ulc-asprintf.c: New file.
31417         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
31418         * lib/unistdio/ulc-printf-parse.c: New file.
31419         * lib/unistdio/ulc-snprintf.c: New file.
31420         * lib/unistdio/ulc-sprintf.c: New file.
31421         * lib/unistdio/ulc-vasnprintf.c: New file.
31422         * lib/unistdio/ulc-vasprintf.c: New file.
31423         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
31424         * lib/unistdio/ulc-vsnprintf.c: New file.
31425         * lib/unistdio/ulc-vsprintf.c: New file.
31426         * lib/unistdio/u8-asnprintf.c: New file.
31427         * lib/unistdio/u8-asprintf.c: New file.
31428         * lib/unistdio/u8-printf-parse.c: New file.
31429         * lib/unistdio/u8-snprintf.c: New file.
31430         * lib/unistdio/u8-sprintf.c: New file.
31431         * lib/unistdio/u8-vasnprintf.c: New file.
31432         * lib/unistdio/u8-vasprintf.c: New file.
31433         * lib/unistdio/u8-vsnprintf.c: New file.
31434         * lib/unistdio/u8-vsprintf.c: New file.
31435         * lib/unistdio/u8-u8-asnprintf.c: New file.
31436         * lib/unistdio/u8-u8-asprintf.c: New file.
31437         * lib/unistdio/u8-u8-snprintf.c: New file.
31438         * lib/unistdio/u8-u8-sprintf.c: New file.
31439         * lib/unistdio/u8-u8-vasnprintf.c: New file.
31440         * lib/unistdio/u8-u8-vasprintf.c: New file.
31441         * lib/unistdio/u8-u8-vsnprintf.c: New file.
31442         * lib/unistdio/u8-u8-vsprintf.c: New file.
31443         * lib/unistdio/u16-asnprintf.c: New file.
31444         * lib/unistdio/u16-asprintf.c: New file.
31445         * lib/unistdio/u16-printf-parse.c: New file.
31446         * lib/unistdio/u16-snprintf.c: New file.
31447         * lib/unistdio/u16-sprintf.c: New file.
31448         * lib/unistdio/u16-vasnprintf.c: New file.
31449         * lib/unistdio/u16-vasprintf.c: New file.
31450         * lib/unistdio/u16-vsnprintf.c: New file.
31451         * lib/unistdio/u16-vsprintf.c: New file.
31452         * lib/unistdio/u16-u16-asnprintf.c: New file.
31453         * lib/unistdio/u16-u16-asprintf.c: New file.
31454         * lib/unistdio/u16-u16-snprintf.c: New file.
31455         * lib/unistdio/u16-u16-sprintf.c: New file.
31456         * lib/unistdio/u16-u16-vasnprintf.c: New file.
31457         * lib/unistdio/u16-u16-vasprintf.c: New file.
31458         * lib/unistdio/u16-u16-vsnprintf.c: New file.
31459         * lib/unistdio/u16-u16-vsprintf.c: New file.
31460         * lib/unistdio/u32-asnprintf.c: New file.
31461         * lib/unistdio/u32-asprintf.c: New file.
31462         * lib/unistdio/u32-printf-parse.c: New file.
31463         * lib/unistdio/u32-snprintf.c: New file.
31464         * lib/unistdio/u32-sprintf.c: New file.
31465         * lib/unistdio/u32-vasnprintf.c: New file.
31466         * lib/unistdio/u32-vasprintf.c: New file.
31467         * lib/unistdio/u32-vsnprintf.c: New file.
31468         * lib/unistdio/u32-vsprintf.c: New file.
31469         * lib/unistdio/u32-u32-asnprintf.c: New file.
31470         * lib/unistdio/u32-u32-asprintf.c: New file.
31471         * lib/unistdio/u32-u32-snprintf.c: New file.
31472         * lib/unistdio/u32-u32-sprintf.c: New file.
31473         * lib/unistdio/u32-u32-vasnprintf.c: New file.
31474         * lib/unistdio/u32-u32-vasprintf.c: New file.
31475         * lib/unistdio/u32-u32-vsnprintf.c: New file.
31476         * lib/unistdio/u32-u32-vsprintf.c: New file.
31477         * tests/unistdio/test-ulc-asnprintf1.c: New file.
31478         * tests/unistdio/test-ulc-asnprintf1.h: New file.
31479         * tests/unistdio/test-ulc-printf1.h: New file.
31480         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
31481         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
31482         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
31483         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
31484         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
31485         * tests/unistdio/test-ulc-vasprintf1.c: New file.
31486         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
31487         * tests/unistdio/test-ulc-vsprintf1.c: New file.
31488         * tests/unistdio/test-u8-asnprintf1.c: New file.
31489         * tests/unistdio/test-u8-asnprintf1.h: New file.
31490         * tests/unistdio/test-u8-printf1.h: New file.
31491         * tests/unistdio/test-u8-vasnprintf1.c: New file.
31492         * tests/unistdio/test-u8-vasnprintf2.c: New file.
31493         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
31494         * tests/unistdio/test-u8-vasnprintf3.c: New file.
31495         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
31496         * tests/unistdio/test-u8-vasprintf1.c: New file.
31497         * tests/unistdio/test-u8-vsnprintf1.c: New file.
31498         * tests/unistdio/test-u8-vsprintf1.c: New file.
31499         * tests/unistdio/test-u16-asnprintf1.c: New file.
31500         * tests/unistdio/test-u16-asnprintf1.h: New file.
31501         * tests/unistdio/test-u16-printf1.h: New file.
31502         * tests/unistdio/test-u16-vasnprintf1.c: New file.
31503         * tests/unistdio/test-u16-vasnprintf2.c: New file.
31504         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
31505         * tests/unistdio/test-u16-vasnprintf3.c: New file.
31506         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
31507         * tests/unistdio/test-u16-vasprintf1.c: New file.
31508         * tests/unistdio/test-u16-vsnprintf1.c: New file.
31509         * tests/unistdio/test-u16-vsprintf1.c: New file.
31510         * tests/unistdio/test-u32-asnprintf1.c: New file.
31511         * tests/unistdio/test-u32-asnprintf1.h: New file.
31512         * tests/unistdio/test-u32-printf1.h: New file.
31513         * tests/unistdio/test-u32-vasnprintf1.c: New file.
31514         * tests/unistdio/test-u32-vasnprintf2.c: New file.
31515         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
31516         * tests/unistdio/test-u32-vasnprintf3.c: New file.
31517         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
31518         * tests/unistdio/test-u32-vasprintf1.c: New file.
31519         * tests/unistdio/test-u32-vsnprintf1.c: New file.
31520         * tests/unistdio/test-u32-vsprintf1.c: New file.
31521         * modules/unistdio/base: New file.
31522         * modules/unistdio/u-printf-args: New file.
31523         * modules/unistdio/ulc-asnprintf: New file.
31524         * modules/unistdio/ulc-asprintf: New file.
31525         * modules/unistdio/ulc-fprintf: New file.
31526         * modules/unistdio/ulc-printf-parse: New file.
31527         * modules/unistdio/ulc-snprintf: New file.
31528         * modules/unistdio/ulc-sprintf: New file.
31529         * modules/unistdio/ulc-vasnprintf: New file.
31530         * modules/unistdio/ulc-vasprintf: New file.
31531         * modules/unistdio/ulc-vfprintf: New file.
31532         * modules/unistdio/ulc-vsnprintf: New file.
31533         * modules/unistdio/ulc-vsprintf: New file.
31534         * modules/unistdio/u8-asnprintf: New file.
31535         * modules/unistdio/u8-asprintf: New file.
31536         * modules/unistdio/u8-printf-parse: New file.
31537         * modules/unistdio/u8-snprintf: New file.
31538         * modules/unistdio/u8-sprintf: New file.
31539         * modules/unistdio/u8-vasnprintf: New file.
31540         * modules/unistdio/u8-vasprintf: New file.
31541         * modules/unistdio/u8-vsnprintf: New file.
31542         * modules/unistdio/u8-vsprintf: New file.
31543         * modules/unistdio/u8-u8-asnprintf: New file.
31544         * modules/unistdio/u8-u8-asprintf: New file.
31545         * modules/unistdio/u8-u8-snprintf: New file.
31546         * modules/unistdio/u8-u8-sprintf: New file.
31547         * modules/unistdio/u8-u8-vasnprintf: New file.
31548         * modules/unistdio/u8-u8-vasprintf: New file.
31549         * modules/unistdio/u8-u8-vsnprintf: New file.
31550         * modules/unistdio/u8-u8-vsprintf: New file.
31551         * modules/unistdio/u16-asnprintf: New file.
31552         * modules/unistdio/u16-asprintf: New file.
31553         * modules/unistdio/u16-printf-parse: New file.
31554         * modules/unistdio/u16-snprintf: New file.
31555         * modules/unistdio/u16-sprintf: New file.
31556         * modules/unistdio/u16-vasnprintf: New file.
31557         * modules/unistdio/u16-vasprintf: New file.
31558         * modules/unistdio/u16-vsnprintf: New file.
31559         * modules/unistdio/u16-vsprintf: New file.
31560         * modules/unistdio/u16-u16-asnprintf: New file.
31561         * modules/unistdio/u16-u16-asprintf: New file.
31562         * modules/unistdio/u16-u16-snprintf: New file.
31563         * modules/unistdio/u16-u16-sprintf: New file.
31564         * modules/unistdio/u16-u16-vasnprintf: New file.
31565         * modules/unistdio/u16-u16-vasprintf: New file.
31566         * modules/unistdio/u16-u16-vsnprintf: New file.
31567         * modules/unistdio/u16-u16-vsprintf: New file.
31568         * modules/unistdio/u32-asnprintf: New file.
31569         * modules/unistdio/u32-asprintf: New file.
31570         * modules/unistdio/u32-printf-parse: New file.
31571         * modules/unistdio/u32-snprintf: New file.
31572         * modules/unistdio/u32-sprintf: New file.
31573         * modules/unistdio/u32-vasnprintf: New file.
31574         * modules/unistdio/u32-vasprintf: New file.
31575         * modules/unistdio/u32-vsnprintf: New file.
31576         * modules/unistdio/u32-vsprintf: New file.
31577         * modules/unistdio/u32-u32-asnprintf: New file.
31578         * modules/unistdio/u32-u32-asprintf: New file.
31579         * modules/unistdio/u32-u32-snprintf: New file.
31580         * modules/unistdio/u32-u32-sprintf: New file.
31581         * modules/unistdio/u32-u32-vasnprintf: New file.
31582         * modules/unistdio/u32-u32-vasprintf: New file.
31583         * modules/unistdio/u32-u32-vsnprintf: New file.
31584         * modules/unistdio/u32-u32-vsprintf: New file.
31585         * modules/unistdio/ulc-asnprintf-tests: New file.
31586         * modules/unistdio/ulc-vasnprintf-tests: New file.
31587         * modules/unistdio/ulc-vasprintf-tests: New file.
31588         * modules/unistdio/ulc-vsnprintf-tests: New file.
31589         * modules/unistdio/ulc-vsprintf-tests: New file.
31590         * modules/unistdio/u8-asnprintf-tests: New file.
31591         * modules/unistdio/u8-vasnprintf-tests: New file.
31592         * modules/unistdio/u8-vasprintf-tests: New file.
31593         * modules/unistdio/u8-vsnprintf-tests: New file.
31594         * modules/unistdio/u8-vsprintf-tests: New file.
31595         * modules/unistdio/u16-asnprintf-tests: New file.
31596         * modules/unistdio/u16-vasnprintf-tests: New file.
31597         * modules/unistdio/u16-vasprintf-tests: New file.
31598         * modules/unistdio/u16-vsnprintf-tests: New file.
31599         * modules/unistdio/u16-vsprintf-tests: New file.
31600         * modules/unistdio/u32-asnprintf-tests: New file.
31601         * modules/unistdio/u32-vasnprintf-tests: New file.
31602         * modules/unistdio/u32-vasprintf-tests: New file.
31603         * modules/unistdio/u32-vsnprintf-tests: New file.
31604         * modules/unistdio/u32-vsprintf-tests: New file.
31605         * MODULES.html.sh (Unicode string functions): Add the new modules.
31606
31607 2007-07-01  Bruno Haible  <bruno@clisp.org>
31608
31609         * lib/sprintf.c (sprintf): Limit the available length estimation,
31610         to avoid address wraparound.
31611         * lib/vsprintf.c (vsprintf): Likewise.
31612         * modules/sprintf-posix (Dependencies): Add stdint.
31613         * modules/vsprintf-posix (Dependencies): Likewise.
31614
31615 2007-07-01  Bruno Haible  <bruno@clisp.org>
31616
31617         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
31618         Windows PATH as well. Conservative double-quoting. Comments.
31619
31620 2007-07-01  Bruno Haible  <bruno@clisp.org>
31621             Eric Blake  <ebb9@byu.net>
31622             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31623
31624         * gnulib-tool (self_abspathname): Fix algorithm to cope with
31625         empty components in $PATH, denoting '.'.
31626
31627 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31628
31629         * gnulib-tool: Fix indentation.
31630         (func_create_megatestdir): Likewise.
31631         Report by Bruno Haible.
31632
31633 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31634
31635         Sync from Automake.
31636         * build-aux/gnupload: Fix shell portability issues with for loops.
31637         Report by Karl Berry.
31638
31639 2007-06-29  Simon Josefsson  <simon@josefsson.org>
31640
31641         * build-aux/maint.mk (POURL): Use translationproject.org.
31642
31643 2007-06-27  Simon Josefsson  <simon@josefsson.org>
31644             Bruno Haible  <bruno@clisp.org>
31645
31646         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
31647         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
31648         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
31649         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
31650         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
31651
31652 2007-06-27  Bruno Haible  <bruno@clisp.org>
31653
31654         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
31655         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
31656
31657 2007-06-26  Karl Berry  <karl@gnu.org>
31658
31659         * MODULES.html.sh: remove xreadlink-with-size.
31660
31661 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
31662
31663         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
31664         method that I hope also handles the double-include problem noted
31665         by Bruno Haible in
31666         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
31667
31668 2007-06-23  Bruno Haible  <bruno@clisp.org>
31669
31670         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31671         Don't let the 'mostlyclean' target fail if the last subdirectory could
31672         not be removed.
31673         Reported by Karl Berry.
31674
31675 2007-06-23  Bruno Haible  <bruno@clisp.org>
31676
31677         * gnulib-tool (echo): Add a speedier workaround for ksh.
31678         * tests/test-echo.sh: Likewise.
31679
31680 2007-06-23  Bruno Haible  <bruno@clisp.org>
31681
31682         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
31683         * tests/test-echo.sh: Likewise.
31684
31685 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31686
31687         * gnulib-tool (IFS): Initialize early, so we don't set it to
31688         empty later.
31689         (self_abspathname): Rewrite algorithm to set it, reindent.
31690         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
31691         (func_create_megatestdir): Merge some sed scripts.
31692
31693 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
31694
31695         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
31696         exposed by Sun Studio 11 cc on Solaris 8.
31697
31698 2007-06-22  Bruno Haible  <bruno@clisp.org>
31699
31700         * gnulib-tool (echo): Ensure the echo primitive does not interpret
31701         backslashes.
31702         * tests/test-echo.sh: New file.
31703
31704 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31705
31706         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
31707         simplify `sed_replace_build_aux' scripts, they are portable but
31708         echoing them with `echo' is not.
31709         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
31710
31711 2007-06-21  Karl Berry  <karl@gnu.org>
31712
31713         * config/srclist.txt: guess we can't handle the licenses via
31714         srclist at the moment.
31715
31716 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
31717
31718         * MODULES.html.sh: Add include_next.
31719         * modules/include_next: New file.
31720
31721 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
31722
31723         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
31724         INCLUDE_NEXT.
31725         (gl_CHECK_NEXT_HEADERS): New macro.
31726         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
31727         the obsolescent gl_ABSOLUTE_HEADER.
31728         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
31729         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
31730         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
31731         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31732         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31733         * m4/math_h.m4 (gl_MATH_H): Likewise.
31734         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
31735         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
31736         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
31737         * m4/stdint.m4 (gl_STDINT_H): Likewise.
31738         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
31739         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
31740         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
31741         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31742         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
31743         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
31744         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
31745         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
31746         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
31747         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
31748         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31749         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31750         * m4/inttypes.m4 (gl_INTTYPES_H): Define
31751         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
31752         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
31753         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
31754         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
31755         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
31756         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
31757         * lib/float_.h: Likewise.
31758         * lib/inttypes_.h: Likewise.
31759         * lib/math_.h: Likewise.
31760         * lib/search_.h: Likewise.
31761         * lib/signal_.h: Likewise.
31762         * lib/stdint_.h: Likewise.
31763         * lib/stdio_.h: Likewise.
31764         * lib/stdlib_.h: Likewise.
31765         * lib/string_.h: Likewise.
31766         * lib/sys_stat_.h: Likewise.
31767         * lib/sys_time_.h: Likewise.
31768         * lib/time_.h: Likewise.
31769         * lib/unistd_.h: Likewise.
31770         * lib/wchar_.h: Likewise.
31771         * lib/wctype_.h: Likewise.
31772         * lib/dirent_.h: Likewise.
31773         * lib/iconv_.h: Likewise.
31774         * lib/locale_.h: Likewise.
31775         * lib/netinet_in_.h: Likewise.
31776         * lib/sys_select_.h: Likewise.
31777         * lib/sys_socket_.h: Likewise.
31778         * lib/sysexits_.h: Likewise.
31779         * modules/fcntl (Depends-on): Depend on include_next, not
31780         absolute_header.
31781         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
31782         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
31783         * modules/fchdir: Likewise.
31784         * modules/float: Likewise.
31785         * modules/iconv_open: Likewise.
31786         * modules/inttypes: Likewise.
31787         * modules/locale: Likewise.
31788         * modules/math: Likewise.
31789         * modules/netinet_in: Likewise.
31790         * modules/search: Likewise.
31791         * modules/signal: Likewise.
31792         * modules/stdint: Likewise.
31793         * modules/stdio: Likewise.
31794         * modules/stdlib: Likewise.
31795         * modules/string: Likewise.
31796         * modules/sys_select: Likewise.
31797         * modules/sys_socket: Likewise.
31798         * modules/sys_stat: Likewise.
31799         * modules/sys_time: Likewise.
31800         * modules/sysexits: Likewise.
31801         * modules/time: Likewise.
31802         * modules/unistd: Likewise.
31803         * modules/wchar: Likewise.
31804         * modules/wctype: Likewise.
31805         * modules/sys_stat: Change maintainer to "all".
31806         * modules/unistd: Likewise.
31807
31808 2007-06-20  Karl Berry  <karl@gnu.org>
31809
31810         * config/srclist.txt: track www changes in license files.
31811
31812 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
31813
31814         * build-aux/bootstrap: Remove stray dot.
31815         Make sure build_aux settings are honored when linking
31816         gnulib_extra_files.
31817
31818 2007-06-19  Eric Blake  <ebb9@byu.net>
31819
31820         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
31821         Allow compilation on cygwin.
31822
31823 2007-06-19  Jim Meyering  <jim@meyering.net>
31824
31825         xreadlink-with-size: Remove module.  No longer used.
31826         Ex-callers now use xreadlink or mreadlink-with-size.
31827         * modules/xreadlink-with-size: Remove module.
31828         * lib/xreadlink-with-size.c: Remove file.
31829         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
31830         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
31831         just before the function definition *is* accurate.
31832
31833         Eliminate one way canonicalize_filename_mode could exit.
31834         * lib/canonicalize.c (canonicalize_filename_mode):
31835         Use mreadlink_with_size, not xreadlink_with_size.
31836
31837 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
31838
31839         Detect porting problems to FreeBSD/arm, which has time_t wider than
31840         long int.  Original problem reported for GNU diff by Xin Li in
31841         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
31842         * modules/getdate (Depends-on): Add intprops, verify.
31843         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
31844         is an integer type no wider than long int.
31845
31846 2007-06-18  Jim Meyering  <jim@meyering.net>
31847
31848         New module: mreadlink-with-size.
31849         * MODULES.html.sh: Add mreadlink-with-size.
31850         * modules/mreadlink-with-size: New module
31851         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
31852         not xreadlink-with-size.
31853         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
31854
31855 2007-06-16  Bruno Haible  <bruno@clisp.org>
31856
31857         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
31858         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
31859         Reported by Gary V. Vaughan <gary@gnu.org>.
31860
31861 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
31862
31863         Revamp lchown so that it lives in unistd.h where it belongs.
31864         * lib/lchown.h: Remove.
31865         * lib/dirchownmod.c: Don't include lib/lchown.h.
31866         * lib/fchownat.c: Likewise.
31867         * lib/openat.c: Likewise.
31868         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
31869         does not follow symlinks.
31870         (EOPNOTSUPP): Define if not defined.
31871         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
31872         is defined to 0.
31873         (lchown): New decl.
31874         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
31875         Do not check for lchown decl.
31876         Set REPLACE_LCHOWN.
31877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
31878         REPLACE_LCHOWN.
31879         * modules/chown: Make it clear it follows symlinks.
31880         * modules/lchown: Make it clear it doesn't follow symlinks.
31881         (Files): Remove lib/lchown.h
31882         (Depends-on): Add unistd.
31883         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
31884         (Include): Include <unistd.h>, not "lchown.h".
31885         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
31886         REPLACE_LCHOWN.
31887
31888 2007-06-15  Jim Meyering  <jim@meyering.net>
31889
31890         Change license (GPL to LGPL) of fsusage and dependents.
31891         * modules/fsusage (License): Change to LGPL.
31892         * modules/full-read (License): Likewise.
31893         * modules/full-write (License): Likewise.
31894         * modules/safe-read (License): Likewise.
31895         * modules/safe-write (License): Likewise.
31896
31897 2007-06-14  Ben Pfaff  <blp@gnu.org>
31898
31899         Missing part of allocsa -> malloca transition.
31900         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
31901         gl_MALLOCA.
31902
31903 2007-06-12  Bruno Haible  <bruno@clisp.org>
31904
31905         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
31906         to ia64, x86_64, i386.
31907         Reported by Eric Blake.
31908
31909 2007-06-12  Bruno Haible  <bruno@clisp.org>
31910
31911         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
31912         cross-compiling to x86_64.
31913
31914 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
31915
31916         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
31917         glitch reported by Ralf Wildenhues in
31918         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
31919
31920         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
31921         Vin Shelton.
31922
31923 2007-06-11  Bruno Haible  <bruno@clisp.org>
31924
31925         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
31926         replacement string.
31927         Reported by Eric Blake.
31928
31929 2007-06-10  Bruno Haible  <bruno@clisp.org>
31930
31931         Prepare vasnprintf code for use with Unicode strings.
31932         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
31933         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
31934         TYPE_U32_STRING.
31935         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
31936         a_u32_string variants.
31937         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
31938         * lib/printf-args.c: Don't include config.h and the specification
31939         header if PRINTF_FETCHARGS is already defined.
31940         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
31941         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
31942         TYPE_U16_STRING, TYPE_U32_STRING.
31943         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
31944         u16_directive, u16_directives, u32_directive, u32_directives): New
31945         types.
31946         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
31947         New declarations.
31948         * lib/printf-parse.c: Don't include config.h and the specification
31949         header if PRINTF_PARSE is already defined. Eliminate the set of
31950         parameters for WIDE_CHAR_VERSION; the user of this file must provide
31951         them now. Include c-ctype.h.
31952         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
31953         directive and CHAR_T_ONLY_ASCII.
31954         * lib/vasnprintf.c: Don't include config.h and the specification header
31955         if VASNPRINTF is already defined.
31956         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
31957         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
31958         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
31959         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
31960         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
31961         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
31962         code accordingly.
31963         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
31964         pad_ourselves also in this case, with the 'c' and 's' directives, and
31965         with a different notion of "width".
31966         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
31967
31968 2007-06-10  Bruno Haible  <bruno@clisp.org>
31969
31970         * modules/unistr/u32-mbsnlen: New file.
31971         * lib/unistr/u32-mbsnlen.c: New file.
31972
31973         * modules/unistr/u16-mbsnlen: New file.
31974         * lib/unistr/u16-mbsnlen.c: New file.
31975
31976         * modules/unistr/u8-mbsnlen: New file.
31977         * lib/unistr/u8-mbsnlen.c: New file.
31978
31979         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
31980         declarations.
31981
31982 2007-06-10  Bruno Haible  <bruno@clisp.org>
31983
31984         * lib/string_.h (mbsnlen): New declaration.
31985         * lib/mbsnlen.c: New file.
31986         * m4/mbsnlen.m4: New file.
31987         * modules/mbsnlen: New file.
31988         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
31989         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
31990         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
31991
31992 2007-06-10  Bruno Haible  <bruno@clisp.org>
31993
31994         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
31995
31996 2007-06-10  Bruno Haible  <bruno@clisp.org>
31997
31998         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
31999         * lib/mbuiter.h: Likewise.
32000
32001 2007-06-10  Bruno Haible  <bruno@clisp.org>
32002
32003         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
32004         declaration.
32005
32006 2007-06-10  Karl Berry  <karl@gnu.org>
32007
32008         * config/srclist.txt: remove gettext entries, Bruno prefers
32009         to update individually.
32010
32011 2007-06-10  Bruno Haible  <bruno@clisp.org>
32012
32013         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
32014         'maxlen'. Ensure only length + width bytes are allocated, not
32015         length + 1 + width.
32016
32017 2007-06-09  Bruno Haible  <bruno@clisp.org>
32018
32019         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
32020         (CHAR_T): Remove macro.
32021         (VASNPRINTF): Update.
32022
32023 2007-06-09  Bruno Haible  <bruno@clisp.org>
32024
32025         * MODULES.html.sh (Unicode string functions): Add the new modules.
32026
32027         * modules/uniconv/u32-conv-to-enc: New file.
32028         * lib/uniconv/u32-conv-to-enc.c: New file.
32029         * modules/uniconv/u32-conv-to-enc-tests: New file.
32030         * tests/uniconv/test-u32-conv-to-enc.c: New file.
32031
32032         * modules/uniconv/u16-conv-to-enc: New file.
32033         * lib/uniconv/u16-conv-to-enc.c: New file.
32034         * lib/uniconv/u-conv-to-enc.h: New file.
32035         * modules/uniconv/u16-conv-to-enc-tests: New file.
32036         * tests/uniconv/test-u16-conv-to-enc.c: New file.
32037
32038         * modules/uniconv/u8-conv-to-enc: New file.
32039         * lib/uniconv/u8-conv-to-enc.c: New file.
32040         * modules/uniconv/u8-conv-to-enc-tests: New file.
32041         * tests/uniconv/test-u8-conv-to-enc.c: New file.
32042
32043         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
32044         u32_conv_to_encoding): New declarations.
32045
32046 2007-06-09  Bruno Haible  <bruno@clisp.org>
32047
32048         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
32049
32050 2007-06-09  Bruno Haible  <bruno@clisp.org>
32051
32052         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
32053         * modules/malloca: Renamed from modules/allocsa, updated.
32054         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
32055         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
32056         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
32057         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
32058         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
32059         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
32060         * modules/xmalloca: Renamed from modules/xallocsa, updated.
32061         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
32062         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
32063         * modules/c-strcasestr (Depends-on): Update.
32064         * lib/c-strcasestr.c: Update.
32065         * modules/c-strstr (Depends-on): Update.
32066         * lib/c-strstr.c: Update.
32067         * modules/canonicalize-lgpl (Depends-on): Update.
32068         * lib/canonicalize-lgpl.c: Update.
32069         * modules/clean-temp (Depends-on): Update.
32070         * lib/clean-temp.c: Update.
32071         * modules/csharpcomp (Depends-on): Update.
32072         * lib/csharpcomp.c: Update.
32073         * modules/csharpexec (Depends-on): Update.
32074         * lib/csharpexec.c: Update.
32075         * modules/javacomp (Depends-on): Update.
32076         * lib/javacomp.c: Update.
32077         * modules/javaexec (Depends-on): Update.
32078         * lib/javaexec.c: Update.
32079         * modules/mbscasestr (Depends-on): Update.
32080         * lib/mbscasestr.c: Update.
32081         * modules/mbsstr (Depends-on): Update.
32082         * lib/mbsstr.c: Update.
32083         * modules/setenv (Depends-on): Update.
32084         * lib/setenv.c: Update.
32085         * modules/strcasestr (Depends-on): Update.
32086         * lib/strcasestr.c: Update.
32087         * modules/striconveha (Depends-on): Update.
32088         * lib/striconveha.c: Update.
32089         * modules/relocatable-prog-wrapper (Files): Update.
32090         * lib/relocwrapper.c: Update.
32091         * build-aux/install-reloc: Update.
32092         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
32093
32094 2007-06-08  Bruno Haible  <bruno@clisp.org>
32095
32096         Port to uClibc.
32097         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
32098         * lib/fpurge.c (fpurge): Likewise.
32099         * lib/freading.c (freading): Likewise.
32100         * lib/fseeko.c (rpl_fseeko): Likewise.
32101         * lib/fseterr.c (fseterr): Likewise.
32102         * lib/fwriting.c (fwriting): Likewise.
32103         * tests/test-fflush.c (main): Avoid a failure on uClibc.
32104
32105 2007-06-08  Bruno Haible  <bruno@clisp.org>
32106
32107         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
32108         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
32109         * modules/gettext (Files): Add m4/intlmacosx.m4.
32110
32111 2007-06-07  Bruno Haible  <bruno@clisp.org>
32112
32113         * modules/localename-tests: New file.
32114         * tests/test-localename.c: New file.
32115
32116         New module 'localename'.
32117         * lib/localename.h: New file.
32118         * lib/localename.c: New file, from GNU gettext.
32119         * m4/localename.m4: New file.
32120         * modules/localename: New file.
32121
32122 2007-06-07  Bruno Haible  <bruno@clisp.org>
32123
32124         Work around the lack of <wchar.h> on some builds of uClibc.
32125         * doc/headers/wchar.texi: Update.
32126         * lib/wchar_.h: Include <wchar.h> only if it exists.
32127         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
32128         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
32129         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
32130         doesn't exist.
32131         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
32132         * modules/mbfile (Depends-on): Add wchar.
32133         * modules/mbiter (Depends-on): Likewise.
32134         * modules/mbuiter (Depends-on): Likewise.
32135         Reported by Simon Josefsson.
32136
32137 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
32138
32139         Work around problem reported by Steven M. Schweda in
32140         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
32141         Tru64 5.1B with the Compaq compiler environment installed declares
32142         an 'isblank' function but does not define it in the C library.
32143         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
32144         * lib/regex_internal.h (isblank): Likewise.
32145         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
32146         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32147
32148 2007-06-05  Bruno Haible  <bruno@clisp.org>
32149
32150         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
32151         ia64.
32152         * modules/printf-safe: New file.
32153         * modules/fprintf-posix (Depends-on): Add printf-safe.
32154         * modules/printf-posix (Depends-on): Likewise.
32155         * modules/snprintf-posix (Depends-on): Likewise.
32156         * modules/sprintf-posix (Depends-on): Likewise.
32157         * modules/vasnprintf-posix (Depends-on): Likewise.
32158         * modules/vasprintf-posix (Depends-on): Likewise.
32159         * modules/vfprintf-posix (Depends-on): Likewise.
32160         * modules/vprintf-posix (Depends-on): Likewise.
32161         * modules/vsnprintf-posix (Depends-on): Likewise.
32162         * modules/vsprintf-posix (Depends-on): Likewise.
32163         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
32164         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
32165         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
32166         "no" on i386, x86_64, ia64.
32167         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
32168         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32169         on i386, x86_64, ia64.
32170         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
32171         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32172         on i386, x86_64, ia64.
32173         * tests/test-vasnprintf-posix.c: Include float.h.
32174         (LDBL80_WORDS): New macro.
32175         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32176         on i386, x86_64, ia64.
32177         * tests/test-vasprintf-posix.c: Include float.h.
32178         (LDBL80_WORDS): New macro.
32179         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32180         on i386, x86_64, ia64.
32181         * tests/test-snprintf-posix.c: Include float.h.
32182         * tests/test-sprintf-posix.c: Likewise.
32183         * tests/test-vsnprintf-posix.c: Likewise.
32184         * tests/test-vsprintf-posix.c: Likewise.
32185
32186 2007-06-05  Bruno Haible  <bruno@clisp.org>
32187
32188         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
32189         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
32190         non-IEEE numbers on i386, x86_64, ia64.
32191         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
32192         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
32193         * tests/test-isnanl.h: Include float.h.
32194         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
32195
32196 2007-06-05  Bruno Haible  <bruno@clisp.org>
32197
32198         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
32199         also the %a / %A. Handle the %a / %A code before this extra handling.
32200
32201 2007-06-05  Bruno Haible  <bruno@clisp.org>
32202
32203         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
32204         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
32205
32206 2007-06-05  Bruno Haible  <bruno@clisp.org>
32207
32208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
32209         typo in variable name.
32210
32211 2007-06-05  Eric Blake  <ebb9@byu.net>
32212
32213         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
32214         Reported by Simon Josefsson.
32215
32216 2007-06-04  Bruno Haible  <bruno@clisp.org>
32217
32218         Avoid test failures on some PowerPC platforms.
32219         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
32220         Define differently for PowerPC.
32221         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
32222         Reported by Gary V. Vaughan <gary@gnu.org>.
32223
32224 2007-06-02  Bruno Haible  <bruno@clisp.org>
32225
32226         Fix test-stdint failure on FreeBSD/ia64.
32227         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
32228         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
32229         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
32230         * doc/headers/stdint.texi: Update.
32231
32232 2007-06-01  Bruno Haible  <bruno@clisp.org>
32233
32234         * tests/test-binary-io.c (main): Pass a third argument to open().
32235         Reported by Gary V. Vaughan <gary@gnu.org>.
32236
32237 2007-06-01  Bruno Haible  <bruno@clisp.org>
32238
32239         * doc/functions/frexpl.texi: Update for mingw.
32240
32241 2007-06-01  Bruno Haible  <bruno@clisp.org>
32242
32243         * tests/test-lseek.c (main): Disable test of errno for invalid third
32244         argument.
32245         * doc/functions/lseek.texi: Update.
32246         Reported by Gary V. Vaughan <gary@gnu.org>.
32247
32248 2007-05-28  Bruno Haible  <bruno@clisp.org>
32249
32250         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
32251
32252 2007-05-31  Eric Blake  <ebb9@byu.net>
32253
32254         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
32255         cross compiling.
32256
32257 2007-05-30  Eric Blake  <ebb9@byu.net>
32258         and Bruno Haible  <bruno@clisp.org>
32259
32260         Work around mingw test failures exposed by m4-1.4.9b.
32261         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
32262         * tests/test-unistd.c: Disable uid_t and git_t tests for the
32263         moment.
32264
32265 2007-05-30  Bruno Haible  <bruno@clisp.org>
32266
32267         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
32268         assuming that they are closed. Needed on HP-UX 11.
32269
32270 2007-05-29  Bruno Haible  <bruno@clisp.org>
32271
32272         Fix a problem with #include_next.
32273         * lib/dirent_.h: Split the double-inclusion guard.
32274         * lib/fcntl_.h: Likewise.
32275         * lib/float_.h: Likewise.
32276         * lib/iconv_.h: Likewise.
32277         * lib/inttypes_.h: Likewise.
32278         * lib/locale_.h: Likewise.
32279         * lib/math_.h: Likewise.
32280         * lib/netinet_in_.h: Likewise.
32281         * lib/search_.h: Likewise.
32282         * lib/signal_.h: Likewise.
32283         * lib/stdint_.h: Likewise.
32284         * lib/stdio_.h: Likewise.
32285         * lib/stdlib_.h: Likewise.
32286         * lib/string_.h: Likewise.
32287         * lib/sys_select_.h: Likewise.
32288         * lib/sys_socket_.h: Likewise.
32289         * lib/sys_stat_.h: Likewise.
32290         * lib/sys_time_.h: Likewise.
32291         * lib/sysexits_.h: Likewise.
32292         * lib/time_.h: Likewise.
32293         * lib/unistd_.h: Likewise.
32294         * lib/wchar_.h: Likewise.
32295         * lib/wctype_.h: Likewise.
32296
32297 2007-05-29  Bruno Haible  <bruno@clisp.org>
32298
32299         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
32300         for the moment.
32301
32302 2007-05-29  Bruno Haible  <bruno@clisp.org>
32303
32304         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
32305         invocation.
32306         Reported by Eric Blake.
32307
32308 2007-05-29  Bruno Haible  <bruno@clisp.org>
32309
32310         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
32311         compiling case.
32312
32313 2007-05-29  Eric Blake  <ebb9@byu.net>
32314             Bruno Haible  <bruno@clisp.org>
32315
32316         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
32317         cross compiles.
32318
32319 2007-05-28  Eric Blake  <ebb9@byu.net>
32320
32321         * modules/closein-tests (test_closein_LDADD): Support test on
32322         cygwin with libtool.
32323
32324 2007-05-28  Bruno Haible  <bruno@clisp.org>
32325
32326         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
32327         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32328         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32329         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32330         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32331         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32332         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32333         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32334         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32335
32336 2007-05-28  Eric Blake  <ebb9@byu.net>
32337
32338         Unconditionally include <config.h> in unit tests.
32339         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
32340         * tests/test-allocsa.c, tests/test-arcfour.c,
32341         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
32342         tests/test-array_list.c, tests/test-array_oset.c,
32343         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
32344         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
32345         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
32346         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
32347         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
32348         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
32349         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
32350         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
32351         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
32352         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
32353         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
32354         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
32355         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
32356         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
32357         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
32358         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
32359         test-md5.c, test-memmem.c, test-printf-posix.c,
32360         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
32361         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
32362         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
32363         test-strcasestr.c, test-striconv.c, test-striconveh.c,
32364         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
32365         test-vasnprintf-posix2.c, test-vasnprintf.c,
32366         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
32367         test-vfprintf-posix.c, test-vprintf-posix.c,
32368         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
32369         test-xvasprintf.c: Likewise.
32370
32371 2007-05-28  Bruno Haible  <bruno@clisp.org>
32372
32373         * gnulib-tool (func_import): Remember the --with-tests command-line
32374         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
32375         Reported by Eric Blake.
32376
32377 2007-05-28  Bruno Haible  <bruno@clisp.org>
32378
32379         * modules/ftell-tests: New file.
32380         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
32381         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
32382
32383         * lib/ftell.c: New file.
32384         * modules/ftell: New file.
32385         * m4/ftell.m4: New file.
32386         * doc/functions/ftell.texi: Update.
32387         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
32388         REPLACE_FTELL.
32389         * lib/stdio_.h (rpl_ftell): New declaration.
32390         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
32391         REPLACE_FTELL.
32392
32393 2007-05-28  Eric Blake  <ebb9@byu.net>
32394
32395         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
32396
32397 2007-05-28  Bruno Haible  <bruno@clisp.org>
32398
32399         * modules/fseek-tests: New file.
32400         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
32401         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
32402
32403         * lib/fseek.c: New file.
32404         * modules/fseek: New file.
32405         * m4/fseek.m4: New file.
32406         * doc/functions/fseek.texi: Update.
32407         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
32408         REPLACE_FSEEK.
32409         * lib/stdio_.h (rpl_fseek): New declaration.
32410         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
32411         REPLACE_FSEEK.
32412
32413 2007-05-28  Bruno Haible  <bruno@clisp.org>
32414
32415         * lib/stdio_.h (fflush): More comments.
32416
32417 2007-05-28  Bruno Haible  <bruno@clisp.org>
32418
32419         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
32420         runtime test.
32421
32422 2007-05-28  Eric Blake  <ebb9@byu.net>
32423
32424         Improve lseek module.
32425         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
32426         * lib/unistd_.h (lseek): Scale back link warning message.
32427         * tests/test-lseek.c: Beef up test.
32428         * tests/test-lseek.sh: Exercise more facets of lseek.
32429         Reported by Bruno Haible.
32430
32431 2007-05-28  Bruno Haible  <bruno@clisp.org>
32432
32433         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
32434         to define.
32435
32436 2007-05-27  Bruno Haible  <bruno@clisp.org>
32437
32438         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
32439
32440 2007-05-27  Bruno Haible  <bruno@clisp.org>
32441
32442         * modules/openmp: New file.
32443         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
32444         Noah Misch.
32445
32446 2007-05-26  Bruno Haible  <bruno@clisp.org>
32447
32448         * modules/chdir-long (Depends-on): Add fchdir.
32449         * modules/chdir-safer (Depends-on): Likewise.
32450         * modules/fts (Depends-on): Likewise.
32451         * modules/fts-lgpl (Depends-on): Likewise.
32452         * modules/openat (Depends-on): Likewise.
32453         * modules/savewd (Depends-on): Likewise.
32454
32455 2007-05-24  Eric Blake  <ebb9@byu.net>
32456
32457         Fix lseek on mingw.
32458         * modules/lseek: New module.
32459         * m4/lseek.m4: New file.
32460         * lib/lseek.c: New file.
32461         * modules/lseek-tests: New file.
32462         * tests/test-lseek.c: New file.
32463         * tests/test-lseek.sh: New file.
32464         * MODULES.html.sh: Document lseek module.
32465         * modules/fflush (Depends-on): Add lseek, fseeko.
32466         * modules/fseeko (Depends-on): Likewise.
32467         * modules/ftello (Depends-on): Likewise.
32468         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
32469         broken.
32470         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
32471         broken.
32472         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
32473         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
32474         * lib/ftello.c (rpl_ftello): Likewise.
32475         * tests/test-fseeko.c (main): Test this.
32476         * tests/test-fseeko.sh: Likewise.
32477         * tests/test-ftello.c (main): Likewise.
32478         * tests/test-ftello.sh: Likewise.
32479         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
32480         implies replacing fseek.
32481         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
32482         HAVE_FTELLO.
32483         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
32484         * modules/unistd (Makefile.am): Likewise.
32485         * lib/unistd_.h (lseek): Declare a replacement.
32486         * doc/functions/lseek.texi (lseek): Document this fix.
32487         * doc/functions/fseek.texi (fseek): Likewise.
32488         * doc/functions/ftell.texi (ftell): Likewise.
32489
32490 2007-05-24  Bruno Haible  <bruno@clisp.org>
32491
32492         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
32493         in the printed representation of a NaN.
32494         * tests/test-vasprintf-posix.c (test_function): Likewise.
32495         * tests/test-snprintf-posix.h (test_function): Likewise.
32496         * tests/test-sprintf-posix.h (test_function): Likewise.
32497         Reported by Eric Blake.
32498
32499 2007-05-23  Eric Blake  <ebb9@byu.net>
32500
32501         Fix fseeko/ftello on cygwin 1.5.24.
32502         * doc/functions/fseeko.texi (fseeko): Document the fix.
32503         * doc/functions/ftello.texi (ftello): Document the fix.
32504         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
32505         * doc/functions/stdout.text (stdout): New file.
32506         * doc/functions/stderr.text (stderr): New file.
32507         * doc/gnulib.texi (Function Substitutes): Use new files.
32508         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
32509         prior to 1.7.0.
32510         * tests/test-ftello.c (main): Likewise for ftello.
32511         * tests/test-fseeko.sh: New file.
32512         * tests/test-ftello.sh: New file.
32513         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
32514         with seekable stdin.
32515         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
32516         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
32517         (gl_REPLACE_FSEEKO): New macro.
32518         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
32519         * modules/fseeko (Files): Distribute fseeko.c.
32520         * modules/ftello (Files): Distribute ftello.c.
32521         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
32522         mode.
32523         * lib/ftello.c (rpl_ftello): New file.
32524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
32525         fseeko, ftello.
32526         (gl_STDIN_LARGE_OFFSET): New macro.
32527         * modules/stdio (Makefile.am): Perform the replacement.
32528         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
32529
32530 2007-05-23  Bruno Haible  <bruno@clisp.org>
32531
32532         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
32533         GNULIB_POSIXCHECK is defined.
32534
32535 2007-05-21  Bruno Haible  <bruno@clisp.org>
32536
32537         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
32538         Check also the output for NaN arguments. When cross-compiling, guess
32539         no on IRIX.
32540         * lib/vasnprintf.c: Update comments.
32541         * tests/test-vasnprintf-posix.c (strisnan): New function.
32542         (test_function): Use it.
32543         * tests/test-vasprintf-posix.c (strisnan): New function.
32544         (test_function): Use it.
32545         * tests/test-snprintf-posix.h (strisnan): New function.
32546         (test_function): Use it.
32547         * tests/test-sprintf-posix.h (strisnan): New function.
32548         (test_function): Use it.
32549         Reported by Eric Blake.
32550
32551 2007-05-20  Bruno Haible  <bruno@clisp.org>
32552
32553         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
32554         numbers that fails on BeOS.
32555         * doc/functions/frexpl.texi: Update.
32556
32557 2007-05-20  Jim Meyering  <jim@meyering.net>
32558
32559         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
32560         forced upon us by glibc-2.6.
32561
32562 2007-05-20  Bruno Haible  <bruno@clisp.org>
32563
32564         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
32565         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
32566         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
32567         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
32568         NEED_PRINTF_INFINITE.
32569         (is_infinitel): New function.
32570         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
32571         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
32572         gl_PREREQ_VASNPRINTF_INFINITE.
32573         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
32574         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32575         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
32576         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
32577         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
32578         gl_PREREQ_VASNPRINTF_INFINITE.
32579         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32580         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32581         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32582         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32583         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32584         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32585         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32586         * doc/functions/fprintf.texi: Update.
32587         * doc/functions/printf.texi: Update.
32588         * doc/functions/snprintf.texi: Update.
32589         * doc/functions/sprintf.texi: Update.
32590         * doc/functions/vfprintf.texi: Update.
32591         * doc/functions/vprintf.texi: Update.
32592         * doc/functions/vsnprintf.texi: Update.
32593         * doc/functions/vsprintf.texi: Update.
32594
32595 2007-05-20  Bruno Haible  <bruno@clisp.org>
32596
32597         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
32598         was not found in libc.
32599         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32600
32601 2007-05-20  Bruno Haible  <bruno@clisp.org>
32602
32603         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
32604         printed as "-nan" instead of "nan".
32605         * tests/test-vasprintf-posix.c (test_function): Likewise.
32606         * tests/test-snprintf-posix.h (test_function): Likewise.
32607         * tests/test-sprintf-posix.h (test_function): Likewise.
32608         Needed for HP-UX 11.
32609
32610 2007-05-20  Jim Meyering  <jim@meyering.net>
32611
32612         Fix buggy test for the fchownat-deref bug.
32613         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
32614         symlink required for the run-test.  Without it, this test would
32615         always declare that fchownat doesn't work, and client code would
32616         unnecessarily use the replacement function with fixed libc.
32617         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
32618         Reported by Greg Schafer.
32619
32620 2007-05-19  Bruno Haible  <bruno@clisp.org>
32621
32622         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
32623         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
32624         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
32625         Needed for IRIX 6.5 and Solaris 2.5.1.
32626
32627 2007-05-19  Bruno Haible  <bruno@clisp.org>
32628
32629         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
32630         (test_function): Skip tests involving -0.0 on platforms where
32631         -0.0 = 0.0.
32632         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
32633         (test_function): Skip tests involving -0.0 on platforms where
32634         -0.0 = 0.0.
32635         * tests/test-snprintf-posix.h (have_minus_zero): New function.
32636         (test_function): Skip tests involving -0.0 on platforms where
32637         -0.0 = 0.0.
32638         * tests/test-sprintf-posix.h (have_minus_zero): New function.
32639         (test_function): Skip tests involving -0.0 on platforms where
32640         -0.0 = 0.0.
32641         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
32642         tests.
32643         * tests/test-printf-posix.h (test_function): Likewise.
32644         * tests/test-printf-posix.output: Remove all -0.0 related results.
32645         Needed for IRIX 6.5.
32646
32647 2007-05-19  Bruno Haible  <bruno@clisp.org>
32648
32649         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
32650         printed as "nan0x7fffffff" instead of "nan".
32651         * tests/test-vasprintf-posix.c (test_function): Likewise.
32652         * tests/test-snprintf-posix.h (test_function): Likewise.
32653         * tests/test-sprintf-posix.h (test_function): Likewise.
32654         * tests/test-fprintf-posix.h (NaN): Remove macro.
32655         (test_function): Remove all NaN related tests.
32656         * tests/test-printf-posix.h (NaN): Remove macro.
32657         (test_function): Remove all NaN related tests.
32658         * tests/test-printf-posix.output: Remove all NaN related results.
32659         Needed for IRIX 6.5.
32660
32661 2007-05-19  Bruno Haible  <bruno@clisp.org>
32662
32663         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
32664         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
32665
32666 2007-05-19  Bruno Haible  <bruno@clisp.org>
32667
32668         * lib/float_.h: New file.
32669         * m4/float_h.m4: New file.
32670         * modules/float: New file.
32671         * modules/isnanl (Dependencies): Add float.
32672         * modules/isnanl-nolibm (Dependencies): Likewise.
32673         * modules/mathl (Dependencies): Likewise.
32674         * modules/printf-frexpl (Dependencies): Likewise.
32675         * modules/signbit (Dependencies): Likewise.
32676         * modules/vasnprintf (Dependencies): Likewise.
32677         * doc/headers/float.texi: Update.
32678
32679 2007-05-19  Jim Meyering  <jim@meyering.net>
32680
32681         * lib/utimens.c (gl_futimens): Rename from futimens,
32682         now that glibc-2.6 declares futimens.
32683         * lib/utimens.h: Likewise.
32684
32685 2007-05-19  Bruno Haible  <bruno@clisp.org>
32686
32687         Avoid test failures on mingw.
32688         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
32689         * tests/test-printf-posix.sh: Likewise.
32690         * tests/test-vfprintf-posix.sh: Likewise.
32691         * tests/test-vprintf-posix.sh: Likewise.
32692
32693 2007-05-19  Bruno Haible  <bruno@clisp.org>
32694
32695         Fix *printf result for NaN, Inf, -0.0 on mingw.
32696         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
32697         * lib/vasnprintf.c: Include math.h and isnan.h.
32698         (is_infinite_or_zero): New function.
32699         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
32700         values in the %f, %F, %e, %E, %g, %G directives.
32701         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
32702         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32703         gl_PRINTF_INFINITE and test its result. Invoke
32704         gl_PREREQ_VASNPRINTF_INFINITE.
32705         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32706         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32707         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32708         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32709         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32710         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32711         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32712         * doc/functions/fprintf.texi: Update.
32713         * doc/functions/printf.texi: Update.
32714         * doc/functions/snprintf.texi: Update.
32715         * doc/functions/sprintf.texi: Update.
32716         * doc/functions/vfprintf.texi: Update.
32717         * doc/functions/vprintf.texi: Update.
32718         * doc/functions/vsnprintf.texi: Update.
32719         * doc/functions/vsprintf.texi: Update.
32720
32721 2007-05-19  Bruno Haible  <bruno@clisp.org>
32722
32723         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
32724         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
32725         Instead of multiplying with 10^k, set extra_zeroes to k.
32726         (scale10_round_long_double): Remove function.
32727
32728 2007-05-18  Bruno Haible  <bruno@clisp.org>
32729
32730         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
32731         introduced on 2007-05-06.
32732
32733 2007-05-18  Bruno Haible  <bruno@clisp.org>
32734
32735         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
32736         %g directives.
32737         * tests/test-vasprintf-posix.c (test_function): Likewise.
32738         * tests/test-snprintf-posix.h (test_function): Likewise.
32739         * tests/test-sprintf-posix.h (test_function): Likewise.
32740
32741 2007-05-18  Bruno Haible  <bruno@clisp.org>
32742
32743         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
32744         (strmatch): New function.
32745         (test_function): Test the %f directive on numbers of various exponents.
32746         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
32747         (strmatch): New function.
32748         (test_function): Test the %f directive on numbers of various exponents.
32749         * tests/test-snprintf-posix.h (strmatch): New function.
32750         (test_function): Test the %f directive on numbers of various exponents.
32751         * tests/test-sprintf-posix.h (strmatch): New function.
32752         (test_function): Test the %f directive on numbers of various exponents.
32753         * tests/test-snprintf-posix.c (SIZEOF): New macro.
32754         * tests/test-sprintf-posix.c (SIZEOF): New macro.
32755         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
32756         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
32757
32758 2007-05-18  Bruno Haible  <bruno@clisp.org>
32759
32760         Add support for 'long double' number output.
32761         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
32762         * lib/vasnprintf.c: Include math.h and float+.h.
32763         (mp_limb_t): New type.
32764         (GMP_LIMB_BITS): New macro.
32765         (mp_twolimb_t): New type.
32766         (GMP_TWOLIMB_BITS): New macro.
32767         (mpn_t): New type.
32768         (multiply, divide, convert_to_decimal, decode_long_double,
32769         scale10_round_long_double, scale10_round_decimal_long_double,
32770         floorlog10l): New functions.
32771         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
32772         for the %f, %F, %e, %E, %g, %G directives.
32773         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
32774         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32775         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
32776         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
32777         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32778         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32779         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32780         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32781         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32782         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32783         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32784         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
32785         * modules/snprintf-posix (Depends-on): Likewise.
32786         * modules/sprintf-posix (Depends-on): Likewise.
32787         * modules/vasnprintf-posix (Depends-on): Likewise.
32788         * modules/vasprintf-posix (Depends-on): Likewise.
32789         * modules/vfprintf-posix (Depends-on): Likewise.
32790         * modules/vsnprintf-posix (Depends-on): Likewise.
32791         * modules/vsprintf-posix (Depends-on): Likewise.
32792         * modules/vasnprintf (Files): Add lib/float+.h.
32793         * doc/functions/fprintf.texi: Update.
32794         * doc/functions/printf.texi: Update.
32795         * doc/functions/snprintf.texi: Update.
32796         * doc/functions/sprintf.texi: Update.
32797         * doc/functions/vfprintf.texi: Update.
32798         * doc/functions/vprintf.texi: Update.
32799         * doc/functions/vsnprintf.texi: Update.
32800         * doc/functions/vsprintf.texi: Update.
32801
32802 2007-05-18  Bruno Haible  <bruno@clisp.org>
32803
32804         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
32805
32806 2007-05-18  Bruno Haible  <bruno@clisp.org>
32807
32808         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
32809         for printing 64-bit integers. Needed for mingw.
32810
32811 2007-05-18  Bruno Haible  <bruno@clisp.org>
32812
32813         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
32814         gl_FUNC_FREXPL_WORKS.
32815         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
32816
32817 2007-05-18  Bruno Haible  <bruno@clisp.org>
32818
32819         * modules/frexpl-nolibm-tests: New file.
32820
32821         * modules/frexpl-nolibm: New file.
32822         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
32823
32824 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
32825
32826         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
32827         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
32828         GCC 4.2, which otherwise issues a lot of warnings.
32829         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
32830         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
32831         Likewise.
32832         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
32833         * modules/iconv_open (iconv.h): Likewise.
32834         * modules/locale (locale.h): Likewise.
32835         * modules/netinet_in (netinet/in.h): Likewise.
32836         * modules/sys_select (sys_select.h): Likewise.
32837         * modules/sys_socket (sys/socket.h): Likewise.
32838         * modules/sys_stat (sys/stat.h): Likewise.
32839         * modules/sysexits (sysexits.h): Likewise.
32840         * modules/unistd (unistd.h): Likewise.
32841
32842 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32843
32844         * modules/closein-tests (Makefile.am): Distribute
32845         `test-closein.sh'.
32846
32847 2007-05-17  Bruno Haible  <bruno@clisp.org>
32848
32849         * tests/test-printf-posix.output: Renamed from
32850         tests/test-fprintf-posix.out.
32851         * modules/fprintf-posix-tests: Update.
32852         * modules/printf-posix-tests: Update.
32853         * modules/vfprintf-posix-tests: Update.
32854         * modules/vprintf-posix-tests: Update.
32855         * tests/test-fprintf-posix.sh: Update.
32856         * tests/test-printf-posix.sh: Update.
32857         * tests/test-vfprintf-posix.sh: Update.
32858         * tests/test-vprintf-posix.sh: Update.
32859         Reported by Ralf Wildenhues.
32860
32861 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
32862
32863         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
32864         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
32865         GCC 4.2, which otherwise issues a lot of warnings.
32866         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
32867         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
32868         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
32869         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
32870         it should no longer be needed.
32871         * lib/string_.h: Likewise.
32872         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
32873         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
32874         * modules/inttypes (inttypes.h): Likewise.
32875         * modules/math (math.h): Likewise.
32876         * modules/search (search.h): Likewise.
32877         * modules/signal (signal.h): Likewise.
32878         * modules/stdint (stdint.h): Likewise.
32879         * modules/stdio (stdio.h): Likewise.
32880         * modules/stdlib (stdlib.h): Likewise.
32881         * modules/string (string.h): Likewise.
32882         * modules/sys_time (sys/time.h): Likewise.
32883         * modules/time (time.h): Likewise.
32884         * modules/wchar (wchar.h): Likewise.
32885         * modules/wctype (wtype.h): Likewise.
32886
32887 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
32888
32889         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
32890
32891 2007-05-13  Bruno Haible  <bruno@clisp.org>
32892
32893         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
32894         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32895         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
32896         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
32897         (gl_PREREQ_STRTOK_R): Don't require it here.
32898
32899 2007-05-13  Bruno Haible  <bruno@clisp.org>
32900
32901         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
32902         when used in C++ mode.
32903
32904 2007-05-12  Bruno Haible  <bruno@clisp.org>
32905
32906         * lib/linebuffer.h: Tweak doc.
32907         * lib/linebuffer.c: Likewise.
32908
32909 2007-05-12  James Youngman  <jay@gnu.org>
32910
32911         * lib/linebuffer.c (readlinebuffer_delim): New function,
32912         like readlinebuffer, but use a caller-specified delimiter.
32913         (readlinebuffer): Just call readlinebuffer_delim with '\n'
32914         as the delimiter.
32915         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
32916
32917 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32918
32919         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
32920         * modules/openat (Files): Remove openat-die.c.
32921         (Depends-on): Add openat-die.
32922         * modules/openat-die: New module.
32923
32924 2007-05-06  Bruno Haible  <bruno@clisp.org>
32925
32926         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
32927         Update with info about Cygwin.
32928         * doc/functions/fprintf.texi: Update.
32929         * doc/functions/printf.texi: Update.
32930         * doc/functions/snprintf.texi: Update.
32931         * doc/functions/sprintf.texi: Update.
32932         * doc/functions/vfprintf.texi: Update.
32933         * doc/functions/vprintf.texi: Update.
32934         * doc/functions/vsnprintf.texi: Update.
32935         * doc/functions/vsprintf.texi: Update.
32936         Reported by Eric Blake.
32937
32938 2007-05-06  Bruno Haible  <bruno@clisp.org>
32939
32940         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
32941         padding ourselves for the floating-point directives.
32942         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
32943         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
32944         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32945         gl_PRINTF_FLAG_ZERO and test its result. Invoke
32946         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
32947         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32948         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
32949         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32950         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32951         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32952         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32953         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32954         * tests/test-snprintf-posix.h (test_function): Also check the width
32955         and some flags in the %f directive.
32956         * tests/test-sprintf-posix.h (test_function): Likewise.
32957         * tests/test-vasnprintf-posix.c (test_function): Likewise.
32958         * tests/test-vasprintf-posix.c (test_function): Likewise.
32959         * doc/functions/fprintf.texi: Update.
32960         * doc/functions/printf.texi: Update.
32961         * doc/functions/snprintf.texi: Update.
32962         * doc/functions/sprintf.texi: Update.
32963         * doc/functions/vfprintf.texi: Update.
32964         * doc/functions/vprintf.texi: Update.
32965         * doc/functions/vsnprintf.texi: Update.
32966         * doc/functions/vsprintf.texi: Update.
32967
32968 2007-05-06  Bruno Haible  <bruno@clisp.org>
32969
32970         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
32971         pass the ' flag character to sprintf or snprintf.
32972         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
32973         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
32974         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32975         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
32976         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
32977         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32978         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
32979         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32980         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32981         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32982         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32983         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32984         * tests/test-snprintf-posix.h (test_function): Also check the grouping
32985         flag.
32986         * tests/test-sprintf-posix.h (test_function): Likewise.
32987         * tests/test-vasnprintf-posix.c (test_function): Likewise.
32988         * tests/test-vasprintf-posix.c (test_function): Likewise.
32989         * doc/functions/fprintf.texi: Update.
32990         * doc/functions/printf.texi: Update.
32991         * doc/functions/snprintf.texi: Update.
32992         * doc/functions/sprintf.texi: Update.
32993         * doc/functions/vfprintf.texi: Update.
32994         * doc/functions/vprintf.texi: Update.
32995         * doc/functions/vsnprintf.texi: Update.
32996         * doc/functions/vsprintf.texi: Update.
32997
32998 2007-05-01  Bruno Haible  <bruno@clisp.org>
32999
33000         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
33001
33002 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
33003
33004         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
33005         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
33006
33007 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
33008
33009         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
33010         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
33011         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
33012
33013 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
33014
33015         * lib/argp-help.c (struct hol_entry): New member `ord'.
33016         (HOL_ENTRY_PTRCMP): Use ord for comparison
33017         (hol_sort): Initialize ord.
33018
33019 2007-05-01  Bruno Haible  <bruno@clisp.org>
33020
33021         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
33022         Reported by Eric Blake.
33023         * doc/gnulib.texi (Function Substitutes): Update.
33024
33025 2007-05-01  Bruno Haible  <bruno@clisp.org>
33026
33027         * doc/functions.texi: Remove file, now redundant through
33028         doc/functions/*.texi.
33029
33030 2007-05-01  Bruno Haible  <bruno@clisp.org>
33031
33032         * modules/argp (Depends-on): Add sleep.
33033
33034 2007-05-01  Bruno Haible  <bruno@clisp.org>
33035
33036         * modules/sleep-tests: New file.
33037         * tests/test-sleep.c: New file.
33038
33039         * modules/sleep: New file.
33040         * lib/sleep.c: New file.
33041         * m4/sleep.m4: New file.
33042         * lib/unistd_.h (sleep): New declaration.
33043         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
33044         HAVE_SLEEP.
33045         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
33046         * doc/functions/sleep.texi: Document the sleep module.
33047
33048 2007-05-01  Bruno Haible  <bruno@clisp.org>
33049
33050         * lib/sigprocmask.h: Remove file.
33051         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
33052         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
33053         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
33054         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
33055         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
33056         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
33057         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
33058         HAVE_SIGSET_T as a shell variable.
33059         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
33060         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
33061         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
33062         (Depends-on): Add signal. Remove verify.
33063         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
33064         (Include): Mention <signal.h> instead of sigprocmask.h.
33065         * NEWS: Mention the change.
33066         * lib/fatal-signal.c: Don't include sigprocmask.h.
33067
33068 2007-05-01  Bruno Haible  <bruno@clisp.org>
33069
33070         * modules/signal: New file.
33071         * lib/signal_.h: New file.
33072         * m4/signal_h.m4: New file.
33073
33074 2007-05-01  Bruno Haible  <bruno@clisp.org>
33075
33076         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
33077         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
33078         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
33079         HAVE_WCTYPE_CTMP_BUG into wctype.h.
33080
33081 2007-05-01  Bruno Haible  <bruno@clisp.org>
33082
33083         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
33084         configure time.
33085         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
33086         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
33087         * modules/sys_stat (Makefile.am): Substitute their values into
33088         sys/stat.h.
33089
33090 2007-05-01  Bruno Haible  <bruno@clisp.org>
33091
33092         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
33093         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
33094         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
33095
33096 2007-05-01  Bruno Haible  <bruno@clisp.org>
33097
33098         * doc/header/assert.texi: Undo last change: don't mention the gnulib
33099         'assert' module here.
33100
33101 2007-05-01  Bruno Haible  <bruno@clisp.org>
33102
33103         * doc/functions/*.texi: New files.
33104         * doc/functions/google-ranking.txt: New file.
33105         * doc/gnulib.texi (Function Substitutes): New chapter.
33106         (ctime, inet_ntoa): Remove sections.
33107         * doc/ctime.texi: Remove file.
33108         * doc/inet_ntoa.texi: Remove file.
33109         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
33110         dependencies.
33111         (%.info): New rule, specifying a --reference-limit.
33112
33113 2007-05-01  Bruno Haible  <bruno@clisp.org>
33114
33115         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
33116
33117 2007-05-01  Bruno Haible  <bruno@clisp.org>
33118
33119         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
33120         the portability of 'mkdir' to mingw systems.
33121
33122 2007-05-01  Bruno Haible  <bruno@clisp.org>
33123
33124         * doc/headers/google-ranking.txt: New file.
33125
33126 2007-04-30  Eric Blake  <ebb9@byu.net>
33127
33128         Prefer fseeko to fseek.
33129         * modules/getpass (Depends-on): Add fseeko.
33130         * lib/getpass.c (getpass): Use fseeko, not fseek.
33131
33132 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
33133
33134         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
33135         assumes the sorting is stable, while most qsort implementations
33136         are not.  Use argument addresses to ensure they never compare as
33137         equal.
33138
33139         * tests/test-argp-2.sh (usage-indent test): Fix output
33140         (func_compare): Restore diff options
33141         * tests/test-argp.c: Restore #include "progname.h"
33142
33143 2007-04-29  Bruno Haible  <bruno@clisp.org>
33144
33145         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
33146         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33147         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
33148         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33149         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
33150         (configure.ac): Define CHECK_SNPRINTF_POSIX.
33151         (TESTS, check_PROGRAMS): Add test-snprintf.
33152         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
33153         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
33154         (TESTS, check_PROGRAMS): Add test-vsnprintf.
33155         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
33156         assertions that fail on HP-UX, OSF/1, or IRIX.
33157         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
33158
33159 2007-04-29  Bruno Haible  <bruno@clisp.org>
33160
33161         * MODULES.html.sh (posix_functions): Remove 'contents'.
33162
33163 2007-04-29  Karl Berry  <karl@gnu.org>
33164
33165         * config/srclist.txt (gendocs_template_min): new entry.
33166
33167 2007-04-29  Bruno Haible  <bruno@clisp.org>
33168
33169         Work around fpurge bug on BSD systems.
33170         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
33171         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
33172         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
33173         fpurge to rpl_fpurge if the system already has this function.
33174         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
33175         the case where the system already has this function. Correct invariants
33176         on BSD systems.
33177         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
33178         BSD systems.
33179
33180 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
33181
33182         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
33183         proposed by Sven Verdoolaege.
33184
33185         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
33186         options.
33187         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
33188         (usage and help tests): Update
33189
33190 2007-04-29  Bruno Haible  <bruno@clisp.org>
33191
33192         * tests/test-fflush.c (main): Use a file of size 17, not 10.
33193         Print more information in case of failure. Disable a test on BeOS.
33194
33195 2007-04-29  Bruno Haible  <bruno@clisp.org>
33196
33197         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
33198         This helps debugging on systems on which no gdb is available.
33199
33200 2007-04-29  Bruno Haible  <bruno@clisp.org>
33201
33202         * lib/freading.h: Improve comments.
33203         * lib/fwriting.h: Likewise.
33204         * tests/test-freading.c (main): Don't check freading immediately after
33205         repositioning. Needed for glibc.
33206
33207 2007-04-29  Bruno Haible  <bruno@clisp.org>
33208
33209         * lib/freading.c (freading): Trivial simplification.
33210
33211 2007-04-28  Bruno Haible  <bruno@clisp.org>
33212
33213         * tests/test-fwriting.c (main): Also test the interaction between
33214         fflush and fwriting.
33215         * modules/fwriting-tests (Depends-on): Add fflush.
33216
33217         * tests/test-freading.c (main): Also test the interaction between
33218         fflush and freading.
33219         * modules/freading-tests (Depends-on): Add fflush.
33220
33221 2007-04-28  Bruno Haible  <bruno@clisp.org>
33222
33223         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
33224         fseeko and ftello.
33225         Suggested by Eric Blake.
33226
33227 2007-04-28  Jim Meyering  <jim@meyering.net>
33228
33229         Avoid false-negative in gl_STDINT_H's C99 conformance test.
33230         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
33231         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
33232
33233 2007-04-27  Eric Blake  <ebb9@byu.net>
33234
33235         * doc/headers/assert.texi (assert.h): Document assert module use.
33236
33237 2007-04-27  Bruno Haible  <bruno@clisp.org>
33238
33239         * doc/headers/*.texi: New files.
33240         * doc/gnulib.texi (Header File Substitutes): New chapter.
33241         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
33242         dependencies.
33243         (standards.info ,standards.html, standards.dvi): Update dependencies.
33244         (mostlyclean, clean): New targets.
33245
33246 2007-04-27  Bruno Haible  <bruno@clisp.org>
33247
33248         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
33249         * modules/sysexits (Files, Makefile.am): Update.
33250
33251         * lib/sys_socket_.h: Renamed from lib/socket_.h.
33252         * modules/sys_socket (Files, Makefile.am): Update.
33253
33254         * lib/sys_stat_.h: Renamed from lib/stat_.h.
33255         * modules/sys_stat (Files, Makefile.am): Update.
33256
33257 2007-04-27  Eric Blake  <ebb9@byu.net>
33258
33259         * lib/freading.h: Improve comments.
33260         * lib/fwriting.h: Likewise.
33261         * lib/fflush.c: Likewise.
33262
33263         Fix closein for mingw.
33264         * modules/closein-tests: Add tests for closein.
33265         * tests/test-closein.c: New file.
33266         * tests/test-closein.sh: Likewise.
33267         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
33268         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
33269
33270 2007-04-27  Bruno Haible  <bruno@clisp.org>
33271
33272         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
33273         version is < 6.
33274         * lib/math_.h [__DECC]: Likewise.
33275         * lib/stdio_.h [__DECC]: Likewise.
33276         * lib/stdlib_.h [__DECC]: Likewise.
33277         * lib/string_.h [__DECC]: Likewise.
33278         * lib/time_.h [__DECC]: Likewise.
33279         * lib/wchar_.h [__DECC]: Likewise.
33280         * lib/wctype_.h [__DECC]: Likewise.
33281
33282 2007-04-27  Bruno Haible  <bruno@clisp.org>
33283
33284         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
33285
33286 2007-04-27  Bruno Haible  <bruno@clisp.org>
33287
33288         * lib/fflush.c: Add comments.
33289         * modules/fpurge-tests (Depends-on): Add fflush.
33290         * modules/freadable-tests (Depends-on): Likewise.
33291         * modules/fwritable-tests (Depends-on): Likewise.
33292
33293 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
33294
33295         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
33296         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
33297         Report by Bruno Haible <bruno@clisp.org>.
33298
33299 2007-04-26  Eric Blake  <ebb9@byu.net>
33300
33301         Fix fflush on mingw.
33302         * modules/fflush (Depends-on): Add freading.
33303         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
33304         but unread data.
33305
33306 2007-04-26  Eric Blake  <ebb9@byu.net>
33307         and Bruno Haible  <bruno@clisp.org>
33308
33309         Implement freading and fwriting.
33310         * lib/freading.c: New file.
33311         * lib/freading.h: Likewise.
33312         * m4/freading.m4: Likewise.
33313         * modules/freading: Likewise.
33314         * modules/freading-tests: Likewise.
33315         * tests/test-freading.c: Likewise.
33316         * lib/fwriting.c: New file.
33317         * lib/fwriting.h: Likewise.
33318         * m4/fwriting.m4: Likewise.
33319         * modules/fwriting: Likewise.
33320         * modules/fwriting-tests: Likewise.
33321         * tests/test-fwriting.c: Likewise.
33322         * MODULES.html.sh (File stream based Input/Output): Mention them.
33323
33324 2007-04-26  Bruno Haible  <bruno@clisp.org>
33325
33326         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
33327         'long' when we assume it.
33328         Suggested by Eric Blake.
33329
33330 2007-04-26  Bruno Haible  <bruno@clisp.org>
33331
33332         Ensure fseeko, ftello are declared on glibc systems.
33333         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
33334         * modules/fseeko (configure.ac-early): Likewise.
33335         * modules/ftello (configure.ac-early): Likewise.
33336         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
33337         AC_FUNC_FSEEKO for this.
33338         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
33339         (gl_CHECK_FSEEKO): Remove macro.
33340
33341 2007-04-26  Bruno Haible  <bruno@clisp.org>
33342
33343         * tests/test-fflush.c (main): Also check the ftell result after
33344         fflush and fseek/fseeko.
33345         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
33346         file descriptor position cache in the stream.
33347         * lib/fseeko.c (rpl_fseeko): Likewise.
33348
33349 2007-04-26  Bruno Haible  <bruno@clisp.org>
33350
33351         * modules/fflush-tests (Depends-on): Add fseeko.
33352
33353 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
33354             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33355
33356         * lib/argz_.h: ensure error_t definition is obtained in same
33357         mechanism system argz.h would have.
33358         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
33359         argz facilities are known bad.  Err on the side of caution if
33360         cross-compiling.
33361
33362 2007-04-25  Eric Blake  <ebb9@byu.net>
33363
33364         * lib/fpurge.c (includes): Use stdlib.h for free.
33365         * tests/test-fflush.c (main): Also test fflush-fseeko.
33366
33367 2007-04-25  Bruno Haible  <bruno@clisp.org>
33368
33369         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
33370         * lib/fseeko.c: New file.
33371         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
33372         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
33373         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
33374         gl_FUNC_FSEEKO.
33375         (gl_FUNC_FSEEKO): Invoke it.
33376         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
33377         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
33378         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
33379
33380 2007-04-25  Bruno Haible  <bruno@clisp.org>
33381
33382         * modules/fflush (Depends-on): Add ftello.
33383
33384 2007-04-25  Bruno Haible  <bruno@clisp.org>
33385
33386         * modules/ftello-tests: New file.
33387         * tests/test-ftello.c: New file.
33388
33389         * modules/ftello: New file.
33390         * m4/ftello.m4: New file.
33391         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
33392         HAVE_FTELLO.
33393         * lib/stdio_.h (ftello): New declaration.
33394         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
33395         HAVE_FTELLO.
33396
33397 2007-04-25  Bruno Haible  <bruno@clisp.org>
33398
33399         * modules/fseeko-tests: New file.
33400         * tests/test-fseeko.c: New file.
33401
33402         * modules/fseeko: New file.
33403         * m4/fseeko.m4: New file.
33404         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
33405         HAVE_FSEEKO.
33406         * lib/stdio_.h (fseeko): New declaration.
33407         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
33408         HAVE_FSEEKO.
33409
33410 2007-04-25  Bruno Haible  <bruno@clisp.org>
33411
33412         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
33413
33414 2007-04-25  Bruno Haible  <bruno@clisp.org>
33415
33416         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
33417         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
33418         * tests/test-unistd.c: Likewise.
33419         * tests/test-fcntl.c: Likewise.
33420
33421 2007-04-23  Eric Blake  <ebb9@byu.net>
33422
33423         * lib/fflush.c: Fix missing include.
33424         Reported by Bruno Haible.
33425
33426 2007-04-23  Bruno Haible  <bruno@clisp.org>
33427
33428         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
33429         Reported by Eric Blake.
33430
33431 2007-04-23  Bruno Haible  <bruno@clisp.org>
33432
33433         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
33434
33435 2007-04-23  Bruno Haible  <bruno@clisp.org>
33436
33437         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
33438
33439 2007-04-23  Bruno Haible  <bruno@clisp.org>
33440
33441         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
33442         Needed on HP-UX 11.
33443
33444 2007-04-16  Eric Blake  <ebb9@byu.net>
33445
33446         Make fflush rely on fpurge.
33447         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
33448         open coding all variants.
33449         * modules/fflush (Depends-on): Add fpurge and unistd.
33450         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
33451         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
33452
33453         Fix --with-tests compilation on cygwin.
33454         * modules/argmatch-tests (Makefile.am): List gnulib library first
33455         in LDADD.
33456         * modules/argp-tests (Makefile.am): Likewise.
33457         * modules/array-list-tests (Makefile.am): Likewise.
33458         * modules/array-oset-tests (Makefile.am): Likewise.
33459         * modules/avltree-list-tests (Makefile.am): Likewise.
33460         * modules/avltree-oset-tests (Makefile.am): Likewise.
33461         * modules/avltreehash-list-tests (Makefile.am): Likewise.
33462         * modules/carray-list-tests (Makefile.am): Likewise.
33463         * modules/dirname-tests (Makefile.am): Likewise.
33464         * modules/frexp-tests (Makefile.am): Likewise.
33465         * modules/isnanl-tests (Makefile.am): Likewise.
33466         * modules/linked-list-tests (Makefile.am): Likewise.
33467         * modules/linkedhash-list-tests (Makefile.am): Likewise.
33468         * modules/lock-tests (Makefile.am): Likewise.
33469         * modules/rbtree-list-tests (Makefile.am): Likewise.
33470         * modules/rbtree-oset-tests (Makefile.am): Likewise.
33471         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
33472         * modules/tls-tests (Makefile.am): Likewise.
33473         * modules/tsearch-tests (Makefile.am): Likewise.
33474         * modules/xvasprintf-tests (Makefile.am): Likewise.
33475
33476         Fix fpurge for cygwin.
33477         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
33478         value.
33479         * modules/fpurge-tests (Depends-on): Clean up trash.
33480
33481 2007-04-16  Simon Josefsson  <simon@josefsson.org>
33482
33483         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
33484
33485         * m4/autobuild.m4: Re-indent.
33486
33487 2007-04-13  Bruno Haible  <bruno@clisp.org>
33488
33489         * modules/fpurge-tests: New file.
33490         * tests/test-fpurge.c: New file.
33491
33492         * modules/fpurge: New file.
33493         * lib/fpurge.h: New file.
33494         * lib/fpurge.c: New file.
33495         * m4/fpurge.m4: New file.
33496
33497 2007-04-13  Bruno Haible  <bruno@clisp.org>
33498
33499         * modules/fbufmode-tests: New file.
33500         * tests/test-fbufmode.c: New file.
33501
33502         * modules/fbufmode: New file.
33503         * lib/fbufmode.h: New file.
33504         * lib/fbufmode.c: New file.
33505         * m4/fbufmode.m4: New file.
33506
33507 2007-04-13  Bruno Haible  <bruno@clisp.org>
33508
33509         * modules/fwritable-tests: New file.
33510         * tests/test-fwritable.c: New file.
33511
33512         * modules/fwritable: New file.
33513         * lib/fwritable.h: New file.
33514         * lib/fwritable.c: New file.
33515         * m4/fwritable.m4: New file.
33516
33517 2007-04-13  Bruno Haible  <bruno@clisp.org>
33518
33519         * modules/freadable-tests: New file.
33520         * tests/test-freadable.c: New file.
33521
33522         * modules/freadable: New file.
33523         * lib/freadable.h: New file.
33524         * lib/freadable.c: New file.
33525         * m4/freadable.m4: New file.
33526
33527 2007-04-13  Bruno Haible  <bruno@clisp.org>
33528
33529         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
33530         MOSTLYCLEANFILES.
33531
33532 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
33533
33534         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
33535         gzip bootstrap.conf to avoid dragging in i18n machinery.
33536         (gnulib_tool_option): Use it.
33537
33538 2007-04-13  Bruno Haible  <bruno@clisp.org>
33539
33540         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
33541         %F directives.
33542         * tests/test-vasprintf-posix.c (test_function): Likewise.
33543         * tests/test-snprintf-posix.h (test_function): Likewise.
33544         * tests/test-sprintf-posix.h (test_function): Likewise.
33545         * tests/test-fprintf-posix.h (test_function): Likewise.
33546         * tests/test-printf-posix.h (test_function): Likewise.
33547         * tests/test-fprintf-posix.out: Likewise.
33548
33549 2007-04-13  Bruno Haible  <bruno@clisp.org>
33550
33551         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
33552         * modules/tls-tests (configure.ac): Likewise.
33553         Reported by Arto C. Nirkko <anirkko@insel.ch>.
33554
33555 2007-04-13  Bruno Haible  <bruno@clisp.org>
33556
33557         * lib/tls.c (glthread_tls_get): Fix return type.
33558         Patch by Arto C. Nirkko <anirkko@insel.ch>.
33559
33560 2007-04-12  Eric Blake  <ebb9@byu.net>
33561
33562         * modules/gettime (Depends-on): Remove gettime.
33563         Reported by Dmitry V. Levin.
33564
33565 2007-04-12  Bruno Haible  <bruno@clisp.org>
33566
33567         * modules/fflush (Include): Mention <stdio.h>.
33568         * modules/strtoimax (Include): Mention <inttypes.h>.
33569         * modules/strtoumax (Include): Likewise.
33570
33571 2007-04-12  Eric Blake  <ebb9@byu.net>
33572
33573         * .cvsignore: New file.
33574         * .gitignore: Likewise.
33575
33576 2007-04-12  Bruno Haible  <bruno@clisp.org>
33577
33578         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
33579         not before, since $(LDADD) often contains libgnu.a.
33580         * modules/striconv-tests (test_striconv_LDADD): Likewise.
33581         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
33582         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
33583         Needed on Cygwin.
33584
33585 2007-04-12  Eric Blake  <ebb9@byu.net>
33586
33587         Work around glibc's failure to flush stdin on fclose.
33588         * lib/closein.c (close_stdin): Flush stdin before closing.
33589
33590         Work around glibc's failure to reset seekable stdin on exit.
33591         * modules/closein: New module.
33592         * lib/closein.c: New file.
33593         * lib/closein.h: Likewise.
33594         * m4/closein.m4: Likewise.
33595         * MODULES.html.sh (File stream based Input/Output): Document it.
33596
33597 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33598
33599         * gnulib-tool: Rename generated 'autobuild' script to
33600         'do-autobuild' in --create-megatestdir output.
33601
33602         * doc/gnulib.texi (Build robot for gnulib): Fix.
33603
33604 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33605
33606         * modules/sysexits (Depends-on): Add absolute-header.
33607
33608 2007-04-12  Eric Blake  <ebb9@byu.net>
33609
33610         No need to preserve errno on success.
33611         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
33612         Reported by Bruno Haible.
33613
33614 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33615
33616         * MODULES.html.sh (Support for maintaining and releasing
33617         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
33618
33619 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33620
33621         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
33622
33623 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33624
33625         * modules/autobuild: New module.
33626
33627         * m4/autobuild.m4: New file.
33628
33629 2007-04-11  Bruno Haible  <bruno@clisp.org>
33630
33631         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
33632         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
33633         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
33634         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
33635         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33636         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33637         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33638         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33639         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33640         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33641         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
33642         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33643         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33644         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
33645         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33646         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33647         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
33648         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33649         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33650         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
33651         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33652         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33653         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
33654         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33655         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33656         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
33657         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33658         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33659         Reported by Eric Blake.
33660
33661 2007-04-11  Bruno Haible  <bruno@clisp.org>
33662
33663         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
33664
33665 2007-04-10  Bruno Haible  <bruno@clisp.org>
33666
33667         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
33668         for NaN and Infinity. Needed on FreeBSD 6.1.
33669         * tests/test-vasnprintf-posix.c (test_function): Undo last change
33670         regarding results for "%010a" of Infinity and NaN.
33671         * tests/test-vasprintf-posix.c (test_function): Likewise.
33672         * tests/test-snprintf-posix.h (test_function): Likewise.
33673         * tests/test-sprintf-posix.h (test_function): Likewise.
33674         * tests/test-fprintf-posix.h (test_function): Likewise.
33675         * tests/test-printf-posix.h (test_function): Likewise.
33676         * tests/test-fprintf-posix.out: Likewise.
33677
33678 2007-04-10  Bruno Haible  <bruno@clisp.org>
33679
33680         * modules/locale-tests: New file.
33681         * tests/test-locale.c: New file.
33682
33683         * modules/locale: New file.
33684         * lib/locale_.h: New file.
33685         * m4/locale_h.m4: New file.
33686
33687 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
33688             Bruno Haible  <bruno@clisp.org>
33689
33690         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
33691         be determined, test for availability of the copysignf, copysign,
33692         copysignl functions.
33693         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
33694         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
33695         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
33696
33697 2007-04-09  Eric Blake  <ebb9@byu.net>
33698
33699         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
33700         * modules/stdio (Makefile.am): Support fflush.
33701         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33702         * modules/fflush: New file.
33703         * lib/fflush.c: Likewise.
33704         * m4/fflush.m4: Likewise.
33705         * modules/fflush-tests: New test.
33706         * tests/test-fflush.c: Likewise.
33707         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
33708
33709 2007-04-06  Bruno Haible  <bruno@clisp.org>
33710
33711         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
33712         (VASNPRINTF): Use signbit for faster determination whether to print a
33713         minus sign.
33714         * modules/vasnprintf (Files): Remove lib/float+.h.
33715         * modules/fprintf-posix (Depends-on): Add signbit.
33716         * modules/snprintf-posix (Depends-on): Likewise.
33717         * modules/sprintf-posix (Depends-on): Likewise.
33718         * modules/vasnprintf-posix (Depends-on): Likewise.
33719         * modules/vasprintf-posix (Depends-on): Likewise.
33720         * modules/vfprintf-posix (Depends-on): Likewise.
33721         * modules/vsnprintf-posix (Depends-on): Likewise.
33722         * modules/vsprintf-posix (Depends-on): Likewise.
33723
33724 2007-04-06  Bruno Haible  <bruno@clisp.org>
33725
33726         * tests/test-frexp.c (main): Test also the sign bit of zero results.
33727         * tests/test-frexpl.c (main): Likewise.
33728         * tests/test-ldexpl.c (main): Likewise.
33729         * modules/frexp-tests (Depends-on): Add signbit.
33730         * modules/frexpl-tests (Depdends-on): Likewise.
33731         * modules/ldexpl-tests (Depdends-on): Likewise.
33732
33733 2007-04-06  Bruno Haible  <bruno@clisp.org>
33734
33735         * modules/signbit-tests: New file.
33736         * tests/test-signbit.c: New file.
33737
33738         * modules/signbit: New file.
33739         * lib/signbitf.c: New file.
33740         * lib/signbitd.c: New file.
33741         * lib/signbitl.c: New file.
33742         * m4/signbit.m4: New file.
33743         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
33744         (signbit): New macro.
33745         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
33746         REPLACE_SIGNBIT.
33747         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
33748         REPLACE_FREXPL into math.h.
33749
33750 2007-04-06  Bruno Haible  <bruno@clisp.org>
33751
33752         * modules/isnanf-nolibm-tests: New file.
33753         * tests/test-isnanf.c: New file.
33754
33755         * modules/isnanf-nolibm: New file.
33756         * lib/isnanf.h: New file.
33757         * lib/isnanf.c: New file.
33758         * lib/isnan.c: Consider the USE_FLOAT macro.
33759         * m4/isnanf.m4: New file.
33760
33761 2007-04-06  Bruno Haible  <bruno@clisp.org>
33762
33763         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
33764         (Link): New section.
33765
33766         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
33767
33768 2007-04-06  Bruno Haible  <bruno@clisp.org>
33769
33770         Assume the 'long double' type.
33771         * m4/longdouble.m4: Remove file.
33772         * config/srclist.txt: Don't mention longdouble.m4.
33773         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
33774         * lib/float+.h: Likewise.
33775         * lib/frexp.c: Likewise.
33776         * lib/printf-args.h: Likewise.
33777         * lib/printf-args.c: Likewise.
33778         * lib/printf-frexp.c: Likewise.
33779         * lib/printf-parse.c: Likewise.
33780         * lib/vasnprintf.c: Likewise.
33781         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
33782         * m4/intl.m4: Likewise.
33783         * m4/isnanl.m4: Likewise.
33784         * m4/printf.m4: Likewise.
33785         * m4/printf-frexpl.m4: Likewise.
33786         * m4/vasnprintf.m4: Likewise.
33787         * modules/allocsa (Files): Remove m4/longdouble.m4.
33788         * modules/gettext (Files): Likewise.
33789         * modules/relocatable-prog-wrapper (Files): Likewise.
33790         * modules/vasnprintf (Files): Likewise.
33791         * modules/isnanl (Files): Likewise.
33792         (Include): Simplify.
33793         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
33794         (Include): Simplify.
33795         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
33796         (Include): Simplify.
33797         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
33798         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33799         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
33800         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33801         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
33802         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33803         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
33804         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33805         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
33806         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33807         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
33808         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33809         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
33810         * tests/test-isnanl.c: Likewise.
33811         * tests/test-snprintf-posix.h: Likewise.
33812         * tests/test-sprintf-posix.h: Likewise.
33813         * tests/test-vasnprintf-posix.c: Likewise.
33814         * tests/test-vasnprintf-posix2.c: Likewise.
33815         * tests/test-vasprintf-posix.c: Likewise.
33816
33817 2007-04-06  Bruno Haible  <bruno@clisp.org>
33818
33819         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
33820         * lib/math_.h [__DECC]: Include the overridden include file through
33821         #include_next, outside the double-inclusion guard.
33822         * lib/stdio_.h [__DECC]: Likewise.
33823         * lib/stdlib_.h [__DECC]: Likewise.
33824         * lib/string_.h [__DECC]: Likewise.
33825         * lib/time_.h [__DECC]: Likewise.
33826         * lib/wchar_.h [__DECC]: Likewise.
33827         * lib/wctype_.h [__DECC]: Likewise.
33828         * lib/inttypes_.h [__DECC]: Likewise.
33829         Reported by Albert Chin <china@thewrittenword.com> in
33830         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
33831
33832 2007-04-04  Eric Blake  <ebb9@byu.net>
33833
33834         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
33835         1.5.x.
33836
33837 2007-04-04  Bruno Haible  <bruno@clisp.org>
33838
33839         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
33840         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
33841
33842 2007-04-04  Bruno Haible  <bruno@clisp.org>
33843
33844         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
33845         results for "%010a" of Infinity and NaN.
33846         * tests/test-vasprintf-posix.c (test_function): Likewise.
33847         * tests/test-snprintf-posix.h (test_function): Likewise.
33848         * tests/test-sprintf-posix.h (test_function): Likewise.
33849         * tests/test-fprintf-posix.h (test_function): Remove these tests.
33850         * tests/test-printf-posix.h (test_function): Likewise.
33851         * tests/test-fprintf-posix.out: Update.
33852         Needed for FreeBSD 6.1.
33853
33854 2007-04-04  Bruno Haible  <bruno@clisp.org>
33855
33856         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
33857         directly used by the gnulib modules nor by gnulib-tool.
33858
33859 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
33860
33861         * DEPENDENCIES: Give overall description of version dependency
33862         desirability.  Use more-typical names for apps.
33863         Add shell, coreutils, diffutils, grep, tar, gzip.
33864
33865 2007-04-04  Simon Josefsson  <simon@josefsson.org>
33866
33867         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
33868
33869 2007-04-04  Karl Berry  <karl@gnu.org>
33870
33871         * MODULES.html.sh (func_module): missing '.
33872
33873 2007-04-03  Bruno Haible  <bruno@clisp.org>
33874
33875         * modules/argmatch-tests (Makefile.am): New variable
33876         test_argmatch_LDADD.
33877         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
33878         * modules/array-list-tests (Makefile.am): New variable
33879         test_array_list_LDADD.
33880         * modules/array-oset-tests (Makefile.am): New variable
33881         test_array_oset_LDADD.
33882         * modules/avltree-list-tests (Makefile.am): New variable
33883         test_avltree_list_LDADD.
33884         * modules/avltree-oset-tests (Makefile.am): New variable
33885         test_avltree_oset_LDADD.
33886         * modules/avltreehash-list-tests (Makefile.am): New variable
33887         test_avltreehash_list_LDADD.
33888         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
33889         test_canonicalize_lgpl_LDADD.
33890         * modules/carray-list-tests (Makefile.am): New variable
33891         test_carray_list_LDADD.
33892         * modules/dirname-tests (Makefile.am): New variable
33893         test_dirname_LDADD.
33894         * modules/linked-list-tests (Makefile.am): New variable
33895         test_linked_list_LDADD.
33896         * modules/linkedhash-list-tests (Makefile.am): New variable
33897         test_linkedhash_list_LDADD.
33898         * modules/rbtree-list-tests (Makefile.am): New variable
33899         test_rbtree_list_LDADD.
33900         * modules/rbtree-oset-tests (Makefile.am): New variable
33901         test_rbtree_oset_LDADD.
33902         * modules/rbtreehash-list-tests (Makefile.am): New variable
33903         test_rbtreehash_list_LDADD.
33904         * modules/xvasprintf-tests (Makefile.am): New variable
33905         test_xvasprintf_LDADD.
33906         Reported by Eric Blake.
33907
33908 2007-04-03  Eric Blake  <ebb9@byu.net>
33909
33910         * DEPENDENCIES: Weaken m4 requirements.
33911
33912 2007-04-03  Bruno Haible  <bruno@clisp.org>
33913
33914         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
33915         * modules/isnanl-tests (configure.ac): Likewise.
33916
33917 2007-04-03  Ben Pfaff  <blp@gnu.org>
33918
33919         * modules/iconv_open: Add $(srcdir)/ to source directory
33920         references in Makefile fragments that call gperf, to fix VPATH
33921         builds.
33922
33923 2007-04-03  Bruno Haible  <bruno@clisp.org>
33924
33925         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
33926         * lib/ldexpl.c: Undo last change.
33927
33928 2007-04-03  Bruno Haible  <bruno@clisp.org>
33929
33930         * modules/printf-frexpl (Depends-on): Undo last change.
33931         (Files): Add m4/ldexpl.m4.
33932
33933 2007-04-03  Bruno Haible  <bruno@clisp.org>
33934
33935         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
33936         * modules/isnanl (Link): New section.
33937
33938         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
33939         * modules/frexp (Link): New section.
33940
33941         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
33942         * modules/frexpl (Link): New section.
33943
33944         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
33945         * modules/ldexpl (Link): New section.
33946
33947 2007-04-03  Bruno Haible  <bruno@clisp.org>
33948
33949         * modules/TEMPLATE-EXTENDED: New file.
33950         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
33951
33952 2007-04-03  Bruno Haible  <bruno@clisp.org>
33953
33954         * DEPENDENCIES: New file.
33955         Suggested by Simon Josefsson.
33956
33957 2007-04-03  Bruno Haible  <bruno@clisp.org>
33958
33959         * doc/gnulib.texi: Escape @.
33960
33961 2007-04-03  James Youngman  <jay@gnu.org>
33962         and Paul Eggert  <eggert@cs.ucla.edu>
33963
33964         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
33965         birthtime on all systems that have birthtime, not just those which
33966         use st_birthtimensec rather than st_birthtim.  Putting zero in
33967         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
33968         that the birth time is not available for files on an NFS mount.
33969
33970 2007-04-03  Simon Josefsson  <simon@josefsson.org>
33971
33972         * modules/memxor: Move back from crypto/, suggested by Bruno.
33973         * modules/crypto/hmac-sha1: Fix memxor dependency.
33974
33975         * modules/crypto/gc: Moved from ../.
33976
33977 2007-04-02  Eric Blake  <ebb9@byu.net>
33978
33979         * lib/ldexpl.c (includes): Avoid libm.
33980
33981         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
33982
33983 2007-04-02  Bruno Haible  <bruno@clisp.org>
33984
33985         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
33986         on IRIX.
33987
33988 2007-04-02  Bruno Haible  <bruno@clisp.org>
33989
33990         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
33991         x86 or x86_64 platforms running MacOS X.
33992         Reported by Ryan Schmidt <@ryandesign.com>.
33993
33994 2007-04-02  Bruno Haible  <bruno@clisp.org>
33995
33996         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
33997         i386.
33998
33999 2007-04-01  Simon Josefsson  <simon@josefsson.org>
34000
34001         * modules/crypto/arcfour: Moved from ../.
34002         * modules/crypto/arcfour-tests: Moved from ../.
34003         * modules/crypto/arctwo: Moved from ../.
34004         * modules/crypto/arctwo-tests: Moved from ../.
34005         * modules/crypto/des: Moved from ../.
34006         * modules/crypto/des-tests: Moved from ../.
34007         * modules/crypto/gc-arcfour: Moved from ../.
34008         * modules/crypto/gc-arcfour-tests: Moved from ../.
34009         * modules/crypto/gc-arctwo: Moved from ../.
34010         * modules/crypto/gc-arctwo-tests: Moved from ../.
34011         * modules/crypto/gc-des: Moved from ../.
34012         * modules/crypto/gc-des-tests: Moved from ../.
34013         * modules/crypto/gc-hmac-md5: Moved from ../.
34014         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
34015         * modules/crypto/gc-hmac-sha1: Moved from ../.
34016         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
34017         * modules/crypto/gc-md2: Moved from ../.
34018         * modules/crypto/gc-md2-tests: Moved from ../.
34019         * modules/crypto/gc-md4: Moved from ../.
34020         * modules/crypto/gc-md4-tests: Moved from ../.
34021         * modules/crypto/gc-md5: Moved from ../.
34022         * modules/crypto/gc-md5-tests: Moved from ../.
34023         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
34024         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
34025         * modules/crypto/gc-random: Moved from ../.
34026         * modules/crypto/gc-rijndael: Moved from ../.
34027         * modules/crypto/gc-rijndael-tests: Moved from ../.
34028         * modules/crypto/gc-sha1: Moved from ../.
34029         * modules/crypto/gc-sha1-tests: Moved from ../.
34030         * modules/crypto/gc-tests: Moved from ../.
34031         * modules/crypto/hmac-md5: Moved from ../.
34032         * modules/crypto/hmac-md5-tests: Moved from ../.
34033         * modules/crypto/hmac-sha1: Moved from ../.
34034         * modules/crypto/hmac-sha1-tests: Moved from ../.
34035         * modules/crypto/md2: Moved from ../.
34036         * modules/crypto/md2-tests: Moved from ../.
34037         * modules/crypto/md4: Moved from ../.
34038         * modules/crypto/md4-tests: Moved from ../.
34039         * modules/crypto/md5: Moved from ../.
34040         * modules/crypto/md5-tests: Moved from ../.
34041         * modules/crypto/memxor: Moved from ../.
34042         * modules/crypto/rijndael: Moved from ../.
34043         * modules/crypto/rijndael-tests: Moved from ../.
34044         * modules/crypto/sha1: Moved from ../.
34045
34046 2007-03-30  James Youngman  <jay@gnu.org>
34047
34048         * tests/test-stat-time.c (prepare_test): use chmod() rather than
34049         rename() to change the ctime of a file (because ctime is unaffected
34050         by rename on jfs2 on AIX 5.1).
34051         (main): Start by doing cleanup, in case a previous run failed leaving
34052         test files behind.
34053
34054 2007-03-31  Bruno Haible  <bruno@clisp.org>
34055
34056         Support old proprietary implementations of iconv.
34057         * modules/iconv_open: New file.
34058         * lib/iconv_.h: New file.
34059         * m4/iconv_h.m4: New file.
34060         * lib/iconv_open.c: New file.
34061         * lib/iconv_open-aix.gperf: New file.
34062         * lib/iconv_open-hpux.gperf: New file.
34063         * lib/iconv_open-irix.gperf: New file.
34064         * lib/iconv_open-osf.gperf: New file.
34065         * m4/iconv_open.m4: New file.
34066         * modules/linebreak (Depends-on): Add iconv_open.
34067         * modules/striconv (Depends-on): Likewise.
34068         * modules/striconveh (Depends-on): Likewise.
34069         * modules/unicodeio (Depends-on): Likewise.
34070         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
34071         (iconv_t)(-1).
34072         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
34073         conversion if cd is (iconv_t)(-1).
34074         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
34075         is not possible.
34076
34077 2007-03-31  Bruno Haible  <bruno@clisp.org>
34078
34079         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34080         work on Solaris either. Protect also second use of "autodetect_jp".
34081
34082 2007-03-31  Bruno Haible  <bruno@clisp.org>
34083
34084         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
34085         the function is not present.
34086
34087 2007-03-31  Bruno Haible  <bruno@clisp.org>
34088
34089         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
34090         the function is not present.
34091
34092 2007-03-31  Bruno Haible  <bruno@clisp.org>
34093
34094         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
34095         a bug in HP-UX iconv_open().
34096
34097 2007-03-31  Bruno Haible  <bruno@clisp.org>
34098
34099         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
34100         (Mathematics <math.h>): New section, add fpieee.
34101         (Input/output <stdio.h>): Add fseterr.
34102         (Mathematics <math.h>): New section, add printf-frexp.
34103         (Container data structures): Add sublist.
34104         (Core language properties): Add fpucw, inline.
34105         (Functions for greatest-width integer types <inttypes.h>): Add
34106         imaxabs, imaxdiv, inttypes.
34107         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
34108         isnanl-nolibm, ldexp.
34109         (Mathematics <math.h>): New section, add printf-frexpl.
34110         (Support for systems lacking POSIX:2001): Add fprintf-posix,
34111         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
34112         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
34113         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
34114         (Unicode string functions): Add unistr/u*-mbtoucr.
34115         (Java): Add javacomp-script, javaexec-script.
34116         (C#): Add csharpcomp-script, csharpexec-script.
34117         (Support for building libraries and executables): Add havelib,
34118         relocatable-*.
34119         (Support for maintaining and releasing projects): Renamed from
34120         'Support for maintaining and release projects'. Add announce-gen.
34121
34122 2007-03-31  Bruno Haible  <bruno@clisp.org>
34123
34124         * README: Talk primarily about git.
34125         (git and CVS): Renamed from CVS.
34126         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
34127         gnulib is available through git.
34128         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
34129
34130 2007-03-30  Bruno Haible  <bruno@clisp.org>
34131
34132         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
34133         * lib/poll_.h: Likewise.
34134         * lib/stat_.h: Likewise.
34135         * lib/sys_time_.h: Likewise.
34136         * lib/sysexit_.h: Likewise.
34137         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
34138         * lib/stdbool_.h: Likewise.
34139         * lib/byteswap_.h: Add double-inclusion guard.
34140
34141 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
34142
34143         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
34144
34145 2007-03-30  Karl Berry  <karl@gnu.org>
34146
34147         * config/srclist-update: double space after USA in the license
34148         substitution, since that's how it's usually (?) written.
34149
34150 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
34151
34152         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
34153         reported by Bruno Haible.
34154
34155 2007-03-29  Bruno Haible  <bruno@clisp.org>
34156
34157         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
34158         a bug in AIX iconv().
34159
34160 2007-03-29  Bruno Haible  <bruno@clisp.org>
34161
34162         * modules/ldexpl-tests: New file.
34163         * tests/test-ldexpl.c: New file.
34164
34165 2007-03-29  Bruno Haible  <bruno@clisp.org>
34166
34167         * lib/ldexpl.c: Include fpucw.h.
34168         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
34169         multiplication.
34170         * modules/ldexpl (Depends-on): Add fpucw.
34171
34172 2007-03-29  Bruno Haible  <bruno@clisp.org>
34173
34174         * modules/ldexpl: New file.
34175         * m4/ldexpl.m4: New file.
34176         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
34177         set.
34178         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
34179         REPLACE_LDEXPL.
34180         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
34181         REPLACE_LDEXPL.
34182         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34183         gl_FUNC_LDEXPL_WORKS.
34184         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
34185         * modules/mathl (Files): Remove lib/ldexpl.c.
34186         (Depends-on): Add ldexpl.
34187
34188 2007-03-29  Bruno Haible  <bruno@clisp.org>
34189
34190         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
34191
34192 2007-03-29  Bruno Haible  <bruno@clisp.org>
34193
34194         * tests/test-striconveh.c (main): Don't assume that a direct conversion
34195         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
34196         and possibly also HP-UX.
34197         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34198         work on AIX, IRIX, HP-UX, OSF/1.
34199         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
34200         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
34201         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
34202         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
34203         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
34204         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
34205
34206 2007-03-29  Bruno Haible  <bruno@clisp.org>
34207
34208         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
34209
34210 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
34211
34212         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
34213         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
34214
34215 2007-03-29  Eric Blake  <ebb9@byu.net>
34216
34217         * lib/acl-internal.h: Remove redundant include.
34218         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
34219         Cygwin when a file is locked.
34220
34221 2007-03-29  Bruno Haible  <bruno@clisp.org>
34222
34223         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
34224         file.
34225         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
34226
34227 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
34228
34229         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
34230         try to remove a parent directory if the child couldn't be removed
34231         (except for the first rmdir, which could fail because the child
34232         doesn't exist).  Problem reported by Jeff Blaine in
34233         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
34234
34235 2007-03-28  Bruno Haible  <bruno@clisp.org>
34236
34237         * lib/striconveh.c (utf8conv_carefully): New function.
34238         (mem_cd_iconveh_internal): Invoke it.
34239
34240 2007-03-28  Bruno Haible  <bruno@clisp.org>
34241
34242         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
34243         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
34244         input.
34245         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
34246         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
34247         unistr/u8-uctomb.
34248
34249 2007-03-28  Bruno Haible  <bruno@clisp.org>
34250
34251         * modules/unistr/u8-mbtoucr: New file.
34252         * lib/unistr/u8-mbtoucr.c: New file.
34253         * modules/unistr/u16-mbtoucr: New file.
34254         * lib/unistr/u16-mbtoucr.c: New file.
34255         * modules/unistr/u16-mbtoucr: New file.
34256         * lib/unistr/u16-mbtoucr.c: New file.
34257         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
34258
34259 2007-03-27  Simon Josefsson  <simon@josefsson.org>
34260             Bruno Haible  <bruno@clisp.org>
34261
34262         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
34263         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
34264         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
34265
34266         * m4/stdio_h.m4: Add stubs for vasprintf too.
34267
34268         * modules/stdio: Support vasprintf in sed command.
34269
34270         * modules/vasprintf: Depend on stdio for prototypes.  Remove
34271         vasprintf.h.  Add stdio module indicator.
34272
34273         * lib/stdio_.h: Declare asprintf and vasprintf, based on
34274         vasprintf.h.
34275
34276         * lib/vasprintf.h: File removed.
34277
34278         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
34279         * lib/vasprintf.c: Ditto.
34280         * lib/xvasprintf.c: Ditto.
34281         * tests/test-vasprintf-posix.c: Ditto.
34282         * tests/test-vasprintf.c: Ditto.
34283
34284 2007-03-27  Bruno Haible  <bruno@clisp.org>
34285
34286         Make vasnprintf multithread-safe.
34287         * lib/vasnprintf.c (decimal_point_char): New function.
34288         (VASNPRINTF): Use it.
34289         Suggested by Simon Josefsson.
34290
34291 2007-03-27  Eric Blake  <ebb9@byu.net>
34292
34293         Support sub-second birthtime on cygwin.
34294         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
34295         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
34296         (get_stat_birthtime): Also work with st_birthtim.
34297
34298 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
34299
34300         * lib/stat-time.h (USE_BIRTHTIME): Remove.
34301         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
34302         (get_stat_birthtime_ns): Do not try to use "spare" fields.
34303         (get_stat_birthtime_ns): Simplify compile-time tests.
34304         (get_stat_birthtime): Change the API to look like
34305         get_stat_mtime etc., except return a negative tv_nsec on error.
34306         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
34307         Don't check for "spare" fields.
34308         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
34309         or for struct stat.st_birthtime, as these tests aren't used.
34310         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
34311
34312 2007-03-27  Bruno Haible  <bruno@clisp.org>
34313
34314         * lib/stat-time.h: Include <sys/stat.h>.
34315
34316 2007-03-27  James Youngman  <jay@gnu.org>
34317
34318         * lib/stat-time.h (get_stat_birthtime): New function for
34319           retrieving st_birthtime as provided by UFS2 (hence *BSD).
34320         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
34321           and its variants.
34322         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
34323         * modules/stat-time-test: New file.
34324         * tests/test-stat-time.c: New test, devised by Bruno Haible.
34325
34326 2007-03-26  Bruno Haible  <bruno@clisp.org>
34327
34328         Better support of signalling NaNs.
34329         * lib/atanl.c: Include isnanl.h.
34330         (atanl): Perform test for NaN at the beginning of the function and
34331         through a call to isnanl.
34332         * lib/cosl.c: Include isnanl.h.
34333         (cosl): Perform test for NaN at the beginning of the function and
34334         through a call to isnanl.
34335         * lib/ldexpl.c: Include isnanl.h.
34336         (ldexpl): Perform test for NaN through a call to isnanl.
34337         * lib/logl.c: Include isnanl.h.
34338         (logl): Perform test for NaN at the beginning of the function and
34339         through a call to isnanl.
34340         * lib/sinl.c: Include isnanl.h.
34341         (sinl): Perform test for NaN at the beginning of the function and
34342         through a call to isnanl.
34343         * lib/sqrtl.c: Include isnanl.h.
34344         (sqrtl): Perform test for NaN at the beginning of the function and
34345         through a call to isnanl.
34346         * lib/tanl.c: Include isnanl.h.
34347         (tanl): Perform test for NaN at the beginning of the function and
34348         through a call to isnanl.
34349         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
34350         * modules/mathl (Depends-on): Add isnanl.
34351
34352 2007-03-26  Eric Blake  <ebb9@byu.net>
34353
34354         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
34355         regression in logic sense of previous patch.
34356
34357 2007-03-26  Bruno Haible  <bruno@clisp.org>
34358
34359         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
34360         unportable shell command "if ! ...".
34361         Reported by Ralf Wildenhues.
34362
34363 2007-03-25  Bruno Haible  <bruno@clisp.org>
34364
34365         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
34366         <sysexits.h> file, and only add EX_CONFIG.
34367         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
34368         absolute file name and whether it is sufficient. Substitute also
34369         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
34370         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
34371         ABSOLUTE_SYSEXITS_H into sysexits.h.
34372
34373 2007-03-25  Bruno Haible  <bruno@clisp.org>
34374
34375         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
34376         hints is NULL.
34377
34378 2007-03-25  Bruno Haible  <bruno@clisp.org>
34379
34380         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
34381         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
34382
34383 2007-03-25  Bruno Haible  <bruno@clisp.org>
34384
34385         * lib/vasnprintf.c: Include langinfo.h.
34386         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
34387         multithread-safe.
34388         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
34389         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
34390         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34391         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34392         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34393         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34394         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34395         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
34396         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34397         Reported by Simon Josefsson.
34398
34399 2007-03-25  Bruno Haible  <bruno@clisp.org>
34400
34401         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
34402         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
34403         * modules/vasnprintf (Depends-on): Add stdint.
34404
34405 2007-03-25  Bruno Haible  <bruno@clisp.org>
34406
34407         * modules/fpieee: New file.
34408         * m4/fpieee.m4: New file.
34409         * modules/isnan-nolibm (Depends-on): Add fpieee.
34410         * modules/isnanl-nolibm (Depends-on): Add fpieee.
34411         * modules/isnanl (Depends-on): Add fpieee.
34412
34413 2007-03-25  Bruno Haible  <bruno@clisp.org>
34414
34415         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
34416
34417 2007-03-25  Bruno Haible  <bruno@clisp.org>
34418
34419         Avoid test failures on IRIX 6.5.
34420         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
34421         (main): Use it.
34422         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
34423         macros.
34424         (main): Use them.
34425
34426 2007-03-25  Bruno Haible  <bruno@clisp.org>
34427
34428         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
34429         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
34430         exists but doesn't work.
34431         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
34432         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
34433         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
34434         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
34435
34436 2007-03-25  Bruno Haible  <bruno@clisp.org>
34437
34438         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
34439         returns inf. Needed on IRIX 6.5.
34440
34441 2007-03-25  Bruno Haible  <bruno@clisp.org>
34442
34443         * tests/test-frexpl.c: Include isnanl-nolibm.h.
34444         (main): Use isnanl instead of x != x idiom.
34445         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
34446
34447         * tests/test-frexp.c: Include isnan.h.
34448         (main): Use isnan instead of x != x idiom.
34449         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
34450
34451 2007-03-25  Bruno Haible  <bruno@clisp.org>
34452
34453         * tests/test-frexp.c (NaN): New function/macro.
34454         (main): Use it instead of 0.0 / 0.0.
34455         * tests/test-isnan.c (NaN): New function/macro.
34456         (main): Use it instead of 0.0 / 0.0.
34457         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
34458         (test_function): Use it instead of 0.0 / 0.0.
34459         * tests/test-vasprintf-posix.c (NaN): New function/macro.
34460         (test_function): Use it instead of 0.0 / 0.0.
34461         * tests/test-snprintf-posix.h (NaN): New function/macro.
34462         (test_function): Use it instead of 0.0 / 0.0.
34463         * tests/test-sprintf-posix.h (NaN): New function/macro.
34464         (test_function): Use it instead of 0.0 / 0.0.
34465         * tests/test-fprintf-posix.h (NaN): New function/macro.
34466         (test_function): Use it instead of 0.0 / 0.0.
34467         * tests/test-printf-posix.h (NaN): New function/macro.
34468         (test_function): Use it instead of 0.0 / 0.0.
34469
34470         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
34471
34472 2007-03-25  Bruno Haible  <bruno@clisp.org>
34473
34474         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
34475
34476 2007-03-25  Bruno Haible  <bruno@clisp.org>
34477
34478         * lib/regexec.c (merge_state_with_log): Make static.
34479
34480 2007-03-25  Bruno Haible  <bruno@clisp.org>
34481
34482         * lib/trigl.c (kernel_rem_pio2): Make static.
34483
34484 2007-03-25  Bruno Haible  <bruno@clisp.org>
34485
34486         * lib/sincosl.c (sincosl_table): Make static.
34487
34488 2007-03-25  Bruno Haible  <bruno@clisp.org>
34489
34490         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
34491         if the compiler does not support C99.
34492
34493 2007-03-25  Bruno Haible  <bruno@clisp.org>
34494
34495         * modules/time (Makefile.am): Ensure all rule action lines start with a
34496         tab.
34497
34498 2007-03-24  Bruno Haible  <bruno@clisp.org>
34499
34500         * modules/tsearch-tests: New file.
34501         * tests/test-tsearch.sh: New file.
34502         * tests/test-tsearch.c: New file, mostly copied from glibc.
34503
34504         * modules/search-tests: New file.
34505         * tests/test-search.c: New file.
34506
34507         * modules/search: New file.
34508         * lib/search_.h: New file, incorporating lib/tsearch.h.
34509         * m4/search_h.m4: New file.
34510         * lib/tsearch.h: Remove file.
34511         * lib/tsearch.c: Include search.h instead of tsearch.h.
34512         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
34513         HAVE_TSEARCH.
34514         * modules/tsearch (Files): Remove lib/tsearch.h.
34515         (Depends-on): Add search.
34516         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
34517         (Include): Change tsearch.h into search.h.
34518
34519 2007-03-24  Bruno Haible  <bruno@clisp.org>
34520
34521         * modules/fpucw: New file.
34522         * lib/fpucw.h: New file.
34523         * lib/frexp.c: Include fpucw.h.
34524         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
34525         (FUNC): Use them.
34526         * lib/printf-frexp.c: Include fpucw.h.
34527         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
34528         (FUNC): Use them.
34529         * lib/vasnprintf.c: Include fpucw.h.
34530         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
34531         'long double' calculations.
34532         * tests/test-frexpl.c: Include fpucw.h.
34533         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
34534         * tests/test-printf-frexpl.c: Include fpucw.h.
34535         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
34536         * modules/frexpl (Depends-on): Add fpucw.
34537         * modules/printf-frexpl (Depends-on): Likewise.
34538         * modules/fprintf-posix (Depends-on): Likewise.
34539         * modules/snprintf-posix (Depends-on): Likewise.
34540         * modules/sprintf-posix (Depends-on): Likewise.
34541         * modules/vasnprintf-posix (Depends-on): Likewise.
34542         * modules/vasprintf-posix (Depends-on): Likewise.
34543         * modules/vfprintf-posix (Depends-on): Likewise.
34544         * modules/vsnprintf-posix (Depends-on): Likewise.
34545         * modules/vsprintf-posix (Depends-on): Likewise.
34546         * modules/frexpl-tests (Depends-on): Likewise.
34547         * modules/printf-frexpl-tests (Depends-on): Likewise.
34548
34549 2007-03-24  Bruno Haible  <bruno@clisp.org>
34550
34551         * lib/float+.h: New file.
34552         * lib/isnan.c: Include float+.h.
34553         (SIZE): New macro.
34554         (FUNC): Compare only SIZE bytes of the value.
34555         * lib/vasnprintf.c: Include float+.h.
34556         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
34557         SIZEOF_LDBL or SIZEOF_DBL bytes.
34558         * modules/isnan-nolibm (Files): Add lib/float+.h.
34559         * modules/isnanl-nolibm (Files): Add lib/float+.h.
34560         * modules/isnanl (Files): Add lib/float+.h.
34561         * modules/vasnprintf (Files): Add lib/float+.h.
34562
34563 2007-03-24  Bruno Haible  <bruno@clisp.org>
34564
34565         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
34566         include isnanl-nolibm.h.
34567
34568 2007-03-24  Bruno Haible  <bruno@clisp.org>
34569
34570         * tests/test-read-file.c (main): Don't produce spurious output for
34571         expected situations. Make the test fail if it encountered unexpected
34572         results.
34573
34574 2007-03-24  Bruno Haible  <bruno@clisp.org>
34575
34576         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
34577         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
34578
34579 2007-03-24  Bruno Haible  <bruno@clisp.org>
34580
34581         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
34582
34583 2007-03-24  Bruno Haible  <bruno@clisp.org>
34584
34585         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
34586         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
34587
34588         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
34589         * modules/utf8-ucs4: Turn into a symbolic link to module
34590         unistr/u8-mbtouc.
34591
34592         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
34593         utf8-ucs4-unsafe.
34594         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
34595         unistr/u8-mbtouc-unsafe.
34596
34597         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
34598         * modules/utf16-ucs4: Turn into a symbolic link to module
34599         unistr/u16-mbtouc.
34600
34601         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
34602         utf16-ucs4-unsafe.
34603         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
34604         unistr/u16-mbtouc-unsafe.
34605
34606         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
34607         * modules/ucs4-utf8: Turn into a symbolic link to module
34608         unistr/u8-ubtomb.
34609
34610         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
34611         * modules/ucs4-utf16: Turn into a symbolic link to module
34612         unistr/u16-ubtomb.
34613
34614 2007-03-24  Bruno Haible  <bruno@clisp.org>
34615
34616         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
34617         Enable the function only if HAVE_INLINE.
34618         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
34619         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
34620         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
34621         Enable the function only if HAVE_INLINE.
34622         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
34623         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
34624         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
34625         Enable the function only if HAVE_INLINE.
34626         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
34627         Enable the function only if HAVE_INLINE.
34628         * modules/utf8-ucs4: Update.
34629         * modules/utf8-ucs4-unsafe: Update.
34630         * modules/utf16-ucs4: Update.
34631         * modules/utf16-ucs4-unsafe: Update.
34632         * modules/ucs4-utf8: Update.
34633         * modules/ucs4-utf16: Update.
34634
34635 2007-03-24  Bruno Haible  <bruno@clisp.org>
34636
34637         * lib/utf8-ucs4.h: Remove file.
34638         * lib/utf8-ucs4-unsafe.h: Remove file.
34639         * lib/utf16-ucs4.h: Remove file.
34640         * lib/utf16-ucs4-unsafe.h: Remove file.
34641         * lib/ucs4-utf8.h: Remove file.
34642         * lib/ucs4-utf16.h: Remove file.
34643         * lib/unistr.h: Include their previous contents.
34644         * m4/utf-ucs4.m4: Remove file.
34645         * m4/ucs4-utf.m4: Remove file.
34646         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.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/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.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 (Files): Remove lib/utf16-ucs4.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/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
34662         (Depends-on): Add unistr/base.
34663         (configure.ac): Remove gl_UTF_UCS4.
34664         (Makefile.am): Update.
34665         (Include): Change to unistr.h.
34666         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.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         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
34672         (Depends-on): Add unistr/base.
34673         (configure.ac): Remove gl_UCS4_UTF.
34674         (Makefile.am): Update.
34675         (Include): Change to unistr.h.
34676         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
34677         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
34678         utf8-ucs4-unsafe.h.
34679         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
34680         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
34681         utf16-ucs4-unsafe.h.
34682         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
34683         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
34684         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
34685         * lib/unistr/u8-strchr.c: Likewise.
34686         * lib/unistr/u8-strrchr.c: Likewise.
34687         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
34688         * lib/unistr/u16-strchr.c: Likewise.
34689         * lib/unistr/u16-strrchr.c: Likewise.
34690         * lib/striconveh.c: Update.
34691         * lib/linebreak.c: Update.
34692
34693 2007-03-24  Bruno Haible  <bruno@clisp.org>
34694
34695         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
34696         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
34697
34698 2007-03-22  Bruno Haible  <bruno@clisp.org>
34699
34700         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
34701
34702 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
34703
34704         * MODULES.html.sh (File system functions): New module write-any-file.
34705         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
34706         * m4/write-any-file.m4: New files.
34707
34708 2007-03-23  Eric Blake  <ebb9@byu.net>
34709
34710         * gnulib-tool: Rearrange space-tab sequences, since some editors
34711         like to eat them.
34712
34713 2007-03-23  Eric Blake  <ebb9@byu.net>
34714
34715         * lib/version-etc.c (version_etc_va): Update license wording to
34716         be more concise.  Recommended by Richard Stallman.
34717
34718 2007-03-22  Bruno Haible  <bruno@clisp.org>
34719
34720         * lib/poll.c (MSG_PEEK): New fallback definition.
34721
34722 2007-03-22  Bruno Haible  <bruno@clisp.org>
34723
34724         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
34725         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
34726         (main): Update.
34727         Fixes a compilation error on BeOS.
34728
34729 2007-03-22  Bruno Haible  <bruno@clisp.org>
34730
34731         * modules/frexpl-tests: New file.
34732         * tests/test-frexpl.c: New file.
34733
34734         * modules/frexpl: New file.
34735         * m4/frexpl.m4: New file.
34736         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
34737         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
34738         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
34739         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
34740         (Depends-on): Add frexpl. Remove isnanl-nolibm.
34741         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
34742
34743 2007-03-22  Bruno Haible  <bruno@clisp.org>
34744
34745         * lib/frexpl.c: Share code with lib/frexp.c.
34746         * modules/mathl (Files): Add lib/frexp.c.
34747         (Depends-on): Add isnanl-nolibm.
34748
34749 2007-03-22  Bruno Haible  <bruno@clisp.org>
34750
34751         * modules/printf-frexp (Files): Add m4/frexp.m4.
34752         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
34753         only if the found frexp function actually works.
34754
34755 2007-03-22  Bruno Haible  <bruno@clisp.org>
34756
34757         * lib/frexp.c: Remove older implementation that uses divisions.
34758
34759 2007-03-21  Bruno Haible  <bruno@clisp.org>
34760
34761         * modules/frexp-tests: New file.
34762         * tests/test-frexp.c: New file.
34763
34764         * modules/frexp: New file.
34765         * lib/frexp.c: New file.
34766         * m4/frexp.m4: New file.
34767         * lib/math_.h (frexp): New declaration.
34768         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
34769         REPLACE_FREXP.
34770         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
34771
34772 2007-03-21  Bruno Haible  <bruno@clisp.org>
34773
34774         * modules/isnanl-tests: New file.
34775         * tests/test-isnanl.c: New file.
34776
34777         * modules/isnanl: New file.
34778         * lib/isnanl.h: New file.
34779         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
34780         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
34781         gl_FUNC_ISNANL_WORKS.
34782         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
34783         New macros.
34784
34785 2007-03-21  Bruno Haible  <bruno@clisp.org>
34786
34787         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
34788         lib/isnanl.h.
34789         (Include): Update.
34790         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
34791         * lib/vasnprintf.c: Update.
34792         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
34793         tests/test-isnanl.h, remove tests/test-isnanl.c.
34794         (Makefile.am): Update.
34795         * tests/test-isnanl-nolibm.c: New file.
34796         * tests/test-isnanl.h: New file.
34797         * tests/test-isnanl.c: Remove file.
34798
34799 2007-03-21  Jim Meyering  <jim@meyering.net>
34800
34801         When trying to open ".", treat ESTALE like EACCES.
34802         * lib/savewd.c (savewd_save): Resort to forking not just upon
34803         failure with EACCES, but also when errno is ESTALE.
34804
34805 2007-03-20  Bruno Haible  <bruno@clisp.org>
34806
34807         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
34808         Needed on AIX 5.1. Reported by Matthew Woehlke.
34809
34810 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34811
34812         Suggestions by Bruno Haible:
34813         * lib/acl-internal.h: Include "gettext.h" rather than rolling
34814         our own.
34815         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
34816         * modules/acl (Depends-on): Add gettext.
34817
34818 2007-03-19  Bruno Haible  <bruno@clisp.org>
34819
34820         * modules/iconvme: Remove file.
34821         * lib/iconvme.h: Remove file.
34822         * lib/iconvme.c: Remove file.
34823         * m4/iconvme.m4: Remove file.
34824
34825 2007-03-19  Bruno Haible  <bruno@clisp.org>
34826
34827         * doc/relocatable-maint.texi: Break long shell script line.
34828         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
34829
34830 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34831
34832         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
34833         handle file_has_acl.
34834         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
34835         * lib/acl.c: Move header inclusions and related macro defns into
34836         lib/acl-internal.h.
34837         (S_ISLNK): Remove defn, since that's now done for us.
34838         (file_has_acl): Move to lib/file-has-acl.c.
34839         Call acl_trivial if available.  This is the crucial part of the fix.
34840         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
34841         shared within the library.  Rewrite a bit, partly to make it compatible
34842         with the GNU coding style.
34843         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
34844         Remove unnecessary double-quotes.
34845         Don't test for acl_to_text; the build will catch that.
34846         Replace acl_entries if it doesn't exist and it is needed.
34847         Check for -lsec and acl_trivial (as used on Solaris 10).
34848         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
34849         lib/file-has-acl.c.
34850         (Depends-on): Add sys_stat, for S_ISLNK.
34851
34852 2007-03-19  Ben Pfaff  <blp@gnu.org>
34853
34854         * doc/gnulib.texi: Fix typos.
34855         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
34856
34857 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34858
34859         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
34860         If size is zero here, buf must be zero.
34861
34862 2007-03-19  Simon Josefsson  <simon@josefsson.org>
34863
34864         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
34865         <bruno@clisp.org>.
34866
34867 2007-03-18  Bruno Haible  <bruno@clisp.org>
34868
34869         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
34870         Suggested by Eric Blake.
34871
34872 2007-03-18  Ben Pfaff  <blp@gnu.org>
34873
34874         * doc/relocatable.texi: Recommend using as prefix a directory
34875         that does not exist and will never be created.  Based on
34876         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
34877         and others.
34878
34879 2007-03-17  Bruno Haible  <bruno@clisp.org>
34880
34881         * lib/fchownat.c: Include lchown.h.
34882
34883 2007-03-17  Bruno Haible  <bruno@clisp.org>
34884
34885         Fix endless loop when the given allocated size was > INT_MAX.
34886         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
34887         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
34888         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
34889         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
34890         * lib/sprintf.c (sprintf): Likewise.
34891
34892 2007-03-17  Bruno Haible  <bruno@clisp.org>
34893
34894         * tests/test-argp-2.sh (func_compare): Output a context diff.
34895
34896 2007-03-17  Bruno Haible  <bruno@clisp.org>
34897
34898         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
34899         locale's decimal-point character.
34900
34901 2007-03-17  Bruno Haible  <bruno@clisp.org>
34902
34903         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
34904         before comparing it. Needed because on some platforms (e.g. x86) a
34905         'long double' occupies less bytes than sizeof (long double).
34906
34907 2007-03-17  Bruno Haible  <bruno@clisp.org>
34908
34909         * tests/test-crc.c (main): Make printf statements 64-bit clean.
34910         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
34911         * tests/test-getaddrinfo.c (simple): Likewise.
34912         * tests/test-read-file.c (main): Likewise.
34913
34914 2007-03-17  Bruno Haible  <bruno@clisp.org>
34915
34916         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
34917
34918 2007-03-17  Bruno Haible  <bruno@clisp.org>
34919
34920         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
34921         unused variable.
34922
34923 2007-03-17  Bruno Haible  <bruno@clisp.org>
34924
34925         * tests/test-c-strcasecmp.c: Include c-strcase.h.
34926         * tests/test-c-strncasecmp.c: Likewise.
34927
34928 2007-03-17  Bruno Haible  <bruno@clisp.org>
34929
34930         * modules/stdlib (Depends-on): Add unistd.
34931         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
34932         Needed for MacOS X 10.3.
34933
34934 2007-03-17  Bruno Haible  <bruno@clisp.org>
34935
34936         * lib/unistr/u-strdup.h: Include <stdlib.h>.
34937
34938 2007-03-17  Bruno Haible  <bruno@clisp.org>
34939
34940         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
34941
34942 2007-03-17  Bruno Haible  <bruno@clisp.org>
34943
34944         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
34945         to reflect files copied from gnulib (with or without modifications).
34946         Suggested by Jim Meyering.
34947
34948 2007-03-17  Eric Blake  <ebb9@byu.net>
34949
34950         * NEWS: Document stdlib change from 2007-02-18.
34951
34952 2007-03-17  Jim Meyering  <jim@meyering.net>
34953
34954         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
34955         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
34956         someone uses a name containing shell meta-characters.
34957         Reported by Alfred M. Szmidt.
34958
34959         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
34960
34961 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
34962
34963         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
34964         and copy gettext configuration files only if configure.ac contains
34965         a use of AM_GNU_GETTEXT_VERSION.
34966
34967 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
34968
34969         * build-aux/bootstrap (gnulib_name): New variable.
34970         (gnulib_tool_options): Use it.
34971
34972 2007-03-13  Simon Josefsson  <simon@josefsson.org>
34973
34974         * tests/test-des.c: Use new namespace.
34975
34976 2007-03-15  Bruno Haible  <bruno@clisp.org>
34977
34978         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
34979         Reported by James Youngman <jay@gnu.org>.
34980
34981 2007-03-15  Bruno Haible  <bruno@clisp.org>
34982
34983         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
34984         declared prototype. Needed with cc on OSF/1 5.1.
34985
34986 2007-03-15  Bruno Haible  <bruno@clisp.org>
34987
34988         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
34989         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
34990         (struct gl_list_implementation): Add dispose_fn argument to the
34991         'create_empty', 'create' methods.
34992         (struct gl_list_impl_base): Add field 'dispose_fn'.
34993         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
34994         argument.
34995         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
34996         dispose_fn argument.
34997         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
34998         dispose_fn on the dropped values.
34999         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
35000         dispose_fn argument.
35001         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
35002         dropped values.
35003         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
35004         (gl_tree_remove_node): Call dispose_fn on the dropped value.
35005         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
35006         (gl_tree_remove_node): Call dispose_fn on the dropped value.
35007         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
35008         argument.
35009         (gl_tree_list_free): Call dispose_fn on the dropped values.
35010         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
35011         the dropped values.
35012         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
35013         Add dispose_fn argument.
35014         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
35015         Call dispose_fn on the dropped values.
35016         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
35017         Add dispose_fn argument.
35018         (gl_sublist_create): Initialize the 'dispose_fn' field.
35019         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
35020         * tests/test-array_list.c (main): Update.
35021         * tests/test-carray_list.c (main): Update.
35022         * tests/test-avltree_list.c (main): Update.
35023         * tests/test-rbtree_list.c (main): Update.
35024         * tests/test-avltreehash_list.c (main): Update.
35025         * tests/test-rbtreehash_list.c (main): Update.
35026         * tests/test-linked_list.c (main): Update.
35027         * tests/test-linkedhash_list.c (main): Update.
35028         * tests/test-array_oset.c (main): Update.
35029
35030 2007-03-15  Bruno Haible  <bruno@clisp.org>
35031
35032         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
35033         (gl_oset_create_empty): Add dispose_fn argument.
35034         (struct gl_oset_implementation): Add dispose_fn argument to
35035         'create_empty' method.
35036         (struct gl_oset_impl_base): Add dispose_fn field.
35037         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
35038         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
35039         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
35040         values.
35041         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
35042         (gl_tree_oset_free): Call dispose_fn on the dropped values.
35043         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35044         dropped value.
35045         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35046         dropped value.
35047         * tests/test-array_oset.c (main): Update.
35048         * tests/test-avltree_oset.c (main): Update.
35049         * tests/test-rbtree_oset.c (main): Update.
35050         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
35051
35052 2007-03-13  Bruno Haible  <bruno@clisp.org>
35053
35054         * tests/test-stdbool.c (i): Update after last patch.
35055
35056 2007-03-12  Bruno Haible  <bruno@clisp.org>
35057
35058         * lib/quotearg.c: Include <wctype.h> early, before the definition of
35059         the iswprint macro. Needed on Solaris 2.5.1.
35060
35061 2007-03-12  Bruno Haible  <bruno@clisp.org>
35062
35063         * tests/test-printf-frexp.c (main): Declare x as volatile.
35064
35065 2007-03-12  Simon Josefsson  <simon@josefsson.org>
35066
35067         * doc/gnulib.texi (Build robot for gnulib): New section.
35068
35069 2007-03-12  Jim Meyering  <jim@meyering.net>
35070
35071         * build-aux/bootstrap: New file.
35072         * build-aux/bootstrap.conf: New file, from coreutils.
35073
35074 2007-03-11  Bruno Haible  <bruno@clisp.org>
35075
35076         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
35077
35078 2007-03-12  Simon Josefsson  <simon@josefsson.org>
35079
35080         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
35081         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
35082         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
35083
35084 2007-03-11  Bruno Haible  <bruno@clisp.org>
35085
35086         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
35087         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
35088
35089 2007-03-11  Bruno Haible  <bruno@clisp.org>
35090
35091         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
35092         formula. Needed for SunPRO C 5.0.
35093
35094 2007-03-11  Bruno Haible  <bruno@clisp.org>
35095
35096         * modules/long-options (Depends-on): Add getopt.
35097
35098 2007-03-11  Bruno Haible  <bruno@clisp.org>
35099
35100         * modules/modechange (Depends-on): Add stdbool.
35101
35102 2007-03-11  Bruno Haible  <bruno@clisp.org>
35103
35104         * modules/i-ring (Depends-on): Add stdbool.
35105
35106 2007-03-11  Bruno Haible  <bruno@clisp.org>
35107
35108         * modules/gc-des (Depends-on): Add stdbool.
35109
35110 2007-03-11  Bruno Haible  <bruno@clisp.org>
35111
35112         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
35113
35114 2007-03-11  Bruno Haible  <bruno@clisp.org>
35115
35116         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
35117
35118 2007-03-11  Bruno Haible  <bruno@clisp.org>
35119
35120         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
35121
35122 2007-03-11  Bruno Haible  <bruno@clisp.org>
35123
35124         * lib/vasnprintf.c (sprintf): Undefine.
35125
35126 2007-03-11  Bruno Haible  <bruno@clisp.org>
35127
35128         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
35129         initializers in SunPRO C and Compaq C compilers.
35130
35131 2007-03-11  Bruno Haible  <bruno@clisp.org>
35132
35133         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
35134         decrementing code ANSI C compliant.
35135
35136 2007-03-11  Bruno Haible  <bruno@clisp.org>
35137
35138         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
35139         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
35140
35141 2007-03-11  Bruno Haible  <bruno@clisp.org>
35142
35143         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
35144         <stdbool.h> substitute doesn't pass.
35145
35146 2007-03-11  Bruno Haible  <bruno@clisp.org>
35147
35148         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
35149
35150 2007-03-11  Bruno Haible  <bruno@clisp.org>
35151
35152         * gnulib-tool (func_create_megatestdir): Create also an autobuild
35153         script, for submission to autobuild.josefsson.org.
35154
35155 2007-03-10  Bruno Haible  <bruno@clisp.org>
35156
35157         * modules/canonicalize-lgpl-tests: New file.
35158         * tests/test-canonicalize-lgpl.sh: New file.
35159         * tests/test-canonicalize-lgpl.c: New file.
35160
35161         * modules/c-strcase-tests: New file.
35162         * tests/test-c-strcase.sh: New file.
35163         * tests/test-c-strcasecmp.c: New file.
35164         * tests/test-c-strncasecmp.c: New file.
35165
35166         * modules/atexit-tests: New file.
35167         * tests/test-atexit.sh: New file.
35168         * tests/test-atexit.c: New file.
35169
35170 2007-03-10  Bruno Haible  <bruno@clisp.org>
35171
35172         * tests/test-binary-io.sh: Use temporary filenames that are not so
35173         likely to clash with those of other tests (in a parallel make).
35174         * tests/test-binary-io.c: Likewise.
35175
35176 2007-03-10  Bruno Haible  <bruno@clisp.org>
35177
35178         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
35179         fallback; use #error instead.
35180         Suggested by Simon Josefsson.
35181
35182 2007-03-10  Bruno Haible  <bruno@clisp.org>
35183
35184         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
35185         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
35186         first and the last.
35187
35188 2007-03-10  Bruno Haible  <bruno@clisp.org>
35189
35190         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
35191
35192 2007-03-10  Bruno Haible  <bruno@clisp.org>
35193
35194         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
35195         "make distcheck".
35196         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
35197         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
35198         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
35199
35200 2007-03-10  Bruno Haible  <bruno@clisp.org>
35201
35202         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
35203         variable.
35204         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
35205         variable.
35206
35207 2007-03-09  Eric Blake  <ebb9@byu.net>
35208         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
35209
35210         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
35211         types are not being provided by gnulib.
35212         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
35213         types are supported.
35214
35215 2007-03-10  Bruno Haible  <bruno@clisp.org>
35216
35217         * lib/stdio_.h (__attribute__): New macro.
35218         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
35219         vsprintf): Specify __attribute__ __format__ for GCC.
35220         Suggested by Eric Blake.
35221
35222 2007-03-09  Bruno Haible  <bruno@clisp.org>
35223
35224         * modules/printf-posix-tests: New file.
35225         * tests/test-printf-posix.sh: New file.
35226         * tests/test-printf-posix.c: New file.
35227
35228         * modules/printf-posix: New file.
35229         * lib/printf.c: New file.
35230         * m4/printf-posix-rpl.m4: New file.
35231         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
35232         REPLACE_PRINTF.
35233         * lib/stdio_.h (printf): New declaration.
35234         (format, __format__, ____printf____, ____scanf____, ____strftime____,
35235         ____strfmon____): New macros.
35236         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
35237         REPLACE_PRINTF.
35238
35239 2007-03-09  Bruno Haible  <bruno@clisp.org>
35240
35241         * tests/test-vasnprintf-posix2.sh: New file.
35242         * tests/test-vasnprintf-posix2.c: New file.
35243         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
35244         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
35245         (Makefile.am): Activate test-vasnprintf-posix2.sh.
35246
35247         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
35248         a locale dependent decimal point, rather than always '.'.
35249
35250 2007-03-09  Eric Blake  <ebb9@byu.net>
35251
35252         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
35253         spite of platforms like Tandem/NSK that define it to -1.
35254
35255 2007-03-08  Bruno Haible  <bruno@clisp.org>
35256
35257         * modules/vprintf-posix-tests: New file.
35258         * tests/test-vprintf-posix.sh: New file.
35259         * tests/test-vprintf-posix.c: New file.
35260         * tests/test-printf-posix.h: New file.
35261
35262         * modules/vprintf-posix: New file.
35263         * lib/vprintf.c: New file.
35264         * m4/vprintf-posix.m4: New file.
35265         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
35266         REPLACE_VPRINTF.
35267         * lib/stdio_.h (vprintf): New declaration.
35268         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
35269         REPLACE_VPRINTF.
35270
35271 2007-03-08  Bruno Haible  <bruno@clisp.org>
35272
35273         * modules/fprintf-posix-tests: New file.
35274         * tests/test-fprintf-posix.sh: New file.
35275         * tests/test-fprintf-posix.c: New file.
35276
35277         * modules/fprintf-posix: New file.
35278         * lib/fprintf.c: New file.
35279         * m4/fprintf-posix.m4: New file.
35280         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
35281         REPLACE_FPRINTF.
35282         * lib/stdio_.h (fprintf): New declaration.
35283         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
35284         REPLACE_FPRINTF.
35285
35286 2007-03-08  Bruno Haible  <bruno@clisp.org>
35287
35288         * modules/vfprintf-posix-tests: New file.
35289         * tests/test-vfprintf-posix.sh: New file.
35290         * tests/test-vfprintf-posix.c: New file.
35291         * tests/test-fprintf-posix.h: New file.
35292         * tests/test-fprintf-posix.out: New file.
35293
35294         * modules/vfprintf-posix: New file.
35295         * lib/vfprintf.c: New file.
35296         * m4/vfprintf-posix.m4: New file.
35297         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
35298         REPLACE_VFPRINTF.
35299         * lib/stdio_.h (vfprintf): New declaration.
35300         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
35301         REPLACE_VFPRINTF.
35302
35303 2007-03-08  Bruno Haible  <bruno@clisp.org>
35304
35305         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
35306
35307 2007-03-08  Bruno Haible  <bruno@clisp.org>
35308
35309         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
35310         instead of 'expr' invocations.
35311         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35312         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35313         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35314         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35315         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35316         Suggested by Paul Eggert.
35317
35318 2007-03-08  Bruno Haible  <bruno@clisp.org>
35319
35320         * modules/fseterr-tests: New file.
35321         * tests/test-fseterr.c: New file.
35322
35323         * modules/fseterr: New file.
35324         * lib/fseterr.h: New file.
35325         * lib/fseterr.c: New file.
35326
35327 2007-03-08  Bruno Haible  <bruno@clisp.org>
35328
35329         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
35330         * lib/getopt_.h: Likewise.
35331         * lib/mbswidth.h: Likewise.
35332         * lib/setenv.h: Likewise.
35333         * lib/vasnprintf.h: Likewise.
35334         * lib/vasprintf.h: Likewise.
35335         * lib/verror.h: Likewise.
35336         * lib/xsetenv.h: Likewise.
35337         * lib/xvasprintf.h: Likewise.
35338
35339 2007-03-08  Jim Meyering  <jim@meyering.net>
35340
35341         * users.txt: Add parted.
35342
35343         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
35344
35345 2007-03-07  Bruno Haible  <bruno@clisp.org>
35346
35347         * m4/printf.m4: Make the shell script snippets copy&pastable.
35348
35349 2007-03-02  Bruno Haible  <bruno@clisp.org>
35350
35351         * lib/netinet_in_.h: New file.
35352         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
35353         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
35354         * modules/netinet_in (Files): Add lib/netinet_in_.h.
35355         (Depends-on): Add absolute-header.
35356         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
35357         into netinet/in.h.
35358
35359 2007-03-03  Bruno Haible  <bruno@clisp.org>
35360
35361         * lib/sys_select_.h: New file.
35362         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
35363         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
35364         * modules/sys_select (Files): Add lib/sys_select_.h.
35365         (Depends-on): Add absolute-header.
35366         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
35367         into sys/select.h.
35368
35369 2007-03-02  Bruno Haible  <bruno@clisp.org>
35370
35371         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
35372         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
35373         values.
35374         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
35375         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
35376         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
35377         * modules/sys_socket (Depends-on): Add absolute-header.
35378         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
35379         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
35380         (Include): Remove requirement of inclusion of <sys/types.h>.
35381
35382 2007-03-02  Bruno Haible  <bruno@clisp.org>
35383
35384         * lib/byteswap_.h (bswap_32): Fix formula.
35385
35386 2007-03-06  Bruno Haible  <bruno@clisp.org>
35387
35388         * modules/sprintf-posix-tests: New file.
35389         * tests/test-sprintf-posix.c: New file.
35390
35391         * modules/sprintf-posix: New file.
35392         * lib/sprintf.c: New file.
35393         * m4/sprintf-posix.m4: New file.
35394         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
35395         REPLACE_SPRINTF.
35396         * lib/stdio_.h (sprintf): New declaration.
35397         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
35398         REPLACE_SPRINTF.
35399
35400 2007-03-06  Bruno Haible  <bruno@clisp.org>
35401
35402         * modules/vsprintf-posix-tests: New file.
35403         * tests/test-vsprintf-posix.c: New file.
35404         * tests/test-sprintf-posix.h: New file.
35405
35406         * modules/vsprintf-posix: New file.
35407         * lib/vsprintf.c: New file.
35408         * m4/vsprintf-posix.m4: New file.
35409         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
35410         REPLACE_VSPRINTF.
35411         * lib/stdio_.h (vsprintf): New declaration.
35412         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
35413         REPLACE_VSPRINTF.
35414
35415 2007-03-06  Bruno Haible  <bruno@clisp.org>
35416
35417         * modules/vsnprintf (Depend-on): Remove minmax.
35418
35419 2007-03-06  Bruno Haible  <bruno@clisp.org>
35420
35421         * modules/snprintf-posix-tests: New file.
35422         * tests/test-snprintf-posix.c: New file.
35423
35424         * modules/snprintf-posix: New file.
35425         * m4/snprintf-posix.m4: New file.
35426         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
35427         gl_FUNC_SNPRINTF.
35428         (gl_FUNC_SNPRINTF): Invoke it.
35429         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
35430         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
35431         is set.
35432         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
35433
35434 2007-03-06  Bruno Haible  <bruno@clisp.org>
35435
35436         * modules/vsnprintf-posix-tests: New file.
35437         * tests/test-vsnprintf-posix.c: New file.
35438         * tests/test-snprintf-posix.h: New file.
35439
35440         * modules/vsnprintf-posix: New file.
35441         * m4/vsnprintf-posix.m4: New file.
35442         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
35443         gl_FUNC_VSNPRINTF.
35444         (gl_FUNC_VSNPRINTF): Invoke it.
35445         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
35446         * lib/stdio_.h (vsnprintf): Define as a replacement if
35447         REPLACE_VSNPRINTF is set.
35448         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
35449
35450 2007-03-06  Bruno Haible  <bruno@clisp.org>
35451
35452         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
35453         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
35454
35455 2007-03-06  Bruno Haible  <bruno@clisp.org>
35456
35457         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
35458         (asinl): Declare also if HAVE_DECL_ASINL is set.
35459         (atanl): Declare also if HAVE_DECL_ATANL is set.
35460         (ceill): Declare also if HAVE_DECL_CEILL is set.
35461         (cosl): Declare also if HAVE_DECL_COSL is set.
35462         (expl): Declare also if HAVE_DECL_EXPL is set.
35463         (floorl): Declare also if HAVE_DECL_FLOORL is set.
35464         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
35465         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
35466         (logl): Declare also if HAVE_DECL_LOGL is set.
35467         (sinl): Declare also if HAVE_DECL_SINL is set.
35468         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
35469         (tanl): Declare also if HAVE_DECL_TANL is set.
35470         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
35471         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
35472         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
35473         declaration of frexpl, ldexpl.
35474         * modules/printf-frexpl (Depends-on): Add math.
35475         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
35476
35477 2007-03-05  Bruno Haible  <bruno@clisp.org>
35478
35479         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
35480         frexpl and ldexpl are declared.
35481         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
35482
35483 2007-03-05  Bruno Haible  <bruno@clisp.org>
35484
35485         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
35486         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
35487
35488 2007-03-05  Bruno Haible  <bruno@clisp.org>
35489
35490         * lib/stdio_.h: Include <stddef.h>.
35491
35492 2007-03-05  Bruno Haible  <bruno@clisp.org>
35493
35494         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
35495
35496 2007-03-05  Bruno Haible  <bruno@clisp.org>
35497
35498         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
35499         NetBSD 4, from Ralf Wildenhues.
35500
35501 2007-03-04  Bruno Haible  <bruno@clisp.org>
35502
35503         * lib/vasprintf.h: Update #if logic for the case when the functions
35504         exist but are overridden.
35505
35506 2007-03-04  Bruno Haible  <bruno@clisp.org>
35507
35508         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
35509         implementations: glibc-2.4 and MacOS X 10.3.
35510         * tests/test-vasnprintf-posix.c (test_function): Test also the case
35511         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
35512         * tests/test-vasprintf-posix.c (test_function): Likewise.
35513
35514 2007-03-04  Bruno Haible  <bruno@clisp.org>
35515
35516         * modules/vasprintf-posix-tests: New file.
35517         * tests/test-vasprintf-posix.c: New file.
35518
35519         * modules/vasprintf-posix: New file.
35520         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
35521         defined.
35522         * m4/vasprintf-posix.m4: New file.
35523         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
35524         gl_FUNC_VASPRINTF.
35525         (gl_FUNC_VASPRINTF): Invoke it.
35526         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
35527         here.
35528         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
35529
35530 2007-03-04  Bruno Haible  <bruno@clisp.org>
35531
35532         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
35533         REPLACE_GETTIMEOFDAY.
35534         * modules/sys_time (Makefile.am): Likewise.
35535         * m4/sys_time_h.m4: Likewise.
35536         * m4/gettimeofday.m4: Likewise.
35537
35538 2007-03-04  Bruno Haible  <bruno@clisp.org>
35539
35540         * modules/vasnprintf-posix-tests: New file.
35541         * tests/test-vasnprintf-posix.c: New file.
35542
35543         * modules/vasnprintf-posix: New file.
35544         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
35545         printf-frexpl.h.
35546         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
35547         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
35548         REPLACE_VASNPRINTF is defined.
35549         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
35550         gl_FUNC_VASNPRINTF.
35551         (gl_FUNC_VASNPRINTF): Invoke it.
35552         * m4/vasnprintf-posix.m4: New file.
35553         * m4/printf.m4: New file.
35554
35555 2007-03-04  Bruno Haible  <bruno@clisp.org>
35556
35557         Compile progreloc.c only if --enable-relocatable is specified.
35558         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
35559         if --enable-relocatable was specified.
35560         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
35561         lib_SOURCES.
35562
35563 2007-03-04  Jim Meyering  <jim@meyering.net>
35564
35565         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
35566         Use it consistently, rather than enumerating errno constants.
35567
35568 2007-03-04  Bruno Haible  <bruno@clisp.org>
35569
35570         * modules/xvasprintf-tests: New file.
35571         * tests/test-xvasprintf.c: New file.
35572
35573         * modules/vasprintf-tests: New file.
35574         * tests/test-vasprintf.c: New file.
35575
35576         * modules/vasnprintf-tests: New file.
35577         * tests/test-vasnprintf.c: New file.
35578
35579         * modules/vsnprintf-tests: New file.
35580         * tests/test-vsnprintf.c: New file.
35581
35582         * modules/snprintf-tests: New file.
35583         * tests/test-snprintf.c: New file.
35584
35585 2007-03-04  Bruno Haible  <bruno@clisp.org>
35586
35587         Compile relocatable.c only if --enable-relocatable is specified.
35588         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
35589         gl_RELOCATABLE_LIBRARY.
35590         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
35591         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
35592         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
35593         gl_RELOCATABLE_LIBRARY.
35594         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
35595         (Makefile.am): Remove lib_SOURCES.
35596         * modules/relocatable-lib-lgpl (configure.ac): Invoke
35597         gl_RELOCATABLE_LIBRARY.
35598         (Makefile.am): Remove lib_SOURCES.
35599         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
35600         always.
35601         * modules/relocatable-prog-wrapper (configure.ac): Invoke
35602         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
35603
35604 2007-03-04  Bruno Haible  <bruno@clisp.org>
35605
35606         * modules/argmatch-tests: New file.
35607         * tests/test-argmatch.c: New file.
35608
35609         * tests/test-allocsa.c (main): Halve the number of loop runs.
35610
35611         * modules/alloca-opt-tests: New file.
35612         * tests/test-alloca-opt.c: New file.
35613
35614 2007-03-04  Jim Meyering  <jim@meyering.net>
35615
35616         Work around difference between Linux ACLs and Solaris 10 ZFS.
35617         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
35618         for EINVAL.
35619
35620 2007-03-03  Bruno Haible  <bruno@clisp.org>
35621
35622         * modules/relocatable-prog (Depends-on): Add back progreloc's
35623         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
35624
35625 2007-03-03  Bruno Haible  <bruno@clisp.org>
35626
35627         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
35628         * modules/relocatable-lib: New file.
35629
35630 2007-03-03  Bruno Haible  <bruno@clisp.org>
35631
35632         * modules/relocatable-prog: Renamed from modules/relocatable.
35633         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
35634
35635 2007-03-03  Bruno Haible  <bruno@clisp.org>
35636
35637         * modules/relocatable-script (Files): Add doc/relocatable.texi,
35638         m4/relocatable-lib.m4.
35639         (Depends-on): Remove 'relocatable'.
35640         (configure.ac): Add gl_RELOCATABLE_NOP.
35641
35642 2007-03-03  Bruno Haible  <bruno@clisp.org>
35643
35644         * modules/relocatable-prog-wrapper: New file.
35645         * modules/relocatable (Depends-on): Add it. Remove all other
35646         dependencies except progname.
35647         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
35648
35649         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
35650         (gl_FUNC_STRERROR): Nop.
35651         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
35652
35653         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
35654         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
35655
35656         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
35657         (gl_FUNC_READLINK): Update.
35658
35659         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
35660
35661 2007-03-03  Bruno Haible  <bruno@clisp.org>
35662
35663         * lib/xreadlink.c: Include <unistd.h> unconditionally.
35664         * modules/xreadlink (Depends-on): Add unistd.
35665         * modules/xreadlink-with-size (Depends-on): Likewise.
35666
35667 2007-03-03  Bruno Haible  <bruno@clisp.org>
35668
35669         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
35670         extracted from gt_FUNC_SETENV.
35671         (gt_FUNC_SETENV): Remove macro.
35672         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
35673         remove gt_FUNC_SETENV.
35674
35675 2007-03-03  Bruno Haible  <bruno@clisp.org>
35676
35677         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
35678         ENABLE_RELOCATABLE here.
35679         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
35680
35681 2007-03-03  Bruno Haible  <bruno@clisp.org>
35682
35683         * modules/rbtreehash-list-tests (Depends-on): Add progname.
35684         * tests/test-rbtreehash_list.c: Include progname.h.
35685         (main): Call set_program_name.
35686
35687         * modules/rbtree-oset-tests (Depends-on): Add progname.
35688         * tests/test-rbtree_oset.c: Include progname.h.
35689         (main): Call set_program_name.
35690
35691         * modules/rbtree-list-tests (Depends-on): Add progname.
35692         * tests/test-rbtree_list.c: Include progname.h.
35693         (main): Call set_program_name.
35694
35695         * modules/linked-list-tests (Depends-on): Add progname.
35696         * tests/test-linked_list.c: Include progname.h.
35697         (main): Call set_program_name.
35698
35699 2007-03-03  Bruno Haible  <bruno@clisp.org>
35700
35701         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
35702         All uses of __restrict changed to _Restrict_.
35703         * lib/glob_.h (__restrict): Remove macro.
35704
35705 2007-03-02  Bruno Haible  <bruno@clisp.org>
35706
35707         * modules/gettext (configure.ac): Require gettext infrastructure
35708         from version 0.16.1.
35709
35710 2007-03-02  Bruno Haible  <bruno@clisp.org>
35711
35712         * modules/linkedhash-list-tests (Depends-on): Add progname.
35713         * tests/test-linkedhash_list.c: Include progname.h.
35714         (main): Call set_program_name.
35715
35716         * modules/carray-list-tests (Depends-on): Add progname.
35717         * tests/test-carray_list.c: Include progname.h.
35718         (main): Call set_program_name.
35719
35720         * modules/avltreehash-list-tests (Depends-on): Add progname.
35721         * tests/test-avltreehash_list.c: Include progname.h.
35722         (main): Call set_program_name.
35723
35724         * modules/avltree-oset-tests (Depends-on): Add progname.
35725         * tests/test-avltree_oset.c: Include progname.h.
35726         (main): Call set_program_name.
35727
35728         * modules/avltree-list-tests (Depends-on): Add progname.
35729         * tests/test-avltree_list.c: Include progname.h.
35730         (main): Call set_program_name.
35731
35732         * modules/array-oset-tests (Depends-on): Add progname.
35733         * tests/test-array_oset.c: Include progname.h.
35734         (main): Call set_program_name.
35735
35736         * modules/array-list-tests (Depends-on): Add progname.
35737         * tests/test-array_list.c: Include progname.h.
35738         (main): Call set_program_name.
35739
35740         * modules/argp-tests (Depends-on): Add progname.
35741         * tests/test-argp.c: Include argp.h first. Include progname.h.
35742         (main): Call set_program_name.
35743
35744 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
35745
35746         * doc/gnulib-tool.texi (Initial import): Reword description of
35747         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
35748         limited effect even if defined after the first system include.
35749
35750 2007-03-01  Bruno Haible  <bruno@clisp.org>
35751
35752         * build-aux/config.libpath: Update to libtool-1.5.22.
35753         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35754
35755 2007-03-01  Bruno Haible  <bruno@clisp.org>
35756
35757         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
35758         foo_CFLAGS.
35759         Reported by Ralf Wildenhues.
35760
35761 2007-03-01  Bruno Haible  <bruno@clisp.org>
35762
35763         * build-aux/install-reloc: Remove object files left over by some
35764         compilers.
35765         Reported by Ralf Wildenhues.
35766
35767 2007-03-01  Bruno Haible  <bruno@clisp.org>
35768
35769         * build-aux/install-reloc: Break long lines.
35770
35771 2007-03-01  Bruno Haible  <bruno@clisp.org>
35772
35773         * doc/relocatable.texi: Document that it may not work on OpenBSD.
35774         Reported by Ralf Wildenhues.
35775
35776 2007-03-01  Bruno Haible  <bruno@clisp.org>
35777
35778         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
35779         include ordering constraints.
35780
35781 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
35782
35783         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
35784         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
35785         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
35786         as another example.
35787         * lib/time_.h: Fix misspelling.
35788         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
35789         Require gl_HEADER_TIME_H_DEFAULTS.
35790         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
35791         * m4/time_r.m4 (gl_TIME_R): Likewise.
35792         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
35793
35794 2007-03-01  Bruno Haible  <bruno@clisp.org>
35795
35796         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
35797         * m4/utimens.m4 (gl_UTIMENS): Likewise.
35798
35799 2007-03-01  Jim Meyering  <jim@meyering.net>
35800
35801         * modules/xreadlink (Maintainer): Add my name.
35802         * modules/xreadlink-with-size (Depends-on): Alphabetize.
35803
35804 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
35805             Bruno Haible  <bruno@clisp.org>
35806
35807         * build-aux/install-reloc: Compile also c-ctype.c.
35808         * build-aux/relocatable.sh.in: New file.
35809         * doc/relocatable.texi: New file.
35810         * doc/relocatable-maint.texi: New file.
35811         * doc/gnulib.texi: Include relocatable-maint.texi.
35812         * lib/progreloc.c: Include unistd.h unconditionally.
35813         * lib/relocwrapper.c: Include unistd.h unconditionally.
35814         Include c-ctype.h.
35815         (add_dotbin): Use c_tolower.
35816         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
35817         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
35818         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
35819         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
35820         to m4/relocatable-lib.m4.
35821         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
35822         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
35823         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
35824         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
35825         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
35826         * modules/relocatable: New file.
35827         * modules/relocatable-lib: New file.
35828         * modules/relocatable-script: New file.
35829
35830 2007-02-28  Bruno Haible  <bruno@clisp.org>
35831
35832         Import --enable-relocatable infrastructure.
35833         * build-aux/config.libpath: New file, from GNU gettext.
35834         * build-aux/install-reloc: New file, from GNU gettext.
35835         * build-aux/reloc-ldflags: New file, from GNU gettext.
35836         * lib/relocatable.h: New file, from GNU gettext.
35837         * lib/relocatable.c: New file, from GNU gettext.
35838         * lib/relocwrapper.c: New file, from GNU gettext.
35839         * m4/relocatable.m4: New file, from GNU gettext.
35840
35841 2007-02-28  Bruno Haible  <bruno@clisp.org>
35842
35843         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
35844
35845         * modules/xreadlink: New file, from GNU gettext with modifications.
35846         * lib/xreadlink.c: New file, from GNU gettext.
35847         * lib/xreadlink.h: Add comments.
35848         (xreadlink): New declaration.
35849
35850         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
35851         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
35852         lib/xreadlink-with-size.c.
35853         (configure.ac): Remove gl_XREADLINK invocation.
35854         (Makefile.am): Augment lib_SOURCES.
35855         * m4/xreadlink.m4: Remove file.
35856         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
35857         (xreadlink_with_size): Renamed from xreadink.
35858         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
35859         * modules/canonicalize (Depends-on): Replace xreadlink with
35860         xreadlink-with-size.
35861         * lib/canonicalize.c (canonicalize_filename_mode): Update.
35862
35863 2007-02-25  Jim Meyering  <jim@meyering.net>
35864
35865         * build-aux/announce-gen: When complaining about excess arguments,
35866         list them.
35867
35868 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
35869
35870         * README: Document signed integer overflow situation more
35871         accurately.
35872
35873 2007-02-25  Bruno Haible  <bruno@clisp.org>
35874
35875         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
35876         'a' or 'A' conversion.
35877
35878 2007-02-25  Bruno Haible  <bruno@clisp.org>
35879
35880         * modules/filename: Renamed from modules/pathname.
35881         (Files): Replace lib/pathname.h with lib/filename.h. Replace
35882         lib/concatpath.c with lib/concat-filename.c.
35883         (Makefile.am): Update.
35884         (Include): Replace pathname.h with filename.h.
35885         * lib/filename.h: Renamed from lib/pathname.h.
35886         (concatenated_filename): Renamed from concatenated_pathname.
35887         * lib/concat-filename.c: Renamed from lib/concatpath.c.
35888         (concatenated_filename): Renamed from concatenated_pathname.
35889         * lib/findprog.c: Include filename.h instead of pathname.h.
35890         (find_in_path): Update.
35891         * lib/javacomp.c: Include filename.h instead of pathname.h.
35892         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
35893         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
35894         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
35895         is_oldgcj_14_13_usable, is_javac_usable): Update.
35896         * lib/javaexec.c: Include filename.h instead of pathname.h.
35897         (execute_java_class): Update.
35898         * modules/findprog: Update.
35899         * modules/javacomp: Update.
35900         * modules/javaexec: Update.
35901         * MODULES.html.sh (File system functions): Add 'filename', remove
35902         'pathname'.
35903
35904 2007-02-25  Bruno Haible  <bruno@clisp.org>
35905
35906         * modules/printf-frexpl-tests: New file.
35907         * tests/test-printf-frexpl.c: New file.
35908
35909         * modules/printf-frexpl: New file.
35910         * lib/printf-frexpl.h: New file.
35911         * lib/printf-frexpl.c: New file.
35912         * m4/printf-frexpl.m4: New file.
35913
35914 2007-02-25  Bruno Haible  <bruno@clisp.org>
35915
35916         * modules/printf-frexp-tests: New file.
35917         * tests/test-printf-frexp.c: New file.
35918
35919         * modules/printf-frexp: New file.
35920         * lib/printf-frexp.h: New file.
35921         * lib/printf-frexp.c: New file.
35922         * m4/printf-frexp.m4: New file.
35923
35924 2007-02-25  Bruno Haible  <bruno@clisp.org>
35925
35926         Assume automake >= 1.10 for the tests.
35927         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
35928         * modules/arctwo-tests: Likewise.
35929         * modules/argp-tests: Likewise.
35930         * modules/avltree-list-tests: Likewise.
35931         * modules/avltree-oset-tests: Likewise.
35932         * modules/avltreehash-list-tests: Likewise.
35933         * modules/carray-list-tests: Likewise.
35934         * modules/crc-tests: Likewise.
35935         * modules/des-tests: Likewise.
35936         * modules/gc-arcfour-tests: Likewise.
35937         * modules/gc-arctwo-tests: Likewise.
35938         * modules/gc-des-tests: Likewise.
35939         * modules/gc-hmac-md5-tests: Likewise.
35940         * modules/gc-hmac-sha1-tests: Likewise.
35941         * modules/gc-md2-tests: Likewise.
35942         * modules/gc-md4-tests: Likewise.
35943         * modules/gc-md5-tests: Likewise.
35944         * modules/gc-pbkdf2-sha1-tests: Likewise.
35945         * modules/gc-rijndael-tests: Likewise.
35946         * modules/gc-sha1-tests: Likewise.
35947         * modules/gc-tests: Likewise.
35948         * modules/getaddrinfo-tests: Likewise.
35949         * modules/hmac-md5-tests: Likewise.
35950         * modules/hmac-sha1-tests: Likewise.
35951         * modules/linked-list-tests: Likewise.
35952         * modules/linkedhash-list-tests: Likewise.
35953         * modules/lock-tests: Likewise.
35954         * modules/md2-tests: Likewise.
35955         * modules/md4-tests: Likewise.
35956         * modules/md5-tests: Likewise.
35957         * modules/rbtree-list-tests: Likewise.
35958         * modules/rbtree-oset-tests: Likewise.
35959         * modules/rbtreehash-list-tests: Likewise.
35960         * modules/read-file-tests: Likewise.
35961         * modules/rijndael-tests: Likewise.
35962         * modules/stdint-tests: Likewise.
35963         * modules/tls-tests: Likewise.
35964
35965 2007-02-24  Bruno Haible  <bruno@clisp.org>
35966
35967         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
35968         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
35969         function; instead check whether isnan with a double argument links.
35970         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
35971         function; instead check whether isnan with a 'long double' argument
35972         links.
35973         Reported by Eric Blake <ebb9@byu.net>.
35974
35975 2007-02-24  Bruno Haible  <bruno@clisp.org>
35976
35977         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
35978         defined.
35979         * lib/isnanl.c: Remove all code. Just include isnan.c.
35980         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
35981
35982 2007-02-25  Jim Meyering  <jim@meyering.net>
35983
35984         Avoid conflicting types for 'unsetenv' on FreeBSD.
35985         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
35986         conflicting with FreeBSD's (5.0 and 6.1) function declaration
35987         in stdlib.h.
35988
35989 2007-02-24  Bruno Haible  <bruno@clisp.org>
35990
35991         * modules/isnanl-nolibm-tests: New file.
35992         * tests/test-isnanl.c: New file.
35993
35994         * modules/isnanl-nolibm: New file.
35995         * lib/isnanl.h: New file.
35996         * lib/isnanl.c: New file.
35997         * m4/isnanl.m4: New file.
35998
35999 2007-02-24  Bruno Haible  <bruno@clisp.org>
36000
36001         * modules/isnan-nolibm-tests: New file.
36002         * tests/test-isnan.c: New file.
36003
36004         * modules/isnan-nolibm: New file.
36005         * lib/isnan.h: New file.
36006         * lib/isnan.c: New file.
36007         * m4/isnan.m4: New file.
36008
36009 2007-02-24  Bruno Haible  <bruno@clisp.org>
36010
36011         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
36012         assume that an exponent fits in 20 bits.
36013
36014 2007-02-24  Jim Meyering  <jim@meyering.net>
36015
36016         * m4/regex.m4: Update the description of the configure-time option,
36017         --without-included-regex, to state accurately what the defaults are,
36018         and perhaps to give people an idea why using this option is risky.
36019
36020 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
36021
36022         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
36023         loops on small arguments.  This attempts to avoid the problem
36024         Bruno Haible reported for AIX 4.3.2 in
36025         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
36026
36027 2007-02-23  Bruno Haible  <bruno@clisp.org>
36028
36029         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
36030         Needed for help2man.
36031
36032 2007-02-23  Karl Berry  <karl@gnu.org>
36033
36034         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
36035         exists, foo.h should be cvs-ignored, not committed.
36036
36037 2007-02-23  Eric Blake  <ebb9@byu.net>
36038
36039         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
36040         * lib/stat-time.h (includes): Likewise.
36041         * lib/utimecmp.c (includes): Likewise.
36042         * lib/utimens.h (includes): Likewise.
36043         * lib/getdate.y (includes): Also include "timespec.h" for use
36044         internal to the module.
36045         * modules/utimens (Depends-on): Revert yesterday's patch.
36046         * modules/nanosleep (Depends-on): Add missing dependency.
36047
36048 2007-02-22  Bruno Haible  <bruno@clisp.org>
36049
36050         * lib/glob.c: Don't include getlogin_r.h.
36051
36052 2007-02-22  Jim Meyering  <jim@meyering.net>
36053
36054         * modules/utimens (Depends-on): Add timespec, required for
36055         utimens.h's inclusion of timespec.h.
36056
36057 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
36058
36059         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
36060         long unreadable paths in GNU/Linux.  Problem reported by Andreas
36061         Schwab in
36062         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
36063         I'll try to think of a better way to fix the Solaris problem.
36064
36065         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
36066         like glibc; on Solaris 10, it fails with errno == EINVAL.
36067         POSIX says the behavior is unspecified if the first argument is NULL,
36068         so play it safe and never pass NULL to the system getcwd.
36069
36070 2007-02-21  Jim Meyering  <jim@meyering.net>
36071
36072         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
36073         of gettimeofday.  It would conflict with the one now always
36074         provided via sys_time_.h.  Reported by Matthew Woehlke, as
36075         an IRIX 6.5 build failure.
36076
36077 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
36078
36079         Minor fixups to port to Solaris 10 with Sun C 5.8.
36080         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
36081         * modules/getcwd (Depends-on): Add dirfd.
36082         * lib/putenv.c (putenv): #undef it.
36083         (rpl_putenv): New decl.
36084         (malloc, free): Include <stdlib.h> rather than prototyping separately.
36085
36086 2007-02-20  Bruno Haible  <bruno@clisp.org>
36087
36088         * modules/stdio-tests: New file.
36089         * tests/test-stdio.c: New file.
36090
36091         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
36092         (Depends-on): Add stdio.
36093         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36094         (Include): Use <stdio.h> instead of vsnprintf.h.
36095         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36096         HAVE_DECL_VSNPRINTF.
36097         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
36098
36099         * modules/snprintf (Files): Remove lib/snprintf.h.
36100         (Depends-on): Add stdio.
36101         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36102         (Include): Use <stdio.h> instead of snprintf.h.
36103         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36104         HAVE_DECL_SNPRINTF.
36105         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
36106         * lib/getaddrinfo.c: Likewise.
36107
36108         * modules/stdio: New file.
36109         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
36110         * lib/snprintf.h: Remove file.
36111         * lib/vsnprintf.h: Remove file.
36112         * lib/.cppi-disable: Remove snprintf.h.
36113         * m4/stdio_h.m4: New file.
36114         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
36115
36116 2007-02-20  Jim Meyering  <jim@meyering.net>
36117
36118         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
36119         used by e.g., mingw.  From Bruno Haible.
36120
36121 2007-02-19  Bruno Haible  <bruno@clisp.org>
36122
36123         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
36124         warnings.
36125         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36126
36127 2007-02-19  Bruno Haible  <bruno@clisp.org>
36128
36129         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
36130         from mingw users.
36131
36132 2007-02-19  Bruno Haible  <bruno@clisp.org>
36133
36134         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
36135         warnings.
36136         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
36137
36138 2007-02-19  Jim Meyering  <jim@meyering.net>
36139
36140         Don't use FD after a successful "fdopendir (fd)".
36141         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
36142         Reset it by calling dirfd on the just-obtained DIR*.
36143
36144         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
36145         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
36146
36147 2007-02-18  Bruno Haible  <bruno@clisp.org>
36148
36149         * lib/readlink.c: Include <unistd.h>.
36150         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
36151         HAVE_READLINK.
36152         * modules/readlink (Depends-on): Add unistd.
36153         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36154         (Include): Add <unistd.h>.
36155
36156         * lib/getlogin_r.h: Remove file.
36157         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
36158         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
36159         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
36160         HAVE_DECL_GETLOGIN_R.
36161         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
36162         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36163         (Include): Use <unistd.h> instead of getlogin_r.h.
36164
36165         * lib/getcwd.h: Remove file.
36166         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
36167         * lib/xgetcwd.c: Likewise.
36168         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
36169         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
36170         * modules/getcwd (Files): Remove lib/getcwd.h.
36171         (Depends-on): Add unistd.
36172         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36173         (Include): Use <unistd.h> instad of getcwd.h.
36174
36175         * lib/ftruncate.c: Include <unistd.h> first.
36176         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
36177         Set HAVE_FTRUNCATE.
36178         * modules/ftruncate (Depends-on): Add unistd.
36179         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36180
36181         * lib/fchdir.c: Include <unistd.h> first.
36182         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
36183         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
36184         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
36185         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36186         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
36187
36188         * lib/dup2.c: Include <unistd.h> first.
36189         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
36190         HAVE_DUP2.
36191         * modules/dup2 (Depends-on): Add unistd.
36192         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36193
36194         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
36195         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
36196         REPLACE_CHOWN. Don't define chown as a macro here.
36197         * modules/chown (Depends-on): Add unistd.
36198         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36199
36200         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
36201         Add definition for GL_LINK_WARNING.
36202         (chown, dup2): New declarations.
36203         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
36204         link warning.
36205         (ftruncate): New declaration.
36206         (getcwd): New declaration, taken from old getcwd.h.
36207         (getlogin_r): New declaration, taken from old getlogin_r.h.
36208         (readlink): New declaration.
36209         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
36210         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
36211         (gl_PREREQ_UNISTD): Remove macro.
36212         (gl_UNISTD_MODULE_INDICATOR): New macro.
36213         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
36214         many new variables. Don't set UNISTD_H.
36215         * modules/unistd (Description): Change.
36216         (Depends-on): Add link-warning.
36217         (configure.ac): Update.
36218         (Makefile.am): Create unistd.h always. Substitute many new variables
36219         into it.
36220
36221 2007-02-18  Bruno Haible  <bruno@clisp.org>
36222
36223         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
36224         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
36225         HAVE_GETSUBOPT.
36226         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
36227         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
36228         * lib/getsubopt.h: Remove file.
36229         * modules/getsubopt (Files): Remove lib/getsubopt.h.
36230         (Depends-on): Add stdlib.
36231         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36232         (Includes): Use <stdlib.h> instead of getsubopt.h.
36233         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
36234         Set HAVE_GETSUBOPT.
36235         * lib/getsubopt.c: Don't include getsubopt.h.
36236
36237 2007-02-18  Bruno Haible  <bruno@clisp.org>
36238
36239         * modules/fchdir (Depends-on): Add dup2.
36240
36241 2007-02-18  Bruno Haible  <bruno@clisp.org>
36242
36243         * lib/stdlib_.h: Handle glibc's special invocation convention
36244         specially.
36245
36246 2007-02-18  Bruno Haible  <bruno@clisp.org>
36247
36248         * modules/stdlib-tests: New file.
36249         * tests/test-stdlib.c: New file.
36250
36251         * modules/mkstemp (Files): Remove lib/mkstemp.h.
36252         (Depends-on): Add stdlib.
36253         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36254         (Includes): Use <stdlib.h> instead of mkstemp.h.
36255         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36256         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
36257         * lib/mkstemp.c: Don't include mkstemp.h.
36258         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
36259         * lib/stdlib--.h: Don't include mkstemp.h.
36260
36261         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
36262         (Depends-on): Add stdlib.
36263         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36264         (Includes): Use <stdlib.h> instead of mkdtemp.h.
36265         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36266         HAVE_MKDTEMP.
36267         * lib/mkdtemp.c: Don't include mkdtemp.h.
36268         * lib/clean-temp.c: Don't include mkdtemp.h.
36269
36270         * modules/exit (Files): Remove lib/exit.h.
36271         (Depends-on): Add stdlib.
36272         (Makefile.am): Remove lib_SOURCES.
36273         (Include): Use <stdlib.h> instead of exit.h.
36274         * lib/argmatch.c: Don't include exit.h.
36275         * lib/execute.c: Likewise.
36276         * lib/pagealign_alloc.c: Likewise.
36277         * lib/pipe.c: Likewise.
36278         * lib/wait-process.c: Likewise.
36279         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
36280         * lib/exitfail.c: Likewise.
36281         * lib/savewd.c: Likewise.
36282         * lib/xsetenv.c: Likewise.
36283
36284         * modules/stdlib: New file.
36285         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
36286         and extra comments about mkstemp().
36287         * lib/exit.h: Remove file.
36288         * lib/mkdtemp.h: Remove file.
36289         * lib/mkstemp.h: Remove file.
36290         * m4/stdlib_h.m4: New file.
36291         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
36292
36293 2007-02-18  Bruno Haible  <bruno@clisp.org>
36294
36295         * modules/math-tests: New file.
36296         * tests/test-math.c: New file.
36297
36298         * modules/math: New file.
36299         * modules/mathl (Files): Remove lib/mathl.h.
36300         (Depends-on): Add math.
36301         (Makefile.am): Don't mention mathl.h.
36302         (Include): Use <math.h> instead of mathl.h.
36303         * lib/math_.h: New file.
36304         * lib/mathl.h: Remove file.
36305         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
36306         mathl.h.
36307         * lib/asinl.c: Likewise.
36308         * lib/atanl.c: Likewise.
36309         * lib/ceill.c: Likewise.
36310         * lib/cosl.c: Likewise.
36311         * lib/expl.c: Likewise.
36312         * lib/floorl.c: Likewise.
36313         * lib/frexpl.c: Likewise.
36314         * lib/ldexpl.c: Likewise.
36315         * lib/logl.c: Likewise.
36316         * lib/sincosl.c: Likewise.
36317         * lib/sinl.c: Likewise.
36318         * lib/sqrtl.c: Likewise.
36319         * lib/tanl.c: Likewise.
36320         * lib/trigl.c: Likewise.
36321         * m4/math_h.m4: New file.
36322         * MODULES.html.sh (Mathematics): Add math.
36323
36324 2007-02-17  Bruno Haible  <bruno@clisp.org>
36325
36326         * modules/wctype-tests: New file.
36327         * tests/test-wctype.c: New file.
36328
36329         * modules/wchar-tests: New file.
36330         * tests/test-wchar.c: New file.
36331
36332         * modules/unistd-tests: New file.
36333         * tests/test-unistd.c: New file.
36334
36335         * modules/time-tests: New file.
36336         * tests/test-time.c: New file.
36337
36338         * modules/sysexits-tests: New file.
36339         * tests/test-sysexits.c: New file.
36340
36341         * modules/sys_time-tests: New file.
36342         * tests/test-sys_time.c: New file.
36343
36344         * modules/sys_stat-tests: New file.
36345         * tests/test-sys_stat.c: New file.
36346
36347         * modules/sys_socket-tests: New file.
36348         * tests/test-sys_socket.c: New file.
36349
36350         * modules/sys_select-tests: New file.
36351         * tests/test-sys_select.c: New file.
36352
36353         * modules/string-tests: New file.
36354         * tests/test-string.c: New file.
36355
36356         * modules/stdbool-tests: New file.
36357         * tests/test-stdbool.c: New file.
36358
36359         * modules/netinet_in-tests: New file.
36360         * tests/test-netinet_in.c: New file.
36361
36362         * modules/inttypes-tests: New file.
36363         * tests/test-inttypes.c: New file.
36364
36365         * modules/fcntl-tests: New file.
36366         * tests/test-fcntl.c: New file.
36367
36368         * modules/byteswap-tests: New file.
36369         * tests/test-byteswap.c: New file.
36370
36371         * modules/arpa_inet-tests: New file.
36372         * tests/test-arpa_inet.c: New file.
36373
36374 2007-02-17  Bruno Haible  <bruno@clisp.org>
36375
36376         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
36377         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
36378         if the corresponding module is not enabled. Emit link warnings if
36379         the function is used nevertheless.
36380         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
36381         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
36382         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
36383         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
36384         * modules/inttypes (Depends-on): Add link-warning.
36385         (Makefile.am): Copy the contents of build-aux/link-warning.h into
36386         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
36387         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
36388         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
36389         * modules/imaxdiv (configure.ac): Likewise.
36390         * modules/strtoimax (configure.ac): Likewise.
36391         * modules/strtoumax (configure.ac): Likewise.
36392
36393 2007-02-17  Bruno Haible  <bruno@clisp.org>
36394
36395         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
36396         gl_STRING_MODULE_INDICATOR_DEFAULTS.
36397         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
36398         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
36399
36400 2007-02-17  Bruno Haible  <bruno@clisp.org>
36401
36402         * modules/link-warning: New file.
36403         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
36404         * lib/string_.h (GL_LINK_WARNING): Remove definition.
36405         * modules/string (Depends-on): Add link-warning.
36406         (Makefile.am): Copy the contents of build-aux/link-warning.h into
36407         string.h.
36408         * MODULES.html.sh (Support for building libraries and executables): Add
36409         link-warning.
36410
36411 2007-02-17  Bruno Haible  <bruno@clisp.org>
36412
36413         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
36414         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
36415         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
36416         long lines.
36417
36418 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
36419             Bruno Haible  <bruno@clisp.org>
36420
36421         * modules/tmpfile: New file.
36422         * lib/tmpfile.c: New file.
36423         * m4/tmpfile.m4: New file.
36424         * MODULES.html.sh (func_all_modules): New section "Input/output".
36425
36426 2007-02-15  Bruno Haible  <bruno@clisp.org>
36427
36428         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
36429         (supports_delete_on_close): New function.
36430         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
36431
36432 2007-02-14  Bruno Haible  <bruno@clisp.org>
36433
36434         * modules/mbspcasecmp-tests: New file.
36435         * tests/test-mbspcasecmp.sh: New file.
36436         * tests/test-mbspcasecmp.c: New file.
36437
36438         New module mbspcasecmp.
36439         * modules/mbspcasecmp: New file.
36440         * lib/mbspcasecmp.c: New file.
36441         * lib/string_.h (strncasecmp): Change warning message.
36442         (mbspcasecmp): New declaration.
36443         * m4/mbspcasecmp.m4: New file.
36444         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36445         GNULIB_MBSPCASECMP.
36446         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
36447         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
36448
36449 2007-02-14  Bruno Haible  <bruno@clisp.org>
36450
36451         * modules/mbsncasecmp-tests: New file.
36452         * tests/test-mbsncasecmp.sh: New file.
36453         * tests/test-mbsncasecmp.c: New file.
36454
36455         New module mbsncasecmp.
36456         * modules/mbsncasecmp: New file.
36457         * lib/mbsncasecmp.c: New file.
36458         * lib/string_.h (mbsncasecmp): New declaration.
36459         * m4/mbsncasecmp.m4: New file.
36460         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36461         GNULIB_MBSNCASECMP.
36462         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
36463         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
36464
36465 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
36466
36467         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
36468         Verify that it doesn't overlap with our flags.
36469         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
36470         do not have the desired effect in multibyte locales; instead, use
36471         mbscasecmp.
36472         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
36473         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
36474         we don't require GNU fnmatch ourselves (if our users require it, they
36475         should do so explicitly).
36476
36477         Fix regex code so it doesn't rely on strcasecmp.
36478         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
36479         Otherwise, include gnulib's langinfo.h.
36480         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
36481         undesirable behavior in non-C locales.  Instead, rely on localecharset.
36482         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
36483         * modules/regex (FILES): Remove m4/codeset.m4.
36484         (Depends-on): Add localcharset.  Remove strcase.
36485
36486 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36487
36488         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
36489         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
36490
36491 2007-02-13  Bruno Haible  <bruno@clisp.org>
36492
36493         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
36494         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36495
36496 2007-02-12  Bruno Haible  <bruno@clisp.org>
36497
36498         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
36499         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
36500         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
36501         time warning rather than a link error.
36502
36503 2007-02-12  Bruno Haible  <bruno@clisp.org>
36504
36505         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
36506         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36507         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36508
36509 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
36510
36511         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
36512         args, not 2.
36513
36514 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
36515
36516         New module 'time', so that apps can include <time.h> as per
36517         POSIX and GNU instead of separate include files like time_r.h
36518         and timegm.h.  This implementation tries out a simpler approach
36519         for replacing decls in standard include files (as compared to
36520         the string module), somewhat as an experiment.
36521
36522         * config/srclist.txt: Comment out mktime.c for now.
36523         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
36524         since it doesn't apply any more.  Use generic wording instead.
36525         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
36526         'time'.
36527         * lib/time_.h, m4/time_h.m4, modules/time: New files.
36528         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
36529         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
36530         Don't include <sys/types.h>; no longer needed since we assume C89.
36531         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
36532         * lib/strftime.c: Likewise.
36533         * lib/time_r.c: Likewise.
36534         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
36535         * lib/nanosleep.c: Include <time.h> first, to check interface.
36536         * lib/strptime.c: Likewise.
36537         * lib/time_r.c: Likewise.
36538         * lib/timegm.c: Likewise.
36539         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
36540         needed.
36541         * lib/timegm.c: Don't include timegm.h; no longer needed.
36542         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
36543         time.h now handles any problems in that area.
36544         (struct timespec, nanosleep): Remove; time.h now arranges for these.
36545         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
36546         that time.h defines struct timespec.
36547         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
36548         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
36549         handles that.
36550         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
36551         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
36552         needed.  Set REPLACE_LOCALTIME.
36553         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
36554         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
36555         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
36556         nanosleep; time_h.m4 now does that.  Don't require
36557         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
36558         module handles this now.
36559         * modules/getdate (Depends-on): Remove timespec.  Add time.
36560         * modules/nanosleep (Depends-on): Likewise.
36561         * modules/stat-time (Depends-on): Likewise.
36562         * modules/nanosleep (Include): Include time.h, not timespec.h.
36563         * modules/strptime (Files): Remove lib/strptime.h.
36564         (Depends-on): Add extensions, time.
36565         (Include): Include time.h, not strptime.h.
36566         * modules/time_r (Files): Remove lib/time_r.h.
36567         (Depends-on): Add time.
36568         (Include): Include time.h, not time_r.h.
36569         * modules/timegm: Likewise.
36570         * modules/timespec (Description): Now does timespec-related decls
36571         of our own, instead of struct timespec itself.
36572         (Depends-on): Add time; remove extensions.
36573         (Maintainer): Add self.
36574         * modules/utimecmp (Depends-on): Add time; remove timespec.
36575         * modules/utimens (Depends-on): Likewise.
36576         * modules/xnanosleep (Depends-on): Likewise.
36577
36578 2007-02-11  Bruno Haible  <bruno@clisp.org>
36579
36580         * lib/c-strstr.c: Include allocsa.h.
36581         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36582         * lib/c-strcasestr.c: Include allocsa.h.
36583         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36584         * lib/strcasestr.c: Include allocsa.h.
36585         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36586         * lib/mbsstr.c: Include allocsa.h.
36587         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
36588         allocsa/freesa instead of malloc/free.
36589         * lib/mbscasestr.c: Include allocsa.h.
36590         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
36591         allocsa/freesa instead of malloc/free.
36592         * modules/c-strstr (Depends-on): Add allocsa.
36593         * modules/c-strcasestr (Depends-on): Likewise.
36594         * modules/strcasestr (Depends-on): Likewise.
36595         * modules/mbsstr (Depends-on): Likewise.
36596         * modules/mbscasestr (Depends-on): Likewise.
36597
36598 2007-02-11  Bruno Haible  <bruno@clisp.org>
36599
36600         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
36601
36602         * modules/mbsspn-tests: New file.
36603         * tests/test-mbsspn.sh: New file.
36604         * tests/test-mbsspn.c: New file.
36605
36606 2007-02-11  Bruno Haible  <bruno@clisp.org>
36607
36608         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
36609
36610         * modules/mbspbrk-tests: New file.
36611         * tests/test-mbspbrk.sh: New file.
36612         * tests/test-mbspbrk.c: New file.
36613
36614 2007-02-11  Bruno Haible  <bruno@clisp.org>
36615
36616         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
36617         unneeded cast.
36618
36619         * modules/mbscspn-tests: New file.
36620         * tests/test-mbscspn.sh: New file.
36621         * tests/test-mbscspn.c: New file.
36622
36623 2007-02-11  Bruno Haible  <bruno@clisp.org>
36624
36625         * modules/mbscasecmp-tests: New file.
36626         * tests/test-mbscasecmp.sh: New file.
36627         * tests/test-mbscasecmp.c: New file.
36628
36629 2007-02-11  Bruno Haible  <bruno@clisp.org>
36630
36631         Ensure O(n) worst-case complexity of mbscasestr.
36632         * lib/mbscasestr.c: Include stdbool.h.
36633         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
36634         functions.
36635         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
36636         the bookkeeping indicates that it's worth it.
36637         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
36638
36639         * modules/mbscasestr-tests: New file.
36640         * tests/test-mbscasestr1.c: New file.
36641         * tests/test-mbscasestr2.sh: New file.
36642         * tests/test-mbscasestr2.c: New file.
36643         * tests/test-mbscasestr3.sh: New file.
36644         * tests/test-mbscasestr3.c: New file.
36645         * tests/test-mbscasestr4.sh: New file.
36646         * tests/test-mbscasestr4.c: New file.
36647         * m4/locale-tr.m4: New file.
36648
36649 2007-02-11  Bruno Haible  <bruno@clisp.org>
36650
36651         Ensure O(n) worst-case complexity of mbsstr.
36652         * lib/mbsstr.c: Include stdbool.h.
36653         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
36654         functions.
36655         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
36656         bookkeeping indicates that it's worth it.
36657         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
36658
36659         * modules/mbsstr-tests: New file.
36660         * tests/test-mbsstr1.c: New file.
36661         * tests/test-mbsstr2.sh: New file.
36662         * tests/test-mbsstr2.c: New file.
36663         * tests/test-mbsstr3.sh: New file.
36664         * tests/test-mbsstr3.c: New file.
36665         * m4/locale-fr.m4: New file.
36666
36667 2007-02-11  Bruno Haible  <bruno@clisp.org>
36668
36669         * lib/mbsrchr.c (mbsrchr): Fix bug.
36670
36671         * modules/mbsrchr-tests: New file.
36672         * tests/test-mbsrchr.sh: New file.
36673         * tests/test-mbsrchr.c: New file.
36674
36675 2007-02-11  Bruno Haible  <bruno@clisp.org>
36676
36677         * lib/mbschr.c (mbschr): Fix bug.
36678
36679         * modules/mbschr-tests: New file.
36680         * tests/test-mbschr.sh: New file.
36681         * tests/test-mbschr.c: New file.
36682         * m4/locale-zh.m4: New file.
36683
36684 2007-02-11  Bruno Haible  <bruno@clisp.org>
36685
36686         Support for copying multibyte string iterators.
36687         * lib/mbiter.h: Include <string.h>.
36688         (mbiter_multi_copy): New function.
36689         (mbi_copy): New macro.
36690         * lib/mbuiter.h: Include <string.h>.
36691         (mbuiter_multi_copy): New function.
36692         (mbui_copy): New macro.
36693
36694 2007-02-11  Bruno Haible  <bruno@clisp.org>
36695
36696         New module mbslen.
36697         * modules/mbslen: New file.
36698         * lib/mbslen.c: New file.
36699         * lib/string_.h (mbslen): New declaration.
36700         * m4/mbslen.m4: New file.
36701         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36702         GNULIB_MBSLEN.
36703         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
36704         * MODULES.html.sh (Internationalization functions): Add mbslen.
36705
36706 2007-02-11  Bruno Haible  <bruno@clisp.org>
36707
36708         Ensure O(n) worst-case complexity of strcasestr substitute.
36709         * lib/strcasestr.c: Include stdbool.h.
36710         (knuth_morris_pratt): New function.
36711         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
36712         bookkeeping indicates that it's worth it.
36713         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
36714
36715         * modules/strcasestr-tests: New file.
36716         * tests/test-strcasestr.c: New file.
36717
36718 2007-02-11  Bruno Haible  <bruno@clisp.org>
36719
36720         Ensure O(n) worst-case complexity of c_strcasestr.
36721         * lib/c-strcasestr.c: Include stdbool.h, string.h.
36722         (knuth_morris_pratt): New function.
36723         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
36724         the bookkeeping indicates that it's worth it.
36725         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
36726
36727         * modules/c-strcasestr-tests: New file.
36728         * tests/test-c-strcasestr.c: New file.
36729
36730 2007-02-11  Bruno Haible  <bruno@clisp.org>
36731
36732         Ensure O(n) worst-case complexity of c_strstr.
36733         * lib/c-strstr.c: Include stdbool.h, string.h.
36734         (knuth_morris_pratt): New function.
36735         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
36736         bookkeeping indicates that it's worth it.
36737         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
36738
36739         * lib/c-strstr.c: Complete rewrite for maintainability.
36740
36741         * modules/c-strstr-tests: New file.
36742         * tests/test-c-strstr.c: New file.
36743
36744 2007-02-11  Bruno Haible  <bruno@clisp.org>
36745
36746         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
36747         5.2.1 and earlier, whereby \055 was treated just like the range
36748         delimiter '-'.
36749         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36750
36751 2007-02-08  Bruno Haible  <bruno@clisp.org>
36752
36753         * modules/regex (Depends-on): Add stdbool.
36754         Reported by Dalibor Topic <robilad@kaffe.org>.
36755
36756 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
36757
36758         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
36759         Prefer returning from main to exiting from it.
36760         Remove unnecessary parens after sizeof.
36761
36762 2007-02-05  Bruno Haible  <bruno@clisp.org>
36763
36764         New module mbssep.
36765         * modules/mbssep: New file.
36766         * lib/mbssep.c: New file.
36767         * lib/string_.h (strsep): Add a conditional link warning.
36768         (mbssep): New declaration.
36769         * m4/mbssep.m4: New file.
36770         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36771         GNULIB_MBSSEP.
36772         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
36773         * MODULES.html.sh (Internationalization functions): Add mbssep.
36774
36775 2007-02-05  Bruno Haible  <bruno@clisp.org>
36776
36777         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
36778         Optimize search in case of 1 delimiter.
36779
36780 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
36781
36782         * lib/acl.h: Include sys/types.h before sys/acl.h.
36783
36784 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
36785
36786         Merge upstream fix for glibc bugzilla #3957:
36787
36788         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
36789
36790         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
36791         bit for RE_HAT_LISTS_NOT_NEWLINE.
36792         (build_charclass_op): Remove bogus comment.
36793
36794 2007-02-05  Simon Josefsson  <simon@josefsson.org>
36795
36796         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
36797
36798 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
36799
36800         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
36801         * lib/memmem.c [!defined _LIBC]: Include config.h.
36802
36803 2007-02-04  Bruno Haible  <bruno@clisp.org>
36804
36805         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
36806         warning message.
36807
36808 2007-02-04  Bruno Haible  <bruno@clisp.org>
36809
36810         New module mbstok_r.
36811         * modules/mbstok_r: New file.
36812         * lib/mbstok_r.c: New file.
36813         * lib/string_.h (strtok_r): Change argument names to match the
36814         comments. Add a conditional link warning.
36815         (mbstok_r): New declaration.
36816         * m4/mbstok_r.m4: New file.
36817         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36818         GNULIB_MBSTOK_R.
36819         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
36820         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
36821
36822 2007-02-04  Bruno Haible  <bruno@clisp.org>
36823
36824         New module mbsspn.
36825         * modules/mbsspn: New file.
36826         * lib/mbsspn.c: New file.
36827         * lib/string_.h (strspn): Add a conditional link warning.
36828         (mbsspn): New declaration.
36829         * m4/mbsspn.m4: New file.
36830         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36831         GNULIB_MBSSPN.
36832         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
36833         * MODULES.html.sh (Internationalization functions): Add mbsspn.
36834
36835 2007-02-04  Bruno Haible  <bruno@clisp.org>
36836
36837         New module mbspbrk.
36838         * modules/mbspbrk: New file.
36839         * lib/mbspbrk.c: New file.
36840         * lib/string_.h (strpbrk): Add a conditional link warning.
36841         (mbspbrk): New declaration.
36842         * m4/mbspbrk.m4: New file.
36843         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36844         GNULIB_MBSPBRK.
36845         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
36846         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
36847
36848 2007-02-04  Bruno Haible  <bruno@clisp.org>
36849
36850         New module mbscspn.
36851         * modules/mbscspn: New file.
36852         * lib/mbscspn.c: New file.
36853         * lib/string_.h (strcspn): Add a conditional link warning.
36854         (mbscspn): New declaration.
36855         * m4/mbscspn.m4: New file.
36856         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36857         GNULIB_MBSCSPN.
36858         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
36859         * MODULES.html.sh (Internationalization functions): Add mbscspn.
36860
36861 2007-02-04  Bruno Haible  <bruno@clisp.org>
36862
36863         New module mbscasestr, reduced goal of strcasestr.
36864         * modules/mbscasestr: New file.
36865         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
36866         (mbscasestr): Renamed from strcasestr.
36867         * lib/strcasestr.c: Don't include mbuiter.h.
36868         (strcasestr): Remove support for multibyte locales.
36869         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
36870         Change the conditional link warning.
36871         (mbscasestr): New declaration.
36872         * m4/mbscasestr.m4: New file.
36873         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
36874         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
36875         REPLACE_STRCASESTR.
36876         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
36877         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36878         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
36879         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
36880         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
36881         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
36882         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
36883         (Depends-on): Remove mbuiter.
36884         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
36885
36886 2007-02-04  Bruno Haible  <bruno@clisp.org>
36887
36888         Simplify handling of strncasecmp.
36889         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
36890         the conditional link warning.
36891         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36892         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
36893         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
36894         * modules/strcase (configure.ac): Don't invoke
36895         gl_STRING_MODULE_INDICATOR.
36896         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
36897
36898 2007-02-04  Bruno Haible  <bruno@clisp.org>
36899
36900         New module mbscasecmp, reduced goal of strcasecmp.
36901         * modules/mbscasecmp: New file.
36902         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
36903         (mbscasecmp): Renamed from strcasecmp.
36904         * lib/strcasecmp.c: Don't include mbuiter.h.
36905         (strcasecmp): Remove support for multibyte locales.
36906         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
36907         Change the conditional link warning.
36908         (mbscasecmp): New declaration.
36909         * m4/mbscasecmp.m4: New file.
36910         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
36911         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
36912         REPLACE_STRCASECMP.
36913         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
36914         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36915         GNULIB_MBSCASECMP.
36916         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
36917         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
36918         * modules/strcase (Files): Remove m4/mbrtowc.m4.
36919         (Depends-on): Remove mbuiter.
36920         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
36921
36922 2007-02-04  Bruno Haible  <bruno@clisp.org>
36923
36924         New module mbsstr. Remove module strstr.
36925         * modules/mbsstr: New file.
36926         * modules/strstr: Remove file.
36927         * lib/mbsstr.c: Renamed from lib/strstr.c.
36928         (mbsstr): Renamed from strstr.
36929         * lib/string_.h (strstr): Remove declaration. Change the conditional
36930         link warning.
36931         (mbsstr): New declaration.
36932         * m4/mbsstr.m4: New file.
36933         * m4/strstr.m4: Remove file.
36934         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
36935         REPLACE_STRSTR.
36936         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
36937         Don't initialize GNULIB_STRSTR.
36938         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
36939         substitute GNULIB_STRSTR and REPLACE_STRSTR.
36940         * MODULES.html.sh (Internationalization functions): Add mbsstr.
36941         (Support for systems lacking ANSI C 89): Remove strstr.
36942
36943 2007-02-04  Bruno Haible  <bruno@clisp.org>
36944
36945         New module mbsrchr.
36946         * modules/mbsrchr: New file.
36947         * lib/mbsrchr.c: New file.
36948         * lib/string_.h (strrchr): Add a conditional link warning.
36949         (mbsrchr): New declaration.
36950         * m4/mbsrchr.m4: New file.
36951         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36952         GNULIB_MBSRCHR.
36953         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
36954         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
36955
36956 2007-02-04  Bruno Haible  <bruno@clisp.org>
36957
36958         New module mbschr.
36959         * modules/mbschr: New file.
36960         * lib/mbschr.c: New file.
36961         * lib/string_.h (strchr): Add a conditional link warning.
36962         (mbschr): New declaration.
36963         * m4/mbschr.m4: New file.
36964         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36965         GNULIB_MBSCHR.
36966         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
36967         * MODULES.html.sh (Internationalization functions): Add mbschr.
36968
36969 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
36970
36971         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
36972
36973         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
36974
36975 2007-02-04  Bruno Haible  <bruno@clisp.org>
36976
36977         New module description section 'configure.ac-early'.
36978         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
36979         (func_get_autoconf_early_snippet): New function.
36980         (func_import, func_create_testdir): Use it. Remove special cases for
36981         modules 'extensions' and 'lock'.
36982         * modules/extensions (configure.ac-early): Require
36983         gl_USE_SYSTEM_EXTENSIONS.
36984         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
36985
36986 2007-02-04  Bruno Haible  <bruno@clisp.org>
36987
36988         Make use of gcj-4.3's -fsource and -ftarget option.
36989         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
36990         and if so try the options -fsource and -ftarget.
36991         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
36992         source_version, ftarget_option, target_version arguments.
36993         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
36994         (is_envjavac_oldgcj_14_14_usable): Renamed from
36995         is_envjavac_gcj_14_14_usable.
36996         (is_envjavac_oldgcj_14_13_usable): Renamed from
36997         is_envjavac_gcj_14_13_usable.
36998         (is_gcj_present): Update.
36999         (is_gcj_43, is_gcj43_usable): New functions.
37000         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
37001         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
37002         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
37003         try the options -fsource and -ftarget.
37004
37005 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
37006
37007         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
37008         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
37009         larger value.
37010
37011 2007-02-03  Jim Meyering  <jim@meyering.net>
37012
37013         Give tools a better chance to allocate space for very large buffers.
37014         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
37015
37016         Make pwd and readlink work also when run with an unreadable parent dir
37017         on systems with openat support.
37018         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
37019         provided getcwd function, even when we have openat support.
37020         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
37021
37022 2007-02-02  Bruno Haible  <bruno@clisp.org>
37023
37024         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37025         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
37026         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
37027         portability problems if one of these functions is only used on specific
37028         platforms.
37029         Reported by Paul Eggert.
37030
37031 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
37032
37033         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
37034         is causing more trouble than it's curing.
37035         * lib/regex_internal.h (__mempcpy): Remove.
37036         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
37037         (and make the code a tad smaller to boot).
37038         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
37039
37040 2007-02-02  Jim Meyering  <jim@meyering.net>
37041
37042         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
37043         section, not in the Makefile.am: one.
37044
37045 2007-02-02  Eric Blake  <ebb9@byu.net>
37046
37047         * lib/strchrnul.c: Always include config.h first.
37048
37049         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
37050         gnulib strstr is not necessary here.
37051
37052 2007-02-02  Simon Josefsson  <simon@josefsson.org>
37053
37054         * m4/socklen.m4: Fix typo.
37055
37056 2007-02-02  Eric Blake  <ebb9@byu.net>
37057
37058         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
37059         * modules/netinet_in (Makefile.am): Likewise.
37060
37061 2007-02-01  Bruno Haible  <bruno@clisp.org>
37062
37063         * lib/string_.h (GL_LINK_WARNING): New macro.
37064         (strcasecmp, strstr, strcasestr): If provided by the system,
37065         conditionally define as a macro that leads to a warning instead of to
37066         an error.
37067         (strncasecmp): Conditionally define as a macro that leads to a warning.
37068
37069 2007-02-01  Karl Berry  <karl@gnu.org>
37070
37071         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
37072
37073 2007-02-01  Bruno Haible  <bruno@clisp.org>
37074
37075         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
37076         renamings.
37077
37078 2007-02-01  Eric Blake  <ebb9@byu.net>
37079
37080         * modules/regex (Depends-on): Revert dependence on mempcpy.
37081         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
37082         module's definition of mempcpy.
37083         Reported by Paul Eggert.
37084
37085 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
37086
37087         * lib/string_.h: If the gnulib module XYZ is not present, undefine
37088         the symbol XYZ before redefining it.  This fixes a problem with
37089         programs that don't use XYZ, when compiled on systems that define
37090         XYZ to something else.
37091
37092 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
37093
37094         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
37095         occurs when "mkdir -m foo" creates a setgid directory that is (1)
37096         writeable to group or other and (2) is intended to have a special
37097         mode bit that is set or cleared.  In such a case, the directory
37098         should be neither group- nor other-writeable until the special
37099         mode bits are right.
37100
37101 2007-01-31  Eric Blake  <ebb9@byu.net>
37102
37103         * modules/mountlist (Depends-on): Add strstr.
37104
37105         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
37106         bug.
37107         * modules/string (Makefile.am): Remove redundant replacement.
37108         * modules/regex (Depends-on): Add mempcpy.
37109
37110 2007-01-31  Bruno Haible  <bruno@clisp.org>
37111
37112         New module description field 'Link'.
37113         * gnulib-tool (func_usage): Document --extract-link-directive.
37114         (sed_extract_prog): Recognize 'Link' directive.
37115         (func_get_link_directive): New function.
37116         (func_import): Show summary of link directives.
37117         Handle --extract-link-directive option.
37118         * modules/acl (Link): New section.
37119         * modules/clock-time (Link): New section.
37120         * modules/euidaccess (Link): New section.
37121         * modules/gettext (Link): New section.
37122         * modules/iconv (Link): New section.
37123         * modules/lock (Link): New section.
37124         * modules/nanosleep (Link): New section.
37125         * modules/readline (Link): New section.
37126
37127 2007-01-27  Bruno Haible  <bruno@clisp.org>
37128
37129         Enforce the use of gnulib modules for unportable <string.h> functions.
37130         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
37131         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
37132         (gl_HEADER_STRING_H_BODY): Require it.
37133         * lib/string_.h: If the gnulib module XYZ is not present, redefine
37134         the symbol XYZ to one that gives a link error.
37135         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
37136         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
37137         * modules/mempcpy (configure.ac): Likewise.
37138         * modules/memrchr (configure.ac): Likewise.
37139         * modules/stpcpy (configure.ac): Likewise.
37140         * modules/stpncpy (configure.ac): Likewise.
37141         * modules/strcase (configure.ac): Likewise.
37142         * modules/strcasestr (configure.ac): Likewise.
37143         * modules/strchrnul (configure.ac): Likewise.
37144         * modules/strdup (configure.ac): Likewise.
37145         * modules/strndup (configure.ac): Likewise.
37146         * modules/strnlen (configure.ac): Likewise.
37147         * modules/strpbrk (configure.ac): Likewise.
37148         * modules/strsep (configure.ac): Likewise.
37149         * modules/strstr (configure.ac): Likewise.
37150         * modules/strtok_r (configure.ac): Likewise.
37151
37152 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
37153
37154         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
37155
37156 2007-01-30  Jim Meyering  <jim@meyering.net>
37157
37158         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
37159
37160 2007-01-29  Bruno Haible  <bruno@clisp.org>
37161
37162         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
37163         * lib/execute.c: Likewise.
37164         * lib/pipe.c: Likewise.
37165         * lib/printf-args.h: Likewise.
37166         * lib/printf-args.c: Likewise.
37167         * lib/printf-parse.c: Likewise.
37168         * lib/vasnprintf.c: Likewise.
37169
37170 2007-01-29  Eric Blake  <ebb9@byu.net>
37171
37172         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
37173         declaration.
37174
37175 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
37176
37177         * lib/strptime.h (strptime): Use 'restrict' for args where
37178         POSIX requires this.
37179         * lib/strptime.c (strptime): Likewise.
37180         Change license notice from LGPL to GPL, since gnulib-tool will
37181         change this as needed.
37182         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
37183         defined.
37184         Include "strptime.h" first, to check interface.
37185         Do not #undef _LIBC and _NL_CURRENT.
37186         Do not include <stdlib.h>; no longer needed.
37187         Include "time_r.h" and declare ptime_locale_status
37188         only if _LIBC is not defined.
37189         (__P): Remove unused macro.
37190         (match_string): Bring back glibc version, but use it only if _LIBC
37191         is defined.
37192         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
37193         Remove unnecessary assertion and abort() call.
37194         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
37195         * m4/strptime.m4: Fix serial number comment.
37196         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
37197         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
37198         (Depends-on): Add time_r.
37199
37200 2007-01-29  Bruno Haible  <bruno@clisp.org>
37201
37202         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37203         strptime.
37204         * modules/strptime (Depends-on): Add stdbool.
37205         * lib/strptime.h: Include <time.h> always. Add comments.
37206
37207 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37208
37209         * modules/strptime: New file.
37210         * lib/strptime.h: New file.
37211         * lib/strptime.c: New file.
37212         * m4/strptime.m4: New file.
37213
37214 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
37215
37216         * MODULES.html.sh: New module mpsort.
37217         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
37218
37219         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
37220         a circularity problem with HP-UX ia64 reported by Bob Proulx in
37221         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
37222         All uses changed.
37223         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
37224         All uses changed.
37225         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
37226         to _Restrict_.
37227         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
37228         the parameter matches the prototype.
37229
37230 2007-01-28  Jim Meyering  <jim@meyering.net>
37231
37232         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
37233         sys/time.h here, reverting that part of the previous patch:
37234         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
37235
37236 2007-01-28  Bruno Haible  <bruno@clisp.org>
37237
37238         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
37239         value of $(SYS_TIME_H).
37240         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
37241         remove it conditionally, too. [added by Jim Meyering]
37242         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
37243         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
37244         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
37245         GETTIMEOFDAY_REPLACEMENT to 1.
37246
37247 2007-01-28  Bruno Haible  <bruno@clisp.org>
37248
37249         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
37250         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
37251         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
37252         Set UNISTD_H instead of UNISTD_H2.
37253         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
37254
37255 2007-01-28  Bruno Haible  <bruno@clisp.org>
37256
37257         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
37258         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
37259
37260 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37261
37262         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
37263         (func_create_testdir): Ensure C locale for `grep' and `tr'
37264         character ranges.
37265         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
37266         ACLOCAL_AMFLAGS parsing state machine.
37267
37268 2007-01-27  Bruno Haible  <bruno@clisp.org>
37269
37270         * modules/unistr/base: Update.
37271
37272 2007-01-27  Bruno Haible  <bruno@clisp.org>
37273
37274         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
37275         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
37276         * modules/unistr/u32-mbtouc-unsafe: Renamed from
37277         modules/unistr/u32-mbtouc.
37278         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
37279         * lib/unistr.h: Update.
37280         * lib/linebreak.c: Update.
37281         * modules/unistr/u32-mbtouc: Renamed from
37282         modules/unistr/u32-mbtouc-safe.
37283         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
37284         * lib/unistr.h: Update.
37285         * lib/unistr/u32-to-u8.c: Update.
37286         * lib/unistr/u32-to-u16.c: Update.
37287
37288 2007-01-27  Bruno Haible  <bruno@clisp.org>
37289
37290         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
37291         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
37292         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
37293         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
37294         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
37295         * modules/unistr/u16-mbtouc-unsafe: Renamed from
37296         modules/unistr/u16-mbtouc.
37297         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
37298         * lib/unistr.h: Update.
37299         * lib/linebreak.c: Update.
37300         * modules/linebreak: Update.
37301         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
37302         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
37303         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
37304         * modules/unistr/u16-mbtouc: Renamed from
37305         modules/unistr/u16-mbtouc-safe.
37306         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
37307         * lib/unistr.h: Update.
37308         * lib/unistr/u16-to-u8.c: Update.
37309         * modules/unistr/u16-to-u8: Update.
37310         * lib/unistr/u16-to-u32.c: Update.
37311         * modules/unistr/u16-to-u32: Update.
37312
37313 2007-01-27  Bruno Haible  <bruno@clisp.org>
37314
37315         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
37316         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
37317         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
37318         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
37319         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
37320         * modules/unistr/u8-mbtouc-unsafe: Renamed from
37321         modules/unistr/u8-mbtouc.
37322         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
37323         * lib/unistr.h: Update.
37324         * lib/striconveh.c: Update.
37325         * modules/striconveh: Update.
37326         * lib/linebreak.c: Update.
37327         * modules/linebreak: Update.
37328         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
37329         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
37330         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
37331         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
37332         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
37333         * lib/unistr.h: Update.
37334         * lib/striconveh.c: Update.
37335         * modules/striconveh: Update.
37336         * lib/unistr/u8-to-u16.c: Update.
37337         * modules/unistr/u8-to-u16: Update.
37338         * lib/unistr/u8-to-u32.c: Update.
37339         * modules/unistr/u8-to-u32: Update.
37340
37341 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37342
37343         Sync from Libtool.
37344         * lib/argz.c: Do not include strings.h nor memory.h, include
37345         string.h unconditionally.  Patch by Simon Josefsson.
37346
37347 2007-01-27  Bruno Haible  <bruno@clisp.org>
37348
37349         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
37350         from gl_HEADER_STRING_H_BODY.
37351         (gl_HEADER_STRING_H_BODY): Require it.
37352         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
37353         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
37354         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
37355         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
37356         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37357         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
37358         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37359         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
37360         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
37361         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37362         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
37363         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
37364         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
37365         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37366         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
37367
37368 2007-01-27  Bruno Haible  <bruno@clisp.org>
37369
37370         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
37371         check_PROGRAMS into noinst_PROGRAMS.
37372         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
37373         check_PROGRAMS in this case.
37374         (func_import): Set for_test to false.
37375         (func_create_testdir): Set for_test to true.
37376
37377 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37378             Bruno Haible  <bruno@clisp.org>
37379
37380         * modules/strcasestr (Files): Remove lib/strcasestr.h.
37381         (Depends-on): Add string.
37382         (Includes): Use <string.h> instead of strcasestr.h.
37383         * modules/string (Makefile.am): Also substitute the value of
37384         REPLACE_STRCASESTR.
37385         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
37386         assume strcasestr is declared in <string.h> not <strings.h>. Also
37387         set REPLACE_STRCASESTR.
37388         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
37389         REPLACE_STRCASESTR.
37390         * lib/strcasestr.h: Remove file.
37391         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
37392         * lib/string_.h (strcasestr): New declaration.
37393
37394 2007-01-27  Bruno Haible  <bruno@clisp.org>
37395
37396         * lib/string_.h: Use 'extern'.
37397
37398 2007-01-27  Jim Meyering  <jim@meyering.net>
37399
37400         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
37401         of set-but-not-used local, "q".
37402
37403         * lib/mempcpy.c: Include <config.h> before <string.h>.
37404         This fixes a compilation error on HP-UX, due to the system's
37405         "restrict"-using mempcpy prototype.
37406
37407 2007-01-26  Bruno Haible  <bruno@clisp.org>
37408
37409         Small optimization.
37410         * lib/javacomp.c: Include c-strstr.h.
37411          (is_envjavac_gcj): Use c_strstr instead of strstr.
37412         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
37413
37414 2007-01-26  Bruno Haible  <bruno@clisp.org>
37415
37416         * MODULES.html.sh (Unicode string functions): Add the new modules.
37417
37418         * modules/uniconv/u32-strconv-to-locale: New file.
37419         * lib/uniconv/u32-strconv-to-locale.c: New file.
37420
37421         * modules/uniconv/u16-strconv-to-locale: New file.
37422         * lib/uniconv/u16-strconv-to-locale.c: New file.
37423
37424         * modules/uniconv/u8-strconv-to-locale: New file.
37425         * lib/uniconv/u8-strconv-to-locale.c: New file.
37426
37427         * modules/uniconv/u32-strconv-from-locale: New file.
37428         * lib/uniconv/u32-strconv-from-locale.c: New file.
37429
37430         * modules/uniconv/u16-strconv-from-locale: New file.
37431         * lib/uniconv/u16-strconv-from-locale.c: New file.
37432
37433         * modules/uniconv/u8-strconv-from-locale: New file.
37434         * lib/uniconv/u8-strconv-from-locale.c: New file.
37435
37436         * modules/uniconv/u32-strconv-to-enc: New file.
37437         * lib/uniconv/u32-strconv-to-enc.c: New file.
37438         * modules/uniconv/u32-strconv-to-enc-tests: New file.
37439         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
37440
37441         * modules/uniconv/u16-strconv-to-enc: New file.
37442         * lib/uniconv/u16-strconv-to-enc.c: New file.
37443         * lib/uniconv/u-strconv-to-enc.h: New file.
37444         * modules/uniconv/u16-strconv-to-enc-tests: New file.
37445         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
37446
37447         * modules/uniconv/u8-strconv-to-enc: New file.
37448         * lib/uniconv/u8-strconv-to-enc.c: New file.
37449         * modules/uniconv/u8-strconv-to-enc-tests: New file.
37450         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
37451
37452         * modules/uniconv/u32-strconv-from-enc: New file.
37453         * lib/uniconv/u32-strconv-from-enc.c: New file.
37454         * modules/uniconv/u32-strconv-from-enc-tests: New file.
37455         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
37456
37457         * modules/uniconv/u16-strconv-from-enc: New file.
37458         * lib/uniconv/u16-strconv-from-enc.c: New file.
37459         * modules/uniconv/u16-strconv-from-enc-tests: New file.
37460         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
37461
37462         * modules/uniconv/u8-strconv-from-enc: New file.
37463         * lib/uniconv/u8-strconv-from-enc.c: New file.
37464         * lib/uniconv/u-strconv-from-enc.h: New file.
37465         * modules/uniconv/u8-strconv-from-enc-tests: New file.
37466         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
37467
37468         * modules/uniconv/u32-conv-from-enc: New file.
37469         * lib/uniconv/u32-conv-from-enc.c: New file.
37470         * modules/uniconv/u32-conv-from-enc-tests: New file.
37471         * tests/uniconv/test-u32-conv-from-enc.c: New file.
37472
37473         * modules/uniconv/u16-conv-from-enc: New file.
37474         * lib/uniconv/u16-conv-from-enc.c: New file.
37475         * lib/uniconv/u-conv-from-enc.h: New file.
37476         * modules/uniconv/u16-conv-from-enc-tests: New file.
37477         * tests/uniconv/test-u16-conv-from-enc.c: New file.
37478
37479         * modules/uniconv/u8-conv-from-enc: New file.
37480         * lib/uniconv/u8-conv-from-enc.c: New file.
37481         * modules/uniconv/u8-conv-from-enc-tests: New file.
37482         * tests/uniconv/test-u8-conv-from-enc.c: New file.
37483
37484         * modules/uniconv/base: New file.
37485         * lib/uniconv.h: New file.
37486
37487 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
37488
37489         * doc/gnulib-tool.texi (Initial import): Update to match current
37490         behavior with strdup module.
37491         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
37492         * lib/memmem.h: Remove; all uses removed.  This is now done
37493         by <string.h>.
37494         * lib/mempcpy.h: Likewise.
37495         * lib/memrchr.h: Likewise.
37496         * lib/stpcpy.h: Likewise.
37497         * lib/stpncpy.h: Likewise.
37498         * lib/strcase.h: Likewise.
37499         * lib/strchrnul.h: Likewise.
37500         * lib/strdup.h: Likewise.
37501         * lib/strndup.h: Likewise.
37502         * lib/strnlen.h: Likewise.
37503         * lib/strpbrk.h: Likewise.
37504         * lib/strsep.h: Likewise.
37505         * lib/strstr.h: Likewise.
37506         * lib/strtok_r.h: Likewise.
37507         * lib/string_.h: New file.
37508         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
37509         Rely on <string.h> instead.
37510         * lib/canon-host.c: Likewise.
37511         * lib/chdir-long.c: Likewise.
37512         * lib/concatpath.c: Likewise.
37513         * lib/exclude.c: Likewise.
37514         * lib/fchdir.c: Likewise.
37515         * lib/getaddrinfo.c: Likewise.
37516         * lib/getcwd.c: Likewise.
37517         * lib/getsubopt.c: Likewise.
37518         * lib/glob.c: Likewise.
37519         * lib/hard-locale.c: Likewise.
37520         * lib/iconvme.c: Likewise.
37521         * lib/javacomp.c: Likewise.
37522         * lib/mempcpy.c: Likewise.
37523         * lib/memrchr.c: Likewise.
37524         * lib/regex_internal.h: Likewise.
37525         * lib/stpncpy.c: Likewise.
37526         * lib/strcasecmp.c: Likewise.
37527         * lib/strchrnul.c: Likewise.
37528         * lib/strdup.c: Likewise.
37529         * lib/striconv.c: Likewise.
37530         * lib/striconveh.c: Likewise.
37531         * lib/striconveha.c: Likewise.
37532         * lib/strncasecmp.c: Likewise.
37533         * lib/strndup.c: Likewise.
37534         * lib/strnlen.c: Likewise.
37535         * lib/strsep.c: Likewise.
37536         * lib/strstr.c: Likewise.
37537         * lib/strtok_r.c: Likewise.
37538         * lib/userspec.c: Likewise.
37539         * lib/w32spawn.h: Likewise.
37540         * lib/xstrndup.c: Likewise.
37541         * lib/mountlist.c (strstr): Remove decl.
37542         * m4/string_h.m4: New file.
37543         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
37544         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
37545         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
37546         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
37547         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
37548         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
37549         Set REPLACE_STRCASECMP if necessary.
37550         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
37551         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
37552         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
37553         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
37554         HAVE_DECL_STRDUP if necessary.
37555         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
37556         since gl_FUNC_STRNDUP does that now.
37557         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
37558         Check for decl here...
37559         (gl_PREREQ_STRNLEN): ... not here.
37560         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
37561         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
37562         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
37563         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
37564         necessary.
37565         * modules/string: New file.
37566         * modules/memmem (Files): Remove special-purpose include file.
37567         (Depends-on): Add string.
37568         (Include): Include <string.h>, not the removed file.
37569         * modules/mempcpy: Likewise.
37570         * modules/memrchr: Likewise.
37571         * modules/stpcpy: Likewise.
37572         * modules/stpncpy: Likewise.
37573         * modules/strcase: Likewise.
37574         * modules/strchrnul: Likewise.
37575         * modules/strdup: Likewise.
37576         * modules/strndup: Likewise.
37577         * modules/strnlen: Likewise.
37578         * modules/strpbrk: Likewise.
37579         * modules/strsep: Likewise.
37580         * modules/strstr: Likewise.
37581         * modules/strtok_r: Likewise.
37582         * tests/test-dirname.c: Don't include "strdup.h", since
37583         <string.h> now suffices.
37584         * tests/test-memmem.c: Don't include "memmem.h", since
37585         <string.h> now suffices.
37586
37587 2007-01-25  Bruno Haible  <bruno@clisp.org>
37588
37589         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
37590         *resultp is 0.
37591
37592         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
37593         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
37594         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
37595         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
37596
37597         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
37598         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
37599         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
37600         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
37601         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
37602         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
37603
37604 2007-01-24  Bruno Haible  <bruno@clisp.org>
37605
37606         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
37607         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
37608         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
37609         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
37610         gl_FUNC_FTS_CORE.
37611         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
37612         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
37613         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
37614         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
37615         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
37616         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
37617         gl_FUNC_FCHOWNAT.
37618         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
37619         gl_FUNC_STRFTIME.
37620         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
37621         Reported by Ralf Wildenhues.
37622
37623 2007-01-24  Bruno Haible  <bruno@clisp.org>
37624
37625         Drop AC_REQUIRE calls that are redundant with the module dependencies.
37626         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
37627         gl_GETADDRINFO.
37628         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
37629         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
37630         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
37631
37632 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
37633
37634         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
37635         Don't use 'exit'; just return from 'main'.
37636         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
37637
37638         * lib/fnmatch_.h: Readjust white space and comments to match
37639         glibc, to avoid spurious diffs.
37640
37641 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
37642
37643         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
37644         2004-12-01 change by Jakub Jelinek, since this code won't compile
37645         if !LIBC.  Problem reported by Bob Proulx.
37646
37647 2007-01-23  Bruno Haible  <bruno@clisp.org>
37648
37649         * lib/striconveh.c: Include c-strcaseeq.h.
37650         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
37651         * modules/striconveh (Depends-on): Add c-strcaseeq.
37652
37653 2007-01-23  Bruno Haible  <bruno@clisp.org>
37654
37655         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
37656
37657         * modules/c-strcaseeq: New file.
37658         * lib/c-strcaseeq.h: New file.
37659
37660         * modules/streq: New file.
37661         * lib/streq.h: New file.
37662
37663 2007-01-23  Bruno Haible  <bruno@clisp.org>
37664
37665         * modules/striconveha-tests: New file.
37666         * tests/test-striconveha.c: New file.
37667
37668         * lib/striconveha.h: Include <stdbool.h>.
37669         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
37670         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
37671         (mem_iconveha_notranslit): Renamed from mem_iconveha.
37672         (mem_iconveha): New function.
37673         (str_iconveha_notranslit): Renamed from str_iconveha.
37674         (str_iconveha): New function.
37675         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
37676         c-strcase.
37677
37678 2007-01-23  Bruno Haible  <bruno@clisp.org>
37679
37680         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
37681         encodings without forgiving before trying any encoding with handler.
37682         (str_iconveha): Try all encodings without forgiving before trying any
37683         encoding with handler.
37684
37685 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
37686
37687         Import the following changes from libc.
37688
37689         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
37690
37691         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
37692
37693         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
37694
37695         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
37696         normal_bracket label.
37697
37698         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
37699
37700         [BZ #361]
37701         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
37702         to normal_bracket after fetching the next character.
37703
37704 2007-01-22  Bruno Haible  <bruno@clisp.org>
37705
37706         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
37707         argument.
37708         * lib/striconveh.c (iconv_carefully_1): New function.
37709         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
37710         argument.
37711         (str_cd_iconveh): Update.
37712         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
37713         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
37714         * tests/test-striconveh.c (MAGIC): New macro.
37715         (new_offsets): New function.
37716         (main): Test call with and without offsets.
37717
37718 2007-01-22  Bruno Haible  <bruno@clisp.org>
37719
37720         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
37721         * modules/sys_select (Makefile.am): Likewise.
37722         * modules/sys_socket (Makefile.am): Likewise.
37723         * modules/sys_time (Makefile.am): Likewise.
37724
37725 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
37726
37727         * modules/gettimeofday (License): Change from GPL to LGPL, since
37728         gettimeofday is a library function.
37729
37730 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37731
37732         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
37733
37734 2007-01-21  Bruno Haible  <bruno@clisp.org>
37735
37736         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
37737
37738 2007-01-21  Bruno Haible  <bruno@clisp.org>
37739
37740         * modules/striconveha: New file.
37741         * lib/striconveha.h: New file.
37742         * lib/striconveha.c: New file.
37743         * MODULES.html.sh (Internationalization functions): Add striconveha.
37744         * lib/striconv.c (str_iconv): Optimize the case of an empty input
37745         string.
37746         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
37747
37748 2007-01-21  Bruno Haible  <bruno@clisp.org>
37749
37750         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
37751         * lib/striconveh.c (str_iconveh): Likewise.
37752
37753 2007-01-21  Bruno Haible  <bruno@clisp.org>
37754
37755         * lib/striconveh.h (mem_iconveh): New declaration.
37756         * lib/striconveh.c (mem_iconveh): New function.
37757         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
37758
37759 2007-01-21  Bruno Haible  <bruno@clisp.org>
37760
37761         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
37762
37763         * lib/striconveh.h (mem_cd_iconveh): Change specification.
37764         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
37765         original result buffer.
37766         (str_cd_iconveh): Update.
37767         * tests/test-striconveh.c (main): Update.
37768
37769         * lib/striconv.h (mem_cd_iconv): Change specification.
37770         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
37771         result buffer.
37772         (str_cd_iconv): Update.
37773         * tests/test-striconv.c (main): Update.
37774
37775 2007-01-21  Bruno Haible  <bruno@clisp.org>
37776
37777         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
37778
37779 2007-01-20  Jim Meyering  <jim@meyering.net>
37780
37781         * lib/userspec.c (parse_with_separator): If a user or group string
37782         starts with "+", skip the corresponding name-to-ID look-up, since
37783         such a look-up must fail: user and group names may not include "+".
37784
37785 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
37786
37787         * lib/poll.c: Include sys/time.h and time.h unconditionally,
37788         since we now assume the sys_time module.
37789         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
37790         check for sys/time.h; no longer needed.
37791         * modules/poll (Depends-on): Depend on sys_time.
37792
37793 2007-01-18  Bruno Haible  <bruno@clisp.org>
37794
37795         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
37796         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
37797
37798         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
37799         gettimeofday.
37800
37801         * tests/test-gettimeofday.c: Include <time.h>.
37802         (dummy): Remove variable.
37803
37804         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
37805         gl_HEADER_SYS_TIME_H.
37806         (gl_HEADER_SYS_TIME_H): New macro.
37807
37808         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
37809         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37810         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
37811         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
37812         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37813         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
37814         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
37815         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37816         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
37817         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
37818         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37819
37820         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
37821         last change; it caused a compilation error when cross-compiling to
37822         Cygwin.
37823
37824 2007-01-18  Jim Meyering  <jim@meyering.net>
37825
37826         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
37827         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
37828         than the race-prone "test -d sys || mkdir sys".
37829         (configure.ac): Use AC_PROG_MKDIR_P.
37830         * modules/sys_select: Likewise.
37831         * modules/sys_socket: Likewise.
37832         * modules/sys_time: Likewise.
37833
37834 2007-01-18  Eric Blake  <ebb9@byu.net>
37835
37836         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
37837         replace gettimeofday.
37838         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
37839         name, to avoid infinite recursion.
37840
37841 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
37842
37843         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
37844         module sys_time.
37845         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
37846         assume timespec.h defines struct timeval.
37847         * lib/settime.c: Likewise.
37848         * lib/utimens.c: Likewise.
37849         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
37850         since we now assume the gettimeofday module.
37851         * lib/tempname.c (__gen_tempname): Likewise.
37852         * lib/gettimeofday.h: Remove.
37853         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
37854         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
37855         Include <time.h>, for 'time()'.
37856         (localtime_buffer_addr): Also use this workaround if
37857         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
37858         to simplify the uses.  All uses changed.
37859         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
37860         that #undef is inside {}, and 'const' follows type name consistently.
37861         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
37862         (gettimeofday): Do not use the maximum possible value for
37863         tv->tv_usec, since that might break usages other than ls.c.
37864         Instead, we'll leave ls.c alone.  This undoes today's patch
37865         by Bruno.  Add a compile-time warning for 1s-clock resolution;
37866         we've never observed the problem but might as well keep the
37867         canary.
37868         * lib/nanosleep.c: Include timespec.h first, for interface check.
37869         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
37870         now assume the sys_time module.
37871         * lib/tempname.c: Likewise.
37872         * lib/timespec.h: Likewise.
37873         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
37874         needed.
37875         * lib/strftime.c: Likewise.
37876         * lib/timespec.h: Likewise.
37877         * lib/posixtm.c: Include posixtm.h first, for interface check.
37878         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
37879         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
37880         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
37881         * lib/sys_time_.h: New file.
37882         * lib/timespec.h (struct timespec): Use long int, not long.
37883         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
37884         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
37885         Remove obsolescent call to AC_HEADER_TIME.
37886         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
37887         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
37888         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
37889         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
37890         Likewise.
37891         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
37892         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
37893         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
37894         into the sys_time module.  Check for gettimeofday just once.
37895         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
37896         for gettimeofday signature to just check the signature.  Merely
37897         compile it, since linking doesn't test signature.  Improve test for
37898         whether gettimeofday.o is actually needed.
37899         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
37900         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
37901         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
37902         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37903         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
37904         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
37905         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
37906         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
37907         than worrying about sys/time.h.
37908         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37909         Don't bother worrying about TIME_WITH_SYS_TIME.
37910         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37911         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
37912         * m4/sys_time_h.m4: New file.
37913         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
37914         Don't include sys/time.h.  Return from main rather than exiting.
37915         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
37916         all uses changed.
37917         * modules/gethrxtime (Depends-on): Add sys_time.
37918         * modules/gettime (Depends-on): Likewise.
37919         * modules/gettimeofday (Depends-on): Likewise.
37920         * modules/nanosleep (Depends-on): Likewise.
37921         * modules/settime (Depends-on): Likewise.
37922         * modules/tempname (Depends-on): Likewise.
37923         * modules/utimens (Depends-on): Likewise.
37924         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
37925         (Include:) Change back to <sys/time.h>.
37926         (Maintainer:) Add self.
37927         * modules/sys_time: New file.
37928         * modules/tempname (Depends-on): Add gettimeofday.
37929         * tests/test-gettimeofday.c: Include <sys/time.h>
37930         rather than gettimeofday.h.
37931
37932 2007-01-17  Bruno Haible  <bruno@clisp.org>
37933
37934         * gnulib-tool (func_get_license): Revert last patch. Instead, let
37935         the license default to GPL.
37936         (func_create_testdir): Don't complain if a module is LGPL and its
37937         tests module depends on GPLed modules.
37938
37939 2007-01-17  Bruno Haible  <bruno@clisp.org>
37940
37941         * lib/gettimeofday.c (gettimeofday): Add code for the case
37942         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
37943         maximum possible value for tv->tv_usec, rather than the minimum one.
37944
37945 2005-10-08  Martin Lambers  <marlam@marlam.de>
37946 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
37947 2007-01-16  Bruno Haible  <bruno@clisp.org>
37948
37949         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
37950         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
37951         gl_FUNC_GETTIMEOFDAY.
37952         (Include): Add gettimeofday.h.
37953         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
37954         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
37955         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
37956         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
37957         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
37958         * lib/gettimeofday.h: New file.
37959         * lib/gettimeofday.c: Include <sys/timeb.h>.
37960         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
37961         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37962         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
37963         fall back on time().
37964
37965         * tests/test-gettimeofday.c: New file.
37966         * modules/gettimeofday-tests: New file.
37967
37968 2007-01-16  Eric Blake  <ebb9@byu.net>
37969
37970         * modules/fnmatch (Depends-on): Depend on wchar.
37971         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
37972         * m4/fnmatch.m4: Likewise.
37973         * modules/mbchar (Makefile.am): Assume <wchar.h>.
37974         * m4/mbchar.m4: Likewise.
37975         * modules/mbswidth (Depends-on): Depend on wchar.
37976         * lib/mbswidth.c: Assume <wchar.h>.
37977         * m4/mbswidth.m4: Likewise.
37978         * modules/quotearg (Depends-on): Depend on wchar.
37979         * lib/quotearg.c: Assume <wchar.h>.
37980         * m4/quotearg.m4: Likewise.
37981         * modules/regex (Depends-on): Depend on wchar.
37982         * lib/regex_internal.h: Assume <wchar.h>.
37983         * m4/regex.m4: Likewise.
37984         * modules/stdint (Depends-on): Depend on wchar.
37985         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
37986         * m4/stdint.m4: Likewise.
37987         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
37988         * modules/strftime (Depends-on): Depend on wchar.
37989         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
37990         * modules/strtol (Depends-on): Depend on wchar.
37991         * lib/strtol.c: Assume <wchar.h>.
37992         * modules/wcwidth (Depends-on): Depend on wchar.
37993         * lib/wcwidth.h: Assume <wchar.h>.
37994         * m4/wcwidth.m4: Likewise.
37995
37996 2007-01-16  Bruno Haible  <bruno@clisp.org>
37997
37998         * modules/csharpexec-script: New, created from...
37999         * modules/csharpexec: ... this.
38000
38001 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
38002
38003         * modules/javaexec-script: New, created from...
38004         * modules/javaexec: ... this.
38005
38006 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38007
38008         * modules/poll (Dependencies): Add sys_select.
38009
38010 2007-01-15  Jim Meyering  <jim@meyering.net>
38011
38012         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
38013         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
38014         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
38015         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
38016
38017 2007-01-15  Bruno Haible  <bruno@clisp.org>
38018
38019         * modules/striconveh: New file.
38020         * lib/striconveh.h: New file.
38021         * lib/striconveh.c: New file.
38022         * MODULES.html.sh (Internationalization functions): Add striconveh.
38023
38024         * modules/striconveh-tests: New file.
38025         * tests/test-striconveh.c: New file.
38026
38027 2007-01-15  Bruno Haible  <bruno@clisp.org>
38028
38029         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
38030         not from GNU libiconv or GNU libc.
38031
38032 2007-01-15  Bruno Haible  <bruno@clisp.org>
38033
38034         * doc/gnulib-intro.texi (Copyright): Explain the different license
38035         terms for module descriptions, autoconf macros, tests, documentation.
38036
38037 2007-01-14  Bruno Haible  <bruno@clisp.org>
38038
38039         * modules/striconv-tests: New file.
38040         * tests/test-striconv.c: New file.
38041
38042 2007-01-14  Bruno Haible  <bruno@clisp.org>
38043
38044         * modules/iconv-tests: New file.
38045         * tests/test-iconv.c: New file.
38046
38047 2007-01-14  Bruno Haible  <bruno@clisp.org>
38048
38049         * gnulib-tool (func_get_license): For test modules, use the license of
38050         the main module.
38051
38052 2007-01-14  Bruno Haible  <bruno@clisp.org>
38053
38054         * modules/iconv (Include): Clarify that <iconv.h> can only be included
38055         if iconv is found to exist.
38056
38057 2007-01-14  Bruno Haible  <bruno@clisp.org>
38058
38059         * modules/c-ctype-tests: New file.
38060         * tests/test-c-ctype.c: New file.
38061
38062 2007-01-14  Bruno Haible  <bruno@clisp.org>
38063
38064         * modules/binary-io-tests: New file.
38065         * tests/test-binary-io.sh: New file.
38066         * tests/test-binary-io.c: New file.
38067
38068 2007-01-14  Bruno Haible  <bruno@clisp.org>
38069
38070         * modules/array-oset-tests: New file.
38071         * tests/test-array_oset.c: New file.
38072
38073 2007-01-14  Bruno Haible  <bruno@clisp.org>
38074
38075         * modules/array-list-tests: New file.
38076         * tests/test-array_list.c: New file.
38077
38078 2007-01-14  Bruno Haible  <bruno@clisp.org>
38079
38080         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
38081         and make.
38082         Reported by Simon Josefsson in
38083         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
38084
38085 2007-01-14  Bruno Haible  <bruno@clisp.org>
38086
38087         * modules/allocsa-tests: New file.
38088         * tests/test-allocsa.c: New file.
38089
38090 2007-01-14  Bruno Haible  <bruno@clisp.org>
38091
38092         * modules/fchdir (Depends-on): Add absolute-header.
38093         * modules/unistd (Depends-on): Likewise.
38094
38095 2006-12-30  Bruno Haible  <bruno@clisp.org>
38096
38097         * modules/fchdir: New file.
38098         * modules/unistd (Files): Add lib/unistd_.h.
38099         (Makefile.am): Generate unistd.h from unistd_.h.
38100         * lib/fchdir.c: New file.
38101         * lib/dirent_.h: New file.
38102         * lib/unistd_.h: New file.
38103         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
38104         * m4/fchdir.m4: New file.
38105         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
38106         (gl_HEADER_UNISTD): Invoke it.
38107         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
38108         function.
38109         * lib/backupfile.c (opendir, closedir): Undefine.
38110         * lib/chown.c (open, close): Undefine.
38111         * lib/clean-temp.c (open, close): Undefine.
38112         * lib/copy-file.c (open, close): Undefine.
38113         * lib/execute.c (open, close): Undefine.
38114         * lib/fsusage.c (open, close): Undefine.
38115         * lib/gc-gnulib.c (open, close): Undefine.
38116         * lib/getcwd.c (opendir, closedir): Undefine.
38117         * lib/glob.c (opendir, closedir): Undefine.
38118         * lib/javacomp.c (open, close): Undefine.
38119         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
38120         * lib/openat-proc.c (open, close): Undefine.
38121         * lib/pagealign_alloc.c (open, close): Undefine.
38122         * lib/pipe.c (open, close): Undefine.
38123         * lib/progreloc.c (open, close): Undefine.
38124         * lib/savedir.c (opendir, closedir): Undefine.
38125         * lib/utime.c (open, close): Undefine.
38126         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
38127
38128 2007-01-10  Bruno Haible  <bruno@clisp.org>
38129
38130         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
38131
38132 2007-01-12  Eric Blake  <ebb9@byu.net>
38133
38134         Provide a robust <wchar.h>.  Further simplifications are now
38135         possible in other modules, but not included here.
38136         * modules/wchar: New module.
38137         * m4/wchar.m4: New file.
38138         * lib/wchar_.h: Likewise.
38139         * modules/mbchar (Depends-on): Depend on wchar, as the first use
38140         of the new module.
38141         * MODULES.html.sh (Extended multibyte and wide character utilities):
38142         New section.
38143
38144 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
38145
38146         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
38147         to a reasonable default for memory allocation.
38148         (xreadlink): Don't allocate a huge buffer, to work around a buggy
38149         file system that reports garbage st_size values for symlinks.
38150         Problem reported by Liyang Hu.
38151
38152 2007-01-11  Simon Josefsson  <simon@josefsson.org>
38153
38154         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
38155         Emacs .#* auto-save files).
38156
38157 2007-01-11  Bruno Haible  <bruno@clisp.org>
38158
38159         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
38160         directory.
38161
38162 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
38163
38164         Use @...@ consistently in lib/wctype_.h.
38165         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
38166         on it being set to 1 or 0.
38167         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
38168         go back to AC_SUBSTing it.
38169         * modules/wctype (Makefile.am): Undo previous change.
38170
38171 2007-01-10  Eric Blake  <ebb9@byu.net>
38172
38173         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
38174         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
38175         * modules/wctype (Makefile.am): Likewise.
38176         Reported by Chris McGuire.
38177
38178 2007-01-10  Jim Meyering  <jim@meyering.net>
38179
38180         fts.c: a small readability/maintainability improvement
38181         * lib/fts.c (fts_read): Make this code slightly more readable and
38182         maintainable by hoisting the "sp->fts_cur = p" assignments to
38183         immediately follow the statements that set P.  Derived from
38184         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
38185
38186 2007-01-10  Eric Blake  <ebb9@byu.net>
38187
38188         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
38189         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
38190         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38191         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
38192         Reported by Chris McGuire.
38193
38194 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38195
38196         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
38197         in sed script.
38198
38199 2007-01-09  Bruno Haible  <bruno@clisp.org>
38200
38201         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
38202         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
38203         variables.
38204         (func_module): Use them.
38205
38206 2007-01-09  Bruno Haible  <bruno@clisp.org>
38207
38208         * modules/unistr/base: New file.
38209         * lib/unistr.h: New file.
38210
38211         * modules/unistr/u8-to-u16: New file.
38212         * lib/unistr/u8-to-u16.c: New file.
38213
38214         * modules/unistr/u8-to-u32: New file.
38215         * lib/unistr/u8-to-u32.c: New file.
38216
38217         * modules/unistr/u16-to-u8: New file.
38218         * lib/unistr/u16-to-u8.c: New file.
38219
38220         * modules/unistr/u16-to-u32: New file.
38221         * lib/unistr/u16-to-u32.c: New file.
38222
38223         * modules/unistr/u32-to-u8: New file.
38224         * lib/unistr/u32-to-u8.c: New file.
38225
38226         * modules/unistr/u32-to-u16: New file.
38227         * lib/unistr/u32-to-u16.c: New file.
38228
38229         * modules/unistr/u8-check: New file.
38230         * modules/unistr/u16-check: New file.
38231         * modules/unistr/u32-check: New file.
38232         * lib/unistr/u8-check.c: New file.
38233         * lib/unistr/u16-check.c: New file.
38234         * lib/unistr/u32-check.c: New file.
38235
38236         * modules/unistr/u8-chr: New file.
38237         * modules/unistr/u16-chr: New file.
38238         * modules/unistr/u32-chr: New file.
38239         * lib/unistr/u8-chr.c: New file.
38240         * lib/unistr/u16-chr.c: New file.
38241         * lib/unistr/u32-chr.c: New file.
38242
38243         * modules/unistr/u8-cmp: New file.
38244         * modules/unistr/u16-cmp: New file.
38245         * modules/unistr/u32-cmp: New file.
38246         * lib/unistr/u8-cmp.c: New file.
38247         * lib/unistr/u16-cmp.c: New file.
38248         * lib/unistr/u32-cmp.c: New file.
38249
38250         * modules/unistr/u8-cpy: New file.
38251         * modules/unistr/u16-cpy: New file.
38252         * modules/unistr/u32-cpy: New file.
38253         * lib/unistr/u8-cpy.c: New file.
38254         * lib/unistr/u16-cpy.c: New file.
38255         * lib/unistr/u32-cpy.c: New file.
38256         * lib/unistr/u-cpy.h: New file.
38257
38258         * modules/unistr/u8-cpy-alloc: New file.
38259         * modules/unistr/u16-cpy-alloc: New file.
38260         * modules/unistr/u32-cpy-alloc: New file.
38261         * lib/unistr/u8-cpy-alloc.c: New file.
38262         * lib/unistr/u16-cpy-alloc.c: New file.
38263         * lib/unistr/u32-cpy-alloc.c: New file.
38264         * lib/unistr/u-cpy-alloc.h: New file.
38265
38266         * modules/unistr/u8-endswith: New file.
38267         * modules/unistr/u16-endswith: New file.
38268         * modules/unistr/u32-endswith: New file.
38269         * lib/unistr/u8-endswith.c: New file.
38270         * lib/unistr/u16-endswith.c: New file.
38271         * lib/unistr/u32-endswith.c: New file.
38272         * lib/unistr/u-endswith.h: New file.
38273
38274         * modules/unistr/u8-mblen: New file.
38275         * modules/unistr/u16-mblen: New file.
38276         * modules/unistr/u32-mblen: New file.
38277         * lib/unistr/u8-mblen.c: New file.
38278         * lib/unistr/u16-mblen.c: New file.
38279         * lib/unistr/u32-mblen.c: New file.
38280
38281         * modules/unistr/u8-mbtouc: New file.
38282         * modules/unistr/u16-mbtouc: New file.
38283         * modules/unistr/u32-mbtouc: New file.
38284         * lib/unistr/u8-mbtouc.c: New file.
38285         * lib/unistr/u16-mbtouc.c: New file.
38286         * lib/unistr/u32-mbtouc.c: New file.
38287
38288         * modules/unistr/u8-mbtouc-safe: New file.
38289         * modules/unistr/u16-mbtouc-safe: New file.
38290         * modules/unistr/u32-mbtouc-safe: New file.
38291         * lib/unistr/u8-mbtouc-safe.c: New file.
38292         * lib/unistr/u16-mbtouc-safe.c: New file.
38293         * lib/unistr/u32-mbtouc-safe.c: New file.
38294
38295         * modules/unistr/u8-move: New file.
38296         * modules/unistr/u16-move: New file.
38297         * modules/unistr/u32-move: New file.
38298         * lib/unistr/u8-move.c: New file.
38299         * lib/unistr/u16-move.c: New file.
38300         * lib/unistr/u32-move.c: New file.
38301         * lib/unistr/u-move.h: New file.
38302
38303         * modules/unistr/u8-next: New file.
38304         * modules/unistr/u16-next: New file.
38305         * modules/unistr/u32-next: New file.
38306         * lib/unistr/u8-next.c: New file.
38307         * lib/unistr/u16-next.c: New file.
38308         * lib/unistr/u32-next.c: New file.
38309
38310         * modules/unistr/u8-prev: New file.
38311         * modules/unistr/u16-prev: New file.
38312         * modules/unistr/u32-prev: New file.
38313         * lib/unistr/u8-prev.c: New file.
38314         * lib/unistr/u16-prev.c: New file.
38315         * lib/unistr/u32-prev.c: New file.
38316
38317         * modules/unistr/u8-set: New file.
38318         * modules/unistr/u16-set: New file.
38319         * modules/unistr/u32-set: New file.
38320         * lib/unistr/u8-set.c: New file.
38321         * lib/unistr/u16-set.c: New file.
38322         * lib/unistr/u32-set.c: New file.
38323         * lib/unistr/u-set.h: New file.
38324
38325         * modules/unistr/u8-startswith: New file.
38326         * modules/unistr/u16-startswith: New file.
38327         * modules/unistr/u32-startswith: New file.
38328         * lib/unistr/u8-startswith.c: New file.
38329         * lib/unistr/u16-startswith.c: New file.
38330         * lib/unistr/u32-startswith.c: New file.
38331         * lib/unistr/u-startswith.h: New file.
38332
38333         * modules/unistr/u8-stpcpy: New file.
38334         * modules/unistr/u16-stpcpy: New file.
38335         * modules/unistr/u32-stpcpy: New file.
38336         * lib/unistr/u8-stpcpy.c: New file.
38337         * lib/unistr/u16-stpcpy.c: New file.
38338         * lib/unistr/u32-stpcpy.c: New file.
38339         * lib/unistr/u-stpcpy.h: New file.
38340
38341         * modules/unistr/u8-stpncpy: New file.
38342         * modules/unistr/u16-stpncpy: New file.
38343         * modules/unistr/u32-stpncpy: New file.
38344         * lib/unistr/u8-stpncpy.c: New file.
38345         * lib/unistr/u16-stpncpy.c: New file.
38346         * lib/unistr/u32-stpncpy.c: New file.
38347         * lib/unistr/u-stpncpy.h: New file.
38348
38349         * modules/unistr/u8-strcat: New file.
38350         * modules/unistr/u16-strcat: New file.
38351         * modules/unistr/u32-strcat: New file.
38352         * lib/unistr/u8-strcat.c: New file.
38353         * lib/unistr/u16-strcat.c: New file.
38354         * lib/unistr/u32-strcat.c: New file.
38355         * lib/unistr/u-strcat.h: New file.
38356
38357         * modules/unistr/u8-strchr: New file.
38358         * modules/unistr/u16-strchr: New file.
38359         * modules/unistr/u32-strchr: New file.
38360         * lib/unistr/u8-strchr.c: New file.
38361         * lib/unistr/u16-strchr.c: New file.
38362         * lib/unistr/u32-strchr.c: New file.
38363
38364         * modules/unistr/u8-strcmp: New file.
38365         * modules/unistr/u16-strcmp: New file.
38366         * modules/unistr/u32-strcmp: New file.
38367         * lib/unistr/u8-strcmp.c: New file.
38368         * lib/unistr/u16-strcmp.c: New file.
38369         * lib/unistr/u32-strcmp.c: New file.
38370
38371         * modules/unistr/u8-strcpy: New file.
38372         * modules/unistr/u16-strcpy: New file.
38373         * modules/unistr/u32-strcpy: New file.
38374         * lib/unistr/u8-strcpy.c: New file.
38375         * lib/unistr/u16-strcpy.c: New file.
38376         * lib/unistr/u32-strcpy.c: New file.
38377         * lib/unistr/u-strcpy.h: New file.
38378
38379         * modules/unistr/u8-strcspn: New file.
38380         * modules/unistr/u16-strcspn: New file.
38381         * modules/unistr/u32-strcspn: New file.
38382         * lib/unistr/u8-strcspn.c: New file.
38383         * lib/unistr/u16-strcspn.c: New file.
38384         * lib/unistr/u32-strcspn.c: New file.
38385         * lib/unistr/u-strcspn.h: New file.
38386
38387         * modules/unistr/u8-strdup: New file.
38388         * modules/unistr/u16-strdup: New file.
38389         * modules/unistr/u32-strdup: New file.
38390         * lib/unistr/u8-strdup.c: New file.
38391         * lib/unistr/u16-strdup.c: New file.
38392         * lib/unistr/u32-strdup.c: New file.
38393         * lib/unistr/u-strdup.h: New file.
38394
38395         * modules/unistr/u8-strlen: New file.
38396         * modules/unistr/u16-strlen: New file.
38397         * modules/unistr/u32-strlen: New file.
38398         * lib/unistr/u8-strlen.c: New file.
38399         * lib/unistr/u16-strlen.c: New file.
38400         * lib/unistr/u32-strlen.c: New file.
38401         * lib/unistr/u-strlen.h: New file.
38402
38403         * modules/unistr/u8-strmblen: New file.
38404         * modules/unistr/u16-strmblen: New file.
38405         * modules/unistr/u32-strmblen: New file.
38406         * lib/unistr/u8-strmblen.c: New file.
38407         * lib/unistr/u16-strmblen.c: New file.
38408         * lib/unistr/u32-strmblen.c: New file.
38409
38410         * modules/unistr/u8-strmbtouc: New file.
38411         * modules/unistr/u16-strmbtouc: New file.
38412         * modules/unistr/u32-strmbtouc: New file.
38413         * lib/unistr/u8-strmbtouc.c: New file.
38414         * lib/unistr/u16-strmbtouc.c: New file.
38415         * lib/unistr/u32-strmbtouc.c: New file.
38416
38417         * modules/unistr/u8-strncat: New file.
38418         * modules/unistr/u16-strncat: New file.
38419         * modules/unistr/u32-strncat: New file.
38420         * lib/unistr/u8-strncat.c: New file.
38421         * lib/unistr/u16-strncat.c: New file.
38422         * lib/unistr/u32-strncat.c: New file.
38423         * lib/unistr/u-strncat.h: New file.
38424
38425         * modules/unistr/u8-strncmp: New file.
38426         * modules/unistr/u16-strncmp: New file.
38427         * modules/unistr/u32-strncmp: New file.
38428         * lib/unistr/u8-strncmp.c: New file.
38429         * lib/unistr/u16-strncmp.c: New file.
38430         * lib/unistr/u32-strncmp.c: New file.
38431
38432         * modules/unistr/u8-strncpy: New file.
38433         * modules/unistr/u16-strncpy: New file.
38434         * modules/unistr/u32-strncpy: New file.
38435         * lib/unistr/u8-strncpy.c: New file.
38436         * lib/unistr/u16-strncpy.c: New file.
38437         * lib/unistr/u32-strncpy.c: New file.
38438         * lib/unistr/u-strncpy.h: New file.
38439
38440         * modules/unistr/u8-strnlen: New file.
38441         * modules/unistr/u16-strnlen: New file.
38442         * modules/unistr/u32-strnlen: New file.
38443         * lib/unistr/u8-strnlen.c: New file.
38444         * lib/unistr/u16-strnlen.c: New file.
38445         * lib/unistr/u32-strnlen.c: New file.
38446         * lib/unistr/u-strnlen.h: New file.
38447
38448         * modules/unistr/u8-strpbrk: New file.
38449         * modules/unistr/u16-strpbrk: New file.
38450         * modules/unistr/u32-strpbrk: New file.
38451         * lib/unistr/u8-strpbrk.c: New file.
38452         * lib/unistr/u16-strpbrk.c: New file.
38453         * lib/unistr/u32-strpbrk.c: New file.
38454         * lib/unistr/u-strpbrk.h: New file.
38455
38456         * modules/unistr/u8-strrchr: New file.
38457         * modules/unistr/u16-strrchr: New file.
38458         * modules/unistr/u32-strrchr: New file.
38459         * lib/unistr/u8-strrchr.c: New file.
38460         * lib/unistr/u16-strrchr.c: New file.
38461         * lib/unistr/u32-strrchr.c: New file.
38462
38463         * modules/unistr/u8-strspn: New file.
38464         * modules/unistr/u16-strspn: New file.
38465         * modules/unistr/u32-strspn: New file.
38466         * lib/unistr/u8-strspn.c: New file.
38467         * lib/unistr/u16-strspn.c: New file.
38468         * lib/unistr/u32-strspn.c: New file.
38469         * lib/unistr/u-strspn.h: New file.
38470
38471         * modules/unistr/u8-strstr: New file.
38472         * modules/unistr/u16-strstr: New file.
38473         * modules/unistr/u32-strstr: New file.
38474         * lib/unistr/u8-strstr.c: New file.
38475         * lib/unistr/u16-strstr.c: New file.
38476         * lib/unistr/u32-strstr.c: New file.
38477         * lib/unistr/u-strstr.h: New file.
38478
38479         * modules/unistr/u8-strtok: New file.
38480         * modules/unistr/u16-strtok: New file.
38481         * modules/unistr/u32-strtok: New file.
38482         * lib/unistr/u8-strtok.c: New file.
38483         * lib/unistr/u16-strtok.c: New file.
38484         * lib/unistr/u32-strtok.c: New file.
38485         * lib/unistr/u-strtok.h: New file.
38486
38487         * modules/unistr/u8-uctomb: New file.
38488         * modules/unistr/u16-uctomb: New file.
38489         * modules/unistr/u32-uctomb: New file.
38490         * lib/unistr/u8-uctomb.c: New file.
38491         * lib/unistr/u16-uctomb.c: New file.
38492         * lib/unistr/u32-uctomb.c: New file.
38493
38494         * MODULES.html.sh (Unicode string functions): Add the new modules.
38495
38496 2007-01-08  Bruno Haible  <bruno@clisp.org>
38497
38498         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
38499         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
38500         subdirectories.
38501
38502 2007-01-08  Karl Berry  <karl@gnu.org>
38503
38504         * doc/error.texi: mention that main() fns must set program_name
38505         when progname is used.
38506
38507 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
38508
38509         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
38510         WCTYPE_H is empty, for the benefit of builds from non-distclean
38511         directories.  Problem reported by Eric Blake in
38512         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
38513
38514 2007-01-08  Bruno Haible  <bruno@clisp.org>
38515
38516         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
38517         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
38518         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
38519         PROVIDE_CANONICALIZE_FILENAME_MODE.
38520         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
38521
38522 2007-01-08  Bruno Haible  <bruno@clisp.org>
38523
38524         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
38525         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
38526         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
38527         * lib/fts.c: Likewise.
38528         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
38529
38530 2006-12-25  Bruno Haible  <bruno@clisp.org>
38531
38532         * modules/utf8-ucs4-safe: New file.
38533         * lib/utf8-ucs4-safe.h: New file.
38534         * lib/unistr/utf8-ucs4-safe.c: New file.
38535
38536         * modules/utf16-ucs4-safe: New file.
38537         * lib/utf16-ucs4-safe.h: New file.
38538         * lib/unistr/utf16-ucs4-safe.c: New file.
38539
38540         * MODULES.html.sh (Unicode string functions): Add the new modules.
38541
38542 2007-01-08  Bruno Haible  <bruno@clisp.org>
38543
38544         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
38545         (Depends-on): Add unitypes.
38546         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
38547         (u8_mbtouc_aux): Move out to separate file.
38548         (u8_mbtouc): Use ucs4_t, uint8_t types.
38549         * lib/unistr/utf8-ucs4.c: New file.
38550
38551         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
38552         (Depends-on): Add unitypes.
38553         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
38554         (u16_mbtouc_aux): Move out to separate file.
38555         (u16_mbtouc): Use ucs4_t, uint16_t types.
38556         * lib/unistr/utf16-ucs4.c: New file.
38557
38558         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
38559         (Depends-on): Add unitypes.
38560         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
38561         (u8_uctomb_aux): Move out to separate file.
38562         (u8_uctomb): Use ucs4_t, uint8_t types.
38563         * lib/unistr/ucs4-utf8.c: New file.
38564
38565         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
38566         (Depends-on): Add unitypes.
38567         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
38568         (u16_uctomb_aux): Move out to separate file.
38569         (u16_uctomb): Use ucs4_t, uint16_t types.
38570         * lib/unistr/ucs4-utf16.c: New file.
38571
38572 2006-12-25  Bruno Haible  <bruno@clisp.org>
38573
38574         * modules/unitypes: New file.
38575         * lib/unitypes.h: New file.
38576         * MODULES.html.sh (func_all_modules): New section "Unicode string
38577         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
38578         this section. Add unitypes.
38579
38580 2007-01-08  Bruno Haible  <bruno@clisp.org>
38581
38582         Avoid variable names that conflict with those from libtool.
38583         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
38584         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
38585         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
38586         library_names_spec to acl_library_names_spec, hardcode_* to
38587         acl_hardcode_*.
38588         Reported by Ralf Wildenhues.
38589
38590 2007-01-08  Bruno Haible  <bruno@clisp.org>
38591
38592         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
38593         definition.
38594         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
38595         definition.
38596         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
38597         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
38598         definition.
38599         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
38600         definition.
38601         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
38602         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
38603         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
38604         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
38605         definition.
38606         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
38607         definition.
38608         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
38609         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
38610         GC_USE_<algorithm>.
38611         * lib/gc-libgcrypt.c: Likewise.
38612         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
38613         * modules/gc-arctwo (configure.ac): Likewise.
38614         * modules/gc-des (configure.ac): Likewise.
38615         * modules/gc-hmac-md5 (configure.ac): Likewise.
38616         * modules/gc-hmac-sha1 (configure.ac): Likewise.
38617         * modules/gc-md2 (configure.ac): Likewise.
38618         * modules/gc-md4 (configure.ac): Likewise.
38619         * modules/gc-md5 (configure.ac): Likewise.
38620         * modules/gc-random (configure.ac): Likewise.
38621         * modules/gc-rijndael (configure.ac): Likewise.
38622         * modules/gc-sha1 (configure.ac): Likewise.
38623
38624 2007-01-08  Bruno Haible  <bruno@clisp.org>
38625
38626         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
38627         macro definition.
38628         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
38629         definition.
38630         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
38631         definition.
38632         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
38633         * modules/fcntl-safer (configure.ac): Likewise.
38634         * modules/fopen-safer (configure.ac): Likewise.
38635         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
38636         GNULIB_FWRITEERROR macro definition.
38637
38638 2007-01-08  Bruno Haible  <bruno@clisp.org>
38639
38640         * m4/gnulib-common.m4: New file.
38641         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
38642         (func_get_filelist): Add m4/gnulib-common.m4.
38643
38644 2007-01-08  Bruno Haible  <bruno@clisp.org>
38645
38646         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
38647         command.
38648
38649 2007-01-08  Jim Meyering  <jim@meyering.net>
38650
38651         Use a more robust test for a "can't happen" condition.
38652         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
38653         narrowed the st_size value.  Presuming the "can't happen" condition
38654         is true, that narrowing could conceivably convert an invalid st_size
38655         value into a valid one.  Instead, use a change based on Matthew
38656         Woehlke's original patch.
38657
38658         Slight readability improvement: use an assert-like macro
38659         in place of literal "abort ()" uses.
38660         * lib/fts.c (fts_assert): Define.
38661         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
38662         Use this macro instead of a bare 'abort'.
38663
38664 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
38665
38666         Don't worry about using IRIX 5.3's wctype.h broken definitions;
38667         simply work around them.
38668         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
38669         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
38670         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
38671         declaring.
38672         Don't bother to define as macros, since the standard doesn't require it.
38673         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
38674         longer worry about IRIX 5.3.
38675         (HAVE_WCTYPE_CTMP_BUG): Remove.
38676
38677 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
38678
38679         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
38680         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
38681         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38682         Problems reported by Georg Schwarz for IRIX 5.3.
38683
38684         * gnulib-tool (autoconf_minversion): Take the maximum version number
38685         found, not the minimum.  Problem reported by James Youngman.
38686
38687 2007-01-03  Karl Berry  <karl@gnu.org>
38688
38689         * doc/error.texi: new file, explaining interaction with progname.
38690         * doc/gnulib.texi: include it.  Update copyright.
38691
38692 2007-01-03  Simon Josefsson  <simon@josefsson.org>
38693
38694         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
38695         AC_CANONICAL_HOST, to improve autobuild outputs.
38696
38697 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
38698             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38699
38700         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
38701         sockets, server sockets, and other file descriptors.  Count errors
38702         to compute the return value.  Reorder the code a bit to be easier
38703         to follow.  Don't set event bits that were not requested (except
38704         POLLERR and POLLHUP).
38705
38706 2007-01-01  Bruno Haible  <bruno@clisp.org>
38707
38708         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
38709
38710 2007-01-03  Jim Meyering  <jim@meyering.net>
38711
38712         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
38713
38714 2007-01-02  Bruno Haible  <bruno@clisp.org>
38715
38716         * modules/settime (Include): Require timespec.h.
38717         * modules/nanosleep (Include): Likewise.
38718
38719 2007-01-01  Bruno Haible  <bruno@clisp.org>
38720
38721         * gnulib-tool (func_emit_copyright_notice): Bump year.
38722         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
38723
38724 2007-01-01  Bruno Haible  <bruno@clisp.org>
38725
38726         Improve support for OpenBSD.
38727         * build-aux/config.rpath (libname_spec): Export.
38728         (library_names_spec): New variable. Export.
38729         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
38730         library_names_spec from the config.rpath output. Locate shared library
38731         through the name pattern in library_names_spec.
38732
38733 2007-01-01  Eric Blake  <ebb9@byu.net>
38734
38735         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
38736
38737 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
38738
38739         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
38740         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
38741         assume the C locale, and avoid an "eval" that could cause trouble.
38742         Problem with SORT reported by Bob Proulx.
38743
38744         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
38745         Define.  Trivial patch from Henning Nielsen Lund, originally
38746         sent to bug-grep@gnu.org today.
38747
38748 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
38749
38750         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
38751         struct stat.  Problem reported by Henning Nielsen Lund.
38752         * lib/acl.c: Include acl.h first, to check interface.  Don't
38753         bother to include sys/types.h and sys/stat.h again.
38754
38755 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
38756
38757         Import the following change from libc; problem reported by
38758         Sven Verdoolaege.
38759
38760         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
38761
38762         [BZ #1373]
38763         * lib/argp.h: Remove __NTH for __argp_usage inline function.
38764
38765 2006-12-28  Jim Meyering  <jim@meyering.net>
38766
38767         * build-aux/announce-gen: Do not assume that the package
38768         builds any of tar.gz, tar.bz2, and .xdelta files.
38769         Suggestion from Simon Josefsson.
38770
38771 2006-12-28  Simon Josefsson  <simon@josefsson.org>
38772
38773         * modules/announce-gen: New file.
38774
38775 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
38776
38777         * lib/mbchar.h: Just include <wctype.h>; the wctype module
38778         handles its gotchas now.
38779         * lib/mbswidth.c: Likewise.
38780         * lib/wcwidth.h: Likewise.
38781         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
38782         and iswcntrl; the wctype module does this stuff now.
38783         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
38784         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38785         * modules/mbchar (Depends-on): Add wctype.
38786         * modules/mbswidth (Depends-on): Likewise.
38787         * modules/wcwidth (Depends-on): Likewise.
38788
38789 2006-12-27  Eric Blake  <ebb9@byu.net>
38790
38791         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
38792         module uses more than what <wctype.h> is required to provide.
38793
38794 2006-12-26  Eric Blake  <ebb9@byu.net>
38795
38796         * gnulib-tool (sed_extract_prog): Avoid space-tab.
38797
38798 2006-12-26  Eric Blake  <ebb9@byu.net>
38799
38800         * modules/absolute-header: New module.
38801         * modules/fcntl (Depends-on): Depend on it.
38802         * modules/inttypes (Depends-on): Likewise.
38803         * modules/stdint (Depends-on): Likewise.
38804         * modules/sys_stat (Depends-on): Likewise.
38805         * modules/wctype (Depends-on): Likewise.
38806         * MODULES.html.sh (Support for building libraries and
38807         executables): Document it.
38808
38809 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
38810
38811         * gnulib-tool (SED): Remove, undoing previous change.
38812         The problem was that it broke coreutils on Solaris, because
38813         "sed --posix" leaked into a makefile.
38814         (sed): New alias, if 'alias' and GNU sed.
38815
38816 2006-12-24  Jim Meyering  <jim@meyering.net>
38817
38818         Work around an fchownat bug in glibc-2.4:
38819         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
38820         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
38821         in spite of the -P option.
38822         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
38823         New macros.
38824         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
38825         * modules/openat (Files): Add lib/fchownat.c.
38826         * lib/openat.c (fchownat): Don't define here.  Move to...
38827         * lib/fchownat.c: ...this new file.
38828
38829 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
38830
38831         Fix bug reported by Bruno Haible in
38832         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
38833         where quotearg.c didn't compile on Mac OS X 10.2 because it
38834         lacks <wchar.h> and wint_t.
38835         * lib/wctype_.h (__wctype_wint_t): New type.
38836         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
38837         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
38838         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
38839         Arg is now of type __wctype_wint_t, not wint_t.
38840         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
38841         substitute HAVE_WINT_T.
38842         * modules/wctype (Files): Add m4/wint_t.m4.
38843         (wctype.h): Substitute HAVE_WINT_T.
38844
38845 2006-12-23  Bruno Haible  <bruno@clisp.org>
38846
38847         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
38848
38849 2006-12-23  Bruno Haible  <bruno@clisp.org>
38850
38851         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
38852         S_ISLNK.
38853         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
38854         mingw.
38855
38856 2006-12-22  Bruno Haible  <bruno@clisp.org>
38857
38858         * lib/copy-file.c: Include acl.h.
38859         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
38860         Close the file descriptors only after being done with copy_acl.
38861         * modules/copy-file (Depends-on): Add acl.
38862
38863 2006-12-22  Bruno Haible  <bruno@clisp.org>
38864
38865         * gnulib-tool (SED): New variable.
38866         Use $SED instead of sed everywhere.
38867
38868 2006-12-22  Bruno Haible  <bruno@clisp.org>
38869
38870         * modules/no-c++: New file.
38871         * m4/no-c++.m4: New file.
38872         * MODULES.html.sh (Support for building libraries and executables):
38873         Add no-c++.
38874
38875 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
38876
38877         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
38878         Include <limits.h>, and use its INT_MAX to rewrite the
38879         j loop so that it does not overflow 'int'.  Problem reported by
38880         Ralf Wildenhues in
38881         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
38882         Play it safe by shifting left by 1 rather than multiplying by 2,
38883         as GCC is less likely to optimize this away when the value
38884         is signed (when it assumes overflow leads to undefined behavior).
38885         Also, don't assume time_t uses two's complement.
38886
38887 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
38888
38889         * MODULES.html.sh: New module wctype.
38890         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
38891         * lib/fnmatch.c: Don't bother to include <wchar.h> before
38892         <wctype.h>, since the new wctype module should fix this.
38893         * lib/quotearg.c: Include <wctype.h> unconditionally, since
38894         the wctype module should arrange for it.
38895         * lib/regex_internal.h: Likewise.
38896         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
38897         since the wctype module should handle this now.
38898         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
38899         * modules/fnmatch (Depends-on): Add wctype.
38900         * modules/quotearg (Depends-on): Likewise.
38901         * modules/regex (Depends-on): Likewise.
38902
38903 2006-12-19  Bruno Haible  <bruno@clisp.org>
38904
38905         * lib/strdup.h [C++]: Wrap definitions in extern "C".
38906         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
38907
38908 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38909
38910         * modules/savewd (Depends-on): Fix dependency on fcntl.
38911
38912 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
38913
38914         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
38915         conforms to C99, rather than relying on the user's environment
38916         setting of STDINT_H.
38917
38918 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
38919         and Eric Blake  <ebb9@byu.net>
38920
38921         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
38922         This is more consistent with the other defines here.
38923         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
38924         Port to z/OS.  Problem reported by Paul Gilmartin.
38925         Change local vars to use gl_ prefix rather than ac_.
38926         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
38927         with other defines.
38928         * modules/double-slash-root: New module.
38929         * modules/dirname (Files): Remove m4/double-slash-root.m4.
38930         (Depends-on): Add double-slash-root.
38931         * MODULES.html.sh (File system functions): Mention new module.
38932
38933 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
38934
38935         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
38936         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
38937         This is for the benefit of gzip, which doesn't do i18n.
38938
38939 2006-12-12  Jim Meyering  <jim@meyering.net>
38940
38941         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
38942         Reported by Andreas Schwab <schwab@suse.de>.
38943
38944 2006-12-12  Bruno Haible  <bruno@clisp.org>
38945
38946         Merge these changes.
38947         2006-09-05  Bruno Haible  <bruno@clisp.org>
38948         * lib/iconvme.c (iconv_string): No need to save and restore errno when
38949         iconv_alloc succeeded.
38950         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
38951         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
38952         test for " && dest " at the end - dest is always != NULL there. Call
38953         iconv with 4xNULL arguments initially, to reset the state. Call iconv
38954         with 2xNULL arguments, also to flush the state storage. Handle the
38955         IRIX iconv behaviour. Realloc the final result, to throw away unused
38956         memory.
38957
38958 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
38959
38960         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
38961         and fchmodat unconditionally, since glibc 2.4 has them.
38962         Problem reported by Arkadiusz Miskiewicz.
38963
38964 2006-12-10  Bruno Haible  <bruno@clisp.org>
38965
38966         * gnulib-tool (func_import): Show the include files only for those
38967         modules that are copied and specified.
38968         Reported by Karl Berry.
38969
38970 2006-12-08  Jim Meyering  <jim@meyering.net>
38971
38972         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
38973         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
38974
38975         * build-aux/announce-gen: Add two new options, both optional:
38976         --bootstrap-tools=TOOL_LIST
38977               a comma-separated list of tools, e.g.,
38978               autoconf,automake,bison,gnulib
38979         --gnulib-snapshot-date=DATE
38980               if gnulib is in the bootstrap tool list,
38981               then report this as the snapshot date.
38982               If not specified, use the current date/time.
38983               If you specify a date here, be sure it's UTC.
38984
38985 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38986
38987         * tests/test-argp-2.sh: Fix test to match actual output.
38988         (func_compare): Fix sed script to be portable.
38989
38990 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
38991
38992         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
38993         workaround for this case.  It is not autoconfigured now; offhand
38994         it's hard to see how to autoconfigure it.
38995
38996 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
38997
38998         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
38999         a directory that is about to be chowned.  Such a directory's
39000         initial file permissions should permit the owner only and this
39001         should not be changed until after the chown, since the group and
39002         other bits would be incorrect if they granted permission before
39003         the chown.
39004
39005         Fix porting problem for iswctype reported by Georg Schwarz in:
39006         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
39007         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
39008         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
39009         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
39010         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39011
39012 2006-12-03  Jim Meyering  <jim@meyering.net>
39013
39014         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
39015         p->fts_statp may not yet be defined.
39016         (fts_read): Instead, set it in the caller, once p->fts_statp is
39017         sure to be defined, and corresponds to a top-level directory.
39018         This bug made du -x fail.  Here's the coreutils test case:
39019         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
39020         Reported by Mike Frysinger.
39021
39022 2006-12-01  Jim Meyering  <jim@meyering.net>
39023
39024         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
39025         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
39026         Reported by Simon Josefsson.
39027
39028 2006-11-30  Jim Meyering  <jim@meyering.net>
39029
39030         * m4/warning.m4: Use the all-permissive copyright notice
39031         recommended by RMS (rather than LGPL).
39032         * m4/vararrays.m4: Likewise.
39033         * m4/flexmember.m4: Likewise.
39034
39035 2006-11-29  Bruno Haible  <bruno@clisp.org>
39036
39037         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39038         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
39039         using +=.
39040         Reported by Simon Josefsson <simon@josefsson.org>.
39041
39042 2006-11-28  James Youngman <jay@gnu.org>
39043
39044         * README: Advise users that they might find the bug-gnulib@gnu.org
39045         and autotools-announce@gnu.org mailing lists useful.
39046
39047 2006-11-28  Bruno Haible  <bruno@clisp.org>
39048
39049         * m4/ptrdiff_max.m4: Remove file.
39050
39051 2006-11-21  Bruno Haible  <bruno@clisp.org>
39052
39053         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
39054         _AC_COMPUTE_INT.
39055         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39056         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
39057         _AC_COMPUTE_INT.
39058         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39059         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
39060         _AC_COMPUTE_INT.
39061         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39062
39063 2006-11-28  Jim Meyering  <jim@meyering.net>
39064
39065         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
39066         warning from "gcc -Wshadow" about shadowing the builtin.
39067
39068 2006-11-27  Bruno Haible  <bruno@clisp.org>
39069
39070         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
39071         _AC_COMPUTE_INT.
39072         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39073
39074 2006-11-27  Bruno Haible  <bruno@clisp.org>
39075             Paul Eggert  <eggert@cs.ucla.edu>
39076
39077         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
39078
39079 2006-11-26  Bruno Haible  <bruno@clisp.org>
39080
39081         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39082         noinst_LTLIBRARIES.
39083
39084 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
39085             Bruno Haible  <bruno@clisp.org>
39086
39087         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
39088         if compiling with "gcc -ansi".
39089
39090 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
39091
39092         Fix some incompatibilities with gcc -ansi -pedantic.
39093         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
39094         if compiling pedantically with GCC, unless it's C99 or later.
39095         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
39096         it mishandles gcc -ansi -pedantic as well.
39097         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
39098         if gcc -pedantic.
39099         * lib/regexec.c (check_node_accept_bytes): Don't use auto
39100         initializers for struct if -pedantic, unless it's C99 or later.
39101
39102 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
39103
39104         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
39105         Don't close an fd more than once. Identical atimes indicate
39106         success, not failure.
39107
39108 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
39109
39110         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
39111
39112 2006-11-23  Jim Meyering  <jim@meyering.net>
39113
39114         * build-aux/announce-gen: New file.  From coreutils.
39115
39116 2006-11-22  Jim Meyering  <jim@meyering.net>
39117
39118         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
39119         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
39120         (fts_read): Use a temporary to narrow the overused st_size member
39121         before using it in a switch statement.  Reported by Matthew Woehlke.
39122
39123         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
39124         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39125
39126 2006-11-20  Bruno Haible  <bruno@clisp.org>
39127
39128         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
39129         changequote instead of pairs of brackets.
39130         Reported by Andreas Schwab <schwab@suse.de>.
39131
39132 2006-11-21  Jim Meyering  <jim@meyering.net>
39133
39134         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
39135         so as to remain compatible with older compilers.
39136         Patch from Michael Deutschmann.
39137
39138 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
39139
39140         * MODULES.html.sh (File system functions): Add openat.
39141
39142         * lib/openat.h (rpl_fstatat): New macro, if
39143         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
39144         (fstatat): Define to rpl_fstatat under the same conditions,
39145         unless COMPILING_FSTATAT.
39146         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
39147         seems to have the bug.
39148         * lib/fstatat.c: New file.
39149         * modules/openat (Files): Add it.
39150
39151 2006-11-20  Bruno Haible  <bruno@clisp.org>
39152
39153         * Makefile: New file.
39154
39155 2006-11-20  Jim Meyering  <jim@meyering.net>
39156
39157         The beginnings of syntax-related checks for gnulib.
39158         * lib/Makefile: New file.
39159         * lib/t-idcache: New script.  Ensure that the two halves of
39160         idcache.c stay in sync.
39161
39162         * lib/idcache.c: Adjust comments in user- and group- portions to
39163         be more accurate, and to be consistent with one another.
39164
39165 2006-11-20  Jim Meyering  <jim@meyering.net>
39166
39167         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
39168         continue using the flexible array member (thus, this module performs
39169         half as many malloc calls), with the addition that...
39170         (getgroup, getuser): Consistently record a non-match via an empty
39171         "name" string, and map an empty string match to a NULL return value.
39172         * modules/idcache (Depends-on): Re-add flexmember.
39173
39174         * lib/idcache.c (getuser): Remove all uses of the register keyword.
39175         (getuidbyname, getgroup, getgidbyname): Likewise.
39176
39177         Use cleaner syntax: NULL rather than 0.
39178         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
39179
39180 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
39181
39182         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
39183         It mishandled the case where the group was missing.
39184         Problem reported by Greg Schafer.
39185         * modules/idcache: Likewise.
39186
39187 2006-11-18  Jim Meyering  <jim@meyering.net>
39188
39189         * check-module (%exempt_header): Add exception for some
39190         conditionally-included headers.
39191
39192         * modules/i-ring (Depends-on): Add verify.
39193         (License): Change to LGPL.
39194
39195 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39196
39197         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
39198         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
39199         and inttostr.h.  Use snprintf rather than uinttostr, so that
39200         LGPLed code doesn't depend on GPLed.
39201
39202 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
39203
39204         * modules/inline (License): Change from GPL to LGPL.
39205
39206 2006-11-17  Jim Meyering  <jim@meyering.net>
39207
39208         * modules/d-type (License): Switch to LGPL.
39209
39210 2006-11-15  Bruno Haible  <bruno@clisp.org>
39211
39212         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
39213
39214 2006-11-15  Eric Blake  <ebb9@byu.net>
39215
39216         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
39217         the module dependency.
39218
39219 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39220             Bruno Haible  <bruno@clisp.org>
39221
39222         * gnulib-tool (func_create_testdir): Add license consistency check.
39223
39224 2006-11-15  Eric Blake  <ebb9@byu.net>
39225
39226         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
39227         random "(cached)" in configure output.
39228
39229 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39230
39231         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
39232         test for conforming inttypes.h is both announced and cached.
39233
39234         * MODULES.html.sh (seen_modules, seen_files): New variables.
39235         (func_module): Rewrite to use a few less gnulib-tool and sed
39236         invocations.  Avoid a couple of quadratic algorithms for ...
39237         (missed_modules, missed_files): ... these, with ...
39238         (func_append, func_tmpdir): ... these new functions, from
39239         gnulib-tool.  Analogously, install traps for cleanup.
39240
39241         * tests/test-gc.c (main): Remove unused variables.
39242         * tests/test-read-file.c: Include stdlib.h, for 'free'.
39243
39244 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
39245
39246         * modules/inttostr (License): Change to LGPL.
39247
39248 2006-11-14  Eric Blake  <ebb9@byu.net>
39249
39250         * modules/tempname (License): Change to LGPL.
39251
39252 2006-11-14  Eric Blake  <ebb9@byu.net>
39253
39254         * doc/functions.texi (Function Portability): *printf functions on
39255         Cygwin now understand all POSIX size specifiers.
39256
39257 2006-11-14  Bruno Haible  <bruno@clisp.org>
39258
39259         * modules/c-ctype (License): Change to LGPL.
39260
39261 2006-11-12  Bruno Haible  <bruno@clisp.org>
39262
39263         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
39264         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
39265         for GNOME libraries, for which the include files are installed in
39266         subdirectories of $prefix/include.
39267
39268 2006-11-12  Bruno Haible  <bruno@clisp.org>
39269
39270         * m4/lib-link.m4: Require at least autoconf-2.54.
39271         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
39272         name to underscores for the --with option.
39273
39274 2006-11-13  Bruno Haible  <bruno@clisp.org>
39275
39276         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
39277         the tests directory.
39278         Reported by Ralf Wildenhues.
39279
39280 2006-11-13  Bruno Haible  <bruno@clisp.org>
39281
39282         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
39283         (func_emit_initmacro_end): Undo the override here.
39284         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
39285         Works around the famous automake error in coreutils.
39286
39287 2006-11-13  Eric Blake  <ebb9@byu.net>
39288
39289         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
39290         element, not its node.
39291
39292 2006-11-12  Bruno Haible  <bruno@clisp.org>
39293
39294         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
39295         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
39296
39297 2006-11-12  Bruno Haible  <bruno@clisp.org>
39298
39299         * gnulib-tool: New option --local-symlink.
39300         (func_usage): Document it.
39301         (lsymbolic): New variable.
39302         (func_import, func_create_testdir): If --symlink was not specified,
39303         test whether --local-symlink was specified and the file comes from
39304         the local_gnulib_dir.
39305
39306 2006-11-12  Bruno Haible  <bruno@clisp.org>
39307
39308         * gnulib-tool (func_ln): New function.
39309         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
39310
39311 2006-11-12  Bruno Haible  <bruno@clisp.org>
39312
39313         Finish support for source files in subdirectories.
39314         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
39315         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
39316         AUTOMAKE_OPTIONS.
39317         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
39318
39319 2006-11-12  Bruno Haible  <bruno@clisp.org>
39320
39321         * gnulib-tool (func_get_automake_snippet): Synthesize also an
39322         EXTRA_lib_SOURCES augmentation.
39323         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
39324
39325 2006-11-12  Jim Meyering  <jim@meyering.net>
39326
39327         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
39328         file descriptors.  This also averts a failure on systems with
39329         native openat support when a traversed directory lacks "x" access.
39330         * lib/fts_.h: Include "i-ring.h"
39331         (struct FTS) [fts_fd_ring]: New member.
39332         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
39333         (FCHDIR): Add parentheses.
39334         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
39335         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
39336         When descending, rather than simply closing the previous
39337         fts_cwd_fd value, push that file descriptor onto the ring.
39338         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
39339         (fts_open): Initialize the new fd_ring member.
39340         (fts_close): Clear the ring.
39341         (fts_safe_changedir): When possible, use our new fd_ring to skip
39342         the diropen and fstat and dev/ino comparison that would normally
39343         accompany a virtual `chdir ("..")'.
39344
39345         * modules/fts (Depends-on): Add i-ring.
39346         * modules/i-ring: New module.
39347         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
39348         * m4/i-ring.m4: New file.
39349
39350 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39351
39352         * gnulib-tool (func_create_testdir): Fix replacement of
39353         `build-aux' in configure.ac.  Run autotools in gltests
39354         subdirectory.
39355         (func_create_testdir, func_create_megatestdir, test): There is
39356         no need for '--force' in most autotool invocations in a new
39357         tree.  Actually fail the whole test if any of the tools, or the
39358         configure or make stages fail.
39359
39360         Sync from Automake.
39361         * build-aux/gnupload: Revert last change.  Add pointer to upload
39362         instructions of the GNU Maintenance Instructions.
39363         Suggestion by Karl Berry.
39364
39365 2006-11-10  Jim Meyering  <jim@meyering.net>
39366
39367         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
39368
39369 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39370
39371         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
39372         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
39373         (bind_textdomain_codeset) [! ENABLE_NLS]:
39374         Evaluate all the arguments.  That way, callers get compatible behavior
39375         if the arguments have side effects.  Also, it avoids some GCC
39376         diagnostics in some cases; Joel E. Denny reported problems when Bison
39377         was configured with --enable-gcc-warnigs.
39378
39379 2006-11-10  Jim Meyering  <jim@meyering.net>
39380
39381         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
39382         relevant options in CFLAGS (like -O, -fno-inline) are taken into
39383         account.
39384
39385 2006-11-10  Jim Meyering  <jim@meyering.net>
39386
39387         * modules/inline: New file/module.
39388         * modules/xalloc (Files): Remove m4/inline.m4.
39389         (Depends-on): Add inline, instead.
39390         * modules/oset: Likewise.
39391         * modules/list: Likewise.
39392
39393 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39394
39395         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
39396         Problem reported by Matthew Woehlke.
39397
39398 2006-11-09  Bruno Haible  <bruno@clisp.org>
39399
39400         * lib/tempname.c (gen_tempname): Remove variant that invokes
39401         __gen_tempname.
39402         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
39403         __gen_tempname.
39404
39405 2006-11-08  Bruno Haible  <bruno@clisp.org>
39406
39407         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
39408         to 'yes' instead of 'cross-compiling'.
39409
39410 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
39411
39412         * lib/quotearg.h (quotearg_free): New decl.
39413         * lib/quotearg.c (quotearg_free): New function.
39414         (slot0, nslots, slotvec0, slotvec):
39415         Now file-scope so that quotearg_free can get at them.
39416
39417 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39418
39419         Sync from Automake.
39420         * build-aux/gnupload: Add missing 'gnu' to example URL.
39421         Report by Karl Berry.
39422
39423 2006-11-08  Bruno Haible  <bruno@clisp.org>
39424
39425         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
39426         Suggested by Paul Eggert.
39427
39428 2006-11-08  Jim Meyering  <jim@meyering.net>
39429
39430         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
39431         It's already included if !_LIBC.
39432         (fts_safe_changedir): Add a comment.
39433
39434 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
39435
39436         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
39437         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
39438         Matthew Woehlke.
39439
39440         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
39441         definitions up, to avoid colliding with change below.
39442         (static_inline) [HAVE_INLINE]: New macro.
39443         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
39444         Provide extern decls when !HAVE_INLINE.  Do not define unless
39445         static_inline is defined, either by us or by xmalloc.c.  Use
39446         static_inline rather than static inline.
39447         (XCALLOC): Optimize sizeof(T) = 1 case.
39448         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
39449
39450 2006-11-07  Bruno Haible  <bruno@clisp.org>
39451
39452         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
39453         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
39454         AC_C_INLINE.
39455         * modules/xalloc (Files): Add m4/inline.m4.
39456
39457 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39458
39459         * README: Fix typo.
39460         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
39461         (Miscellanous Notes): ...from this.
39462
39463 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
39464
39465         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
39466         Mention that offsetof should be used instead of sizeof.
39467         From Bruno Haible.
39468
39469 2006-11-07  Bruno Haible  <bruno@clisp.org>
39470
39471         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
39472
39473 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
39474
39475         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
39476         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
39477         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
39478         (gl_tree_add_before, gl_tree_add_after):
39479         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
39480         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
39481         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
39482         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
39483         (gl_linked_add_after, gl_linked_add_at): Likewise.
39484         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
39485         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
39486         (gl_tree_add_before, gl_tree_add_after): Likewise.
39487         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
39488         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
39489         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
39490
39491 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39492
39493         * lib/gl_oset.h: Use C comment style, not C++ comment style.
39494
39495 2006-11-06  Bruno Haible  <bruno@clisp.org>
39496
39497         * m4/inline.m4: New file.
39498         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
39499         * modules/list (Files): Add m4/inline.m4.
39500         * modules/oset (Files): Likewise.
39501
39502 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
39503
39504         * lib/idcache.c: Include <stddef.h>, for offsetof.
39505         (struct userid.name): Change from char * to a flexible array member.
39506         All uses changed.
39507         * modules/idcache (Depends-on): Add flexmember.
39508
39509         * MODULES.html.sh (Core language properties): New module flexmember.
39510         * modules/flexmember, m4/flexmember.m4: New files.
39511
39512         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
39513         inline functions that are identical with the old xnmalloc_inline,
39514         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
39515         that we can avoid some unnecessary integer multiplications and
39516         divisions in the common case where the element size is known at
39517         compile time.
39518         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
39519         needed.
39520         (xnboundedmalloc): Remove.
39521         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
39522         arguments, for consistency with rest of this header.
39523         (xcharalloc): Rewrite using XNMALLOC.
39524         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
39525         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
39526         versions have been moved to lib/xalloc.h and renamed to be the
39527         non-*_inline versions.
39528         (xmalloc, xrealloc): Implement without reference to the xnmalloc
39529         and xnrealloc functions, since those functions are now inline and
39530         now call us.
39531         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
39532         renaming described above.
39533         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
39534         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
39535         captures the dependency in AC_C_INLINE.
39536
39537         New module canonicalize-lgpl, proposed by Charles Wilson in
39538         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
39539         with a few small changes afterwards.
39540         * MODULES.html.sh (File system functions): New module
39541         canonicalize-lgpl.
39542         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
39543         and canonicalize_file_name.
39544         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
39545         * modules/canonicalize-lgpl: New files.
39546
39547 2006-11-05  Bruno Haible  <bruno@clisp.org>
39548
39549         * gnulib-tool (func_import, func_create_testdir): Create directories
39550         also for files in subdirectories of lib/.
39551
39552 2006-11-05  Bruno Haible  <bruno@clisp.org>
39553
39554         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
39555         ANSI C compliant.
39556
39557 2006-11-03  Bruno Haible  <bruno@clisp.org>
39558
39559         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
39560         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
39561         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
39562         (xnboundedmalloc): New inline function.
39563         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
39564         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
39565         xmalloc.
39566         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
39567         xmalloc.
39568         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
39569         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
39570         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
39571         xmalloc.
39572         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
39573         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
39574         xmalloc.
39575         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
39576         gl_tree_add_after): Use XMALLOC instead of xmalloc.
39577         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
39578         xmalloc.
39579         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
39580         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
39581         gl_tree_add_after): Use XMALLOC instead of xmalloc.
39582         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
39583         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
39584         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
39585         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
39586
39587 2006-11-03  Bruno Haible  <bruno@clisp.org>
39588
39589         * lib/c-ctype.h [C++]: Define functions without name mangling.
39590         * lib/fwriteerror.h [C++]: Likewise.
39591         * lib/gcd.h [C++]: Likewise.
39592         * lib/linebreak.h [C++]: Likewise.
39593
39594 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
39595
39596         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
39597         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
39598         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
39599         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
39600         Check for functions and headers just once.
39601         Check for declaration of canonicalize_file_name.
39602         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
39603
39604 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
39605
39606         * gnulib-tool (func_import): Fix typo in actioncmd.
39607
39608 2006-11-02  Bruno Haible  <bruno@clisp.org>
39609
39610         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
39611         newline sequence in the Makefile.am snippet as a space, like "make"
39612         does.
39613         Reported by Roger Persson <perrog@gmail.com>.
39614
39615 2006-11-01  Bruno Haible  <bruno@clisp.org>
39616
39617         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
39618         already declared in <string.h>.
39619         * lib/strcase.h (strncasecmp): Don't declare it if yes.
39620
39621 2006-11-01  Bruno Haible  <bruno@clisp.org>
39622
39623         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
39624         * lib/strcase.h: Include <string.h>.
39625         (strcasecmp): Define to rpl_strcasecmp here.
39626
39627 2006-11-01  Bruno Haible  <bruno@clisp.org>
39628
39629         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
39630
39631 2006-11-01  Eric Blake  <ebb9@byu.net>
39632
39633         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
39634
39635         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
39636
39637 2006-10-29  Bruno Haible  <bruno@clisp.org>
39638
39639         Make it compile in C++ mode.
39640         * lib/full-write.c (full_rw): Add a cast.
39641
39642 2006-11-01  Bruno Haible  <bruno@clisp.org>
39643
39644         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
39645         be POSIX compliant.
39646         Reported by Roger Persson <perrog@gmail.com>.
39647
39648 2006-11-01  Eric Blake  <ebb9@byu.net>
39649
39650         * lib/getopt_.h: Fix comments.
39651
39652 2006-10-31  Eric Blake  <ebb9@byu.net>
39653
39654         * modules/tmpdir (Depends-on): Add sys_stat.
39655         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
39656         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
39657         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
39658         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
39659         tempname.
39660
39661 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
39662
39663         Avoid some C++ diagnostics reported by Bruno Haible.
39664         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
39665         xmalloc.
39666         (quotearg_alloc): Use xcharalloc rather than xmalloc.
39667         (struct slotvec): Move to top level.
39668         (quotearg_n_options): Rewrite to avoid xmalloc.
39669         * lib/xalloc.h (xcharalloc): New function.
39670         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
39671         [defined __cplusplus]: Add function template that provides result
39672         type propagation.  This part of the change is from Bruno Haible.
39673
39674 2006-10-29  Bruno Haible  <bruno@clisp.org>
39675
39676         Make it compile in C++ mode.
39677         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
39678         * lib/strnlen1.c (strnlen1): Cast memchr result.
39679         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
39680         * lib/clean-temp.c (string_equals, string_hash): Add casts.
39681         (create_temp_dir): Rename local variable 'template'.
39682         (compile_csharp_using_sscli): Add cast.
39683         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
39684         * lib/findprog.c (find_in_path): Likewise.
39685         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
39686         * lib/wait-process.c (register_slave_subprocess): Likewise.
39687
39688 2006-10-22  Bruno Haible  <bruno@clisp.org>
39689
39690         * modules/tsearch: New file.
39691         * lib/tsearch.h: New file.
39692         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
39693         * m4/tsearch.m4: New file.
39694         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
39695
39696 2006-10-29  Eric Blake  <ebb9@byu.net>
39697
39698         * lib/arcfour.c: Assume config.h.
39699         * lib/arctwo.c: Likewise.
39700         * lib/base64.c: Likewise.
39701         * lib/check-version.c: Likewise.
39702         * lib/crc.c: Likewise.
39703         * lib/des.c: Likewise.
39704         * lib/gc-gnulib.c: Likewise.
39705         * lib/gc-libgcrypt.c: Likewise.
39706         * lib/gc-pbkdf2-sha1.c: Likewise.
39707         * lib/getaddrinfo.c: Likewise.
39708         * lib/getdelim.c: Likewise.
39709         * lib/getline.c: Likewise.
39710         * lib/hmac-md5.c: Likewise.
39711         * lib/hmac-sha1.c: Likewise.
39712         * lib/iconvme.c: Likewise.
39713         * lib/md2.c: Likewise.
39714         * lib/md4.c: Likewise.
39715         * lib/memxor.c: Likewise.
39716         * lib/read-file.c: Likewise.
39717         * lib/readline.c: Likewise.
39718         * lib/rijndael-alg-fst.c: Likewise.
39719         * lib/rijndael-api-fst.c: Likewise.
39720         * lib/xgetdomainname.c: Likewise.
39721
39722 2006-10-28  Eric Blake  <ebb9@byu.net>
39723
39724         * lib/xstrndup.c: Assume config.h.
39725
39726 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
39727
39728         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
39729         stat-macros.h is now for our own macros, whereas stat_h is for
39730         macros in the <sys/stat.h> name space.
39731         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
39732         (STAT_MACROS_H): Remove.
39733         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
39734         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
39735         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
39736         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
39737         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
39738         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
39739         Move these macros to ...
39740         * lib/stat_.h: here.  Don't include stat-macros.h.
39741         * lib/canonicalize.c: Don't include stat-macros.h.
39742         * lib/chown.c: Likewise.
39743         * lib/euidaccess.c: Likewise.
39744         * lib/file-type.c: Likewise.
39745         * lib/filemode.c: Likewise.
39746         * lib/glob.c: Likewise.
39747         * lib/isapipe.c: Likewise.
39748         * lib/lchown.c: Likewise.
39749         * lib/lstat.c: Likewise.
39750         * lib/mkdir-p.c: Likewise.
39751         * lib/rmdir.c: Likewise.
39752         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
39753         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
39754         unless mkdir isn't declared, to speed up 'configure'.
39755         Always create sys/stat.h, since it's unlikely any real sys/stat.h
39756         would define all the S_* symbols.
39757         * modules/canonicalize (Depends-on):
39758         Depend on sys_stat, not stat-macros.
39759         * modules/chown: Likewise.
39760         * modules/euidaccess: Likewise.
39761         * modules/filemode: Likewise.
39762         * modules/file-type: Likewise.
39763         * modules/glob: Likewise.
39764         * modules/isapipe: Likewise.
39765         * modules/lchown: Likewise.
39766         * modules/lstat: Likewise.
39767         * modules/mkancesdirs: Likewise.
39768         * modules/rmdir: Likewise.
39769         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
39770         * modules/modechange: Likewise.
39771         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
39772         (configure.ac): Remove gl_STAT_MACROS.
39773         * modules/sys_stat (Depends-on): Remove stat-macros.
39774
39775 2006-10-27  Bruno Haible  <bruno@clisp.org>
39776
39777         * m4/signed.m4: Remove file.
39778         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
39779         invocation.
39780         * modules/vasnprintf (Files): Remove m4/signed.m4.
39781
39782 2006-10-27  Bruno Haible  <bruno@clisp.org>
39783
39784         Update to GNU gettext 0.16.
39785         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
39786         m4/inttypes-h.m4, m4/signed.m4.
39787         * m4/gettext.m4: Update to GNU gettext 0.16.
39788         * m4/intl.m4: New file, from GNU gettext.
39789         * m4/intldir.m4: New file, from GNU gettext.
39790         * config/srclist.txt: Update
39791
39792 2006-10-27  Eric Blake  <ebb9@byu.net>
39793
39794         * MODULES.html.sh: Document tempname.
39795         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
39796         dependencies.
39797         (Files): Move lib/tempname.c...
39798         * modules/tempname: ...to this new module.
39799         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
39800         (gl_PREREQ_TEMPNAME): Move...
39801         * m4/tempname.m4: ...to this new file.
39802         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
39803         * modules/sys_stat (Depends-on): Add stat-macros.
39804         * lib/stat_.h (includes): Pick up stat macros.
39805         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
39806         if stat macros are broken.
39807         * lib/tempname.c (includes): No need to include "stat-macros.h".
39808         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
39809         (direxists, __path_search) [!_LIBC]: Don't compile these in
39810         gnulib; the tmpdir module covers that.
39811         * lib/tempname.h: New file.
39812
39813 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
39814
39815         * COPYING: Explain how gnulib-tool converts licence headers.
39816         Almost all wording by Eric Blake.
39817
39818 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
39819
39820         * lib/mbchar.h (is_basic_table): Make read-only.
39821         * lib/mbchar.c (is_basic_table): Likewise.
39822         Reported by John Darrington.
39823
39824 2006-10-25  Bruno Haible  <bruno@clisp.org>
39825
39826         * lib/progname.h (set_program_name): Undefine before defining.
39827
39828 2006-10-25  Bruno Haible  <bruno@clisp.org>
39829
39830         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
39831         false for non-gcc C++ compilers.
39832         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39833
39834 2006-10-24  Bruno Haible  <bruno@clisp.org>
39835
39836         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
39837         iconv implementations like Irix iconv.
39838
39839 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39840
39841         * modules/vararrays: New file.
39842         * m4/vararrays.m4: New file, taken from diffutils.
39843         * MODULES.html.sh: New module vararrays.
39844
39845 2006-10-24  Karl Berry  <karl@gnu.org>
39846
39847         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
39848         Don't call GNU Unix.
39849
39850 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39851
39852         * users.txt: Add Libtool.
39853
39854         Sync from Libtool:
39855
39856         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39857
39858         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
39859         to gnulib's policy of including config.h unconditionally.
39860
39861 2006-10-24  Bruno Haible  <bruno@clisp.org>
39862
39863         * modules/wcwidth (Files): Add m4/wint_t.m4.
39864         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
39865         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
39866
39867 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39868
39869         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
39870         to pacify GCC with some -W flags enabled.  Problem reported by
39871         Bruno Haible.
39872
39873 2006-10-24  Jim Meyering  <jim@meyering.net>
39874
39875         * MODULES.html.sh: Remove uinttostr.  It's not a module.
39876         Reported by Karl Berry.
39877
39878 2006-10-23  Bruno Haible  <bruno@clisp.org>
39879
39880         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
39881
39882 2006-10-24  Bruno Haible  <bruno@clisp.org>
39883
39884         * lib/gl_list.h: Use C comment style, not C++ comment style.
39885
39886 2006-10-23  Eric Blake  <ebb9@byu.net>
39887
39888         * lib/getaddrinfo.c (includes): Add missing include.
39889
39890 2006-10-23  Bruno Haible  <bruno@clisp.org>
39891             Paul Eggert  <eggert@cs.ucla.edu>
39892
39893         Ability to rename obstack_free.
39894         * lib/obstack.h (__obstack_free): New macro. Declare instead of
39895         obstack_free.
39896         (obstack_free): Invoke the __obstack_free macro.
39897         * lib/obstack.c (obstack_free): Use __obstack_free macro.
39898
39899 2006-10-23  Bruno Haible  <bruno@clisp.org>
39900             Paul Eggert  <eggert@cs.ucla.edu>
39901
39902         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
39903         __argc, __argv from the declaration. (They are defined as macros on
39904         mingw.)
39905
39906 2006-10-22  Bruno Haible  <bruno@clisp.org>
39907
39908         * doc/gnulib-intro.texi: New file.
39909         * doc/gnulib.texi: Include it.
39910
39911 2006-10-21  Bruno Haible  <bruno@clisp.org>
39912
39913         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
39914         "Introduction", "Miscellanous Notes", "Particular Modules".
39915
39916 2006-10-21  Bruno Haible  <bruno@clisp.org>
39917
39918         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39919         Change mostlyclean-local rule to avoid sh syntax error from bash
39920         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
39921
39922 2006-10-23  Jim Meyering  <jim@meyering.net>
39923
39924         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
39925         in place of snprintf.
39926
39927         * modules/inttostr (Files): Add lib/uinttostr.c.
39928         * lib/uinttostr.c (inttostr): New file/function.
39929         * lib/inttostr.h (uinttostr): Declare.
39930         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
39931         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
39932         Add uinttostr.
39933         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
39934
39935 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
39936
39937         * lib/canonicalize.c (ELOOP): Define if not already defined.
39938         Problem reported by Bruno Haible in
39939         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
39940
39941 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
39942
39943         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
39944         Problem reported by Perry Smith and Ville Laurikari.
39945
39946         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
39947         uses.
39948
39949 2006-10-19  Bruno Haible  <bruno@clisp.org>
39950
39951         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
39952         for mingw.
39953
39954 2006-10-19  Bruno Haible  <bruno@clisp.org>
39955
39956         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
39957         Needed for mingw.
39958
39959 2006-10-19  Bruno Haible  <bruno@clisp.org>
39960
39961         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
39962
39963 2006-10-19  Bruno Haible  <bruno@clisp.org>
39964
39965         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
39966         it.
39967
39968 2006-10-19  Bruno Haible  <bruno@clisp.org>
39969
39970         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
39971         invocation.
39972
39973 2006-10-19  Bruno Haible  <bruno@clisp.org>
39974
39975         * gnulib-tool (func_create_testdir): Don't include ftruncate and
39976         mountlist by default.
39977
39978 2006-10-16  Bruno Haible  <bruno@clisp.org>
39979
39980         * lib/c-strstr.c: Include c-strstr.h.
39981
39982 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
39983
39984         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
39985         in a slash.
39986
39987 2006-10-18  Bruno Haible  <bruno@clisp.org>
39988
39989         * lib/lock.h [C++]: Wrap definitions in extern "C".
39990
39991 2006-10-18  Bruno Haible  <bruno@clisp.org>
39992
39993         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
39994         gl_LIBOBJS list.
39995
39996 2006-10-18  Bruno Haible  <bruno@clisp.org>
39997
39998         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
39999
40000 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
40001
40002         * lib/xstrtol.h: Include gettext.h.
40003         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
40004         Problem reported by Eric Blake.
40005         * modules/xstrtol (Depends-on): Add gettext-h.
40006
40007 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
40008
40009         * lib/strftime.c (advance): New macro.
40010         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
40011         incomplete type, so you can't add 0 to it.  Problem and patch
40012         reported by Eelco Dolstra for dietlibc.
40013
40014 2006-10-18  Jim Meyering  <jim@meyering.net>
40015
40016         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
40017         type for a local, and rename it: s/up/user_proc/.
40018
40019 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
40020
40021         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
40022         READ_UTMP_USER_PROCESS.
40023         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
40024
40025 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
40026
40027         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
40028         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
40029
40030 2006-10-17  Eric Blake  <ebb9@byu.net>
40031
40032         * lib/sigprocmask.c (sigprocmask): Fix typo.
40033
40034         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
40035
40036         * modules/clean-temp (Makefile.am): Don't add to make output...
40037         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
40038         config.h.
40039
40040 2006-10-17  Bruno Haible  <bruno@clisp.org>
40041
40042         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
40043         differently if DEFAULT_TEXT_DOMAIN is set.
40044
40045 2006-10-16  Bruno Haible  <bruno@clisp.org>
40046
40047         * lib/clean-temp.c: Include fwriteerror.h.
40048
40049 2006-10-16  Bruno Haible  <bruno@clisp.org>
40050
40051         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
40052
40053 2006-10-16  Bruno Haible  <bruno@clisp.org>
40054
40055         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
40056         * lib/sigprocmask.h: Include <sys/types.h>.
40057         (sigset_t): Use the system's definition if present.
40058
40059 2006-10-17  Eric Blake  <ebb9@byu.net>
40060
40061         * lib/xvasprintf.c (includes): Assume config.h.
40062         * lib/xasprintf.c (includes): Likewise.
40063
40064 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40065
40066         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
40067         at least as wide as intmax_t.
40068
40069 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
40070
40071         (Imported from Automake.)
40072         * build-aux/gnupload: Update to version 1.1 of directive file.
40073
40074 2006-10-16  Eric Blake  <ebb9@byu.net>
40075
40076         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
40077         match Automake 1.10a.
40078
40079 2006-10-14  Bruno Haible  <bruno@clisp.org>
40080
40081         * modules/sigprocmask: New file.
40082         * lib/sigprocmask.h: New file.
40083         * lib/sigprocmask.c: New file.
40084         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
40085         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
40086         request sigprocmask.o.
40087         (gl_PREREQ_SIGPROCMASK): New macro.
40088         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
40089         (Depends-on): Add sigprocmask.
40090         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
40091         gt_SIGNALBLOCKING. Test for 'raise' only once.
40092         * lib/fatal-signal.c: Include sigprocmask.h.
40093         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
40094         unblock_fatal_signals): Define always.
40095         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40096         sigprocmask.
40097
40098 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
40099
40100         Sync from Automake.
40101         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
40102         which incorrectly sets the mode of an existing destination
40103         directory.  In some cases the unpatched install-sh could do the
40104         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
40105         system.  We hope this is rare in practice, but it's clearly worth
40106         fixing.  Problem reported by Alex Unleashed in
40107         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
40108         Also, don't bother to check for -m bugs unless we're using -m;
40109         suggested by Stepan Kasal.
40110
40111 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40112
40113         Sync from Automake.
40114         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
40115         `-c' flag, so they appear at the same position as in %FASTDEP%
40116         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
40117         which ignores unknown options only after the first non-option.
40118         Bug report against M4 by Nelson H. F. Beebe.
40119
40120 2006-10-13  Jim Meyering  <jim@meyering.net>
40121
40122         Fix a bug in yesterday's change.
40123         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
40124         p->fts_statp->st_dev would be used uninitialized.
40125         Ensures that we always call fts_stat on the very first entry.
40126         Miklos Szeredi reported that find -xdev stopped working.
40127
40128 2006-10-12  Bruno Haible  <bruno@clisp.org>
40129
40130         * gnulib-tool (func_get_automake_snippet): Append an automatically
40131         computed EXTRA_DIST augmentation.
40132         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
40133         * modules/alloca-opt (Makefile.am): Likewise.
40134         * modules/allocsa (Makefile.am): Likewise.
40135         * modules/arcfour (Makefile.am): Likewise.
40136         * modules/arctwo (Makefile.am): Likewise.
40137         * modules/argmatch (Makefile.am): Likewise.
40138         * modules/argz (Makefile.am): Likewise.
40139         * modules/atexit (Makefile.am): Likewise.
40140         * modules/backupfile (Makefile.am): Likewise.
40141         * modules/byteswap (Makefile.am): Likewise.
40142         * modules/c-strtod (Makefile.am): Likewise.
40143         * modules/c-strtold (Makefile.am): Likewise.
40144         * modules/calloc (Makefile.am): Likewise.
40145         * modules/canon-host (Makefile.am): Likewise.
40146         * modules/canonicalize (Makefile.am): Likewise.
40147         * modules/chdir-long (Makefile.am): Likewise.
40148         * modules/chdir-safer (Makefile.am): Likewise.
40149         * modules/check-version (Makefile.am): Likewise.
40150         * modules/chown (Makefile.am): Likewise.
40151         * modules/cloexec (Makefile.am): Likewise.
40152         * modules/close-stream (Makefile.am): Likewise.
40153         * modules/closeout (Makefile.am): Likewise.
40154         * modules/crc (Makefile.am): Likewise.
40155         * modules/csharpexec (Makefile.am): Likewise.
40156         * modules/cycle-check (Makefile.am): Likewise.
40157         * modules/des (Makefile.am): Likewise.
40158         * modules/dev-ino (Makefile.am): Likewise.
40159         * modules/dirfd (Makefile.am): Likewise.
40160         * modules/dirname (Makefile.am): Likewise.
40161         * modules/dup2 (Makefile.am): Likewise.
40162         * modules/eealloc (Makefile.am): Likewise.
40163         * modules/error (Makefile.am): Likewise.
40164         * modules/euidaccess (Makefile.am): Likewise.
40165         * modules/exclude (Makefile.am): Likewise.
40166         * modules/exitfail (Makefile.am): Likewise.
40167         * modules/fcntl-safer (Makefile.am): Likewise.
40168         * modules/fcntl (Makefile.am): Likewise.
40169         * modules/file-type (Makefile.am): Likewise.
40170         * modules/fileblocks (Makefile.am): Likewise.
40171         * modules/filemode (Makefile.am): Likewise.
40172         * modules/filenamecat (Makefile.am): Likewise.
40173         * modules/fnmatch (Makefile.am): Likewise.
40174         * modules/fopen-safer (Makefile.am): Likewise.
40175         * modules/fpending (Makefile.am): Likewise.
40176         * modules/fprintftime (Makefile.am): Likewise.
40177         * modules/free (Makefile.am): Likewise.
40178         * modules/fsusage (Makefile.am): Likewise.
40179         * modules/ftruncate (Makefile.am): Likewise.
40180         * modules/fts (Makefile.am): Likewise.
40181         * modules/gc-arcfour (Makefile.am): Likewise.
40182         * modules/gc-des (Makefile.am): Likewise.
40183         * modules/gc-hmac-md5 (Makefile.am): Likewise.
40184         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
40185         * modules/gc-md4 (Makefile.am): Likewise.
40186         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
40187         * modules/gc-sha1 (Makefile.am): Likewise.
40188         * modules/gc (Makefile.am): Likewise.
40189         * modules/getaddrinfo (Makefile.am): Likewise.
40190         * modules/getcwd (Makefile.am): Likewise.
40191         * modules/getdelim (Makefile.am): Likewise.
40192         * modules/getdomainname (Makefile.am): Likewise.
40193         * modules/getgroups (Makefile.am): Likewise.
40194         * modules/gethostname (Makefile.am): Likewise.
40195         * modules/gethrxtime (Makefile.am): Likewise.
40196         * modules/getline (Makefile.am): Likewise.
40197         * modules/getloadavg (Makefile.am): Likewise.
40198         * modules/getlogin_r (Makefile.am): Likewise.
40199         * modules/getndelim2 (Makefile.am): Likewise.
40200         * modules/getopt (Makefile.am): Likewise.
40201         * modules/getpagesize (Makefile.am): Likewise.
40202         * modules/getpass-gnu (Makefile.am): Likewise.
40203         * modules/getpass (Makefile.am): Likewise.
40204         * modules/getsubopt (Makefile.am): Likewise.
40205         * modules/gettime (Makefile.am): Likewise.
40206         * modules/gettimeofday (Makefile.am): Likewise.
40207         * modules/getugroups (Makefile.am): Likewise.
40208         * modules/getusershell (Makefile.am): Likewise.
40209         * modules/glob (Makefile.am): Likewise.
40210         * modules/group-member (Makefile.am): Likewise.
40211         * modules/hard-locale (Makefile.am): Likewise.
40212         * modules/hash (Makefile.am): Likewise.
40213         * modules/hmac-md5 (Makefile.am): Likewise.
40214         * modules/hmac-sha1 (Makefile.am): Likewise.
40215         * modules/human (Makefile.am): Likewise.
40216         * modules/idcache (Makefile.am): Likewise.
40217         * modules/imaxabs (Makefile.am): Likewise.
40218         * modules/imaxdiv (Makefile.am): Likewise.
40219         * modules/inet_ntop (Makefile.am): Likewise.
40220         * modules/inet_pton (Makefile.am): Likewise.
40221         * modules/intprops (Makefile.am): Likewise.
40222         * modules/inttostr (Makefile.am): Likewise.
40223         * modules/inttypes (Makefile.am): Likewise.
40224         * modules/isapipe (Makefile.am): Likewise.
40225         * modules/javaversion (Makefile.am): Likewise.
40226         * modules/lchmod (Makefile.am): Likewise.
40227         * modules/lchown (Makefile.am): Likewise.
40228         * modules/localcharset (Makefile.am): Likewise.
40229         * modules/long-options (Makefile.am): Likewise.
40230         * modules/lstat (Makefile.am): Likewise.
40231         * modules/malloc (Makefile.am): Likewise.
40232         * modules/mathl (Makefile.am): Likewise.
40233         * modules/mbchar (Makefile.am): Likewise.
40234         * modules/md2 (Makefile.am): Likewise.
40235         * modules/md4 (Makefile.am): Likewise.
40236         * modules/md5 (Makefile.am): Likewise.
40237         * modules/memcasecmp (Makefile.am): Likewise.
40238         * modules/memchr (Makefile.am): Likewise.
40239         * modules/memcmp (Makefile.am): Likewise.
40240         * modules/memcoll (Makefile.am): Likewise.
40241         * modules/memcpy (Makefile.am): Likewise.
40242         * modules/memmem (Makefile.am): Likewise.
40243         * modules/memmove (Makefile.am): Likewise.
40244         * modules/mempcpy (Makefile.am): Likewise.
40245         * modules/memrchr (Makefile.am): Likewise.
40246         * modules/memset (Makefile.am): Likewise.
40247         * modules/memxor (Makefile.am): Likewise.
40248         * modules/mkancesdirs (Makefile.am): Likewise.
40249         * modules/mkdir-p (Makefile.am): Likewise.
40250         * modules/mkdir (Makefile.am): Likewise.
40251         * modules/mkdtemp (Makefile.am): Likewise.
40252         * modules/mkstemp (Makefile.am): Likewise.
40253         * modules/mktime (Makefile.am): Likewise.
40254         * modules/modechange (Makefile.am): Likewise.
40255         * modules/mountlist (Makefile.am): Likewise.
40256         * modules/nanosleep (Makefile.am): Likewise.
40257         * modules/obstack (Makefile.am): Likewise.
40258         * modules/openat (Makefile.am): Likewise.
40259         * modules/pagealign_alloc (Makefile.am): Likewise.
40260         * modules/pathmax (Makefile.am): Likewise.
40261         * modules/physmem (Makefile.am): Likewise.
40262         * modules/poll (Makefile.am): Likewise.
40263         * modules/posixtm (Makefile.am): Likewise.
40264         * modules/posixver (Makefile.am): Likewise.
40265         * modules/putenv (Makefile.am): Likewise.
40266         * modules/quote (Makefile.am): Likewise.
40267         * modules/quotearg (Makefile.am): Likewise.
40268         * modules/raise (Makefile.am): Likewise.
40269         * modules/read-file (Makefile.am): Likewise.
40270         * modules/readline (Makefile.am): Likewise.
40271         * modules/readlink (Makefile.am): Likewise.
40272         * modules/readtokens (Makefile.am): Likewise.
40273         * modules/readutmp (Makefile.am): Likewise.
40274         * modules/realloc (Makefile.am): Likewise.
40275         * modules/regex (Makefile.am): Likewise.
40276         * modules/rename-dest-slash (Makefile.am): Likewise.
40277         * modules/rename (Makefile.am): Likewise.
40278         * modules/rijndael (Makefile.am): Likewise.
40279         * modules/rmdir (Makefile.am): Likewise.
40280         * modules/rpmatch (Makefile.am): Likewise.
40281         * modules/safe-read (Makefile.am): Likewise.
40282         * modules/safe-write (Makefile.am): Likewise.
40283         * modules/same-inode (Makefile.am): Likewise.
40284         * modules/same (Makefile.am): Likewise.
40285         * modules/save-cwd (Makefile.am): Likewise.
40286         * modules/savedir (Makefile.am): Likewise.
40287         * modules/setenv (Makefile.am): Likewise.
40288         * modules/settime (Makefile.am): Likewise.
40289         * modules/sha1 (Makefile.am): Likewise.
40290         * modules/sig2str (Makefile.am): Likewise.
40291         * modules/snprintf (Makefile.am): Likewise.
40292         * modules/stat-macros (Makefile.am): Likewise.
40293         * modules/stat-time (Makefile.am): Likewise.
40294         * modules/stdbool (Makefile.am): Likewise.
40295         * modules/stdint (Makefile.am): Likewise.
40296         * modules/stdlib-safer (Makefile.am): Likewise.
40297         * modules/stpcpy (Makefile.am): Likewise.
40298         * modules/stpncpy (Makefile.am): Likewise.
40299         * modules/strcase (Makefile.am): Likewise.
40300         * modules/strcasestr (Makefile.am): Likewise.
40301         * modules/strchrnul (Makefile.am): Likewise.
40302         * modules/strcspn (Makefile.am): Likewise.
40303         * modules/strdup (Makefile.am): Likewise.
40304         * modules/strerror (Makefile.am): Likewise.
40305         * modules/strftime (Makefile.am): Likewise.
40306         * modules/strndup (Makefile.am): Likewise.
40307         * modules/strnlen (Makefile.am): Likewise.
40308         * modules/strpbrk (Makefile.am): Likewise.
40309         * modules/strsep (Makefile.am): Likewise.
40310         * modules/strstr (Makefile.am): Likewise.
40311         * modules/strtod (Makefile.am): Likewise.
40312         * modules/strtoimax (Makefile.am): Likewise.
40313         * modules/strtok_r (Makefile.am): Likewise.
40314         * modules/strtol (Makefile.am): Likewise.
40315         * modules/strtoll (Makefile.am): Likewise.
40316         * modules/strtoul (Makefile.am): Likewise.
40317         * modules/strtoull (Makefile.am): Likewise.
40318         * modules/strtoumax (Makefile.am): Likewise.
40319         * modules/strverscmp (Makefile.am): Likewise.
40320         * modules/sys_socket (Makefile.am): Likewise.
40321         * modules/sys_stat (Makefile.am): Likewise.
40322         * modules/sysexits (Makefile.am): Likewise.
40323         * modules/time_r (Makefile.am): Likewise.
40324         * modules/timegm (Makefile.am): Likewise.
40325         * modules/timespec (Makefile.am): Likewise.
40326         * modules/tmpfile-safer (Makefile.am): Likewise.
40327         * modules/trim (Makefile.am): Likewise.
40328         * modules/unistd-safer (Makefile.am): Likewise.
40329         * modules/unlinkdir (Makefile.am): Likewise.
40330         * modules/unlocked-io (Makefile.am): Likewise.
40331         * modules/userspec (Makefile.am): Likewise.
40332         * modules/utime (Makefile.am): Likewise.
40333         * modules/utimecmp (Makefile.am): Likewise.
40334         * modules/utimens (Makefile.am): Likewise.
40335         * modules/vasnprintf (Makefile.am): Likewise.
40336         * modules/vasprintf (Makefile.am): Likewise.
40337         * modules/vsnprintf (Makefile.am): Likewise.
40338         * modules/xalloc (Makefile.am): Likewise.
40339         * modules/xgetcwd (Makefile.am): Likewise.
40340         * modules/xnanosleep (Makefile.am): Likewise.
40341         * modules/xreadlink (Makefile.am): Likewise.
40342         * modules/xstrtod (Makefile.am): Likewise.
40343         * modules/xstrtol (Makefile.am): Likewise.
40344         * modules/xstrtold (Makefile.am): Likewise.
40345         * modules/yesno (Makefile.am): Likewise.
40346         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
40347
40348 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
40349
40350         * modules/error (Makefile.am): Distribute files through
40351         EXTRA_DIST, not lib_SOURCES.
40352
40353 2006-10-12  Eric Blake  <ebb9@byu.net>
40354
40355         * modules/error (Makefile.am): Distribute files in /lib.
40356         * modules/obstack (Makefile.am): Likewise.
40357
40358 2006-10-12  Bruno Haible  <bruno@clisp.org>
40359
40360         * modules/acl (Makefile.am): Distribute all files in lib/ through
40361         EXTRA_DIST.
40362         * modules/arcfour (Makefile.am): Likewise.
40363         * modules/arctwo (Makefile.am): Likewise.
40364         * modules/argmatch (Makefile.am): Likewise.
40365         * modules/argz (Makefile.am): Likewise.
40366         * modules/atexit (Makefile.am): Likewise.
40367         * modules/backupfile (Makefile.am): Likewise.
40368         * modules/c-strtod (Makefile.am): Likewise.
40369         * modules/c-strtold (Makefile.am): Likewise.
40370         * modules/calloc (Makefile.am): Likewise.
40371         * modules/canon-host (Makefile.am): Likewise.
40372         * modules/canonicalize (Makefile.am): Likewise.
40373         * modules/chdir-long (Makefile.am): Likewise.
40374         * modules/chdir-safer (Makefile.am): Likewise.
40375         * modules/check-version (Makefile.am): Likewise.
40376         * modules/chown (Makefile.am): Likewise.
40377         * modules/cloexec (Makefile.am): Likewise.
40378         * modules/close-stream (Makefile.am): Likewise.
40379         * modules/closeout (Makefile.am): Likewise.
40380         * modules/crc (Makefile.am): Likewise.
40381         * modules/cycle-check (Makefile.am): Likewise.
40382         * modules/des (Makefile.am): Likewise.
40383         * modules/dirfd (Makefile.am): Likewise.
40384         * modules/dirname (Makefile.am): Likewise.
40385         * modules/dup2 (Makefile.am): Likewise.
40386         * modules/euidaccess (Makefile.am): Likewise.
40387         * modules/exclude (Makefile.am): Likewise.
40388         * modules/exitfail (Makefile.am): Likewise.
40389         * modules/fcntl-safer (Makefile.am): Likewise.
40390         * modules/file-type (Makefile.am): Likewise.
40391         * modules/fileblocks (Makefile.am): Likewise.
40392         * modules/filemode (Makefile.am): Likewise.
40393         * modules/filenamecat (Makefile.am): Likewise.
40394         * modules/fnmatch (Makefile.am): Likewise.
40395         * modules/fopen-safer (Makefile.am): Likewise.
40396         * modules/fpending (Makefile.am): Likewise.
40397         * modules/fprintftime (Makefile.am): Likewise.
40398         * modules/free (Makefile.am): Likewise.
40399         * modules/fsusage (Makefile.am): Likewise.
40400         * modules/ftruncate (Makefile.am): Likewise.
40401         * modules/fts (Makefile.am): Likewise.
40402         * modules/gc (Makefile.am): Likewise.
40403         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
40404         * modules/getaddrinfo (Makefile.am): Likewise.
40405         * modules/getcwd (Makefile.am): Likewise.
40406         * modules/getdelim (Makefile.am): Likewise.
40407         * modules/getdomainname (Makefile.am): Likewise.
40408         * modules/getgroups (Makefile.am): Likewise.
40409         * modules/gethostname (Makefile.am): Likewise.
40410         * modules/gethrxtime (Makefile.am): Likewise.
40411         * modules/getline (Makefile.am): Likewise.
40412         * modules/getloadavg (Makefile.am): Likewise.
40413         * modules/getlogin_r (Makefile.am): Likewise.
40414         * modules/getopt (Makefile.am): Likewise.
40415         * modules/getpass (Makefile.am): Likewise.
40416         * modules/getpass-gnu (Makefile.am): Likewise.
40417         * modules/getsubopt (Makefile.am): Likewise.
40418         * modules/gettime (Makefile.am): Likewise.
40419         * modules/gettimeofday (Makefile.am): Likewise.
40420         * modules/getugroups (Makefile.am): Likewise.
40421         * modules/getusershell (Makefile.am): Likewise.
40422         * modules/glob (Makefile.am): Likewise.
40423         * modules/group-member (Makefile.am): Likewise.
40424         * modules/hard-locale (Makefile.am): Likewise.
40425         * modules/hash (Makefile.am): Likewise.
40426         * modules/hmac-md5 (Makefile.am): Likewise.
40427         * modules/hmac-sha1 (Makefile.am): Likewise.
40428         * modules/human (Makefile.am): Likewise.
40429         * modules/idcache (Makefile.am): Likewise.
40430         * modules/imaxabs (Makefile.am): Likewise.
40431         * modules/imaxdiv (Makefile.am): Likewise.
40432         * modules/inet_ntop (Makefile.am): Likewise.
40433         * modules/inet_pton (Makefile.am): Likewise.
40434         * modules/inttostr (Makefile.am): Likewise.
40435         * modules/isapipe (Makefile.am): Likewise.
40436         * modules/lchown (Makefile.am): Likewise.
40437         * modules/long-options (Makefile.am): Likewise.
40438         * modules/lstat (Makefile.am): Likewise.
40439         * modules/malloc (Makefile.am): Likewise.
40440         * modules/mathl (Makefile.am): Likewise.
40441         * modules/mbchar (Makefile.am): Likewise.
40442         * modules/md2 (Makefile.am): Likewise.
40443         * modules/md4 (Makefile.am): Likewise.
40444         * modules/md5 (Makefile.am): Likewise.
40445         * modules/memcasecmp (Makefile.am): Likewise.
40446         * modules/memchr (Makefile.am): Likewise.
40447         * modules/memcmp (Makefile.am): Likewise.
40448         * modules/memcoll (Makefile.am): Likewise.
40449         * modules/memcpy (Makefile.am): Likewise.
40450         * modules/memmem (Makefile.am): Likewise.
40451         * modules/memmove (Makefile.am): Likewise.
40452         * modules/mempcpy (Makefile.am): Likewise.
40453         * modules/memrchr (Makefile.am): Likewise.
40454         * modules/memset (Makefile.am): Likewise.
40455         * modules/memxor (Makefile.am): Likewise.
40456         * modules/mkancesdirs (Makefile.am): Likewise.
40457         * modules/mkdir (Makefile.am): Likewise.
40458         * modules/mkdir-p (Makefile.am): Likewise.
40459         * modules/mkdtemp (Makefile.am): Likewise.
40460         * modules/mkstemp (Makefile.am): Likewise.
40461         * modules/mktime (Makefile.am): Likewise.
40462         * modules/modechange (Makefile.am): Likewise.
40463         * modules/mountlist (Makefile.am): Likewise.
40464         * modules/nanosleep (Makefile.am): Likewise.
40465         * modules/openat (Makefile.am): Likewise.
40466         * modules/pagealign_alloc (Makefile.am): Likewise.
40467         * modules/physmem (Makefile.am): Likewise.
40468         * modules/poll (Makefile.am): Likewise.
40469         * modules/posixtm (Makefile.am): Likewise.
40470         * modules/posixver (Makefile.am): Likewise.
40471         * modules/putenv (Makefile.am): Likewise.
40472         * modules/quote (Makefile.am): Likewise.
40473         * modules/quotearg (Makefile.am): Likewise.
40474         * modules/raise (Makefile.am): Likewise.
40475         * modules/read-file (Makefile.am): Likewise.
40476         * modules/readline (Makefile.am): Likewise.
40477         * modules/readlink (Makefile.am): Likewise.
40478         * modules/readtokens (Makefile.am): Likewise.
40479         * modules/readutmp (Makefile.am): Likewise.
40480         * modules/realloc (Makefile.am): Likewise.
40481         * modules/regex (Makefile.am): Likewise.
40482         * modules/rename (Makefile.am): Likewise.
40483         * modules/rename-dest-slash (Makefile.am): Likewise.
40484         * modules/rijndael (Makefile.am): Likewise.
40485         * modules/rmdir (Makefile.am): Likewise.
40486         * modules/rpmatch (Makefile.am): Likewise.
40487         * modules/safe-read (Makefile.am): Likewise.
40488         * modules/safe-write (Makefile.am): Likewise.
40489         * modules/same (Makefile.am): Likewise.
40490         * modules/save-cwd (Makefile.am): Likewise.
40491         * modules/savedir (Makefile.am): Likewise.
40492         * modules/setenv (Makefile.am): Likewise.
40493         * modules/settime (Makefile.am): Likewise.
40494         * modules/sha1 (Makefile.am): Likewise.
40495         * modules/sig2str (Makefile.am): Likewise.
40496         * modules/snprintf (Makefile.am): Likewise.
40497         * modules/stdlib-safer (Makefile.am): Likewise.
40498         * modules/stpcpy (Makefile.am): Likewise.
40499         * modules/stpncpy (Makefile.am): Likewise.
40500         * modules/strcase (Makefile.am): Likewise.
40501         * modules/strcasestr (Makefile.am): Likewise.
40502         * modules/strchrnul (Makefile.am): Likewise.
40503         * modules/strcspn (Makefile.am): Likewise.
40504         * modules/strdup (Makefile.am): Likewise.
40505         * modules/strerror (Makefile.am): Likewise.
40506         * modules/strftime (Makefile.am): Likewise.
40507         * modules/strndup (Makefile.am): Likewise.
40508         * modules/strnlen (Makefile.am): Likewise.
40509         * modules/strpbrk (Makefile.am): Likewise.
40510         * modules/strsep (Makefile.am): Likewise.
40511         * modules/strstr (Makefile.am): Likewise.
40512         * modules/strtod (Makefile.am): Likewise.
40513         * modules/strtoimax (Makefile.am): Likewise.
40514         * modules/strtok_r (Makefile.am): Likewise.
40515         * modules/strtol (Makefile.am): Likewise.
40516         * modules/strtoll (Makefile.am): Likewise.
40517         * modules/strtoul (Makefile.am): Likewise.
40518         * modules/strtoull (Makefile.am): Likewise.
40519         * modules/strtoumax (Makefile.am): Likewise.
40520         * modules/strverscmp (Makefile.am): Likewise.
40521         * modules/time_r (Makefile.am): Likewise.
40522         * modules/timegm (Makefile.am): Likewise.
40523         * modules/tmpfile-safer (Makefile.am): Likewise.
40524         * modules/unistd-safer (Makefile.am): Likewise.
40525         * modules/unlinkdir (Makefile.am): Likewise.
40526         * modules/userspec (Makefile.am): Likewise.
40527         * modules/utime (Makefile.am): Likewise.
40528         * modules/utimecmp (Makefile.am): Likewise.
40529         * modules/utimens (Makefile.am): Likewise.
40530         * modules/vasnprintf (Makefile.am): Likewise.
40531         * modules/vasprintf (Makefile.am): Likewise.
40532         * modules/vsnprintf (Makefile.am): Likewise.
40533         * modules/xalloc (Makefile.am): Likewise.
40534         * modules/xgetcwd (Makefile.am): Likewise.
40535         * modules/xnanosleep (Makefile.am): Likewise.
40536         * modules/xreadlink (Makefile.am): Likewise.
40537         * modules/xstrtod (Makefile.am): Likewise.
40538         * modules/xstrtol (Makefile.am): Likewise.
40539         * modules/xstrtold (Makefile.am): Likewise.
40540         * modules/yesno (Makefile.am): Likewise.
40541
40542 2006-10-12  Jim Meyering  <jim@meyering.net>
40543
40544         * m4/getloadavg.m4: Revert the change below.
40545
40546         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
40547         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
40548         fail with a symlink, which is what coreutils' ./bootstrap now
40549         creates by default.
40550
40551 2006-10-12  Bruno Haible  <bruno@clisp.org>
40552
40553         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
40554         mingw.
40555         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
40556         MSVC and mingw explicitly.
40557
40558 2006-10-11  Simon Josefsson  <jas@extundo.com>
40559             Bruno Haible  <bruno@clisp.org>
40560
40561         Add support for multiple gnulib-tool invocations in the scope of a
40562         single configure.ac file.
40563         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
40564         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
40565         with the same contents as the _LIBADD variable.
40566         (func_emit_initmacro_start, func_emit_initmacro_end,
40567         func_emit_initmacro_done): New functions.
40568         (func_import, func_create_testdir): Invoke them. Allow the identifiers
40569         gl_LIBOBJS and gl_LTLIBOBJS.
40570
40571 2006-10-11  Bruno Haible  <bruno@clisp.org>
40572
40573         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
40574         (func_create_testdir): Don't create po/Makefile.am, don't invoke
40575         autoreconf. Instead, invoke autopoint explicitly but move back the
40576         *.m4 files from gnulib.
40577
40578 2006-10-11  Bruno Haible  <bruno@clisp.org>
40579
40580         * gnulib-tool (func_usage): Make module names after --create-testdir
40581         optional.
40582         (func_create_testdir): If no module was specified, use nearly all
40583         modules.
40584
40585 2006-10-12  Jim Meyering  <jim@meyering.net>
40586
40587         Big performance improvement for fts-based tools that use FTS_NOSTAT.
40588         Avoid spurious inode-mismatch problems on non-POSIX file systems.
40589         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
40590         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
40591         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
40592         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
40593         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
40594         (fts_set_stat_required): New function.
40595         (fts_open): Defer the calls to fts_stat, if possible or requested.
40596         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
40597         into fts_stat itself.
40598         (fts_read): Perform any required (deferred) fts_stat call.
40599         (fts_build): Likewise, for the directory we're about to open and read.
40600         In the readdir loop, carefully decide whether each entry will require
40601         an eventual call to fts_stat, using dirent.d_type info if available.
40602         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
40603         a command line argument into this function.  Update all callers.
40604         Map a return value of FTS_DOT to FTS_D for a command line argument.
40605         * modules/fts (Depends-on): Add d-type.  Alphabetize.
40606         Thanks to Miklos Szeredi for his tenacity and for the initial
40607         bug report about "find" failing on a FUSE-based file system.
40608
40609         * lib/fts.c (fts_open): Use consistent indentation.
40610
40611 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
40612
40613         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
40614         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
40615         reported by Jim Meyering.  All uses of cache variables renamed
40616         to match Autoconf's.
40617         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
40618         the other one.
40619
40620         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
40621         Fix misspelling in diagnostic.
40622
40623 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
40624
40625         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
40626         defined.  Problem reported by Matthew Woehlke.
40627
40628         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
40629         Add support for Tandem NonStop R series.
40630         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
40631         Use new macro.
40632
40633         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
40634         (has_trailing_slash): Omit size arg; all callers changed.
40635         Omit 'inline', since it doesn't help performance and we'd
40636         need to configure it.
40637         Don't count //, ///, etc. as having a trailing slash.
40638         As a side effect, this removes a C99ism reported by Matthew Woehlke.
40639         (rpl_rename_dest_slash): On failure, use rename's errno rather
40640         than (in some cases) an incorrect or junk errno.
40641         Simplify code by removing need to compute length; this does
40642         cause it to make two passes instead of one over the file name,
40643         but it's worth it.
40644
40645         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
40646         change, since Autoconf's version may no longer be appropriate now
40647         that we are using CVS Autoconf's version.  Add support for Tandem.
40648
40649 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
40650             Bruno Haible  <bruno@clisp.org>
40651
40652         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
40653         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
40654         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
40655         gl_AC_TYPE_LONG_LONG.
40656
40657         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
40658         instead of HAVE_LONG_LONG.
40659         * lib/printf-args.c (printf_fetchargs): Likewise.
40660         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
40661         * lib/vasnprintf.c (VASNPRINTF): Likewise.
40662         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
40663         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
40664         gl_AC_TYPE_LONG_LONG.
40665
40666 2006-10-11  Bruno Haible  <bruno@clisp.org>
40667
40668         * m4/longlong.m4: Add comments.
40669         * m4/ulonglong.m4: Likewise.
40670
40671 2006-10-10  Bruno Haible  <bruno@clisp.org>
40672
40673         Make it possible to #define stpcpy, strdup to aliases.
40674         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
40675         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
40676
40677 2006-10-10  Bruno Haible  <bruno@clisp.org>
40678
40679         Make it possible to #define gcd to an alias.
40680         * lib/gcd.c: Include config.h.
40681
40682 2006-10-10  Bruno Haible  <bruno@clisp.org>
40683
40684         Make it possible to #define c_isascii to an alias.
40685         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
40686         defined. Undefine the macros before defining them, to avoid gcc
40687         warnings.
40688         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
40689         define NO_C_CTYPE_MACROS early.
40690
40691 2006-10-10  Bruno Haible  <bruno@clisp.org>
40692
40693         Make it possible to #define set_program_name to an alias.
40694         * lib/progname.c: Don't undefine set_program_name; instead, undefine
40695         ENABLE_RELOCATABLE early.
40696
40697 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
40698
40699         Port to Tandem NSK OSS, which has 64-bit signed int but at most
40700         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
40701         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
40702         More generally, don't assume that 64-bit signed int is available
40703         if unsigned int is, and vice versa.
40704         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
40705         unsigned symbols, not on their signed counterparts.
40706         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
40707         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
40708         (UINT64_C, UINTMAX_C):
40709         Likewise.
40710         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
40711         unsigned counterparts.
40712         (Have_long_long, Unsigned): New macros.
40713         (Int): Renamed from INT.
40714         (strtoimax): Use the new macros.
40715         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
40716         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
40717         * modules/inttypes (inttypes.h): Substitute
40718         HAVE_UNSIGNED_LONG_LONG_INT.
40719         * modules/stdint (stdint.h): Likewise.
40720         (Files): Add m4/ulonglong.m4.
40721
40722 2006-10-10  Bruno Haible  <bruno@clisp.org>
40723
40724         Fix a gcc -Wshadow warning.
40725         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
40726         to 'bucket'.
40727         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
40728         gl_linked_indexof_from_to): Likewise.
40729         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
40730         Likewise.
40731         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
40732         Likewise.
40733         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
40734         Reported by Eric Blake.
40735
40736 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
40737
40738         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
40739         for NetBSD.  Problem reported by Bruno Haible.
40740
40741 2006-10-09  Jim Meyering  <jim@meyering.net>
40742
40743         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
40744         Patch from Bruno Haible.
40745
40746 2006-10-09  Jim Meyering  <jim@meyering.net>
40747
40748         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
40749         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
40750         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
40751
40752 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40753
40754         Don't include <config.h> twice; this doesn't work in some cases,
40755         e.g., when config.h has "#define intmax_t long long int" and
40756         we include <config.h>, <inttypes.h>, <config.h> in that order.
40757         Problem reported by Matthew Woehlke in:
40758         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
40759         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
40760         * lib/fts-cycle.c: Don't include config.h.
40761         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
40762         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
40763         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
40764         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
40765         inttypes.h.
40766         * lib/xstrtoumax.c: Likewise.
40767         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
40768         __strtol and the like, so that this module is more like its siblings.
40769         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
40770         Remove; no longer needed now that we assume gnulib inttypes.h.
40771
40772 2006-10-08  Bruno Haible  <bruno@clisp.org>
40773
40774         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
40775         option.
40776
40777 2006-10-07  Jim Meyering  <jim@meyering.net>
40778
40779         * modules/inttypes (inttypes.h): Revert what seems to have been
40780         an inadvertent part of today's change: use "|", not "/" in the
40781         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
40782
40783 2006-10-07  Bruno Haible  <bruno@clisp.org>
40784
40785         * modules/sublist: New file.
40786
40787 2006-10-07  Bruno Haible  <bruno@clisp.org>
40788
40789         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
40790         * modules/argz (argz.h): Likewise.
40791         * modules/arpa_inet (arpa/inet.h): Likewise.
40792         * modules/byteswap (byteswap.h): Likewise.
40793         * modules/configmake (configmake.h): Likewise.
40794         * modules/fcntl (fcntl.h): Likewise.
40795         * modules/fnmatch (fnmatch.h): Likewise.
40796         * modules/getopt (getopt.h): Likewise.
40797         * modules/glob (glob.h): Likewise.
40798         * modules/inttypes (inttypes.h): Likewise.
40799         * modules/netinet_in (netinet/in.h): Likewise.
40800         * modules/poll (poll.h): Likewise.
40801         * modules/stdbool (stdbool.h): Likewise.
40802         * modules/stdint (stdint.h): Likewise.
40803         * modules/sys_select (sys/select.h): Likewise.
40804         * modules/sys_socket (sys/socket.h): Likewise.
40805         * modules/sys_stat (sys/stat.h): Likewise.
40806         * modules/sysexits (sysexits.h): Likewise.
40807         * modules/unistd (unistd.h): Likewise.
40808         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40809         Add a "DO NOT EDIT" comment to the generated file.
40810         (func_import): Likewise for gnulib-comp.m4.
40811
40812 2006-10-07  Bruno Haible  <bruno@clisp.org>
40813
40814         * lib/gl_sublist.h: New file.
40815         * lib/gl_sublist.c: New file.
40816
40817 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
40818
40819         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
40820         name (relative to the original working directory) and the file
40821         name component (relative to the temporary working directory).  All
40822         callers changed.
40823         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
40824         * lib/mkdir-p.c (make_dir_parents): Likewise.
40825         * lib/mkdir-p.h (make_dir_parents): Likewise.
40826
40827 2006-10-06  Eric Blake  <ebb9@byu.net>
40828
40829         Define several macros for use by the clean-temp module.
40830         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
40831         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
40832         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
40833
40834         * lib/clean-temp.h (close_stream_temp): New declaration.
40835         * lib/clean-temp.c (includes): Pull in headers according to what
40836         other modules are in use.
40837         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
40838
40839 2006-10-06  Bruno Haible  <bruno@clisp.org>
40840
40841         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
40842         instead of fopen, fwriteerror.
40843
40844 2006-10-06  Bruno Haible  <bruno@clisp.org>
40845
40846         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
40847         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
40848         int.
40849         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
40850         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
40851         Return an error indicator.
40852         Suggested by Eric Blake.
40853
40854 2006-10-06  Bruno Haible  <bruno@clisp.org>
40855
40856         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
40857         Reported by Eric Blake.
40858
40859 2006-10-06  Bruno Haible  <bruno@clisp.org>
40860
40861         * modules/closeout (Description): Mention stderr too.
40862
40863 2006-10-06  Bruno Haible  <bruno@clisp.org>
40864         and Paul Eggert  <eggert@cs.ucla.edu>
40865
40866         * lib/closeout.c (close_stdout): Also close stderr.
40867         * lib/closeout.h: Update comment.
40868
40869 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
40870
40871         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
40872         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
40873         * lib/dirchownmod.c: Include lchown.h.
40874         * lib/lchown.c: Don't include files that lchown.h now includes.
40875         Don't declare chown, since lchown.h now does that.
40876         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
40877         (lchown): Define to rpl_chown if lchown is declared but
40878         does not exist.  Declare using a prototype if lchown is not
40879         declared.  Add a copyright notice.
40880         * lib/mkstemp.h: Include <unistd.h>.
40881         * lib/openat.c: Include lchown.h.
40882
40883         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
40884         we now test for that separately.
40885         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
40886         rather than O_NOFOLLOW, when testing whether it's possible to
40887         avoid a race condition reliably.
40888         * lib/savewd.c (savewd_chdir): Likewise.
40889
40890         Remove macros that are no longer needed now that stdint.h is
40891         reliable.
40892         * lib/fsusage.c (UINTMAX_MAX): Remove.
40893         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
40894         * lib/utimecmp.c (SIZE_MAX): Remove.
40895
40896         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
40897
40898         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
40899         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
40900         O_NOATIME works.
40901
40902 2006-10-05  Bruno Haible  <bruno@clisp.org>
40903
40904         * lib/gl_list.h (gl_sortedlist_search_from_to,
40905         gl_sortedlist_indexof_from_to): New declarations.
40906         (gl_list_implementation): New fields sortedlist_search_from_to,
40907         sortedlist_indexof_from_to.
40908         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
40909         inline functions.
40910         * lib/gl_list.c (gl_sortedlist_search_from_to,
40911         gl_sortedlist_indexof_from_to): New functions.
40912         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
40913         function.
40914         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
40915         (gl_array_sortedlist_search_from_to): New function.
40916         (gl_array_list_implementation): Update.
40917         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
40918         function.
40919         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
40920         (gl_carray_sortedlist_search_from_to): New function.
40921         (gl_carray_list_implementation): Update.
40922         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
40923         gl_linked_sortedlist_indexof_from_to): New functions.
40924         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40925         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40926         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
40927         gl_tree_sortedlist_indexof_from_to): New functions.
40928         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40929         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40930         Update.
40931         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40932         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
40933         Update.
40934
40935 2006-10-05  Bruno Haible  <bruno@clisp.org>
40936
40937         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
40938         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
40939         (struct gl_list_implementation): Add fields search_from_to,
40940         indexof_from_to. Remove fields search, indexof.
40941         (gl_list_search): Use the search_from_to method.
40942         (gl_list_search_from, gl_list_search_from_to): New functions.
40943         (gl_list_indexof): Use the indexof_from_to method.
40944         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
40945         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
40946         (gl_list_search_from, gl_list_search_from_to): New functions.
40947         (gl_list_indexof): Use the indexof_from_to method.
40948         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
40949         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
40950         gl_array_indexof. Add start_index, end_index arguments.
40951         (gl_array_search_from_to): Renamed from gl_array_search. Add
40952         start_index, end_index arguments.
40953         (gl_array_remove, gl_array_list_implementation): Update.
40954         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
40955         gl_carray_indexof. Add start_index, end_index arguments.
40956         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
40957         start_index, end_index arguments.
40958         (gl_carray_remove, gl_carray_list_implementation): Update.
40959         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
40960         gl_linked_search. Add start_index, end_index arguments.
40961         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
40962         start_index, end_index arguments.
40963         (gl_linked_remove): Update.
40964         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40965         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40966         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
40967         field to 'size_t'.
40968         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
40969         gl_tree_search. Add start_index, end_index arguments.
40970         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
40971         start_index, end_index arguments.
40972         (gl_tree_remove): Update.
40973         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40974         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40975         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
40976         function.
40977         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
40978         gl_tree_search. Add start_index, end_index arguments.
40979         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
40980         start_index, end_index arguments.
40981         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40982         Update.
40983         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
40984
40985 2006-10-05  Bruno Haible  <bruno@clisp.org>
40986
40987         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
40988
40989         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
40990         fwriteerror_temp): New declarations.
40991         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
40992         (descriptors): New variable.
40993         (cleanup): First, close the descriptors.
40994         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
40995         fclose_temp, fwriteerror_temp): New functions.
40996
40997 2006-10-04  Jim Meyering  <jim@meyering.net>
40998
40999         * lib/fts.c (fts_open): Tiny comment change.
41000
41001 2006-10-04  Bruno Haible  <bruno@clisp.org>
41002
41003         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
41004         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
41005         gl_LOCK_BODY.
41006         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
41007         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
41008         gl_LOCK_EARLY_BODY.
41009         (gl_LOCK): Require gl_LOCK_BODY.
41010
41011 2006-10-04  Bruno Haible  <bruno@clisp.org>
41012
41013         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
41014         (gl_oset_search_atleast): New declaration.
41015         (struct gl_oset_implementation): Add field 'search_atleast'.
41016         (gl_oset_search_atleast): New inline function.
41017         * lib/gl_oset.c (gl_oset_search_atleast): New function.
41018         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
41019         (gl_array_oset_implementation): Update.
41020         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
41021         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
41022         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
41023
41024 2006-10-04  Bruno Haible  <bruno@clisp.org>
41025
41026         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
41027
41028 2006-10-03  Bruno Haible  <bruno@clisp.org>
41029
41030         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
41031         from gl_avltreehash_list_implementation.
41032
41033 2006-10-03  Bruno Haible  <bruno@clisp.org>
41034
41035         * lib/gl_oset.c (gl_oset_add): Fix return type.
41036
41037 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
41038
41039         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
41040
41041 2006-10-02  Eric Blake  <ebb9@byu.net>
41042
41043         * modules/strnlen (Depends-on): Add extensions.
41044
41045 2006-10-02  Eric Blake  <ebb9@byu.net>
41046
41047         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
41048         definition in 2.60+.
41049
41050 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
41051
41052         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
41053         checks.
41054
41055 2006-10-02  Bruno Haible  <bruno@clisp.org>
41056
41057         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
41058         to the AUTOMAKE_OPTIONS.
41059         Reported by Jim Meyering.
41060
41061 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
41062
41063         Work around bug in Solaris 10 /proc file system:
41064         /proc/self/fd/NNN/.. isn't the parent directory of
41065         the directory whose file descriptor is NNN.  This needs to
41066         be worked around at run time, not compile time, since a
41067         program might be built on Solaris 8, where things work, and
41068         run on Solaris 10.
41069         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
41070         to use the following interface instead:
41071         (OPENAT_BUFFER_SIZE): New macro.
41072         (openat_proc_name): New function.
41073         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
41074         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
41075         Likewise.
41076         * lib/openat-proc.c: New file.
41077         * modules/openat (Files): Add lib/openat-proc.c.
41078         (Depends-on): Add same-inode, stdbool.
41079         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
41080
41081 2006-09-29  Bruno Haible  <bruno@clisp.org>
41082
41083         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
41084         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
41085         argument. Set stdout_closed before testing for ferror, not after.
41086         (fwriteerror, fwriteerror_no_ebadf): New functions.
41087
41088 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41089
41090         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
41091
41092 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
41093
41094         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
41095         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
41096
41097 2006-09-28  Jim Meyering  <jim@meyering.net>
41098
41099         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
41100         Include <unistd.h>.
41101
41102 2006-09-28  Bruno Haible  <bruno@clisp.org>
41103
41104         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
41105         * modules/linkedhash-list (Depends-on): Likewise.
41106         * modules/rbtreehash-list (Depends-on): Likewise.
41107
41108 2006-09-28  Bruno Haible  <bruno@clisp.org>
41109
41110         * lib/strndup.h: Simplify the redefinition of strndup.
41111         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
41112         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
41113
41114 2006-09-28  Bruno Haible  <bruno@clisp.org>
41115
41116         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
41117         * lib/gl_linkedhash_list.c: Likewise.
41118         * lib/gl_rbtreehash_list.c: Likewise.
41119
41120 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
41121
41122         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
41123         getaddrinfo.
41124
41125         * lib/__fpending.h: Don't include <stdio_ext.h> unless
41126         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
41127         it causes <stdio_ext.h> to cause a compile-time error.
41128         Problem reported by Nelson H. F. Beebe.
41129         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
41130         of HAVE_DECL___PENDING.
41131
41132         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
41133         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
41134         declaration.
41135
41136 2006-09-27  Jim Meyering  <jim@meyering.net>
41137
41138         This file could end up with a definition for a function
41139         named __strndup, rather than rpl_strndup on a system with
41140         incomplete weak_alias support.
41141         * lib/strndup.c (strndup): Rename from __strndup.
41142         Remove #defines that used to map __strndup to strndup.
41143         Don't use K&R prototypes.
41144         Remove LIBC-related code, since this file is not sync'd with glibc.
41145         * lib/strndup.h: Revamp, accordingly.
41146         * m4/strndup.m4: Modernize.
41147
41148 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
41149
41150         * modules/savewd (Depends-on): Add 'raise'.
41151         * lib/savewd.c: Include <signal.h>, for 'raise'.
41152
41153 2006-09-26  Jim Meyering  <jim@meyering.net>
41154
41155         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
41156         when we detect Darwin 8.7.0's acl_get_file bug.
41157         Rearrange to perform the new (below) run-test while $LIBS
41158         contains any acl-related library.  Set USE_ACL at the end.
41159         (gl_ACL_GET_FILE): New function.
41160
41161 2006-09-26  Eric Blake  <ebb9@byu.net>
41162
41163         * lib/verror.c: Include <config.h> unconditionally.
41164
41165 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
41166
41167         * modules/clock-time (Maintainer): Add self.
41168         * modules/getlogin_r (Depends-on): Add extensions.
41169
41170 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41171
41172         * modules/clock-time: New module.
41173         * modules/nanosleep (Depends-on): Add clock-time.
41174         * modules/gethrxtime (Depends-on): Likewise.
41175         * modules/gettime (Depends-on): Likewise.
41176         * modules/settime (Depends-on): Likewise.
41177
41178         * modules/fts-lgpl: Depend on openat.
41179         * modules/mkancesdirs: Depend on savewd.
41180         * modules/mkdir-p: Likewise.
41181
41182 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41183
41184         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
41185
41186         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
41187         `gl_have_arbitrary_file_name_length_limit' to
41188         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
41189         actually works between configure runs.
41190
41191 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41192             Bruno Haible  <bruno@clisp.org>
41193
41194         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
41195
41196 2006-09-25  Jim Meyering  <jim@meyering.net>
41197
41198         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
41199         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
41200
41201 2006-09-25  Eric Blake  <ebb9@byu.net>
41202
41203         * gnulib-tool (func_import, func_create_testdir): Fix typos in
41204         exec's in 2006-09-18 patch when shuffling fds.
41205
41206 2006-09-25  Bruno Haible  <bruno@clisp.org>
41207
41208         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
41209         Reported by Jim Meyering.
41210
41211 2006-09-24  Jim Meyering  <jim@meyering.net>
41212
41213         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
41214         compare a pointer against a literal "0".  That caused failures with
41215         at least HP-UX's hpcc.
41216
41217 2006-09-22  Simon Josefsson  <jas@extundo.com>
41218
41219         * modules/gc-sha1:
41220         * modules/gc-md4:
41221         * modules/gc-hmac-sha1:
41222         * modules/gc-hmac-md5:
41223         * modules/gc-des:
41224         * modules/gc-arcfour: Distribute more files.
41225
41226 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41227
41228         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
41229         (gl_linked_iterator_from_to): Initialize struct completely.
41230         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
41231         (gl_tree_iterator_from_to): Likewise
41232         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
41233         * lib/gl_array_list.c [lint] (gl_array_iterator)
41234         (gl_array_iterator_from_to): Likewise.
41235         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
41236         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
41237         (gl_carray_iterator_from_to): Likewise.
41238
41239         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
41240         * lib/md4.c (md4_process_block): Remove unused variable.
41241         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
41242         parentheses for clarity.
41243
41244 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41245
41246         * modules/bison-i18n (Depends-on): Add gettext.
41247
41248 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41249
41250         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
41251         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41252         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
41253         also add missing comma that caused broken test.
41254         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
41255         stdlib.h, for `abort'.
41256         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
41257         variables.
41258         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
41259         include unistd.h if present, for `rmdir'.
41260         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
41261         variables.
41262         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
41263         in the process include standard headers for prototypes.
41264         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
41265         gets declared on GNU/Linux.
41266         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
41267         unistd.h, for `rmdir'.
41268         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
41269
41270         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
41271         always true.
41272         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
41273
41274         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
41275
41276 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41277
41278         * gnulib-tool (func_version): Create output all at once.  This
41279         may help avoid triggering unnecessary SIGPIPEs, and at any
41280         rate it doesn't hurt.
41281
41282 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41283             Bruno Haible  <bruno@clisp.org>
41284
41285         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
41286         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41287         * m4/signed.m4 (bh_C_SIGNED): Likewise.
41288
41289         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
41290         (gl_FUNC_VASPRINTF): Invoke it.
41291
41292 2006-09-22  Bruno Haible  <bruno@clisp.org>
41293
41294         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
41295         getloadavg.c as first argument.
41296
41297 2006-09-22  Bruno Haible  <bruno@clisp.org>
41298
41299         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
41300         at the beginning of the gl_INIT macro.
41301         * modules/getloadavg (configure.ac): Pass $gl_source_base to
41302         gl_GETLOADAVG.
41303
41304 2006-09-22  Bruno Haible  <bruno@clisp.org>
41305
41306         * gnulib-tool (func_create_megatestdir): Don't include the config-h
41307         module.
41308         Suggested by Ralf Wildenhues.
41309
41310 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
41311
41312         Import this patch from libc:
41313
41314         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
41315
41316         * lib/regex_internal.c (re_string_reconstruct): Handle
41317         offset < pstr->valid_raw_len && pstr->offsets_needed case.
41318         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
41319         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
41320         re_string_context_at.
41321
41322         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
41323         now requires it.
41324         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
41325         gl_REGEX now does it for us.
41326         (gl_REGEX): Add test taken from
41327         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
41328
41329         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
41330         Check that large offsets work.  Modernize Autoconf usages.
41331         Prefer "yes" to mean a good thing rather than a bad.
41332         Don't put "#define mkstemp" in config.h, as this might interfere
41333         with standard system headers that "#define mkstemp mkstemp64".
41334
41335         * modules/mkstemp (Depends-on): Add extensions, so that
41336         mkstemp is visible on some platforms.
41337         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
41338         (Include): Change to "mkstemp.h" from <stdlib.h>.
41339         (Files): Add mkstemp.h.
41340
41341         * lib/mkstemp.h: New file, since some standard headers
41342         #define mkstemp.
41343         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
41344         Include "mkstemp.h".
41345         Make the _LIBC code resemble glibc original more,
41346         e.g., use K&R style.
41347         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
41348         (mkstemp): Remove, since mkstemp.h does this for us.
41349         * lib/stdlib--.h: Include mkstemp.h.
41350
41351         Import this patch from libc:
41352
41353         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
41354
41355         * lib/tempname.c (__gen_tempname): Change attempts_min
41356         into a macro.  Use preprocessor to decide how to initialize
41357         attempts [Coverity CID 67].
41358
41359 2006-09-20  Bruno Haible  <bruno@clisp.org>
41360
41361         * lib/mkdtemp.c: Import from libc.
41362         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
41363                 * sysdeps/posix/tempname.c (__gen_tempname): Change
41364                 attempts_min into a macro.  Use preprocessor to decide how to
41365                 initialize attempts [Coverity CID 67].
41366         2001-11-27  Paul Eggert  <eggert@twinsun.com>
41367                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
41368                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
41369
41370 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41371
41372         * gnulib-tool (func_exit): New function, to allow to pass the
41373         exit status portably through the trap.  Use everywhere.
41374         (--help, --version): Signal a write error.
41375         (trap): catch SIGPIPE, for write errors.
41376         Exit at the end of the trap, with the correct exit status.
41377
41378 2006-09-19  Karl Berry  <karl@gnu.org>
41379
41380         * doc/gnulib.texi: note about the license texinfo files.
41381
41382 2006-09-19  Eric Blake  <ebb9@byu.net>
41383
41384         * gnulib-tool: Avoid space-tab.
41385
41386 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
41387
41388         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
41389         that prevented coreutils 6.1 from building.  Problem reported
41390         by Petter Reinholdtsen.
41391
41392 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
41393
41394         * gnulib-tool (avoidlist): Fix typo that broke options like
41395         --avoid=lock that are used by coreutils bootstrap.
41396
41397 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
41398
41399         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
41400         more systematically.
41401
41402 2006-09-18  Jim Meyering  <jim@meyering.net>
41403
41404         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
41405
41406 2006-09-18  Bruno Haible  <bruno@clisp.org>
41407
41408         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
41409
41410 2006-09-18  Bruno Haible  <bruno@clisp.org>
41411
41412         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
41413         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
41414         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
41415         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
41416         * m4/gettext.m4: Require autoconf >= 2.52.
41417         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
41418         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
41419         of gl_cv_header_inttypes_h.
41420
41421 2006-09-18  Bruno Haible  <bruno@clisp.org>
41422
41423         * lib/javaversion.c: Include configmake.h.
41424
41425 2006-09-18  Bruno Haible  <bruno@clisp.org>
41426
41427         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
41428         avoid that the while loops be executed in a subshell.
41429
41430 2006-09-18  Bruno Haible  <bruno@clisp.org>
41431
41432         * MODULES.html.sh (func_module): Break long lines.
41433         Suggested by Bruce Korb <bkorb@gnu.org>.
41434
41435 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41436
41437         Speed up by a factor of 1.12.
41438         * gnulib-tool (nl): New variable.
41439         (func_import): Rewrite include directive extraction to only read each
41440         directive once.
41441
41442 2006-09-17  Bruno Haible  <bruno@clisp.org>
41443
41444         * modules/javaversion (Makefile.am): Remove DEFS setting.
41445         (Depends-on): Add configmake, for PKGDATADIR definition.
41446
41447 2006-09-17  Bruno Haible  <bruno@clisp.org>
41448
41449         * gnulib-tool (func_create_testdir): Rewrite all files at once.
41450
41451 2006-09-17  Bruno Haible  <bruno@clisp.org>
41452
41453         * gnulib-tool (func_append): New function, stolen from libtool.m4.
41454         (func_modules_transitive_closure, func_modules_add_dummy,
41455         func_modules_to_filelist, func_import, func_create_testdir,
41456         func_create_megatestdir, ...): Use it wherever possible.
41457         Suggested by Ralf Wildenhues.
41458
41459 2006-09-16  Karl Berry  <karl@gnu.org>
41460
41461         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
41462         to avoid sectioning errors.
41463         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
41464         [ifinfo]: blank line after @center-ed titles.
41465         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
41466         Spell FSF address consistently with others.
41467         (These changes approved by rms.)
41468
41469 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41470
41471         Speed up by a factor of 1.61.
41472         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
41473         already checked module names again.
41474
41475 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41476
41477         Speed up by a factor of 1.13.
41478         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
41479         for new_files, and the input to func_add_or_update.
41480
41481 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41482
41483         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
41484         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
41485
41486 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41487
41488         * modules/mkancesdirs (Depends-on): Add fcntl.
41489         * modules/savewd: New file.
41490         * MODULES.html.sh (File system functions): Add savewd.
41491
41492         * modules/configmake (Makefile.am): Add support for the
41493         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
41494
41495 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41496
41497         * m4/savewd.m4: New file.
41498
41499 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41500
41501         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
41502         (dirchownmod): New arg FD.  All callers changed.
41503         Use FD rather than opening the directory ourself, as opening is
41504         now the caller's responsibility.
41505         * lib/dirchownmod.h: Likewise.
41506         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
41507         hosts that require <sys/types.h> before <sys/stat.h>.  Include
41508         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
41509         (test_dir): Remove.
41510         (mkancesdirs): Return length of prefix of FILE that has already
41511         been made, or -2 if there is a child doing the work.  Redo
41512         algorithm so that it is O(N) rather than O(N**2).  Optimize away
41513         ".", and treat ".." specially since it might stray back into
41514         already-created areas.  Use a subprocess if necessary.  New arg
41515         WD; all users changed.  MAKE_DIR function should now return 1
41516         if it creates a directory that is not readable.  Return -2 if
41517         a child process is spun off.
41518         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
41519         Adjust signature to match code.
41520         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
41521         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
41522         all users changed.
41523         * lib/savewd.c, lib/savewd.h: New files.
41524
41525 2006-09-15  Jim Meyering  <jim@meyering.net>
41526
41527         * modules/rename-dest-slash: New module.
41528         * MODULES.html.sh (posix_compat): Add it here.
41529
41530         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
41531
41532 2006-09-15  Jim Meyering  <jim@meyering.net>
41533
41534         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
41535         file.
41536
41537         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
41538
41539 2006-09-15  Jim Meyering  <jim@meyering.net>
41540
41541         * lib/rename-dest-slash.c (has_trailing_slash): Use
41542         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
41543         (rpl_rename_dest_slash): Perform the cheaper trailing slash
41544         test before testing whether SRC is a directory.
41545         Suggestions from Bruno Haible.
41546
41547         Avoid a warning about an unused variable.
41548         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
41549         into the #ifdef block where it's used.
41550
41551         * lib/rename-dest-slash.c: New file.
41552
41553 2006-09-14  Bruno Haible  <bruno@clisp.org>
41554
41555         * lib/allocsa.c: Include <config.h> unconditionally.
41556         * lib/asnprintf.c: Likewise.
41557         * lib/asprintf.c: Likewise.
41558         * lib/c-strcasecmp.c: Likewise.
41559         * lib/c-strcasestr.c: Likewise.
41560         * lib/c-strncasecmp.c: Likewise.
41561         * lib/c-strstr.c: Likewise.
41562         * lib/classpath.c: Likewise.
41563         * lib/clean-temp.c: Likewise.
41564         * lib/concatpath.c: Likewise.
41565         * lib/copy-file.c: Likewise.
41566         * lib/csharpcomp.c: Likewise.
41567         * lib/csharpexec.c: Likewise.
41568         * lib/execute.c: Likewise.
41569         * lib/fatal-signal.c: Likewise.
41570         * lib/findprog.c: Likewise.
41571         * lib/fwriteerror.c: Likewise.
41572         * lib/gl_array_list.c: Likewise.
41573         * lib/gl_array_oset.c: Likewise.
41574         * lib/gl_avltree_list.c: Likewise.
41575         * lib/gl_avltree_oset.c: Likewise.
41576         * lib/gl_avltreehash_list.c: Likewise.
41577         * lib/gl_carray_list.c: Likewise.
41578         * lib/gl_linked_list.c: Likewise.
41579         * lib/gl_linkedhash_list.c: Likewise.
41580         * lib/gl_list.c: Likewise.
41581         * lib/gl_oset.c: Likewise.
41582         * lib/gl_rbtree_list.c: Likewise.
41583         * lib/gl_rbtree_oset.c: Likewise.
41584         * lib/gl_rbtreehash_list.c: Likewise.
41585         * lib/imaxabs.c: Likewise.
41586         * lib/imaxdiv.c: Likewise.
41587         * lib/javacomp.c: Likewise.
41588         * lib/javaexec.c: Likewise.
41589         * lib/javaversion.c: Likewise.
41590         * lib/linebreak.c: Likewise.
41591         * lib/localcharset.c: Likewise.
41592         * lib/lock.c: Likewise.
41593         * lib/mbchar.c: Likewise.
41594         * lib/mbswidth.c: Likewise.
41595         * lib/mkdtemp.c: Likewise.
41596         * lib/pipe.c: Likewise.
41597         * lib/printf-args.c: Likewise.
41598         * lib/printf-parse.c: Likewise.
41599         * lib/progname.c: Likewise.
41600         * lib/progreloc.c: Likewise.
41601         * lib/readlink.c: Likewise.
41602         * lib/sh-quote.c: Likewise.
41603         * lib/stpcpy.c: Likewise.
41604         * lib/stpncpy.c: Likewise.
41605         * lib/strcasecmp.c: Likewise.
41606         * lib/strcasestr.c: Likewise.
41607         * lib/strcspn.c: Likewise.
41608         * lib/striconv.c: Likewise.
41609         * lib/strncasecmp.c: Likewise.
41610         * lib/strnlen1.c: Likewise.
41611         * lib/strstr.c: Likewise.
41612         * lib/strtok_r.c: Likewise.
41613         * lib/tls.c: Likewise.
41614         * lib/tmpdir.c: Likewise.
41615         * lib/unicodeio.c: Likewise.
41616         * lib/unsetenv.c: Likewise.
41617         * lib/vasnprintf.c: Likewise.
41618         * lib/vasprintf.c: Likewise.
41619         * lib/wait-process.c: Likewise.
41620         * lib/xallocsa.c: Likewise.
41621         * lib/xsetenv.c: Likewise.
41622         * lib/xstriconv.c: Likewise.
41623
41624 2006-09-13  Simon Josefsson  <jas@extundo.com>
41625
41626         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
41627         that internally, suggested by Ralf Wildenhues
41628         <Ralf.Wildenhues@gmx.de>.
41629
41630 2006-09-13  Simon Josefsson  <jas@extundo.com>
41631
41632         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
41633         @LIBOBJS@.
41634         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41635
41636 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
41637
41638         * lib/_fpending.c: Include <config.h> unconditionally, since we no
41639         longer worry about uses that don't define HAVE_CONFIG_H.
41640         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
41641         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
41642         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
41643         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
41644         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
41645         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
41646         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
41647         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
41648         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
41649         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
41650         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
41651         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
41652         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
41653         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
41654         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
41655         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
41656         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
41657         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
41658         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
41659         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
41660         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
41661         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
41662         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
41663         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
41664         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
41665         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
41666         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
41667         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
41668         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
41669         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
41670         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
41671         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
41672         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
41673         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
41674         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
41675         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
41676         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
41677         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
41678         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
41679         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
41680         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
41681         Likewise.
41682
41683 2006-09-13  Eric Blake  <ebb9@byu.net>
41684
41685         * lib/getopt.c: Fix typo in last commit.
41686
41687 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41688
41689         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
41690         dgettext.
41691
41692 2006-09-12  Jim Meyering  <jim@meyering.net>
41693
41694         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
41695         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
41696         Reported by Nelson H. F. Beebe.
41697
41698 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
41699
41700         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
41701         program_invocation_name and program_invocation_short_name are
41702         initialized.
41703         * lib/argp-namefrob.h: Move declarations of program_invocation_name
41704         and program_invocation_short_name to argp.h, so they are visible
41705         to user programs.
41706         * lib/argp.h: Likewise
41707
41708 2006-09-10  Bruno Haible  <bruno@clisp.org>
41709
41710         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
41711         m4/inttypes_h.m4, m4/uintmax_t.m4.
41712
41713 2006-09-10  Bruno Haible  <bruno@clisp.org>
41714
41715         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
41716         gl_AC_TYPE_UINTMAX_T.
41717
41718 2006-09-10  Bruno Haible  <bruno@clisp.org>
41719
41720         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
41721
41722 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
41723
41724         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
41725         convention.  Text proposed by Bruno Haible.
41726         (struct argp_option): Document the use of N_() wrappers.
41727
41728         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
41729         '\v', and translate the two parts separately, instead of feeding
41730         the whole string to gettext.  This allows to exclude
41731         '\v' from the strings visible to the translator by writing doc
41732         strings as N_("..") "\v" N_("..").
41733
41734 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
41735
41736         * config/srclist.txt: Undo latest change; the bug was fixed.
41737
41738 2006-09-09  Bruno Haible  <bruno@clisp.org>
41739
41740         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
41741         assignments if building a library without libtool.
41742         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
41743         in func_emit_lib_Makefile_am.
41744         (func_import): When building a static library libfoo.a, arrange to
41745         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
41746         (func_create_testdir): Likewise.
41747         * modules/gc (configure.ac, Makefile.am): If building statically,
41748         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
41749         * modules/iconvme (configure.ac, Makefile.am): Likewise.
41750         * modules/striconv (configure.ac, Makefile.am): Likewise.
41751         Based on a suggestion by Ralf Wildenhues.
41752
41753 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41754
41755         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
41756         Check for unistd.h too, since Autoconf doesn't assume POSIX.
41757         Also:
41758
41759         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41760         Add year_2050_test to catch glibc bug 2821
41761         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
41762
41763         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41764         Prefer #ifdef to #if.
41765
41766         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
41767         Return from 'main' instead of calling 'exit'.
41768
41769 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41770
41771         * lib/mktime.c (guess_time_tm): Fix bug where mktime
41772         returned the maximum time_t value rather than (time_t) -1.
41773         Problem originally reported by William Bardwell
41774         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
41775
41776         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
41777         Moved to here ...
41778         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
41779         ... from here.
41780
41781 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41782
41783         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
41784         2821 is fixed.
41785
41786 2006-09-08  Jim Meyering  <jim@meyering.net>
41787
41788         Don't make generated files read-only.  That would bother too many
41789         people.  However, do retain the ability to work when targets are
41790         read-only: remove the destination and temporary files before writing
41791         them (when generated via sed or echo), or by using the -f option for
41792         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
41793         * modules/alloca-opt, modules/argz, modules/arpa_inet:
41794         * modules/byteswap, modules/configmake, modules/fcntl:
41795         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
41796         * modules/localcharset, modules/netinet_in, modules/poll:
41797         * modules/stdbool, modules/stdint, modules/sys_select:
41798         * modules/sys_socket, modules/sys_stat, modules/sysexits:
41799
41800 2006-09-08  Jim Meyering  <jim@meyering.net>
41801
41802         Avoid new build failure on FreeBSD 6.0.
41803         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
41804         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
41805         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
41806
41807 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41808
41809         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
41810
41811 2006-09-07  Jim Meyering  <jim@meyering.net>
41812
41813         Fix global typo in last change: use chmod u-w, not chmod u-x.
41814         Spotted by Paul Eggert and Bruce Korb.
41815         * modules/alloca-opt, modules/argz, modules/arpa_inet:
41816         * modules/byteswap, modules/configmake, modules/fcntl:
41817         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
41818         * modules/localcharset, modules/netinet_in, modules/poll:
41819         * modules/stdbool, modules/stdint, modules/sys_select:
41820         * modules/sys_socket, modules/sys_stat, modules/sysexits:
41821
41822 2006-09-06  Jim Meyering  <jim@meyering.net>
41823
41824         Make generated files be read-only.
41825         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
41826         Ensure that each generated file is now read-only.
41827         * modules/argz: Likewise.
41828         * modules/arpa_inet: Likewise.
41829         * modules/byteswap: Likewise.
41830         * modules/configmake: Likewise.
41831         * modules/fcntl: Likewise.
41832         * modules/fnmatch: Likewise.
41833         * modules/getopt: Likewise.
41834         * modules/glob: Likewise.
41835         * modules/inttypes: Likewise.
41836         * modules/netinet_in: Likewise.
41837         * modules/poll: Likewise.
41838         * modules/stdbool: Likewise.
41839         * modules/stdint: Likewise.
41840         * modules/sys_select: Likewise.
41841         * modules/sys_socket: Likewise.
41842         * modules/sys_stat: Likewise.
41843         * modules/sysexits: Likewise.
41844         * modules/localcharset: Same as above, but continue using temporary
41845         file named "t-$@" (why different?) rather than the "$@-t" used
41846         everywhere else.
41847
41848         * modules/sysexits (Makefile.am): Replace literal occurrences
41849         of "sysexit.h" more readable, and more consistent, "$@".
41850
41851 2006-09-06  Bruno Haible  <bruno@clisp.org>
41852
41853         * modules/striconv: New file.
41854         * modules/xstriconv: New file.
41855         * MODULES.html.sh (Internationalization functions): Add striconv,
41856         xstriconv.
41857
41858 2006-09-06  Bruno Haible  <bruno@clisp.org>
41859
41860         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
41861         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
41862         not using libtool correctly.
41863
41864 2006-09-06  Bruno Haible  <bruno@clisp.org>
41865
41866         * lib/striconv.h: New file.
41867         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
41868         iconvstring.c.
41869         * lib/xstriconv.h: New file.
41870         * lib/xstriconv.c: New file.
41871
41872 2006-09-06  Bruno Haible  <bruno@clisp.org>
41873
41874         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41875         lib_..._LDFLAGS.
41876
41877 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41878
41879         * lib/argz_.h: Sync from Libtool.
41880
41881         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
41882                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41883
41884         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
41885
41886 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
41887
41888         * modules/trim: New file.
41889
41890 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
41891
41892         * lib/trim.h: New file.
41893         * lib/trim.c: New file.
41894
41895 2006-09-05  Bruno Haible  <bruno@clisp.org>
41896
41897         * MODULES.html.sh (String handling): Add trim.
41898
41899 2006-09-04  Karl Berry  <karl@gnu.org>
41900
41901         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
41902         until next release.
41903
41904 2006-09-03  Bruno Haible  <bruno@clisp.org>
41905
41906         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
41907         correctly.
41908
41909 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41910
41911         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
41912         not gl_GETLOADAVG.  Omit unneeded semicolons.
41913         Problems reported by Ralf Wildenhues in
41914         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
41915         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
41916         at the end, which is the usual gnulib style.
41917
41918         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
41919         of doing all the work ourselves.
41920         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
41921         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
41922
41923 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41924
41925         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
41926         Problem reported by Ralf Wildenhues in
41927         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
41928
41929         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
41930         HAVE_STRUCT_STATFS_F_FSTYPENAME.
41931
41932 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41933
41934         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
41935         yesterday's patch by changing test -n to test -z.
41936
41937 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41938
41939         * modules/getloadavg (Files): Add m4/getloadavg.m4.
41940         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
41941         the former is now obsolescent.
41942
41943         * modules/chdir-long (Depends-on): Add fcntl.
41944
41945 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41946
41947         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
41948         obsolescent, and programs should use gnulib instead.
41949         * m4/getloadavg.m4: New file, with contents taken from Autoconf
41950         but with prefixes changed.
41951
41952 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41953
41954         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
41955         or stdbool.h, because they might not exist while configuring.
41956
41957         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
41958         Don't include unistd.h or limits.h; not needed, since chdir-long.h
41959         does that for us.
41960         (O_DIRECTORY): Remove.
41961
41962 2006-08-31  Eric Blake  <ebb9@byu.net>
41963
41964         * gnulib-tool: Don't let emacs change spaces to TAB.
41965
41966 2006-08-31  Bruno Haible  <bruno@clisp.org>
41967
41968         * gnulib-tool: When calling func_import more than once, do it in a
41969         subshell.
41970         Reported by Eric Blake <ebb9@byu.net>.
41971
41972 2006-08-31  Bruno Haible  <bruno@clisp.org>
41973
41974         * gnulib-tool (nl): Remove variable.
41975         (sed_transform_lib_file): Use more robust test for config-h module.
41976         (func_import): Fix typo in 2006-08-25 patch.
41977
41978 2006-08-31  Bruno Haible  <bruno@clisp.org>
41979
41980         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
41981         specified, augment Makefile.am variables instead of assigning them.
41982
41983 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41984
41985         Work around a bug in both the Linux and SunOS 64-bit kernels:
41986         nanosleep mishandles sleeps for longer than 2**31 seconds.
41987         Problem reported by Frank v Waveren in
41988         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
41989         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
41990         Check for nanosleep bug.
41991         (LIB_NANOSLEEP): Append clock_gettime library if needed.
41992
41993 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41994
41995         Work around a bug in both the Linux and SunOS 64-bit kernels:
41996         nanosleep mishandles sleeps for longer than 2**31 seconds.
41997         Problem reported by Frank v Waveren in
41998         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
41999         * lib/nanosleep.c (BILLION): New constant.
42000         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
42001         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
42002         implementation.
42003
42004 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42005
42006         * modules/nanosleep (Depends-on): Add gettime.
42007
42008 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42009         and Simon Josefsson  <jas@extundo.com>
42010         and Oskar Liljeblad  <oskar@osk.mine.nu>
42011
42012         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
42013         * gnulib-tool (func_import): New license type 'unmodifiable license
42014         text'.
42015         * modules/fdl: Use it.  Longer description.
42016         * module/gpl, module/lgpl: New files.
42017
42018 2006-08-30  Jim Meyering  <jim@meyering.net>
42019
42020         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
42021         shadowing the parameter.
42022
42023 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42024
42025         Sync from Libtool:
42026
42027         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42028
42029         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
42030         sharing with gnulib.  Report by Eric Blake.
42031
42032 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42033
42034         * modules/isapipe: New file.
42035         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
42036
42037 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42038
42039         * modules/configmake (Makefile.am): Add a comment, and omit
42040         the CONFIGMAKE_ prefix from generated macro names.  Suggested
42041         by Bruno Haible.
42042
42043 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42044
42045         * m4/isapipe.m4: New file.
42046
42047 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42048
42049         * lib/isapipe.c, lib/isapipe.h: New files.
42050
42051 2006-08-29  Jim Meyering  <jim@meyering.net>
42052
42053         * modules/configmake (Makefile.am): Make configmake.h depend on
42054         Makefile.  Otherwise, a stale configmake.h could hang around.
42055
42056 2006-08-29  Eric Blake  <ebb9@byu.net>
42057
42058         * lib/error.c (error_at_line, print_errno_message): Match libc, after
42059         resolution of upstream bug 3044.
42060
42061 2006-08-29  Bruno Haible  <bruno@clisp.org>
42062
42063         * modules/localcharset (Depends-on): Add configmake.
42064         (Makefile.am): Remove setting of LIBDIR through DEFS.
42065
42066 2006-08-29  Bruno Haible  <bruno@clisp.org>
42067
42068         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
42069         defined.
42070
42071 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42072
42073         * modules/fcntl: New file.
42074         * modules/chdir-safer (Depends-on): Add fcntl.
42075         * modules/fts: Likewise.
42076         * modules/mkdir-p: Likewise.
42077
42078         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
42079         This undoes the most recent change, since we're now addressing the
42080         problem in a different way.
42081
42082         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
42083         into output, since the output might be called Makefile.am even
42084         if $makefile_name is something different.
42085         (func_import): Use $makefile_am rather than
42086         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
42087         empty.
42088
42089         * modules/inttypes (Files): Add m4/inttypes-h.m4.
42090
42091 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42092
42093         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
42094         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
42095         recent change to stdint.m4, since we're now addressing the problem in a
42096         different way.
42097
42098 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42099
42100         * m4/fcntl_h.m4: New file.
42101
42102 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42103
42104         * lib/fcntl_.h: New file.
42105         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
42106         the fcntl module.
42107         * lib/dirchownmod.c: Likewise.
42108         * lib/fts.c: Likewise.
42109
42110         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
42111         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
42112         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
42113         just before including <inttypes.h>, to avoid circular inclusion.
42114
42115 2006-08-28  Jim Meyering  <jim@meyering.net>
42116
42117         * doc/visibility.texi: Actually read and correct the grammar of the
42118         sentence affected by yesterday's change.
42119
42120 2006-08-28  Eric Blake  <ebb9@byu.net>
42121
42122         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
42123         needs wrapper.
42124
42125 2006-08-28  Eric Blake  <ebb9@byu.net>
42126
42127         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
42128
42129 2006-08-28  Eric Blake  <ebb9@byu.net>
42130
42131         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
42132
42133 2006-08-28  Bruno Haible  <bruno@clisp.org>
42134
42135         * modules/c-strstr: New file, from GNU gettext.
42136         * MODULES.html.sh (String handling): Add c-strstr.
42137
42138 2006-08-28  Bruno Haible  <bruno@clisp.org>
42139
42140         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
42141         macros.
42142         Reported by Eric Blake.
42143
42144 2006-08-28  Bruno Haible  <bruno@clisp.org>
42145
42146         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
42147         (VASNPRINTF): Return a string of length > INT_MAX without failing.
42148         * lib/vasprintf.c: Include errno.h, limits.h.
42149         (EOVERFLOW): New fallback definition.
42150         (vasprintf): Test here whether the string length is > INT_MAX.
42151         * lib/vsnprintf.c: Include errno.h, limits.h.
42152         (EOVERFLOW): New fallback definition.
42153         (vsnprintf): Fix bug when generated string was too long for the buffer.
42154         Test here whether the string length is > INT_MAX.
42155
42156 2006-08-28  Bruno Haible  <bruno@clisp.org>
42157
42158         * lib/inttypes_.h (SCNX*): Remove definitions.
42159         Reported by Eric Blake.
42160
42161 2006-08-28  Bruno Haible  <bruno@clisp.org>
42162
42163         * lib/c-strstr.h: New file, from GNU gettext.
42164         * lib/c-strstr.c: New file, from GNU gettext.
42165
42166 2006-08-28  Bruno Haible  <bruno@clisp.org>
42167
42168         * gnulib-tool: Reorder some statements.
42169
42170 2006-08-28  Bruno Haible  <bruno@clisp.org>
42171
42172         * gnulib-tool: New option --makefile-name.
42173         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
42174         $makefile_name.
42175         (func_import): Write $makefile_name to the cache file, and read it from
42176         there unless explicitly specified. Use $makefile_name as file name
42177         instead of Makefile.am. Adjust the recommendations accordingly.
42178
42179 2006-08-28  Bruno Haible  <bruno@clisp.org>
42180
42181         * gnulib-tool (func_verify_module): Check against misapplying patch.
42182
42183 2006-08-28  Bruno Haible  <bruno@clisp.org>
42184
42185         * gnulib-tool (func_relativize, func_relconcat): New functions.
42186         Give an error if --local-dir is given with --update.
42187         Remove trailing slashes from $local_gnulib_dir.
42188         (func_import): Store the relativized $local_gnulib_dir in
42189         gnulib-cache.m4, and read it from there if not specified explicitly.
42190
42191 2006-08-28  Bruno Haible  <bruno@clisp.org>
42192
42193         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
42194         is the current directory. Respect also $local_gnulib_dir.
42195
42196 2006-08-28  Bruno Haible  <bruno@clisp.org>
42197             Simon Josefsson  <jas@extundo.com>
42198
42199         BeOS portability.
42200         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
42201
42202 2006-08-27  Jim Meyering  <jim@meyering.net>
42203
42204         * doc/visibility.texi: Remove duplicate word: "pointer".
42205
42206 2006-08-26  Bruno Haible  <bruno@clisp.org>
42207
42208         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
42209         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
42210         (Makefile.am): Create inttypes.h from inttypes_.h.
42211         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
42212
42213         * modules/imaxabs: New file.
42214
42215         * modules/imaxdiv: New file.
42216
42217 2006-08-26  Bruno Haible  <bruno@clisp.org>
42218
42219         * m4/inttypes.m4: New file.
42220         * m4/_inttypes_h.m4: Remove file.
42221         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
42222         PRI_MACROS_BROKEN.
42223         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
42224
42225         * m4/imaxabs.m4: New file.
42226
42227         * m4/imaxdiv.m4: New file.
42228
42229 2006-08-26  Bruno Haible  <bruno@clisp.org>
42230
42231         * lib/inttypes_.h: New file.
42232         * lib/inttypes.h: Remove file.
42233         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
42234
42235         * lib/imaxabs.c: New file.
42236
42237         * lib/imaxdiv.c: New file.
42238
42239 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
42240
42241         New config-h module, so that "make" output needn't be cluttered
42242         by -DHAVE_CONFIG_H.
42243         * MODULES.html.sh (Support for building libraries and executables):
42244         Add config-h.
42245         * modules/config-h: New file.
42246         * gnulib-tool (nl, sed_transform_lib_file): New vars.
42247         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
42248         the config-h module is used.
42249
42250         New configmake module, so that "make" output needn't be cluttered
42251         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
42252         * MODULES.html.sh (Support for building libraries and executables):
42253         Add configmake.
42254         * modules/configmake: New file.
42255
42256 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
42257
42258         * m4/config-h.m4: New file.
42259
42260 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
42261
42262         * config/srclist.txt: Add elisp-comp.
42263
42264 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
42265
42266         * MODULES.html.sh (Support for building libraries and executables):
42267         Add elisp-comp.
42268         * build-aux/elisp-comp: New file.
42269         * modules/elisp-comp: New file.
42270
42271 2006-08-24  Bruno Haible  <bruno@clisp.org>
42272
42273         * gnulib-tool (func_create_testdir): Use non-default values of
42274         sourcebase and m4base.
42275
42276 2006-08-24  Bruno Haible  <bruno@clisp.org>
42277
42278         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
42279         HTML structure.
42280
42281 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
42282
42283         * modules/openat (Depends-on): Add lchown.
42284
42285 2006-08-23  Bruno Haible  <bruno@clisp.org>
42286
42287         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
42288         of gl_LOCK_EARLY instead of gl_LOCK.
42289
42290 2006-08-23  Bruno Haible  <bruno@clisp.org>
42291
42292         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
42293         on OSF/1 to no.
42294         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
42295
42296 2006-08-23  Bruno Haible  <bruno@clisp.org>
42297
42298         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
42299         as unusable.
42300
42301         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
42302         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
42303         (gl_LOCK): New macro.
42304
42305 2006-08-22  Simon Josefsson  <jas@extundo.com>
42306
42307         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
42308         to md5 module.
42309
42310 2006-08-22  Simon Josefsson  <jas@extundo.com>
42311
42312         * MODULES.html.sh: Add "Support for maintaining and release
42313         projects".
42314
42315         * build-aux/gnupload: New file, from coreutils.
42316
42317 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
42318
42319         Avoid the need for AC_LIBSOURCES in m4 macros.
42320         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
42321         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
42322         * modules/check-version (EXTRA_DIST): Add check-version.h.
42323         * modules/crc (EXTRA_DIST): Add crc.h.
42324         * modules/des (EXTRA_DIST): Add des.h.
42325         * modules/gc (EXTRA_DIST): Add gc.h.
42326         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
42327         * modules/getline (EXTRA_DIST): Add getline.h.
42328         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
42329         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
42330         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
42331         * modules/md2 (EXTRA_DIST): Add md2.h.
42332         * modules/md4 (EXTRA_DIST): Add md4.h.
42333         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
42334         * modules/read-file (EXTRA_DIST): Add read-file.h.
42335         * modules/readline (EXTRA_DIST): Add readline.h.
42336         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
42337         rijndael-api-fst.h.
42338
42339 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
42340
42341         * m4/rijndael.m4 (gl_ARCFOUR):
42342         * m4/arctwo.m4 (gl_ARCTWO):
42343         * m4/check-version.m4 (gl_CHECK_VERSION):
42344         * m4/crc.m4 (gl_CRC):
42345         * m4/des.m4 (gl_DES):
42346         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
42347         * m4/gc.m4 (gl_GC):
42348         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
42349         * m4/getline.m4 (gl_FUNC_GETLINE):
42350         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
42351         * m4/hmac-md5.m4 (gl_HMAC_MD5):
42352         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
42353         * m4/md2.m4 (gl_MD2):
42354         * m4/md4.m4 (gl_MD4):
42355         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
42356         * m4/read-file.m4 (gl_FUNC_READ_FILE):
42357         * m4/readline.m4 (gl_FUNC_READLINE):
42358         * m4/rijndael.m4 (gl_RIJNDAEL):
42359         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
42360         to get the necessary .h files and whatnot.
42361
42362 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
42363
42364         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
42365         gnulib rather than the other way around.
42366         * config/srclistvars.sh (COREUTILS): Remove.
42367
42368 2006-08-22  Jim Meyering  <jim@meyering.net>
42369
42370         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
42371
42372         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
42373
42374 2006-08-22  Eric Blake  <ebb9@byu.net>
42375
42376         * modules/regexprops-generic: New file.
42377         * MODULES.html.sh (Support for building documentation): List it.
42378
42379 2006-08-22  Eric Blake  <ebb9@byu.net>
42380
42381         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
42382         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42383         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
42384         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
42385
42386 2006-08-22  Bruno Haible  <bruno@clisp.org>
42387
42388         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
42389         and lib_LTLIBRARIES like the other lib_* variables.
42390
42391 2006-08-22  Bruno Haible  <bruno@clisp.org>
42392
42393         * build-aux/x-to-1.in: New file, from GNU gettext.
42394
42395 2006-08-22  Bruno Haible  <bruno@clisp.org>
42396
42397         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
42398         <utmpx.h> exists.
42399
42400 2006-08-22  Bruno Haible  <bruno@clisp.org>
42401
42402         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
42403         <utmpx.h> exists.
42404
42405 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
42406
42407         BeOS portability.
42408         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
42409         exist.
42410         Problem reported by Bruno Haible.
42411
42412 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
42413
42414         Avoid the need for AC_LIBSOURCES in m4 macros.
42415         * modules/acl (EXTRA_DIST): Add acl.h.
42416         * modules/argmatch (Files): Add m4/argmatch.m4.
42417         (configure.ac): Add gl_ARGMATCH.
42418         (EXTRA_DIST): Renamed from lib_SOURCES, for
42419         consistency with the other modules.  Remove argmatch.c.
42420         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
42421         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
42422         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
42423         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
42424         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
42425         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
42426         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
42427         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
42428         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
42429         * modules/closeout (EXTRA_DIST): Add closeout.h.
42430         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
42431         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
42432         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
42433         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
42434         dirname.h; remove basename.c and stripslash.c.
42435         * modules/exclude (EXTRA_DIST): Add exclude.h.
42436         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
42437         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
42438         * modules/file-type (EXTRA_DIST): Add file-type.h.
42439         * modules/filemode (EXTRA_DIST): Add filemode.h.
42440         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
42441         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
42442         * modules/fpending (EXTRA_DIST): Add __fpending.h.
42443         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
42444         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
42445         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
42446         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
42447         * modules/getdate (EXTRA_DIST): Add getdate.c.
42448         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
42449         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
42450         * modules/getpass (EXTRA_DIST): Add getpass.h.
42451         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
42452         * modules/group-member (EXTRA_DIST): Add group-member.h.
42453         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
42454         * modules/hash (EXTRA_DIST): Add hash.h.
42455         * modules/human (EXTRA_DIST): Add human.h.
42456         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
42457         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
42458         * modules/lchown (EXTRA_DIST): Add lchown.h.
42459         * modules/long-options (EXTRA_DIST): Add long-options.h.
42460         * modules/lstat (EXTRA_DIST): Add lstat.h.
42461         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
42462         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
42463         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
42464         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
42465         * modules/memxor (EXTRA_DIST): Add memxor.h.
42466         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
42467         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
42468         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
42469         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
42470         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
42471         * modules/physmem (EXTRA_DIST): Add physmem.h.
42472         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
42473         * modules/posixver (EXTRA_DIST): Add posixver.h.
42474         * modules/quote (EXTRA_DIST): Add quote.h.
42475         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
42476         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
42477         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
42478         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
42479         regex_internal.h regexec.c.
42480         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
42481         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
42482         * modules/same (EXTRA_DIST): Add same.h.
42483         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
42484         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
42485         * modules/savedir (EXTRA_DIST): Add savedir.h.
42486         * modules/sha1 (EXTRA_DIST): Add sha1.h.
42487         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
42488         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
42489         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
42490         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
42491         * modules/strdup (EXTRA_DIST): Add strdup.h.
42492         * modules/strftime (EXTRA_DIST): Add strftime.h.
42493         * modules/strndup (EXTRA_DIST): Add strndup.h.
42494         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
42495         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
42496         * modules/time_r (EXTRA_DIST): Add time_r.h.
42497         * modules/timespec (EXTRA_DIST): Add timespec.h.
42498         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
42499         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
42500         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
42501         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
42502         * modules/userspec (EXTRA_DIST): Add userspec.h.
42503         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
42504         * modules/utimens (EXTRA_DIST): Add utimens.h.
42505         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
42506         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
42507         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
42508         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
42509         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
42510         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
42511         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
42512         * modules/yesno (EXTRA_DIST): Add yesno.h.
42513
42514 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
42515
42516         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
42517
42518         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
42519         * m4/dev-ino.m4, same-inode.m4: Remove.
42520
42521         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
42522         * m4/acl.m4 (AC_FUNC_ACL):
42523         * m4/backupfile.m4 (gl_BACKUPFILE):
42524         * m4/c-strtod.m4 (gl_C99_STRTOLD):
42525         * m4/canon-host.m4 (gl_CANON_HOST):
42526         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
42527         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
42528         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
42529         * m4/cloexec.m4 (gl_CLOEXEC):
42530         * m4/close-stream.m4 (gl_CLOSE_STREAM):
42531         * m4/closeout.m4 (gl_CLOSEOUT):
42532         * m4/dirfd.m4 (gl_FUNC_DIRFD):
42533         * m4/dirname.m4 (gl_DIRNAME):
42534         * m4/exclude.m4 (gl_EXCLUDE):
42535         * m4/exitfail.m4 (gl_EXITFAIL):
42536         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
42537         * m4/file-type.m4 (gl_FILE_TYPE):
42538         * m4/filemode.m4 (gl_FILEMODE):
42539         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
42540         * m4/fpending.m4 (gl_FUNC_FPENDING):
42541         * m4/fprintftime.m4 (gl_FPRINTFTIME):
42542         * m4/fts.m4 (gl_FUNC_FTS):
42543         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
42544         * m4/getdate.m4 (gl_GETDATE):
42545         * m4/gethrxtime.m4 (gl_GETHRXTIME):
42546         * m4/getpagesize.m4 (gl_GETPAGESIZE):
42547         * m4/getpass.m4 (gl_FUNC_GETPASS):
42548         * m4/gettime.m4 (gl_GETTIME):
42549         * m4/getugroups.m4 (gl_GETUGROUPS):
42550         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
42551         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
42552         * m4/hard-locale.m4 (gl_HARD_LOCALE):
42553         * m4/hash.m4 (gl_HASH):
42554         * m4/idcache.m4 (gl_IDCACHE):
42555         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
42556         * m4/lchown.m4 (gl_FUNC_LCHOWN):
42557         * m4/long-options.m4 (gl_LONG_OPTIONS):
42558         * m4/lstat.m4 (gl_FUNC_LSTAT):
42559         * m4/md5.m4 (gl_MD5):
42560         * m4/memcasecmp.m4 (gl_MEMCASECMP):
42561         * m4/memcoll.m4 (gl_MEMCOLL):
42562         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
42563         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
42564         * m4/memxor.m4 (gl_MEMXOR):
42565         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
42566         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
42567         * m4/modechange.m4 (gl_MODECHANGE):
42568         * m4/mountlist.m4 (gl_MOUNTLIST):
42569         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42570         * m4/openat.m4 (gl_FUNC_OPENAT):
42571         * m4/pathmax.m4 (gl_PATHMAX):
42572         * m4/physmem.m4 (gl_PHYSMEM):
42573         * m4/posixtm.m4 (gl_POSIXTM):
42574         * m4/posixver.m4 (gl_POSIXVER):
42575         * m4/quote.m4 (gl_QUOTE):
42576         * m4/quotearg.m4 (gl_QUOTEARG):
42577         * m4/readtokens.m4 (gl_READTOKENS):
42578         * m4/readutmp.m4 (gl_READUTMP):
42579         * m4/regex.m4 (gl_REGEX):
42580         * m4/safe-read.m4 (gl_SAFE_READ):
42581         * m4/safe-write.m4 (gl_SAFE_WRITE):
42582         * m4/same.m4 (gl_SAME):
42583         * m4/save-cwd.m4 (gl_SAVE_CWD):
42584         * m4/savedir.m4 (gl_SAVEDIR):
42585         * m4/settime.m4 (gl_SETTIME):
42586         * m4/sha1.m4 (gl_SHA1):
42587         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
42588         * m4/stat-macros.m4 (gl_STAT_MACROS):
42589         * m4/stat-time.m4 (gl_STAT_TIME):
42590         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
42591         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
42592         * m4/strdup.m4 (gl_FUNC_STRDUP):
42593         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
42594         * m4/strndup.m4 (gl_FUNC_STRNDUP):
42595         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
42596         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
42597         * m4/time_r.m4 (gl_TIME_R):
42598         * m4/timespec.m4 (gl_TIMESPEC):
42599         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
42600         * m4/unlinkdir.m4 (gl_UNLINKDIR):
42601         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
42602         * m4/userspec.m4 (gl_USERSPEC):
42603         * m4/utimecmp.m4 (gl_UTIMECMP):
42604         * m4/utimens.m4 (gl_UTIMENS):
42605         * m4/xalloc.m4 (gl_XALLOC):
42606         * m4/xgetcwd.m4 (gl_XGETCWD):
42607         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
42608         * m4/xreadlink.m4 (gl_XREADLINK):
42609         * m4/xstrtod.m4 (gl_XSTRTOD):
42610         * m4/yesno.m4 (gl_YESNO):
42611         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
42612         to get the necessary .h files and whatnot.
42613
42614 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
42615             Bruno Haible  <bruno@clisp.org>
42616
42617         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
42618         /bin/sh understanding of '!' conditional negation.
42619
42620 2006-08-21  Jim Meyering  <jim@meyering.net>
42621
42622         * modules/openat (Depends-on): Really alphabetize.
42623
42624         * modules/acl (Depends-on): Add error and quote.
42625
42626         * check-module (find_included_lib_files): Add at-func.c to the
42627         ok-to-include-more-than-once white list.
42628
42629         * modules/openat (Depends-on): Add lstat.  Alphabetize.
42630
42631 2006-08-21  Bruno Haible  <bruno@clisp.org>
42632
42633         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42634         Emit a pkgdata_DATA variable only if some snippets add contents to it.
42635         Reported by Martin Lambers <marlam@marlam.de>.
42636
42637 2006-08-21  Bruno Haible  <bruno@clisp.org>
42638
42639         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
42640         specify an installation location, don't emit a noinst_LIBRARIES or
42641         noinst_LTLIBRARIES assignment.
42642
42643 2006-08-21  Bruno Haible  <bruno@clisp.org>
42644
42645         BeOS portability.
42646         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
42647         BeOS has mbrtowc() but no <wctype.h>.
42648
42649 2006-08-21  Bruno Haible  <bruno@clisp.org>
42650
42651         BeOS portability.
42652         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
42653         exist.
42654
42655 2006-08-21  Bruno Haible  <bruno@clisp.org>
42656
42657         BeOS portability.
42658         * lib/mbchar.h: Include <wctype.h> only if it exists.
42659
42660 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
42661
42662         Remove files that are no longer needed by their respective modules.
42663         * m4/obstack.m4: Remove.
42664         * m4/strerror_r.m4: Remove.
42665         * m4/uint32_t.m4: Remove.
42666         * m4/uintptr_t.m4: Remove.
42667         * m4/ullong_max.m4: Remove.
42668         * m4/xstrtoimax.m4: Remove.
42669         * m4/xstrtoumax.m4: Remove.
42670
42671         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
42672         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
42673         dependencies now capture this.
42674
42675         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
42676         Do not use AC_LIBSOURCES, since gnulib modules now do this.
42677         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
42678         * m4/human.m4 (gl_HUMAN): Likewise.
42679         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
42680         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
42681
42682         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
42683
42684         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
42685         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
42686         stdint.
42687         * m4/human.m4 (gl_HUMAN): Likewise.
42688         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
42689         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
42690         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
42691         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
42692         * m4/xstrtol (gl_XSTRTOL): Likewise.
42693
42694         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
42695         AC_TYPE_LONG_LONG_INT.
42696         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
42697         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
42698         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
42699         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
42700
42701         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
42702         on stdbool.
42703
42704         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
42705         (gl_PREREQ_XSTRTOUL): Remove.
42706
42707         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
42708
42709         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
42710         mode.
42711
42712 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
42713
42714         Add and change modules to make it easier for coreutils to use
42715         gnulib-tool.
42716         * modules/backupfile (Files): Remove m4/d-ino.m4.
42717         (Depends-on): Add d-ino.
42718         * modules/cycle-check (Depends-on): Add stdint.
42719         (lib_SOURCES): Add cycle-check.h.
42720         * modules/d-ino: New module.
42721         * modules/d-type: New module.
42722         * modules/error (Files): Remove m4/strerror_r.m4.
42723         * modules/filemode (Files): Add m4/st_dm_mode.m4.
42724         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
42725         m4/inttypes_h.m4, m4/uintmax_t.m4.
42726         (Depends-on): Add stdint.
42727         (lib_SOURCES): Add fsusage.h.
42728         * modules/getcwd (Files): Remove d-ino.m4.
42729         (Depends-on): Add d-ino.
42730         * modules/getndelim2 (Depends-on): Add stdint.
42731         * modules/glob (Files): Remove m4/d-type.m4.
42732         (Depends-on): Add d-type.
42733         * modules/host-os: New module.
42734         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
42735         m4/inttypes_h.m4, m4/uintmax_t.m4.
42736         * Depends-on: Add stdint.
42737         (lib_SOURCES): Add human.h.
42738         * modules/inttostr (Files): Remove m4/intmax_t.m4,
42739         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
42740         m4/uintmax_t.m4, m4/ulonglong.m4.
42741         (Depends-on): Add stdint.
42742         (EXTRA_DIST): Add inttostr.h.
42743         * modules/lchmod: New module.
42744         * modules/link-follow: New module.
42745         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
42746         (Depends-on): Add lchmod.
42747         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
42748         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
42749         (Depends-on): Add stdint.
42750         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
42751         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
42752         (Depends-on): Add stdint.
42753         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
42754         * modules/perl: New module.
42755         * modules/regex (Depends-on): Add stdint.
42756         * modules/rmdir-errno: New module.
42757         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
42758         m4/intmax_t.m4.
42759         (Depends-on): Add stdint.
42760         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
42761         m4/uintmax_t.m4.
42762         (Depends-on): Add stdint.
42763         * modules/unlink-busy: New module.
42764         * modules/utimecmp (Depends-on): Add stdint.
42765         * modules/uptime: New module.
42766         * modules/winsz-ioctl: New module.
42767         * modules/winsz-termios: New module.
42768         * modules/xnanosleep (Depends-on): Add nanosleep.
42769         * modules/ullong_max: Remove.
42770         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
42771         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
42772         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
42773         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
42774         (Depends-on): Add inttypes.
42775         (lib_SOURCES): Add xstrtol.h.
42776         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
42777         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
42778         * MODULES.html.sh: Move 'assert' into the assert section.
42779         Move 'dummy' into the linking section.
42780         Remove ullong_max.
42781         Add section for compatibility checks for POSIX:2001 functions,
42782         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
42783         winsz-ioctl, and winsz-termios into it.
42784         Add lchmod.
42785         Add top-level Misc section and put host-os, perl, and uptime
42786         into it.
42787
42788 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
42789
42790         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
42791         now assume the stdint module.  Do not include inttypes.h.
42792         * lib/fsusage.h: Likewise.
42793         * lib/getndelim2.c: Likewise.
42794         * lib/human.h: Likewise.
42795         * lib/inttostr.h: Likewise.
42796         * lib/obstack.c: Likewise.
42797         * lib/regex_internal.h: Likewise.
42798         * lib/tempname.c: Likewise.
42799         * lib/utimecmp.c: Likewise.
42800         * lib/xstrtol.h: Likewise.
42801
42802         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
42803
42804         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
42805         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
42806         * lib/xtime.h: Likewise.
42807
42808 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42809
42810         * modules/openat (Files): Add lib/fchmodat.c.
42811         Fixes problem reported by Jay Youngman.
42812
42813 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42814
42815         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
42816         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
42817
42818 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
42819             Bruno Haible  <bruno@clisp.org>
42820
42821         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
42822         and is a script that invokes bison. Tighten the code. Add comments.
42823
42824 2006-08-18  Jim Meyering  <jim@meyering.net>
42825
42826         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
42827         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
42828         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
42829         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
42830
42831 2006-08-18  Bruno Haible  <bruno@clisp.org>
42832
42833         * modules/bison-i18n: New file.
42834         * MODULES.html.sh (Internationalization functions): Add it.
42835
42836 2006-08-18  Bruno Haible  <bruno@clisp.org>
42837
42838         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
42839         sys/statvfs.h. When getmntinfo was found, check its declaration and
42840         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
42841
42842 2006-08-18  Bruno Haible  <bruno@clisp.org>
42843
42844         * m4/bison-i18n.m4: New file, from bison.
42845
42846 2006-08-18  Bruno Haible  <bruno@clisp.org>
42847
42848         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
42849         (ME_DUMMY): Treat "kernfs" as a dummy.
42850         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
42851
42852 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
42853
42854         Update from coreutils.
42855
42856         2006-08-15  Jim Meyering  <jim@meyering.net>
42857
42858         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
42859
42860         2006-01-17  Jim Meyering  <jim@meyering.net>
42861
42862         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
42863
42864         2006-01-11  Jim Meyering  <jim@meyering.net>
42865
42866         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
42867         Check for the lchmod function.
42868
42869 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
42870
42871         Update from coreutils.
42872
42873         * lib/__fpending.h: Add copyright notice.
42874         * lib/fprintftime.h: Likewise.
42875         * lib/savedir.c: Use (C) in copyright notice.
42876         * lib/savedir.h: Likewise.
42877
42878         2006-08-15  Jim Meyering  <jim@meyering.net>
42879
42880         * lib/at-func.c: New file, with the logic of all emulated at-functions.
42881         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
42882         in support of the EXPECTED_ERRNO macro.
42883         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
42884         definitions.  Instead, define the appropriate symbols and include
42885         "at-func.c".
42886         * lib/mkdirat.c (mkdirat): Likewise.
42887         * lib/fchmodat.c (fchmodat): Likewise.
42888         (ENOSYS): Remove definition.
42889         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
42890         it.  Don't include "unistd--.h" -- it wasn't ever used.
42891
42892         2006-01-17  Jim Meyering  <jim@meyering.net>
42893
42894         Rewrite fts.c not to change the current working directory,
42895         by using openat, fstatat, fdopendir, etc..
42896
42897         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
42898         (HAVE_OPENAT_SUPPORT): Define.
42899         [_LIBC] (fchdir): Don't undef or define; no longer used.
42900         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
42901         Now, this `function' always succeeds, and consumes its file descriptor
42902         parameter -- so callers must not close such FDs.  Update callers.
42903         (diropen_fd, opendirat, cwd_advance_fd): New functions.
42904         (diropen): Add parameter, SP.  Adjust all callers.
42905         Implement using diropen_fd, rather than open.
42906         (fts_open): Initialize new member, fts_cwd_fd.
42907         Remove fts_rft-setting code.
42908         (fts_close): Close fts_cwd_fd, if necessary.
42909         (__opendir2): Define in terms of opendir or opendirat,
42910         depending on whether the FST_NOCHDIR flag is set.
42911         (fts_build): Since fts_safe_changedir consumes its FD, and since
42912         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
42913         and close the dup'd file descriptor upon failure.
42914         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
42915         (fts_safe_changedir): Tweak semantics to reflect that this function
42916         now calls cwd_advance_fd and hence consumes its FD argument.
42917         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
42918         [struct FTS] (fts_rft): Remove now-unused member.
42919         [struct FTS] (fts_cycle.state): Improve comment.
42920
42921         * lib/openat.c (openat_needs_fchdir): New function.
42922         * lib/openat.h (openat_needs_fchdir): Declare it.
42923
42924 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
42925
42926         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
42927         Problem and fix reported by Pádraig Brady in
42928         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
42929
42930 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42931
42932         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
42933
42934 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42935
42936         * lib/memcoll.c (memcoll): Optimize for the common case where the
42937         arguments are bytewise equal.
42938
42939 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42940
42941         * doc/regexprops-generic.texi: Add a copyright notice.
42942
42943 2006-08-15  Bruno Haible  <bruno@clisp.org>
42944
42945         * modules/tmpdir (License): Change to LGPL.
42946
42947 2006-08-15  Bruno Haible  <bruno@clisp.org>
42948
42949         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
42950         module.
42951
42952 2006-08-14  Simon Josefsson  <jas@extundo.com>
42953
42954         * config/srclist.txt: Add gnupload.
42955
42956 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42957
42958         Change copyright notice from LGPL 2 to GPL 2, since that's the
42959         standard form used in the gnulib repository.
42960         * tests/test-lock.c: Likewise.
42961         * tests/test-stdint.c: Likewise.
42962         * tests/test-tls.c: Likewise.
42963
42964         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
42965         prelude-manager.  User shorter URLs for GNU projects, without '?'.
42966         Add copyright notice.
42967
42968         * check-module: Add copyright notice.  Output a copyright
42969         notice if "--version" is specified.
42970         * modules/COPYING: New file.
42971         * tests/test-getaddrinfo.c: Add copyright notice.
42972         * tests/test-verify.c: Likewise.
42973
42974 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42975
42976         Change copyright notice from LGPL 2 to GPL 2, since that's the
42977         standard form used in the gnulib repository.
42978         * lib/lock.c: LGPL -> GPL.
42979         * lib/lock.h: Likewise.
42980         * lib/strnlen1.c: Likewise.
42981         * lib/strnlen1.h: Likewise.
42982         * lib/tls.c: Likewise.
42983         * lib/tls.h: Likewise.
42984         * lib/tmpdir.c: Likewise.
42985
42986         * lib/TODO: Remove; this belongs only in coreutils.
42987
42988 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42989
42990         Add copyright notices to long-enough files that lack them, since
42991         otherwise the files aren't clearly free.  Use the same notice that
42992         getdate.texi already uses.
42993         * doc/alloca-opt.texi: Add copyright notice.
42994         * doc/alloca.texi: Likewise.
42995         * doc/ctime.texi: Likewise.
42996         * doc/functions.texi: Likewise.
42997         * doc/gcd.texi: Likewise.
42998         * doc/gnulib-tool.texi: Likewise.
42999         * doc/inet_ntoa.texi: Likewise.
43000         * doc/visibility.texi: Likewise.
43001
43002         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
43003         * doc/quote.texi: Add copyright notice.
43004
43005         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
43006         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
43007         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
43008         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
43009         is now obsolete, and give a pointer to the Sun list.
43010         Add copyright notice.
43011
43012 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43013
43014         * config/srclistvars.sh: Add copyright notice.
43015
43016 2006-08-14  Eric Blake  <ebb9@byu.net>
43017
43018         Import the following change from libc:
43019
43020         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
43021
43022         Upstream bug 2997.
43023         * lib/misc/error.c: Add space between program name and message if file
43024         name is missing.
43025
43026 2006-08-12  Karl Berry  <karl@gnu.org>
43027
43028         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
43029         remove, these originate in gnulib now.
43030
43031 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43032
43033         * doc/Makefile (standards.info standards.html standards.dvi):
43034         Also depend on make-stds.texi.
43035
43036 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
43037
43038         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
43039         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
43040
43041         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
43042         in wchar_t.  Problem reported by Eric Blake.
43043
43044         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
43045         LEN is smaller than SIZE.  Suggested by Bruno Haible.
43046         Also, help the compiler to keep LEN in a register.
43047
43048 2006-08-11  Eric Blake  <ebb9@byu.net>
43049
43050         * users.txt: Sort.  Add tar.
43051
43052 2006-08-11  Bruno Haible  <bruno@clisp.org>
43053
43054         * users.txt: New file.
43055
43056 2006-08-11  Bruno Haible  <bruno@clisp.org>
43057
43058         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
43059         before <wchar.h>. Needed for OSF/1 and BSD/OS.
43060
43061 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
43062
43063         * modules/snprintf (Depends-on): Remove minmax.
43064         (Maintainer): Add self and Bruno.
43065
43066 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
43067
43068         * lib/.cppi-disable: Add snprintf.h, socket_.h.
43069         * lib/snprintf.c: Include <errno.h> and <limits.h>.
43070         (EOVERFLOW): Define if the system does not.
43071         Do not include "minmax.h"; it wasn't used.
43072         (snprintf): Don't assume size_t promotes to an unsigned type.
43073         Fix bug when generated string was too long for the buffer: the
43074         buffer's contents are supposed to be the initial prefix of the
43075         output.  Don't assume vasnprintf returns EOVERFLOW if the size
43076         exceeds INT_MAX; do the check ourselves.
43077
43078         Import the following changes from libc:
43079
43080         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
43081
43082         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
43083         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
43084         set wc to the byte which couldn't be converted.
43085         (re_string_reconstruct): Don't clear valid_raw_len before calling
43086         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
43087         tip_context using re_string_context_at.
43088
43089         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
43090
43091         * lib/posix/regex.h: g++ still cannot handled [restrict].
43092
43093         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
43094
43095         * lib/posix/regex.h: Remove special handling for VMS.
43096
43097 2006-08-10  Jim Meyering  <jim@meyering.net>
43098
43099         * modules/same-inode: New module.
43100         * modules/dev-ino: New module.
43101         * modules/cycle-check: Depend on these modules, rather than simply
43102         including their .h files.
43103         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
43104         required via m4/cycle-check.m4.
43105         * modules/same: Depend on new same-inode module, rather than
43106         including same-inode.h.
43107         * modules/chdir-safer: New file.
43108
43109         * modules/chown (Depends-on): Add stat-macros.
43110
43111 2006-08-10  Jim Meyering  <jim@meyering.net>
43112
43113         * m4/cycle-check.m4: New file.
43114         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
43115         * m4/dev-ino.m4, m4/same-inode.m4: New files.
43116
43117 2006-08-10  Eric Blake  <ebb9@byu.net>
43118
43119         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
43120         in from original proposal.
43121
43122 2006-08-10  Eric Blake  <ebb9@byu.net>
43123         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43124
43125         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
43126         namespace.
43127
43128 2006-08-10  Bruno Haible  <bruno@clisp.org>
43129
43130         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
43131         as well.
43132
43133 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43134
43135         Sync from coreutils.
43136
43137         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
43138
43139         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
43140         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
43141
43142 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43143
43144         * modules/restrict: Remove; no longer needed now that we assume
43145         Autoconf 2.59 or later.
43146         * MODULES.html.sh: Remove 'restrict'.
43147         * modules/argp (Depends-on): Remove 'restrict'.
43148         * modules/base64 (Depends-on): Likewise.
43149         * modules/gc (Depends-on): Likewise.
43150         * modules/getaddrinfo (Depends-on): Likewise.
43151         * modules/glob (Depends-on): Likewise.
43152         * modules/inet_ntop (Depends-on): Likewise.
43153         * modules/inet_pton (Depends-on): Likewise.
43154         * modules/memxor (Depends-on): Likewise.
43155         * modules/regex (Depends-on): Likewise.
43156         * modules/strtok_r (Depends-on): Likewise.
43157         * modules/time_r (Depends-on): Likewise.
43158
43159 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43160
43161         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
43162         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
43163         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
43164         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
43165         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
43166         * m4/memxor.m4 (gl_MEMXOR): Likewise.
43167         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
43168         gl_C_RESTRICT replaced by AC_C_RESTRICT.
43169
43170         Merge from coreutils.
43171         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
43172         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
43173         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
43174         * m4/time_r.m4 (gl_TIME_R): Likewise.
43175
43176 2006-08-09  Karl Berry  <karl@gnu.org>
43177
43178         * config/srclist.txt: no more gettext-tools, per Bruno.
43179
43180 2006-08-08  Eric Blake  <ebb9@byu.net>
43181
43182         * modules/verror: New module.
43183         * MODULES.html.sh: Document it.
43184
43185 2006-08-08  Eric Blake  <ebb9@byu.net>
43186
43187         * lib/verror.h, lib/verror.c: New files.
43188
43189 2006-08-08  Eric Blake  <ebb9@byu.net>
43190
43191         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
43192         verror_at_line output complies with GNU Coding Standards even when
43193         file is NULL.
43194
43195 2006-08-07  Bruno Haible  <bruno@clisp.org>
43196
43197         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
43198         versions of AIX.
43199         Reported by Ralf Wildenhues.
43200
43201 2006-08-07  Bruno Haible  <bruno@clisp.org>
43202
43203         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
43204         in an AC_DEFUN. Needed so that the autoconf snippets can use
43205         AC_REQUIRE.
43206
43207 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43208
43209         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43210         Initialize pkgdata_DATA.
43211         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
43212         overriding it.
43213
43214 2006-08-06  Eric Blake  <ebb9@byu.net>
43215
43216         * lib/error.h: Fold in some upstream changes from glibc.
43217         * lib/error.c: Likewise.
43218
43219 2006-08-04  Bruno Haible  <bruno@clisp.org>
43220
43221         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43222         Make the mostlyclean-local rule depend on mostlyclean-generic.
43223         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
43224
43225 2006-07-31  Bruno Haible  <bruno@clisp.org>
43226
43227         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
43228         <stdlib.h>, <string.h>.
43229
43230 2006-07-30  Bruno Haible  <bruno@clisp.org>
43231
43232         * modules/readlink (License): Change to LGPL.
43233
43234 2006-07-30  Bruno Haible  <bruno@clisp.org>
43235
43236         * modules/javaversion (Makefile.am): Distribute javaversion.java and
43237         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
43238         set PKGDATADIR to point to it.
43239
43240 2006-07-30  Bruno Haible  <bruno@clisp.org>
43241
43242         * modules/csharpexec (configure.ac): Comment out macro invocation.
43243         * modules/javaexec (configure.ac): Likewise.
43244         * modules/javacomp-script (configure.ac): Likewise.
43245
43246         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
43247
43248 2006-07-30  Bruno Haible  <bruno@clisp.org>
43249
43250         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
43251         linked-list.
43252
43253 2006-07-30  Bruno Haible  <bruno@clisp.org>
43254
43255         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
43256
43257 2006-07-30  Bruno Haible  <bruno@clisp.org>
43258
43259         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43260         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
43261         get removed.
43262
43263 2006-07-29  Bruno Haible  <bruno@clisp.org>
43264
43265         Make it possible for gnulib-tool to work with locally modified or
43266         augmented gnulib repositories.
43267         * gnulib-tool (func_usage): Document --local-dir option.
43268         (local_gnulib_dir): New variable.
43269         Handle --local-dir option.
43270         (func_lookup_file): New function.
43271         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
43272         (func_get_description, func_get_filelist, func_get_description,
43273         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
43274         func_get_automake_snippet, func_get_include_directive,
43275         func_get_license, func_get_maintainer): Use func_lookup_file.
43276         (func_import, func_create_testdir): Use func_lookup_file.
43277
43278 2006-07-29  Bruno Haible  <bruno@clisp.org>
43279
43280         * modules/setenv (Depends-on): Add unistd.
43281
43282 2006-07-29  Bruno Haible  <bruno@clisp.org>
43283
43284         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
43285
43286 2006-07-29  Bruno Haible  <bruno@clisp.org>
43287
43288         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
43289
43290 2006-07-29  Bruno Haible  <bruno@clisp.org>
43291
43292         * gnulib-tool (import, update): If there is no Makefile.am, look at
43293         aclocal.m4, instead of bailing out.
43294
43295 2006-07-29  Bruno Haible  <bruno@clisp.org>
43296
43297         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
43298         Categorize the options by when they are useful.
43299
43300 2006-07-29  Bruno Haible  <bruno@clisp.org>
43301
43302         * gnulib-tool (func_usage): Document option --no-libtool.
43303         Handle option --no-libtool.
43304         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
43305         for changed semantics of $libtool variable.
43306         (func_import): Likewise. If libtool is not used, show this through
43307         an option --no-libtool.
43308         (func_create_testdir): Update.
43309
43310 2006-07-29  Bruno Haible  <bruno@clisp.org>
43311
43312         * gnulib-tool (func_import): Extend error message about missing
43313         --doc-base.
43314
43315 2006-07-29  Bruno Haible  <bruno@clisp.org>
43316
43317         * gnulib-tool (func_import): Don't create the $docbase directory if
43318         there is no file to store there.
43319
43320 2006-07-29  Bruno Haible  <bruno@clisp.org>
43321
43322         * gnulib-tool (autoconf_minversion): If a --dir option is given and
43323         relevant, look for configure.ac there, not in the current directory.
43324         Also use a simple search for AC_PREREQ, not "autoconf --trace".
43325
43326 2006-07-29  Bruno Haible  <bruno@clisp.org>
43327
43328         * gnulib-tool (SORT): New variable.
43329         (func_usage): Undocument --assume-autoconf option.
43330         Remove --assume-autoconf option handling.
43331         (autoconf_minversion): Determine from the contents of configure.ac.
43332         (func_import): Remove autoconf_minversion handling.
43333         Suggested by Eric Blake.
43334
43335 2006-07-29  Bruno Haible  <bruno@clisp.org>
43336
43337         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
43338
43339 2006-07-29  Bruno Haible  <bruno@clisp.org>
43340
43341         * config/srclist.txt (*setenv.[ch]): Remove rules.
43342
43343 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43344
43345         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
43346
43347 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43348
43349         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
43350         arpa/inet.h.
43351
43352 2006-07-28  Simon Josefsson  <jas@extundo.com>
43353
43354         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
43355         * modules/inet_pton (Depends-on): Likewise.
43356
43357 2006-07-28  Simon Josefsson  <jas@extundo.com>
43358
43359         * m4/netinet_in_h.m4: New file.
43360
43361 2006-07-28  Simon Josefsson  <jas@extundo.com>
43362
43363         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
43364         #include's.
43365
43366 2006-07-28  Simon Josefsson  <jas@extundo.com>
43367
43368         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
43369         #include's.
43370
43371 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
43372
43373         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
43374         setgid on directories only if they set these bits.
43375         * lib/modechange.h: Remove obsolete comment about masks.
43376
43377 2006-07-28  Eric Blake  <ebb9@byu.net>
43378
43379         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
43380         macro expansion.
43381
43382 2006-07-28  Bruno Haible  <bruno@clisp.org>
43383
43384         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
43385
43386 2006-07-28  Bruno Haible  <bruno@clisp.org>
43387
43388         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
43389
43390 2006-07-28  Bruno Haible  <bruno@clisp.org>
43391
43392         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43393         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
43394         Define fallbacks.
43395         Avoids link error on FreeBSD 4.x.
43396         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43397
43398         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
43399         encoding.
43400         * lib/mbswidth.c (iswcntrl): Likewise.
43401
43402 2006-07-27  Bruno Haible  <bruno@clisp.org>
43403
43404         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
43405         test.
43406
43407 2006-07-27  Bruno Haible  <bruno@clisp.org>
43408
43409         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
43410         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
43411         defined.
43412
43413 2006-07-26  Eric Blake  <ebb9@byu.net>
43414
43415         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
43416
43417 2006-07-26  Eric Blake  <ebb9@byu.net>
43418
43419         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
43420         like mingw that lack mkstemp.
43421         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
43422         avoid compilation warning on mingw.
43423
43424 2006-07-26  Bruno Haible  <bruno@clisp.org>
43425
43426         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
43427         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
43428         INT_FAST*_MIN, INTPTR_MIN.
43429
43430 2006-07-25  Bruno Haible  <bruno@clisp.org>
43431
43432         * modules/version-etc (Depends-on): Add stdarg.
43433
43434 2006-07-25  Bruno Haible  <bruno@clisp.org>
43435
43436         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
43437         complex commands.
43438
43439 2006-07-25  Bruno Haible  <bruno@clisp.org>
43440
43441         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
43442         defined in <stdarg.h> or config.h.
43443
43444 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
43445
43446         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
43447         (gl_STDIO_SAFER): Remove.
43448
43449 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
43450
43451         * MODULES.html.sh (File stream based Input/Output):
43452         Add fopen-safer, tmpfile-safer; remove stdio-safer.
43453         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
43454         * modules/fopen-safer, modules/tmpfile-safer: New files.
43455         * modules/stdio-safer: Remove.
43456
43457 2006-07-24  Bruno Haible  <bruno@clisp.org>
43458
43459         * modules/tmpdir: New file.
43460         * MODULES.html.sh (File system functions): Add it.
43461
43462 2006-07-24  Bruno Haible  <bruno@clisp.org>
43463
43464         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
43465         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
43466
43467 2006-07-24  Bruno Haible  <bruno@clisp.org>
43468
43469         * modules/clean-temp: New file.
43470
43471 2006-07-24  Bruno Haible  <bruno@clisp.org>
43472
43473         * m4/tmpdir.m4: New file, from GNU gettext.
43474
43475 2006-07-24  Bruno Haible  <bruno@clisp.org>
43476
43477         * lib/tmpdir.h: New file, from GNU gettext.
43478         * lib/tmpdir.c: New file, from GNU gettext.
43479
43480 2006-07-24  Bruno Haible  <bruno@clisp.org>
43481
43482         * lib/clean-temp.h: New file, from GNU gettext.
43483         * lib/clean-temp.c: New file, from GNU gettext.
43484
43485 2006-07-23  Eric Blake  <ebb9@byu.net>
43486
43487         * modules/stdio-safer (Files): Add tmpfile-safer.c.
43488         (Depends-on): Add binary-io.
43489
43490 2006-07-23  Eric Blake  <ebb9@byu.net>
43491
43492         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
43493
43494 2006-07-23  Eric Blake  <ebb9@byu.net>
43495
43496         * lib/tmpfile-safer.c: New file.
43497         * lib/stdio-safer.h (fopen_safer): Add prototype.
43498         * lib/stdio--.h (tmpfile): Make safer.
43499
43500 2006-07-23  Bruno Haible  <bruno@clisp.org>
43501
43502         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
43503         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
43504         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
43505         gl_linked_remove_at): Use it.
43506
43507 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43508         and Simon Josefsson <jas@extundo.com>
43509
43510         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
43511
43512         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
43513
43514 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43515
43516         * modules/close-stream: New file.
43517         * modules/closeout (Description): Make it clear that it exits
43518         with a diagnostic on error.
43519         (Depends-on): Add close-stream.  Remove fpending, stdbool.
43520         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
43521
43522 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43523
43524         * m4/close-stream.m4: New file.
43525
43526 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43527
43528         * lib/close-stream.c, lib/close-stream.h: New files.
43529
43530 2006-07-22  Bruno Haible  <bruno@clisp.org>
43531
43532         Merge from GNU gettext 0.15.
43533
43534         2006-05-01  Bruno Haible  <bruno@clisp.org>
43535
43536                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
43537
43538         2006-07-22  Bruno Haible  <bruno@clisp.org>
43539
43540                 * modules/javaversion: New file.
43541                 * MODULES.html.sh (Java): Add javaversion.
43542
43543         2006-03-12  Bruno Haible  <bruno@clisp.org>
43544
43545                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
43546
43547         2005-12-04  Bruno Haible  <bruno@clisp.org>
43548
43549                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
43550                 (untested).
43551
43552         2006-06-21  Bruno Haible  <bruno@clisp.org>
43553
43554                 Avoid warnings from recent versions of mcs.
43555                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
43556                 -o, -L, -r any more. Use options documented since mcs-1.0
43557                 instead. Similarly for -g.
43558
43559         2005-12-04  Bruno Haible  <bruno@clisp.org>
43560
43561                 * build-aux/csharpcomp.sh.in: Suffix for resources is
43562                 .resources, not .resource.
43563
43564         2005-07-09  Bruno Haible  <bruno@clisp.org>
43565
43566                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
43567                 add a .dll suffix.
43568                 Reported by Mark Junker <mjscod@gmx.de>.
43569
43570         2006-07-22  Bruno Haible  <bruno@clisp.org>
43571
43572                 * modules/gettext: Upgrade to gettext-0.15.
43573                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
43574                 m4/visibility.m4.
43575                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
43576
43577 2006-07-22  Bruno Haible  <bruno@clisp.org>
43578
43579         Merge from GNU gettext 0.15.
43580
43581         2006-03-25  Bruno Haible  <bruno@clisp.org>
43582
43583                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
43584
43585         2006-07-21  Bruno Haible  <bruno@clisp.org>
43586
43587                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
43588                 "1.1".
43589
43590         2006-05-09  Bruno Haible  <bruno@clisp.org>
43591
43592                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
43593                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
43594                 for the conftestver execution.
43595
43596         2006-05-01  Bruno Haible  <bruno@clisp.org>
43597
43598                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
43599                 optional target-version argument. Verify that the compiler
43600                 groks source of the specified source-version, or add -source
43601                 option as necessary. Verify that the compiler produces
43602                 bytecode in the specified target-version, or add -target and
43603                 -source options as necessary. Make the result of the test
43604                 available as variable CONF_JAVAC. Also log error output in
43605                 config.log.
43606
43607         2006-03-11  Bruno Haible  <bruno@clisp.org>
43608
43609                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
43610
43611         2006-05-09  Bruno Haible  <bruno@clisp.org>
43612
43613                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
43614                 CLASSPATH_SEPARATOR to a semicolon.
43615
43616         2006-03-12  Bruno Haible  <bruno@clisp.org>
43617
43618                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
43619                 available as variable CONF_JAVA, for subsequent autoconf
43620                 tests. Also log error output in config.log.
43621
43622         2006-07-19  Bruno Haible  <bruno@clisp.org>
43623
43624                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
43625                 that getline works on glibc2 systems. Needed to avoid trouble
43626                 in relocatable.c.
43627                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
43628
43629         2005-12-04  Bruno Haible  <bruno@clisp.org>
43630
43631                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
43632                 launcher (untested).
43633
43634         2005-12-04  Bruno Haible  <bruno@clisp.org>
43635
43636                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
43637
43638         2006-07-22  Bruno Haible  <bruno@clisp.org>
43639
43640                 * gettext.m4: Update from GNU gettext-0.15.
43641                 * nls.m4: Likewise.
43642                 * po.m4: Likewise.
43643                 * inttypes-pri.m4: Likewise.
43644                 * inttypes-h.m4: Renamed from inttypes.m4.
43645                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
43646
43647 2006-07-22  Bruno Haible  <bruno@clisp.org>
43648
43649         Merge from GNU gettext 0.15.
43650
43651         2005-07-05  Bruno Haible  <bruno@clisp.org>
43652
43653                 * printf-args.c (printf_fetchargs): Work around broken
43654                 definition of wint_t on mingw.
43655
43656         2005-02-12  Bruno Haible  <bruno@clisp.org>
43657
43658                 * xallocsa.h: Add extern "C" for C++.
43659
43660         2006-05-17  Bruno Haible  <bruno@clisp.org>
43661
43662                 Cygwin portability.
43663                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
43664
43665         2006-04-30  Bruno Haible  <bruno@clisp.org>
43666
43667                 * progreloc.c: Include <mach-o/dyld.h> if available.
43668                 (find_executable): Use _NSGetExecutablePath when possible.
43669
43670         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
43671
43672                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
43673                 function.
43674
43675         2005-12-29  Bruno Haible  <bruno@clisp.org>
43676
43677                 * progreloc.c (set_program_name_and_installdir): Fix
43678                 compilation error.
43679
43680         2005-12-04  Bruno Haible  <bruno@clisp.org>
43681
43682                 Cygwin portability.
43683                 * progreloc.c: Include <windows.h> also on Cygwin.
43684                 (find_executable): Add support for Cygwin.
43685                 (set_program_name_and_installdir): Handle also platforms with
43686                 nonempty EXEEXT.
43687
43688         2006-07-11  Bruno Haible  <bruno@clisp.org>
43689
43690                 * javacomp.c: Fix a comment.
43691                 Reported by Jim Meyering.
43692
43693         2006-04-30  Bruno Haible  <bruno@clisp.org>
43694
43695                 * javacomp.h (compile_java_class): Add source_version,
43696                 target_version arguments.
43697                 * javacomp.c: Rewritten to choose only a compiler that
43698                 respects the specified source_version and target_version.
43699
43700         2006-06-27  Bruno Haible  <bruno@clisp.org>
43701
43702                 Assume correct S_ISDIR macro.
43703                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
43704
43705         2006-07-22  Bruno Haible  <bruno@clisp.org>
43706
43707                 * javaversion.h: New file, from GNU gettext.
43708                 * javaversion.c: New file, from GNU gettext.
43709                 * javaversion.java: New file, from GNU gettext.
43710                 * javaversion.class: New file, from GNU gettext.
43711
43712         2006-05-17  Bruno Haible  <bruno@clisp.org>
43713
43714                 Cygwin portability.
43715                 * javaexec.c (execute_java_class): Test for jview program
43716                 also on Cygwin.
43717
43718         2006-04-09  Bruno Haible  <bruno@clisp.org>
43719
43720                 * fatal-signal.c: Don't include string.h.
43721                 (at_fatal_signal): Use a copying loop instead of memcpy.
43722
43723         2005-12-04  Bruno Haible  <bruno@clisp.org>
43724
43725                 * csharpexec.c: Add support for 'clix' launcher (untested).
43726                 (execute_csharp_using_sscli): New function.
43727                 (execute_csharp_program): Call it.
43728
43729         2006-06-21  Bruno Haible  <bruno@clisp.org>
43730
43731                 Avoid warnings from recent versions of mcs.
43732                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
43733                 -o, -L, -r any more. Use options documented since mcs-1.0
43734                 instead. Similarly for -g.
43735
43736         2005-07-09  Bruno Haible  <bruno@clisp.org>
43737
43738                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
43739                 add a .dll suffix.
43740                 Reported by Mark Junker <mjscod@gmx.de>.
43741
43742         2006-06-17  Bruno Haible  <bruno@clisp.org>
43743
43744                 * config.charset: Update for NetBSD 3.0.
43745
43746         2006-05-17  Bruno Haible  <bruno@clisp.org>
43747
43748                 Cygwin portability.
43749                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
43750
43751         2006-05-16  Bruno Haible  <bruno@clisp.org>
43752
43753                 * localcharset.c [CYGWIN]: Include <windows.h>.
43754                 (get_charset_aliases): For Cygwin, return the same CPxxx
43755                 aliases list as under WIN32.
43756                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
43757                 the environment variables. Fall back to GetACP().
43758
43759         2006-04-05  Bruno Haible  <bruno@clisp.org>
43760
43761                 * config.charset: Update Juan Manuel Guerrero's address.
43762
43763         2005-02-12  Bruno Haible  <bruno@clisp.org>
43764
43765                 * allocsa.h: Add extern "C" for C++.
43766
43767         2005-02-10  Bruno Haible  <bruno@clisp.org>
43768
43769                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
43770                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
43771
43772         2006-07-22  Bruno Haible  <bruno@clisp.org>
43773
43774                 * gettext.h: Update to GNU gettext-0.15.
43775
43776 2006-07-22  Bruno Haible  <bruno@clisp.org>
43777
43778         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
43779         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
43780         lib-prefix.m4, longdouble.m4, ssize_t.m4.
43781
43782 2006-07-21  Eric Blake  <ebb9@byu.net>
43783
43784         * modules/stdlib-safer: New file.
43785         * MODULES.html.sh (File stream based Input/Output): Add
43786         stdlib-safer.
43787
43788 2006-07-21  Eric Blake  <ebb9@byu.net>
43789
43790         * lib/stdlib-safer.h: New file from coreutils, required by
43791         stdlib--.h.
43792
43793 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
43794
43795         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
43796
43797 2006-07-20  Bruno Haible  <bruno@clisp.org>
43798
43799         * gnulib-tool: Recognize new option --assume-autoconf.
43800         (autoconf_minversion): New variable.
43801         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
43802
43803 2006-07-20  Bruno Haible  <bruno@clisp.org>
43804
43805         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
43806
43807 2006-07-19  Derek R. Price  <derek@ximbiot.com>
43808
43809         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
43810         Reindent and repaginate.
43811
43812 2006-07-19  Derek Price  <derek@ximbiot.com>
43813
43814         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
43815         Correct grammar.
43816
43817 2006-07-17  Bruno Haible  <bruno@clisp.org>
43818
43819         * modules/list: New file.
43820         * modules/array-list: New file.
43821         * modules/carray-list, modules/carray-list-tests: New files.
43822         * modules/linked-list, modules/linked-list-tests: New files.
43823         * modules/avltree-list, modules/avltree-list-tests: New files.
43824         * modules/rbtree-list, modules/rbtree-list-tests: New files.
43825         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
43826         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
43827         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
43828         * modules/oset: New file.
43829         * modules/array-oset: New file.
43830         * modules/avltree-oset, modules/avltree-oset-tests: New files.
43831         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
43832         * tests/test-carray_list.c: New file.
43833         * tests/test-linked_list.c: New file.
43834         * tests/test-avltree_list.c: New file.
43835         * tests/test-rbtree_list.c: New file.
43836         * tests/test-linkedhash_list.c: New file.
43837         * tests/test-avltreehash_list.c: New file.
43838         * tests/test-rbtreehash_list.c: New file.
43839         * tests/test-avltree_oset.c: New file.
43840         * tests/test-rbtree_oset.c: New file.
43841         * MODULES.html.sh (Container data structures): New section.
43842
43843 2006-07-17  Bruno Haible  <bruno@clisp.org>
43844
43845         * m4/gl_list.m4: New file.
43846
43847 2006-07-17  Bruno Haible  <bruno@clisp.org>
43848
43849         * lib/gl_list.h: New file.
43850         * lib/gl_list.c: New file.
43851         * lib/gl_array_list.h: New file.
43852         * lib/gl_array_list.c: New file.
43853         * lib/gl_carray_list.h: New file.
43854         * lib/gl_carray_list.c: New file.
43855         * lib/gl_linked_list.h: New file.
43856         * lib/gl_linked_list.c: New file.
43857         * lib/gl_anylinked_list1.h: New file.
43858         * lib/gl_anylinked_list2.h: New file.
43859         * lib/gl_avltree_list.h: New file.
43860         * lib/gl_avltree_list.c: New file.
43861         * lib/gl_anyavltree_list1.h: New file.
43862         * lib/gl_anyavltree_list2.h: New file.
43863         * lib/gl_rbtree_list.h: New file.
43864         * lib/gl_rbtree_list.c: New file.
43865         * lib/gl_anyrbtree_list1.h: New file.
43866         * lib/gl_anyrbtree_list2.h: New file.
43867         * lib/gl_anytree_list1.h: New file.
43868         * lib/gl_anytree_list2.h: New file.
43869         * lib/gl_linkedhash_list.h: New file.
43870         * lib/gl_linkedhash_list.c: New file.
43871         * lib/gl_anyhash_list1.h: New file.
43872         * lib/gl_anyhash_list2.h: New file.
43873         * lib/gl_avltreehash_list.h: New file.
43874         * lib/gl_avltreehash_list.c: New file.
43875         * lib/gl_rbtreehash_list.h: New file.
43876         * lib/gl_rbtreehash_list.c: New file.
43877         * lib/gl_anytreehash_list1.h: New file.
43878         * lib/gl_anytreehash_list2.h: New file.
43879
43880         * lib/gl_oset.h: New file.
43881         * lib/gl_oset.c: New file.
43882         * lib/gl_array_oset.h: New file.
43883         * lib/gl_array_oset.c: New file.
43884         * lib/gl_avltree_oset.h: New file.
43885         * lib/gl_avltree_oset.c: New file.
43886         * lib/gl_rbtree_oset.h: New file.
43887         * lib/gl_rbtree_oset.c: New file.
43888         * lib/gl_anytree_oset.h: New file.
43889
43890 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
43891
43892         * m4/mkancesdirs.m4: New file.
43893         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
43894         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
43895         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
43896         it.
43897
43898 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
43899
43900         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
43901         * lib/mkancesdirs.h: New files.
43902         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
43903         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
43904         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
43905         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
43906         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
43907         callers changed.  Revamp internals significantly, by not
43908         attempting to create directories that are temporarily more
43909         permissive than the final results.  Do not attempt to use
43910         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
43911         This removes some race conditions, fixes some bugs, and simplifies
43912         things.  Use new dirchownmod function to do owner and mode changes.
43913         * lib/mkdir-p.h: Likewise.
43914         * lib/modechange.c (octal_to_mode): New function.
43915         (struct mode_change): New member mentioned.
43916         (make_node_op_equals): New arg mentioned.  All callers changed.
43917         (mode_compile): Keep track of which mode bits the user has explicitly
43918         mentioned.
43919         (mode_adjust): New arg DIR, so that we implement the X op correctly.
43920         New arg PMODE_BITS, to keep track of which mode bits the user
43921         mentioned; it treats S_ISUID and S_ISGID speciall.
43922         All callers changed.
43923         * lib/modechange.h: Likewise.
43924
43925 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
43926
43927         * MODULES.html.sh: Add mkancestors.
43928         * modules/mkancesdirs: New module.
43929         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
43930         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
43931         The chdir-safer and afs files are now orphans; I'll remove them
43932         unless someone speaks up.
43933         Add lib/dirchownmod.c, lib/dirchownmod.h.
43934         (Depends-on): Remove alloca, chown, save-cwd, dirname.
43935         Add lchown, mkancesdirs.
43936         (Maintainer): Add self.
43937
43938 2006-07-15  Karl Berry  <karl@gnu.org>
43939
43940         * gnulib-tool: help message wording/arrangement.
43941
43942 2006-07-14  Simon Josefsson  <jas@extundo.com>
43943
43944         * doc/gnulib.texi (Libtool and Windows): New section.
43945
43946 2006-07-12  Simon Josefsson  <jas@extundo.com>
43947
43948         * modules/gendocs (License): Fix license, approved by Karl.
43949
43950 2006-07-12  Eric Blake  <ebb9@byu.net>
43951
43952         * MODULES.html.sh: Add gendocs.
43953
43954 2006-07-11  Eric Blake  <ebb9@byu.net>
43955
43956         * modules/fdl: New module, to install doc/fdl.texi.
43957         * MODULES.html.sh: Add new section for documentation modules.
43958         * gnulib-tool: Avoid space-tab.
43959         (--doc-base): New option, to manage files from doc.
43960
43961 2006-07-11  Eric Blake  <ebb9@byu.net>
43962
43963         * m4/absolute-header.m4: Fix comments to match recent change.
43964
43965 2006-07-11  Eric Blake  <ebb9@byu.net>
43966
43967         * gnulib-tool: List --doc-base before --tests-base.
43968
43969 2006-07-11  Derek R. Price  <derek@ximbiot.com>
43970
43971         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
43972
43973 2006-07-11  Bruno Haible  <bruno@clisp.org>
43974
43975         * README: Mention where to put documentation.
43976
43977 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43978
43979         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
43980
43981 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
43982
43983         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
43984         to stdint.m4.
43985
43986 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
43987
43988         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
43989         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
43990         "no/such/file/stdint.h" when there is no such file, so that
43991         the resulting C code can be parsed by dodgy compilers.
43992         Problems reported by Bob Proulx.
43993
43994 2006-07-10  Derek R. Price  <derek@ximbiot.com>
43995
43996         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
43997         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
43998         macros into the GNU _D_EXACT_NAMLEN.
43999         * lib/savedir.c:  Likewise.
44000         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
44001
44002 2006-07-10  Derek R. Price  <derek@ximbiot.com>
44003         and Paul Eggert  <eggert@cs.ucla.edu>
44004
44005         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
44006         * m4/savedir.m4:
44007         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
44008         macros into the GNU _D_EXACT_NAMLEN.
44009
44010 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44011
44012         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
44013         around the absolute name, to work around a problem with the HP-UX
44014         11.23 native C compiler, reported by Bob Proulx.
44015
44016 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44017
44018         * doc/maintain.texi, make-stds.texi: Sync from
44019         <http://savannah.gnu.org/projects/gnustandards>.
44020
44021 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44022
44023         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
44024
44025 2006-07-09  Jim Meyering  <jim@meyering.net>
44026
44027         * m4/glob.m4: Remove a doubled word in a comment.
44028
44029 2006-07-09  Jim Meyering  <jim@meyering.net>
44030
44031         * lib/argp-pv.c: Remove a doubled word in a comment.
44032         * lib/check-version.c (check_version): Likewise.
44033         * lib/javacomp.c (compile_java_class): Likewise.
44034
44035 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
44036
44037         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
44038         for the benefit of people using Autoconf 2.60.  If you want to
44039         support older Autoconf versions you can copy m4/onceonly_2_57.m4
44040         (or m4/onceonly.m4, if pre-2.57) manually.
44041
44042 2006-07-08  Jim Meyering  <jim@meyering.net>
44043
44044         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
44045         comment.
44046         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
44047         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
44048         comment.
44049
44050 2006-07-08  Jim Meyering  <jim@meyering.net>
44051
44052         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
44053
44054 2006-07-07  Simon Josefsson  <jas@extundo.com>
44055
44056         * tests/test-crc.c: Change expected crc value, the test vector
44057         were probably computed using the old broken crc.c?
44058
44059 2006-07-06  Simon Josefsson  <jas@extundo.com>
44060
44061         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
44062         now the canonical place for the M4 file).
44063
44064         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
44065         from the sys_socket dependency now.
44066
44067         * modules/inet_pton (Files): Ditto.
44068
44069         * modules/inet_ntop (Files): Ditto.
44070
44071 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
44072
44073         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
44074         not gl_PREREQ_GETUSERSHELL.
44075
44076 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44077
44078         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
44079         with only one argument, for Autoconf 2.60.
44080         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
44081         expand to nothing, so add a shell command to avoid syntax error.
44082         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
44083
44084 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44085
44086         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
44087
44088 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
44089
44090         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
44091         no longer needed.  Check for isblank decl.
44092         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
44093         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
44094         of existence.
44095
44096 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
44097
44098         * lib/getloadavg.c: Use __VMS, not VMS.
44099         * lib/getopt.c: Likewise.
44100         * lib/getpagesize.h: Likewise.
44101         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
44102         and probably does not work.
44103
44104 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
44105
44106         * lib/.cppi-disable: Add wcwidth.
44107         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
44108         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
44109         (ISGRAPH): Remove.  All uses changed to isgraph.
44110         (FOLD) [!defined _LIBC]: Remove special case.
44111         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
44112         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
44113         HAVE_ISBLANK.
44114         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
44115         case.
44116
44117 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
44118
44119         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
44120         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
44121         brackets.  Other minor changes to suppress some compiler
44122         warnings.
44123
44124 2006-07-06  Derek R. Price  <derek@ximbiot.com>
44125         and Paul Eggert  <eggert@cs.ucla.edu>
44126
44127         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
44128         of invoking obsolescent AC_HEADER_DIRENT macro.
44129         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
44130         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
44131         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44132         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
44133         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
44134         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44135         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
44136         * m4/readdir.m4: Remove; no longer needed.
44137
44138 2006-07-06  Derek R. Price  <derek@ximbiot.com>
44139         and Paul Eggert  <eggert@cs.ucla.edu>
44140
44141         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
44142         Don't worry about this obsolete case any more.
44143         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
44144         directories.
44145         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
44146         worry about this obsolete case any more.
44147         * lib/fts.c: Likewise.
44148         * lib/getcwd.c: Likewise.
44149         * lib/glob.h: Likewise.
44150         * lib/savedir.c: Likewise.
44151
44152 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
44153
44154         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
44155         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
44156         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
44157         needed.
44158         All uses removed.
44159         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44160         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44161         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
44162         needed.
44163         * m4/getdate.m4 (gl_GETDATE): Likewise.
44164         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
44165         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
44166         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44167         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44168         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44169         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44170         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
44171         needed.
44172
44173 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
44174
44175         * lib/memcasecmp.c: Include <limits.h>.
44176         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
44177         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
44178         Don't assume isdigit succeeds only on '0' through '9'.
44179
44180 2006-07-05  Eric Blake  <ebb9@byu.net>
44181
44182         * modules/getaddrinfo (Depends-on): Add snprintf.
44183
44184 2006-07-05  Eric Blake  <ebb9@byu.net>
44185
44186         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
44187         to avoid 'header present but could not be compiled' on cygwin.
44188
44189 2006-07-05  Eric Blake  <ebb9@byu.net>
44190
44191         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
44192         missing from netdb.h.
44193         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
44194
44195 2006-07-05  Derek R. Price  <derek@ximbiot.com>
44196
44197         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
44198         no longer needed.
44199         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
44200         * m4/getdate.m4 (gl_GETDATE): Likewise.
44201         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
44202         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
44203         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44204         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44205         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44206
44207 2006-07-05  Derek R. Price  <derek@ximbiot.com>
44208
44209         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
44210         All uses of is_space replaced by isspace.
44211         * lib/exit.h: Don't talk about STDC_HEADERS.
44212         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
44213         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
44214         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
44215         replaced by isprint etc.
44216         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
44217         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44218         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
44219         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
44220         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
44221         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44222
44223 2006-07-05  Bruno Haible  <bruno@clisp.org>
44224
44225         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
44226         the function exists, before testing against AIX.
44227         Reported by Martin Lambers <marlam@marlam.de>.
44228
44229 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
44230
44231         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
44232         From Mark D. Baushke.
44233
44234 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
44235
44236         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
44237         to the absolute name, not just one, to bypass Sun C 5.8's
44238         "warning: #include of /usr/include/... may be non-portable".
44239
44240 2006-07-04  Eric Blake  <ebb9@byu.net>
44241
44242         * modules/dirname-tests: New test module.
44243         * tests/test-dirname.c: New file, replacing dirname.c
44244         TEST_DIRNAME section that was recently deleted.
44245
44246 2006-07-04  Bruno Haible  <bruno@clisp.org>
44247
44248         Assume ANSI C header files and <ctype.h> functions.
44249         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
44250         (mbsnwidth): Use isprint, iscntrl instead.
44251
44252 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44253
44254         Merge from coreutils.
44255         * MODULES.html.sh: Add xstrtold.
44256         * modules/xstrtold: New file.
44257         * modules/cycle-check (Files): Add lib/same-inode.h.
44258         * modules/dirname (Files): Add m4/double-slash-root.m4.
44259         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
44260         * modules/mkdir-p (Files): Add lib/same-inode.h.
44261         * modules/same (Files): Add lib/same-inode.h.
44262
44263 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44264
44265         * m4/absolute-header.m4: Renamed from full-header-path.m4.
44266         This is to keep the terminology clean; POSIX talks about
44267         "absolute pathnames", not "full pathnames", but the GNU
44268         Coding Standards say to use "path" for something else;
44269         so use "absolute" to keep both sides happy.
44270         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
44271         Set gl_absolute_header, not gl_full_header_path.
44272         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
44273         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
44274         All uses changed.
44275
44276         Merge from coreutils.
44277
44278         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
44279
44280         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
44281         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
44282         want to require the building of c-strtod.o.
44283         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
44284         needs -lm directly.
44285         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
44286
44287         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
44288
44289         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
44290         --as-needed option if available.  Problem reported by Albert Chin in
44291         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
44292         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
44293         cc merely issues a bunch of annoying warnings for --as-needed
44294         (this problem was reported by Bob Proulx).  Also, try linking with
44295         -lm to detect a bug in binutils 2.16 (this problem was reported
44296         by Ralf Wildenhues).
44297
44298         2006-06-18  Jim Meyering  <jim@meyering.net>
44299
44300         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
44301         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
44302         macro.
44303         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
44304         also check for glibc-2.4's abort-inducing bug.
44305
44306         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
44307         Low-probability clean-up should be to use rmdir to get rid of
44308         the just-created directory, not unlink.
44309
44310         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
44311         configure fail, and request a bug report to inform us about it.
44312         Add a comment that, barring reports to the contrary, in 2007 we'll
44313         assume ftruncate is universally available.
44314
44315         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
44316
44317         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
44318
44319         2006-03-12  Jim Meyering  <jim@meyering.net>
44320
44321         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
44322         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
44323         * m4/same.m4 (gl_SAME): Likewise.
44324         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
44325
44326         2006-03-11  Eric Blake  <ebb9@byu.net>
44327
44328         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
44329         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
44330         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
44331         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
44332
44333 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44334
44335         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
44336         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
44337         reported by Mark D. Baushke, one in
44338         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
44339
44340         Merge from coreutils.
44341
44342         * lib/.cppi-disable: Add stdint_.h.
44343         * lib/.cvsignore: Add stdint.h.
44344
44345         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
44346
44347         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
44348         both double and long double versions.
44349         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
44350         * lib/xstrtold.c: New file.
44351         * lib/xstrtod.h (xstrtold): New decl.
44352
44353         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
44354
44355         * lib/filemode.c (setst): Remove.
44356         (strmode): Rewrite to avoid setst.  This makes the code shorter,
44357         (arguably) clearer, and the generated code is a bit smaller on my
44358         Debian GNU/Linux stable x86 host.
44359
44360         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
44361
44362         * lib/filemode.c: Include "filemode.h" first, to test the interface.
44363         Assume that filemode.h includes sys/types.h and sys/stat.h.
44364         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
44365         (ftypelet): Reorder to put common cases first, for efficiency.
44366         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
44367         to do 'M'.
44368         (strmode): Renamed from mode_string, and now stores 12 bytes instead
44369         of 10, for compatibility with FreeBSD.  All callers changed.
44370         (filemodestring): Now stores 12 bytes instead of 10, and sets file
44371         types that can't be deduced solely from st_mode.  First arg is now a
44372         const pointer.
44373         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
44374         (strmode): Renamed from mode_string.
44375         (filemodestring): New decl.
44376         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
44377         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
44378         needed.
44379         (S_ISPORT, S_ISWHT): New macros, if not already defined.
44380
44381         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
44382
44383         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
44384         fsusage.h now does that.  Include fsusage.h first, to test interface.
44385         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
44386         at most one method (the old code could have generated decls that
44387         didn't conform to C89, not that this was ever exercised).
44388         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
44389
44390         2006-03-19  Jim Meyering  <jim@meyering.net>
44391
44392         Work even in a chroot where d_ino values for entries in "/"
44393         don't match the stat.st_ino values for the same names.
44394         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
44395         number, iterate through all entries again, using lstat instead.
44396         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
44397         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
44398
44399         * lib/getcwd.c (__getcwd): Clarify a comment.
44400         Use memcpy in place of a call to strcpy.
44401
44402         2006-03-12  Jim Meyering  <jim@meyering.net>
44403
44404         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
44405         matches that of the current directory (which we're about to chdir ".."
44406         out of), then save the dev-ino of the parent, instead.
44407
44408         * lib/same-inode.h (SAME_INODE): New file/macro.
44409         * lib/chdir-safer.c (SAME_INODE): Remove definition.
44410         Include "same-inode.h", instead.
44411         * lib/same.c: Likewise.
44412         * lib/cycle-check.h: Include "same-inode.h".
44413         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
44414         * lib/cycle-check.c (SAME_INODE): Remove definition.
44415         * lib/root-dev-ino.h: Include "same-inode.h".
44416
44417         2006-03-11  Eric Blake  <ebb9@byu.net>
44418
44419         * lib/same.c (same_name): s/base_name/last_component/
44420         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
44421         * lib/filenamecat.c (file_name_concat): Likewise.
44422
44423         2006-03-11  Eric Blake  <ebb9@byu.net>,
44424                     Paul Eggert  <eggert@cs.ucla.edu>
44425
44426         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
44427         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
44428         drive prefix.
44429         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
44430         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
44431         (last_component): New method.
44432         * lib/dirname.c (dir_len): Determine when drive letters need a
44433         subsequent slash.  Preserve // when it is special.
44434         (dir_name): Don't append dot when drive letter is absolute.
44435         [TEST_DIRNAME]: Move into a full-blown gnulib test.
44436         * lib/basename.c (base_name): New semantics - malloc the result.
44437         Preserve // when it is special.  Preserve relative files that look
44438         like drive letters.
44439         (base_len): Preserve // when it is special.
44440         (last_component): New method, similar to old base_name semantics.
44441         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
44442         base_name.  Strip redundant slashes from ///.
44443
44444 2006-07-03  Jim Meyering  <jim@meyering.net>
44445
44446         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
44447         macro is used before the first cycle_check call.
44448
44449 2006-07-03  Eric Blake  <ebb9@byu.net>
44450
44451         * modules/dirname (Depends-on): Add xstrndup.
44452
44453 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
44454
44455         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
44456         test cases, so that config.log is a bit easier to follow.
44457
44458 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
44459
44460         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
44461         both are 64 bits, since this seems to be the tradition, and this
44462         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
44463         we ever run into a host that prefers long long to long in this
44464         case, we'll need another configure-time test.  Problem reported by
44465         Jim Meyering.
44466
44467 2006-07-02  Eric Blake  <ebb9@byu.net>
44468
44469         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
44470
44471 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44472
44473         * modules/inttypes (Depends-on): No longer depends on stdint.
44474         * modules/stdint (Description): Say more about assumptions.
44475         Say that the fast types might differ.  Say macros are used.
44476         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
44477         (Makefile.am): Revise list of substituted symbols to match
44478         new stdint.m4.
44479         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
44480         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
44481         * tests/test-stdint.c (verify_same_types)
44482         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
44483         the code conforms to C99/C89.
44484         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
44485         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
44486
44487 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44488
44489         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
44490         but fix a bug, by requiring at least 64 bits.
44491         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
44492         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
44493         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
44494         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
44495
44496         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
44497         changes.  Make 2.59 a prerequisite.  Check and substitute for
44498         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
44499         inttypes.h.  Do not use special include files; just use the
44500         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
44501         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
44502         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
44503         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
44504         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
44505         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
44506         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
44507         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
44508         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
44509         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
44510         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
44511         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
44512         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
44513         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
44514         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
44515         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
44516         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
44517         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
44518         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
44519         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
44520         WINT_MAX.  Check for C99 conformance more strictly, by detecting
44521         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
44522         not check for things that C99 does not require, e.g., int8_t.  If
44523         a test isn't needed unless <stdint.h> isn't working, and is
44524         unlikely to be needed for any other reason, then don't do it
44525         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
44526         size_t, since we assume C89 freestanding at least.  Do not check
44527         for sig_atomic_t, wchar_t, or wint_t, since the code now does
44528         the right thing even if the types are not defined.  Instead use:
44529         (gl_STDINT_TYPE_PROPERTIES): New macro.
44530         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
44531         testing whether <sys/types.h> clashes, as Autoconf does this for
44532         us now.  All uses removed.
44533         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
44534         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
44535         (gl_CHECK_TYPE_SAME):
44536         Remove; no longer needed.
44537         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
44538         exists, since we'll return 0 anyway in that case.
44539         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
44540
44541 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44542
44543         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
44544         possible collision with system files.
44545         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
44546         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
44547         WCHAR_MIN and WCHAR_MAX in this case.
44548         (<stddef.h>): Do not include; no longer needed.
44549         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
44550         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
44551         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
44552         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
44553         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
44554         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
44555         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
44556         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
44557         !defined(__c99))]: Include in this case too, since it's harmless
44558         now.
44559         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
44560         dangerous to do so.
44561         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
44562         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
44563         (_STDINT_MIN, _STDINT_MAX): New macros.
44564         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
44565         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
44566         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
44567         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
44568         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
44569         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
44570         macros, not typedefs; this simplifies things quite a bit.
44571         Use long int for all types narrower than int64_t.
44572         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
44573         Define in terms of long long int or int64_t or long int,
44574         not int64_t or int32_t.  This saves some compile-time testing.
44575         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
44576         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
44577         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
44578         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
44579         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
44580         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
44581         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
44582         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
44583         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
44584         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
44585         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
44586         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
44587         undef any previous version and define our own version, for
44588         simplicity and consistency with the new macros for types.
44589         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
44590         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
44591         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
44592         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
44593         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
44594         @WINT_T_SUFFIX@ to keep things simple here.
44595         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
44596         Simplify by assuming typical 8/16/32/64 host, since we're
44597         already doing that elsewhere anyway.
44598         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
44599         and assume long long int is 64 bits if available.  This
44600         speeds up 'configure'.
44601
44602 2006-07-01  Eric Blake  <ebb9@byu.net>
44603
44604         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
44605         Reported by Andreas Buening.
44606
44607 2006-07-01  Eric Blake  <ebb9@byu.net>
44608
44609         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
44610
44611 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
44612
44613         * lib/getaddrinfo.c: fixed typo
44614
44615 2006-06-29  Jim Meyering  <jim@meyering.net>
44616
44617         * modules/strftime (Maintainer): Add my name, since with the
44618         FPRINTFTIME changes strftime.c has forked from glibc.
44619
44620 2006-06-29  Eric Blake  <ebb9@byu.net>
44621
44622         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
44623
44624 2006-06-29  Eric Blake  <ebb9@byu.net>
44625
44626         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
44627
44628 2006-06-29  Eric Blake  <ebb9@byu.net>
44629
44630         * lib/stat_.h: New file.
44631
44632 2006-06-29  Eric Blake  <ebb9@byu.net>
44633
44634         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
44635         unused static function.
44636
44637 2006-06-29  Eric Blake  <ebb9@byu.net>
44638
44639         * doc/functions.texi (Function Portability): Document missing lstat
44640         on mingw.
44641
44642 2006-06-29  Eric Blake  <ebb9@byu.net>
44643
44644         * MODULES.html.sh: Add sys_stat.
44645         * modules/sys_stat: New module.
44646         * modules/mkstemp (Depends-on): Add sys_stat.
44647
44648 2006-06-29  Derek R. Price  <derek@ximbiot.com>
44649
44650         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
44651
44652 2006-06-29  Derek R. Price  <derek@ximbiot.com>
44653
44654         * m4/c-bs-a.m4: Removed.
44655
44656 2006-06-29  Derek R. Price  <derek@ximbiot.com>
44657
44658         * lib/strftime.c: Assume strftime() exists.
44659
44660 2006-06-29  Derek Price  <derek@ximbiot.com>
44661
44662         * modules/c-bs-a: Removed - \a is C89.
44663         * MODULES.html.sh: Remove c-bs-a.
44664
44665 2006-06-29  Bruno Haible  <bruno@clisp.org>
44666
44667         * modules/wcwidth (License): Change to LGPL.
44668
44669 2006-06-28  Simon Josefsson  <jas@extundo.com>
44670
44671         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
44672         on _WIN32.
44673
44674         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
44675         getnameinfo.
44676
44677 2006-06-28  Simon Josefsson  <jas@extundo.com>
44678
44679         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
44680
44681 2006-06-28  Simon Josefsson  <jas@extundo.com>
44682
44683         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
44684         functions there.  It will succeed on Windows XP, but on Windows
44685         2000 and (presumably) earlier, it will fail, and use the internal
44686         re-implementation.
44687         (use_win32_p): New function.
44688         (getaddrinfo): Use strtoul on servname, to support numeric ports.
44689         Support AI_NUMERICSERV to disable getservbyname.
44690         (getnameinfo): New function, only supports
44691         NI_NUMERICHOST|NI_NUMERICSERV for now.
44692
44693         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
44694         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
44695         getnameinfo.
44696
44697 2006-06-28  Eric Blake  <ebb9@byu.net>
44698
44699         * modules/wcwidth: New file.
44700         * modules/mbchar (Depends-on): Add wcwidth.
44701         * modules/mbswidth (Depends-on): Add wcwidth.
44702         * MODULES.html.sh: Add wcwidth.
44703
44704 2006-06-28  Eric Blake  <ebb9@byu.net>
44705
44706         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
44707         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
44708
44709 2006-06-28  Eric Blake  <ebb9@byu.net>
44710
44711         * lib/xvasprintf.h: Fix comments.
44712
44713 2006-06-28  Eric Blake  <ebb9@byu.net>
44714
44715         * lib/mbchar.h (wcwidth): Include wcwidth.h.
44716         * lib/mbswidth.c (wcwidth): Move from here...
44717         * lib/wcwidth.h: ...to this new file.
44718
44719 2006-06-28  Derek R. Price  <derek@ximbiot.com>
44720
44721         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
44722
44723         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
44724         it's obsolete.
44725         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
44726
44727 2006-06-28  Derek R. Price  <derek@ximbiot.com>
44728
44729         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
44730         Autoconf 2.60 says this stuff was obsolete.
44731
44732 2006-06-28  Bruno Haible  <bruno@clisp.org>
44733
44734         * modules/wcwidth (Files): Add m4/wchar_t.m4.
44735
44736 2006-06-28  Bruno Haible  <bruno@clisp.org>
44737
44738         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
44739         gt_TYPE_WCHAR_T.
44740
44741 2006-06-28  Bruno Haible  <bruno@clisp.org>
44742
44743         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
44744         declaration for wcwidth.
44745         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
44746
44747 2006-06-28  Bruno Haible  <bruno@clisp.org>
44748
44749         * lib/mkdtemp.c [MINGW]: Include <io.h>.
44750         (mkdir): Define using _mkdir.
44751
44752 2006-06-28  Bruno Haible  <bruno@clisp.org>
44753
44754         * lib/getaddrinfo.h: Fix POSIX URL.
44755         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
44756         _WIN32.
44757         (use_win32_p): Make static.
44758         (getaddrinfo): Reject service name if it is empty or does not consist
44759         solely of decimal digits, or if its value is > 65535.
44760         (getnameinfo): Remove useless casts.
44761
44762 2006-06-27  Simon Josefsson  <jas@extundo.com>
44763
44764         * modules/sys_select: New file, suggested by Bruno Haible, Paul
44765         Eggert and Martin Lambers.
44766
44767 2006-06-27  Simon Josefsson  <jas@extundo.com>
44768
44769         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
44770         Eggert and Martin Lambers.
44771
44772 2006-06-27  Bruno Haible  <bruno@clisp.org>
44773
44774         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
44775         result to 0, not to empty.
44776         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
44777
44778 2006-06-27  Bruno Haible  <bruno@clisp.org>
44779
44780         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
44781
44782 2006-06-26  Simon Josefsson  <jas@extundo.com>
44783
44784         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
44785         present.
44786
44787 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
44788
44789         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
44790         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
44791         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
44792
44793 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
44794
44795         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
44796
44797 2006-06-26  Bruno Haible  <bruno@clisp.org>
44798
44799         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
44800
44801 2006-06-26  Bruno Haible  <bruno@clisp.org>
44802
44803         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
44804
44805 2006-06-26  Bruno Haible  <bruno@clisp.org>
44806
44807         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
44808         SGI C compiler in pre-C99 mode.
44809         Suggested by Mark D. Baushke and Larry Jones.
44810
44811 2006-06-26  Bruno Haible  <bruno@clisp.org>
44812
44813         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
44814         WCHAR_MAX.
44815         Reported by Mark D. Baushke and Larry Jones.
44816
44817 2006-06-26  Bruno Haible  <bruno@clisp.org>
44818
44819         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
44820         in pre-C99 mode.
44821         Suggested by Mark D. Baushke and Larry Jones.
44822
44823 2006-06-23  Simon Josefsson  <jas@extundo.com>
44824             Bruno Haible  <bruno@clisp.org>
44825
44826         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
44827         Emit mostlyclean-local rule.
44828         (func_emit_tests_Makefile_am): Likewise.
44829         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
44830
44831 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
44832
44833         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
44834
44835 2006-06-23  Bruno Haible  <bruno@clisp.org>
44836
44837         * tests/test-stdint.c: Update to match ISO C 99 Technical
44838         Corrigendum 1.
44839
44840 2006-06-23  Bruno Haible  <bruno@clisp.org>
44841
44842         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
44843
44844 2006-06-23  Bruno Haible  <bruno@clisp.org>
44845
44846         * lib/stdint_.h: Treat IRIX like OpenBSD.
44847
44848 2006-06-23  Bruno Haible  <bruno@clisp.org>
44849
44850         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
44851         ISO C 99 Technical Corrigendum 1.
44852
44853 2006-06-22  Simon Josefsson  <jas@extundo.com>
44854
44855         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
44856         MinGW.
44857
44858 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
44859
44860         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
44861         needed.  Some compiler complained about some of them.  Problem reported
44862         by Larry Jones in
44863         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
44864
44865 2006-06-21  Simon Josefsson  <jas@extundo.com>
44866
44867         * tests/test-getaddrinfo.c: New file.
44868
44869         * modules/getaddrinfo-tests: New file.
44870
44871         * MODULES.html.sh: Add inet_pton.
44872
44873         * modules/inet_pton: New file.
44874
44875 2006-06-21  Simon Josefsson  <jas@extundo.com>
44876
44877         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
44878         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
44879         of using the (limited) gnulib implementation on Windows XP.
44880
44881         * m4/inet_pton.m4: New file.
44882
44883 2006-06-21  Simon Josefsson  <jas@extundo.com>
44884
44885         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
44886         variable.
44887
44888         * lib/socket_.h: Don't define WINVER.
44889
44890         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
44891         slightly modified to work in gnulib.
44892
44893 2006-06-21  Simon Josefsson  <jas@extundo.com>
44894
44895         * doc/gnulib.texi (Windows sockets): Add.
44896
44897 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
44898
44899         * lib/read-file.c (fread_file): Start with buffer allocation of
44900         0 bytes rather than 1 byte; this simplifies the code.
44901         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
44902         code to free buffer and save/restore errno.
44903         (internal_read_file): Remove unused local.
44904
44905 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
44906
44907         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
44908         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
44909         Problem reported by Denis Excoffier in
44910         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
44911
44912 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44913
44914         * modules/sys_socket, modules/socklen: Include sys/types since
44915         FreeBSD 4.x's sys/socket.h needs it.
44916
44917 2006-06-19  Simon Josefsson  <jas@extundo.com>
44918
44919         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
44920
44921 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
44922
44923         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
44924
44925 2006-06-19  Bruno Haible  <bruno@clisp.org>
44926
44927         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
44928         and FULL_PATH_INTTYPES_H in angle brackets.
44929         Reported by Mark D. Baushke <mdb@gnu.org>.
44930
44931 2006-06-17  Eric Blake  <ebb9@byu.net>
44932
44933         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
44934         errno.
44935
44936 2006-06-17  Bruno Haible  <bruno@clisp.org>
44937
44938         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
44939         <sys/inttypes.h>.
44940
44941 2006-06-17  Bruno Haible  <bruno@clisp.org>
44942
44943         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
44944         whether errno is declared. Assume <errno.h> declares errno.
44945
44946 2006-06-17  Bruno Haible  <bruno@clisp.org>
44947
44948         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
44949
44950 2006-06-17  Bruno Haible  <bruno@clisp.org>
44951
44952         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
44953         problem on Solaris 2.5.1.
44954
44955 2006-06-16  Eric Blake  <ebb9@byu.net>
44956
44957         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
44958         * lib/unicodeio.c [!defined errno]: Likewise.
44959         * lib/strtol.c [!defined errno]: Likewise.
44960         * lib/strtod.c [!defined errno]: Likewise.
44961
44962 2006-06-15  Eric Blake  <ebb9@byu.net>
44963
44964         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
44965
44966 2006-06-15  Eric Blake  <ebb9@byu.net>
44967
44968         * config/srclist.txt (ssize_t.m4): Lose sync.
44969
44970 2006-06-15  Bruno Haible  <bruno@clisp.org>
44971
44972         * modules/stdint (Files): Include m4/full-header-path.m4,
44973         m4/size_max.m4, m4/wchar_t.m4.
44974         (Makefile.am): Many more substitutions.
44975         * modules/stdint-tests: New file.
44976         * tests/test-stdint.c: New file.
44977
44978 2006-06-15  Bruno Haible  <bruno@clisp.org>
44979
44980         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
44981         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
44982         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
44983         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
44984         gl_CHECK_TYPE_SAME): New macros.
44985
44986 2006-06-15  Bruno Haible  <bruno@clisp.org>
44987
44988         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
44989
44990 2006-06-15  Bruno Haible  <bruno@clisp.org>
44991
44992         * lib/stdint_.h: Rewritten to be fully auto-configured.
44993         Fixes bug on HP-UX/IA64.
44994
44995 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
44996
44997         * lib/getdate.y (__attribute__): Don't define if already defined.
44998         Problem reported by Larry Jones.
44999         * lib/utimens.c (__attribute__): Likewise.
45000
45001 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
45002
45003         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
45004         reported by Andreas Schwab.
45005
45006 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45007             Bruno Haible  <bruno@clisp.org>
45008
45009         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
45010         check for the declaration of strnlen and a run test that exposes the
45011         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
45012         rpl_strndup.
45013
45014 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45015             Bruno Haible  <bruno@clisp.org>
45016
45017         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
45018
45019 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45020
45021         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
45022         compile test, for Tru64 4.0D.
45023
45024 2006-05-28  Karl Berry  <karl@gnu.org>
45025
45026         * config/srclist.txt (printf-args.c): lose sync.
45027
45028 2006-05-26  Martin Lambers  <marlam@marlam.de>
45029
45030         * lib/getpass.c: Updates the test for the native W32 API, and adds
45031         missing includes, thus fixing compilation warnings.
45032
45033 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45034
45035         * lib/exclude.c (exclude_fnmatch): New function.
45036         (excluded_file_name): Call exclude_fnmatch.
45037         * lib/exclude.h (excluded_file_name): New prototype
45038
45039 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
45040
45041         * lib/tempname.c (small_open, large_open): New macros.
45042         (__open, __open64) [!_LIBC]: Remove.
45043         (__gen_tempname): Use small_open and large_open instead of __open
45044         and __open64.  This fixes a portability bug on HP-UX 11.11i
45045         reported by Simon Wing-Tang in
45046         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
45047
45048 2006-05-24  Bruno Haible  <bruno@clisp.org>
45049
45050         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
45051         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
45052         Reported by Thorsten Maerz <torte@netztorte.de> via
45053         Aaron Stone <aaron@serendipity.cx>.
45054
45055 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
45056
45057         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
45058         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
45059         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
45060         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
45061         not really conditional on the cache.
45062         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
45063
45064 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
45065
45066         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
45067         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
45068         (my_usleep): Don't mishandle maximum value.
45069
45070 2006-05-19  Jim Meyering  <jim@meyering.net>
45071
45072         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
45073
45074 2006-05-17  Bruno Haible  <bruno@clisp.org>
45075
45076         Cygwin portability.
45077         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
45078
45079 2006-05-17  Bruno Haible  <bruno@clisp.org>
45080
45081         * lib/stdint_.h: Fix recognition of Cygwin.
45082
45083 2006-05-15  Bruno Haible  <bruno@clisp.org>
45084
45085         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
45086         on libtool patch by Ralf Wildenhues.
45087
45088 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
45089
45090         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
45091         test for C99 conformance; (bool) 0.5 is an integer constant
45092         expression, but (bool) -0.5 is not.  Problem reported by Fedor
45093         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
45094
45095 2006-05-11  Simon Josefsson  <jas@extundo.com>
45096
45097         * m4/xvasprintf.m4: Fix obvious typo.
45098
45099 2006-05-11  Jim Meyering  <jim@meyering.net>
45100
45101         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
45102         James Lemley.
45103
45104 2006-05-10  Simon Josefsson  <jas@extundo.com>
45105
45106         * lib/md4.c: Typo fix, update copyright years.
45107         (K1, K2): Don't use L because it turn computations into 64-bit on
45108         64-bit platforms.
45109
45110 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
45111
45112         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
45113         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
45114         unwanted sign propagation, e.g., on hosts with 64-bit int.
45115         There still are some problems with reeelly weird theoretical hosts
45116         (e.g., 33-bit int) but it's not worth worrying about now.
45117         * lib/sha1.c (rol): Likewise.
45118         (K1, K2, K3, K4): Remove unnecessary L suffix.
45119
45120 2006-05-10  Bruno Haible  <bruno@clisp.org>
45121
45122         * lib/des.c: Cast to avoid warnings.
45123
45124 2006-05-09  Bruno Haible  <bruno@clisp.org>
45125
45126         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
45127         (Depends-on): Depend also on xsize, stdarg.
45128         (configure.ac): Add gl_XVASPRINTF.
45129
45130 2006-05-09  Bruno Haible  <bruno@clisp.org>
45131
45132         * m4/xvasprintf.m4: New file.
45133
45134 2006-05-09  Bruno Haible  <bruno@clisp.org>
45135
45136         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
45137         (EOVERFLOW): Define fallback value.
45138         (xstrcat): New function.
45139         (xvasprintf): Recognize the special case of a string concatenation.
45140
45141 2006-05-08  Eric Blake  <ebb9@byu.net>
45142
45143         * gnulib-tool (func_version): Base copyright year on CVS date.
45144         (func_emit_copyright_notice): New function.
45145         (func_emit_lib_Makefile_am): Use it.
45146         (func_emit_tests_Makefile_am): Likewise.
45147         (func_import): Likewise.
45148
45149 2006-05-08  Bruno Haible  <bruno@clisp.org>
45150
45151         * modules/stdarg: New file.
45152         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
45153
45154 2006-05-08  Bruno Haible  <bruno@clisp.org>
45155
45156         * m4/stdarg.m4: New file, from GNU gettext.
45157
45158 2006-05-08  Bruno Haible  <bruno@clisp.org>
45159
45160         * config/srclist.txt (build-aux/config.rpath): different from latest
45161         release.
45162
45163 2006-05-08  Bruno Haible  <bruno@clisp.org>
45164
45165         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
45166
45167 2006-05-05  Jim Meyering  <jim@meyering.net>
45168
45169         * m4/warning.m4: New file, derived from bison's file by the same name.
45170
45171 2006-05-03  Bruno Haible  <bruno@clisp.org>
45172
45173         * lib/stdint_.h: Shorter URL.
45174         * lib/inttypes.h: Likewise.
45175
45176 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
45177
45178         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
45179
45180 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
45181
45182         * lib/verify.h: Document the internals better.  Most of this change
45183         was written by Bruno Haible.
45184
45185 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
45186
45187         * doc/verify.texi: New file, partly based on a proposal by
45188         Bruno Haible.
45189
45190 2006-05-02  Bruno Haible  <bruno@clisp.org>
45191
45192         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
45193         test from here...
45194         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
45195
45196 2006-04-29  Bruno Haible  <bruno@clisp.org>
45197
45198         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
45199         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
45200
45201 2006-04-29  Bruno Haible  <bruno@clisp.org>
45202
45203         * gnulib-tool: Make --update option actually work.
45204
45205 2006-04-29  Bruno Haible  <bruno@clisp.org>
45206
45207         * doc/gcd.texi: New file.
45208         * doc/gnulib.texi: Include it.
45209
45210 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
45211
45212         * lib/getdate.y (get_date): When adding relative date, start with the
45213         initial time, not with the result of the first mktime call.
45214
45215 2006-04-25  Bruno Haible  <bruno@clisp.org>
45216
45217         * gnulib-tool (func_import): Output the include directives in three
45218         blocks, sorted separately.
45219         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45220
45221 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
45222
45223         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
45224         to define main with arguments, for C++.  Reported by Eric Blake.
45225         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
45226         Prefer 'int main ()' to 'int main (void)', for C++.
45227         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
45228         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
45229         for 'main', for C99 and C++.
45230
45231 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
45232
45233         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
45234         Don't assume that exit status -1 is valid.
45235         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45236         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
45237         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45238         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
45239         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
45240         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
45241         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
45242         functions can be used without declaring them, or that you can
45243         exit with status -1.
45244         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45245
45246 2006-04-24  Karl Berry  <karl@gnu.org>
45247
45248         * config/srclist.txt (longdouble.m4): sync lost.
45249
45250 2006-04-24  Eric Blake  <ebb9@byu.net>
45251
45252         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
45253
45254 2006-04-24  Bruno Haible  <bruno@clisp.org>
45255
45256         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
45257         poll() implementation in AIX.
45258         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45259
45260 2006-04-24  Bruno Haible  <bruno@clisp.org>
45261
45262         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
45263         assigned exactly once.
45264
45265 2006-04-23  Claudio Fontana  <claudio@gnu.org>
45266             Bruno Haible  <bruno@clisp.org>
45267
45268         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
45269         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
45270         for AM_CPPFLAGS.
45271
45272 2006-04-23  Bruno Haible  <bruno@clisp.org>
45273
45274         * modules/copy-file: Depend on unistd.
45275         * modules/execute: Likewise.
45276         * modules/fatal-signal: Likewise.
45277         * modules/findprog: Likewise.
45278         * modules/mkdtemp : Likewise.
45279         * modules/pipe: Likewise.
45280         * modules/wait-process: Likewise.
45281
45282 2006-04-23  Bruno Haible  <bruno@clisp.org>
45283
45284         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
45285         condition was already detected.
45286         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45287
45288 2006-04-23  Bruno Haible  <bruno@clisp.org>
45289
45290         * lib/copy-file.c: Include <unistd.h> unconditionally.
45291         * lib/execute.c: Likewise.
45292         * lib/fatal-signal.c: Likewise.
45293         * lib/findprog.c: Likewise.
45294         * lib/mkdtemp.c: Likewise.
45295         * lib/pipe.h: Likewise.
45296         * lib/pipe.c: Likewise.
45297         * lib/wait-process.h: Likewise.
45298
45299 2006-04-23  Bruno Haible  <bruno@clisp.org>
45300
45301         * gnulib-tool (func_usage): Fix --import description. Document
45302         --update.
45303         (func_import): Create temporary file in a temporary directory, if
45304         --dry-run is specified. Silence errors from 'grep' when there are no
45305         m4 files in $m4dir.
45306         (func_create_testdir): Silence errors from 'grep' when there are no
45307         m4 files in $m4dir.
45308         Reported by Karl Berry <karl@freefriends.org>.
45309
45310 2006-04-20  Bruno Haible  <bruno@clisp.org>
45311
45312         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
45313         one argument, so that the code will be portable to Autoconf 2.60.
45314         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
45315         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45316         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
45317
45318 2006-04-19  Derek Price  <derek@ximbiot.com>
45319             Eric Blake  <ebb9@byu.net>
45320
45321         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
45322         rather than "/full/path.h".  Update comment to match.  Shorten &
45323         generalize m4_translit call via AS_TR_CPP.
45324
45325 2006-04-19  Derek Price  <derek@ximbiot.com>
45326             Eric Blake  <ebb9@byu.net>
45327
45328         * lib/inttypes.h: Correct grammar in comment.
45329
45330 2006-04-18  Derek Price  <derek@ximbiot.com>
45331             Paul Eggert  <eggert@cs.ucla.edu>
45332
45333         * modules/inttypes: New file.
45334         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
45335
45336 2006-04-18  Derek Price  <derek@ximbiot.com>
45337             Paul Eggert  <eggert@cs.ucla.edu>
45338
45339         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
45340         New files.
45341
45342 2006-04-18  Derek Price  <derek@ximbiot.com>
45343             Paul Eggert  <eggert@cs.ucla.edu>
45344
45345         * lib/inttypes.h: New file.
45346         * lib/strtoimax.c: Assume <inttypes.h>.
45347
45348 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
45349
45350         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
45351         isn't mounted.  Problem reported by Kir Kolyshkin.
45352
45353 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
45354
45355         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
45356         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
45357         Derek R. Price.
45358         * lib/regex.h (RE_DUP_MAX): Update comment to match current
45359         implementation.
45360
45361 2006-04-12  Eric Blake  <ebb9@byu.net>
45362
45363         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
45364         is now done automatically by the corresponding Autoconf macro.
45365
45366 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
45367
45368         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
45369         time_r.h.
45370
45371 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45372
45373         Merge regex changes from libc, removing some of our
45374         POSIX-conformance changes that were rejected and redoing them in a
45375         less-intrusive way.
45376
45377         * lib/regcomp.c (re_compile_internal, init_dfa):
45378         Length arg is now size_t, not Idx.  All uses changed.
45379         (peek_token): Forward decl now says internal_function.
45380         (__re_error_msgid, __re_error_msgid_idx):
45381         Now static rather than extern with attribute_hidden.
45382         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
45383         For some reason libc prefers K&R style defns for external functions.
45384         (regerror) [!defined _LIBC]: Likewise.
45385         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
45386         (seek_collating_symbol_entry, lookup_collation_sequence_value):
45387         (build_range_exp, build_collating_symbol):
45388         Use K&R-style defn.
45389         (re_compile_fastmap): Use '\0' to memset, not 0.
45390         (utf8_sb_map): Make the calculations more obvious.
45391         (init_dfa, parse_bracket_exp, build_charclass_op):
45392         Call calloc and cast result, as glibc does.
45393         (init_word_char, fetch_token, peek_token, peek_token_bracket):
45394         (build_range_exp, build_collating_symbol):
45395         Now internal functions.
45396
45397         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
45398
45399         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
45400         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
45401         Don't depend on VMS; depend on __VMS instead, for POSIX
45402         namespace cleanness.
45403         (regoff_t): Define to ssize_t, not long int.
45404
45405         Remove the REG_ macros named below.  Instead, make the old names
45406         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
45407         __USE_GNU_REGEX.
45408         (REG_BACKSLASH_ESCAPE_IN_LISTS):
45409         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
45410         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
45411         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
45412         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
45413         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
45414         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
45415         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
45416         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
45417         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
45418         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
45419         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
45420         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
45421         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
45422         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
45423         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
45424         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
45425         (REG_NREGS):
45426         Remove.  All uses replaced by the old RE_* names.
45427         (RE_BACKSLASH_ESCAPE_IN_LISTS):
45428         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
45429         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
45430         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
45431         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
45432         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
45433         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
45434         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
45435         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
45436         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
45437         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
45438         Don't bother having these macros be independent of each others'
45439         values, since they no longer exist in the POSIX name space.
45440
45441         Rename the following member names back to their old names,
45442         unless !__USE_GNU_REGEX.  All uses changed back.
45443         (buffer): Renamed from re_buffer.
45444         (allocated): Renamed from re_allocated.
45445         (used): Renamed from re_used.
45446         (syntax): Renamed from re_syntax.
45447         (fastmap): Renamed from re_fastmap.
45448         (translate): Renamed from re_translate.
45449         (can_be_null): Renamed from re_can_be_null.
45450         (regs_allocated): Renamed from re_regs_allocated.
45451         (fastmap_accurate): Renamed from re_fastmap_accurate.
45452         (no_sub): Renamed from re_no_sub.
45453         (not_bol): Renamed from re_not_bol.
45454         (not_eol): Renamed from re_not_eol.
45455         (newline_anchor): Renamed from re_newline_anchor.
45456         (num_regs): Renamed from rm_num_regs.
45457         (start): Renamed from rm_start.
45458         (end): Renamed from rm_end.
45459
45460         (free_state): Move up a bit.
45461
45462         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
45463         #define to be empty.
45464         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
45465         when that is what is intended.
45466         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
45467         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
45468         (MAX): New macro.
45469         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
45470         All uses changed back to re_malloc, etc.  It's now the caller's
45471         responsibility to check for overflow; all callers changed.
45472         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
45473         (re_x2nrealloc): Remove.
45474         (free_state): Remove decl.
45475
45476         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
45477         (re_set_registers, re_exec):
45478         Use K&R-style defn.
45479
45480         2006-01-31  Roland McGrath  <roland@redhat.com>
45481
45482         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
45483         Reported by Mike Frysinger <vapier@gentoo.org>.
45484
45485         2006-01-15  Andreas Jaeger  <aj@suse.de>
45486
45487         [BZ #1950]
45488         * lib/regex_internal.c (re_string_reconstruct): Adjust for
45489         build_wcs_upper_buffer change.
45490         (build_wcs_upper_buffer): Change return type.
45491
45492         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
45493
45494         * lib/regex_internal.h: Include <stdint.h> if available.
45495
45496         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
45497
45498         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
45499
45500         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
45501
45502         * lib/regcomp.c: Adjust for changed secondary hash function.
45503
45504         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
45505
45506         * lib/regex.h: Pretty printing.
45507         Clean up namespace a bit.
45508
45509         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
45510
45511         * lib/regexec.c (update_cur_sifted_state, check_arrival,
45512         check_arrival_add_next_nodes): Avoid using uninitialized variable.
45513
45514         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
45515                     Ulrich Drepper  <drepper@redhat.com>
45516
45517         [BZ #1302]
45518         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
45519         changed.
45520         (bitset_word_t): Renamed from bitset_word.  All uses changed.
45521
45522         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
45523
45524         [BZ #281]
45525         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
45526         * lib/regcomp.c: Remove unnecessary uses of
45527         unsigned RE_TRANSLATE_TYPE.
45528         * lib/regex_internal.h: Likewise.
45529         * lib/regex_internal.c: Likewise.
45530         * lib/regexec.c: Likewise.
45531         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
45532
45533         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
45534
45535         * lib/regexec.c (find_recover_state): Remove unnecessary
45536         initialization.
45537         (transit_state_bkref): Make DFA a const pointer.
45538         (get_subexp): Likewise.
45539         (check_arrival): Likewise.
45540         (update_cur_sifted_state): Likewise.
45541         (re_search_internal): Likewise.
45542         (prune_impossible_nodes): Likewise.
45543         (acquire_init_state_context): Likewise.
45544         (proceed_next_node): Likewise.
45545         (set_regs): Likewise.
45546         (free_fail_stack_return): Likewise.
45547         (check_arrival_expand_ecl): Mark DFA parameter as const.
45548         (check_arrival_expand_ecl_sub): Likewise.
45549         (check_subexp_limits): Likewise.
45550         (sub_epsilon_src_nodes):  Likewise.
45551         (add_epsilon_src_nodes):  Likewise.
45552         (merge_state_array): Likewise.
45553         (update_regs): Likewise.
45554         (build_trtable): Likewise.
45555         (sift_states_backward): Mark MCTX parameter as const.
45556         (build_sifted_states): Likewise.
45557         (update_cur_sifted_state): Likewise.
45558         (sift_states_mkref): Likewise.
45559         (check_arrival_expand_ecl): Mark eclosure as const.
45560         (check_dst_limits_calc_pos_1): Likewise.
45561         * lib/regex_internal.h (re_match_context_t): Make dfa a const
45562         pointer.
45563
45564         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
45565
45566         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
45567         (transit_state_sb): Likewise.
45568         (transit_state_mb): Likewise.
45569         (sift_states_iter_mb): Likewise.
45570         (check_arrival_add_next_nodes): Likewise.
45571         (check_node_accept_bytes): Change first parameter to pointer-to-const.
45572         [_LIBC] (re_search_2_stub): Use mempcpy.
45573
45574         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
45575         mbrtowc for very simple UTF-8 case.
45576
45577         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
45578         a pointer-to-const.
45579         (re_acquire_state_context): Likewise.
45580         * lib/regex_internal.h: Adjust prototypes.
45581
45582         * lib/regex.c: Prevent using C++ compilers.
45583
45584         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
45585         (re_acquire_state_context): Likewise.
45586
45587 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45588
45589         * modules/regex (Depends-on): Add ssize_t.
45590
45591 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45592
45593         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
45594         translation table.
45595
45596 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45597
45598         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
45599
45600 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
45601             Bruno Haible  <bruno@clisp.org>
45602
45603         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
45604         <sys/types.h> and <inttypes.h>.
45605
45606 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45607
45608         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
45609         `__error_t_defined', so argp.h will not typedef the former.
45610
45611 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45612
45613         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
45614         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
45615         glibc names.  Even if glibc is changed to conform to POSIX, the
45616         traditional names will be available anyway, since regex depends on
45617         the extensions module.  Also, fix a longstanding typo in the
45618         implementation of Spencer ERE test #75 from grep 2.3.  Problems
45619         reported by Emanuele Giaquinta.  Also, change sense of cached
45620         variable, so that the message makes sense.
45621
45622 2006-03-24  Simon Josefsson  <jas@extundo.com>
45623
45624         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
45625         including some doc fixes.
45626         (base64_encode_alloc): Fix +1 bug on allocation failures.
45627
45628 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45629
45630         * lib/base64.c (base64_encode): Do not read past end of array with
45631         unsanitized input on systems with CHAR_BIT > 8.
45632
45633 2006-03-24  Eric Blake  <ebb9@byu.net>
45634
45635         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
45636
45637 2006-03-22  Karl Berry  <karl@gnu.org>
45638
45639         * config/srclist.txt (*setenv.[ch]): get from coreutils.
45640         * config/srclistvars.sh (COREUTILS): new var.
45641
45642 2006-03-17  Jim Meyering  <jim@meyering.net>
45643
45644         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
45645         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
45646
45647 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
45648
45649         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
45650         no longer needs it.  Instead, check that regoff_t is as least
45651         as wide as ptrdiff_t.
45652
45653         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
45654         so that our regex.h stays compatible with the installed regex.
45655         This is helpful for installers who configure --without-included-regex.
45656         Problem reported by Emanuele Giaquinta.
45657
45658 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
45659
45660         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
45661         Typedef to long int, not to off_, as POSIX will likely change
45662         in that direction.
45663
45664 2006-03-15  Eric Blake  <ebb9@byu.net>
45665
45666         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
45667
45668 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
45669
45670         * lib/argp-help.c (validate_uparams): Fix typo
45671         * lib/argp-parse.c (argp_default_options): Consistently begin help
45672         messages with a lowercase letter.
45673
45674 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
45675
45676         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
45677         overrun buffers and shouldn't be used (much as gets shouldn't be
45678         used).
45679         * lib/time_r.c (asctime_r, ctime_r): Likewise.
45680
45681 2006-03-08  Simon Josefsson  <jas@extundo.com>
45682
45683         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
45684         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45685
45686 2006-03-08  Simon Josefsson  <jas@extundo.com>
45687
45688         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
45689         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45690
45691 2006-03-08  Simon Josefsson  <jas@extundo.com>
45692
45693         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
45694         signal that configure disabled the device.
45695
45696 2006-03-08  Simon Josefsson  <jas@extundo.com>
45697
45698         * build-aux/maint.mk: Fix refresh-po, to handle no translated
45699         languages.
45700
45701 2006-03-07  Simon Josefsson  <jas@extundo.com>
45702
45703         * modules/getopt (Depends-on): Add unistd.
45704
45705         * modules/unistd: New file.
45706
45707 2006-03-07  Simon Josefsson  <jas@extundo.com>
45708
45709         * modules/gc-random: New file.
45710
45711 2006-03-07  Simon Josefsson  <jas@extundo.com>
45712
45713         * m4/unistd_h.m4: New file.
45714
45715 2006-03-07  Simon Josefsson  <jas@extundo.com>
45716
45717         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
45718         test to be side-effect free by storing the result in the cache
45719         variable gl_cv_lib_readline, and moving the assignment of
45720         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
45721         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45722
45723 2006-03-07  Simon Josefsson  <jas@extundo.com>
45724
45725         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
45726         error on missing devices (the functions will return an error).
45727
45728         * m4/gc.m4: Move random stuff to gc-random.m4
45729
45730 2006-03-07  Simon Josefsson  <jas@extundo.com>
45731
45732         * lib/unistd_.h: New file.
45733
45734 2006-03-07  Simon Josefsson  <jas@extundo.com>
45735
45736         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
45737
45738 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
45739
45740         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
45741         Problem reported by Juan Manuel Guerrero.
45742
45743 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
45744
45745         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
45746         the unistd module.
45747         * lib/getlogin_r.c: Likewise.
45748         * lib/getlogin_r.h: Likewise.
45749         * lib/glob.c: Likewise.
45750         * lib/pagealign_alloc.c: Likewise.
45751         * lib/unistd_.h: Remove; no longer needed.
45752
45753 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
45754
45755         * MODULES.html.sh (Support for systems lacking POSIX:2001):
45756         Add unistd.
45757         * modules/c-stack (Depends-on): Add unistd.
45758         * modules/getlogin_r: Likewise.
45759         * modules/glob: Likewise.
45760         * modules/pagealign_alloc: Likewise.
45761         * modules/unistd (Files): Remove lib/unistd_.h.
45762         (EXTRA_DIST): Remove.
45763         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
45764         need unistd_.h.
45765         (MOSTLYCLEANFILES): Remove unistd.h-t.
45766
45767 2006-03-03  Simon Josefsson  <jas@extundo.com>
45768
45769         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
45770
45771 2006-03-03  Simon Josefsson  <jas@extundo.com>
45772
45773         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
45774         libidn and bison.
45775
45776 2006-03-03  Simon Josefsson  <jas@extundo.com>
45777
45778         * build-aux/maint.mk: Add indent target.
45779
45780 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
45781
45782         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
45783         our replacement poll.h in any case, to avoid a differing
45784         declaration from a system header.  Seen on AIX.
45785
45786 2006-03-01  Simon Josefsson  <jas@extundo.com>
45787
45788         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
45789         <kasal@ucw.cz>.
45790
45791 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
45792
45793         * modules/gettime (Depends-on): Add extensions module.
45794         * modules/nanosleep (Depends-on): Likewise.
45795         * modules/settime (Depends-on): Likewise.
45796
45797 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
45798
45799         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
45800         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
45801         pedantically.
45802         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45803         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
45804
45805         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
45806         not "==".  Reported by Ralf Wildenhues.
45807
45808 2006-03-01  Karl Berry  <karl@gnu.org>
45809
45810         * doc/Copyright/request-*: new files, synced from gnuorg.
45811
45812 2006-03-01  Karl Berry  <karl@gnu.org>
45813
45814         * config/srclist.txt (Copyright/*): new entries.
45815
45816 2006-02-28  Simon Josefsson  <jas@extundo.com>
45817
45818         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
45819
45820 2006-02-27  Simon Josefsson  <jas@extundo.com>
45821
45822         * lib/base64.h: Indent #define's.  From Jim Meyering
45823         <jim@meyering.net>.
45824
45825 2006-02-27  Jim Meyering  <jim@meyering.net>
45826
45827         Revert the change of 2006-02-24, so these files can continue
45828         to be sync'd from gettext.
45829         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
45830         of `config.h'.
45831
45832 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
45833
45834         * modules/intprops: New file.
45835         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
45836         Add intprops.
45837         * modules/getloadavg (Files): Remove lib/intprops.h.
45838         (Depends-on): Add intprops.
45839         * modules/human: Likewise.
45840         * modules/inttostr: Likewise.
45841         * modules/openat: Likewise.
45842         * modules/sig2str: Likewise.
45843         * modules/userspec: Likewise.
45844         * modules/utimecmp: Likewise.
45845         * modules/xnanosleep: Likewise.
45846         * modules/xstrtol: Likewise.
45847
45848 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
45849
45850         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
45851         * modules/lock-tests (TESTS): Use $(EXEEXT).
45852         * modules/tls-tests: Likewise.
45853         * modules/argp-tests: Likewise.
45854         (check_PROGRAMS): New var, replacing...
45855         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
45856
45857 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45858
45859         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
45860         `config.h'.
45861
45862 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
45863
45864         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
45865
45866 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45867
45868         Sync from coreutils.
45869         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
45870         gl_CHDIR_SAFER.
45871
45872 2006-02-22  Jim Meyering  <jim@meyering.net>
45873
45874         Sync from coreutils.
45875         * m4/chdir-safer.m4: New file.
45876
45877 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
45878
45879         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
45880         AT_FDCWD exceeds INT_MAX.
45881         * lib/openat.h (AT_FDCWD): Likewise.
45882
45883 2006-02-17  Eric Blake  <address@hidden>
45884
45885         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
45886
45887 2006-02-16  Simon Josefsson  <jas@extundo.com>
45888
45889         * modules/getaddrinfo (Depends-on): Add sys_socket.
45890
45891 2006-02-15  Simon Josefsson  <jas@extundo.com>
45892
45893         * build-aux/maint.mk: Add dsyntax-check rule.
45894
45895 2006-02-15  Eric Blake  <ebb9@byu.net>
45896
45897         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
45898         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
45899         'present but cannot compile' warnings on cygwin.
45900         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
45901         use ws2tcpip.h if sys/socket.h works.
45902         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
45903         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
45904
45905 2006-02-14  Simon Josefsson  <jas@extundo.com>
45906
45907         * modules/maintainer-makefile (Files): Rename.
45908
45909         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
45910         and (the local) Makefile.cfg to maint-cfg.mk.
45911
45912         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
45913         to the latter.
45914
45915         * modules/maintainer-makefile: New module.
45916
45917         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
45918         severaly stripped to make it possible to build it up from scratch
45919         with reliable tests.
45920
45921         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
45922         fixes to permit overriding the default actions when configure and
45923         makefile are not available.
45924
45925 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
45926
45927         Sync from coreutils.
45928         * modules/lstat (Depends-on): Don't depend on xalloc.
45929         (License): Change from GPL to LGPL, since this is now simply a
45930         replacement for a libc function.
45931
45932 2006-02-14  Jim Meyering  <jim@meyering.net>
45933
45934         Sync from coreutils.
45935
45936         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
45937         failure on deficient systems, and simplify gnulib lgpl dependencies.
45938         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
45939         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
45940
45941         * lib/xalloc-die.c: Remove unused definition of N_.
45942
45943 2006-02-14  Jim Meyering  <jim@meyering.net>
45944
45945         Sync from coreutils.
45946         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
45947         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
45948         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
45949         double-quote uses of that variable, to accommodate the rare case in
45950         which getmntent is available in none of the libraries checked.  This
45951         happens at least on FreeBSD 5.0.
45952
45953 2006-02-13  Simon Josefsson  <jas@extundo.com>
45954
45955         * gnulib-tool (Usage): Fix --import, from
45956         karl@freefriends.org (Karl Berry).
45957
45958 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
45959
45960         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
45961
45962 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
45963
45964         * lib/argp-namefrob.h: Restore changes accidentally lost during the
45965         "autoupdate" on 2005-12-12.
45966
45967 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
45968
45969         * modules/closeout (Depends-on): Remove atexit.
45970
45971 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
45972
45973         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
45974         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
45975
45976 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
45977
45978         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
45979         __EXTENSIONS__ if this causes compilation to fail.  Problem
45980         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
45981         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
45982
45983 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
45984
45985         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
45986         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
45987         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
45988         All uses changed.
45989
45990 2006-01-26  Simon Josefsson  <jas@extundo.com>
45991
45992         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
45993         prototype is visible on mingw32.
45994
45995         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
45996         for mingw32.
45997
45998         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
45999         mingw32).
46000
46001 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
46002
46003         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
46004         attempt to open for write; this always fails, at least on POSIX
46005         hosts.  This reinstates the 2006-01-09 change, which was
46006         inadvertently removed.
46007
46008 2006-01-26  Bruno Haible  <bruno@clisp.org>
46009
46010         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
46011         Reported by Paul Eggert.
46012
46013 2006-01-26  Bruno Haible  <bruno@clisp.org>
46014             Paul Eggert  <eggert@cs.ucla.edu>
46015
46016         * lib/stdbool_.h (_Bool)
46017         [(! (defined __cplusplus || defined __BEOS__)
46018           && !defined __GNUC__
46019           && !(defined __HP_cc || defined __xlc__
46020                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
46021                || defined __sgi))]:
46022         #define to signed char in these cases too; this simplifies
46023         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
46024         etc., separately) and makes it more conservative.
46025
46026 2006-01-25  Simon Josefsson  <jas@extundo.com>
46027
46028         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
46029         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
46030         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
46031
46032 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46033
46034         * lib/argp-namefrob.h: Bugfix. Remove stray #
46035
46036 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
46037
46038         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
46039         so that we test the test.
46040         Check for yet another HP-UX cc bug involving *bool |= bool.
46041
46042 2006-01-25  Karl Berry  <karl@gnu.org>
46043
46044         * config/srclist.txt (vasnprintf.c): sync lost.
46045
46046 2006-01-25  Jim Meyering  <jim@meyering.net>
46047
46048         Sync from the stable (b5) branch of coreutils:
46049
46050         * lib/fts.c (fts_children): Don't let close() clobber errno from
46051         failed fchdir().
46052
46053         * lib/fts.c (fts_stat): When following a symlink-to-directory,
46054         don't necessarily interpret stat-fails+lstat-succeeds as indicating
46055         a dangling symlink.  That can also happen at least for ELOOP.
46056         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
46057         FYI, this bug predates the inclusion of fts.c in coreutils.
46058
46059         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
46060         in their own block, so pre-c99 compilers don't object.
46061
46062         Avoid the double-free (first in fts_read, second in fts_close) that
46063         would occur when an `active' directory is made inaccessible (e.g.,
46064         via chmod a-x) during a traversal.
46065         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46066         before returning.  Reproduce this failure by
46067         mkdir -p a/b; cd a; chmod a-x . b
46068         Reported by Stavros Passas.
46069
46070 2006-01-25  Jim Meyering  <jim@meyering.net>
46071
46072         * lib/fileblocks.c: Remove more useless parentheses.
46073         * lib/readutmp.h: Likewise.
46074
46075 2006-01-25  Bruno Haible  <bruno@clisp.org>
46076
46077         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
46078         warnings.
46079         Reported by Paul Eggert.
46080
46081 2006-01-25  Bruno Haible  <bruno@clisp.org>
46082
46083         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
46084         rid of a trap command. For Solaris sh.
46085         Reported by Mark D. Baushke <mdb@gnu.org>.
46086
46087 2006-01-24  Simon Josefsson  <jas@extundo.com>
46088
46089         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
46090         Bruno.
46091
46092 2006-01-24  Karl Berry  <karl@gnu.org>
46093
46094         * config/srclist.txt (argp-namefrob.h): sync lost.
46095
46096 2006-01-24  Jim Meyering  <jim@meyering.net>
46097
46098         * modules/openat (Files): Add lib/intprops.h.
46099         From Mark D. Baushke.
46100
46101 2006-01-24  Jim Meyering  <jim@meyering.net>
46102
46103         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
46104         Reported by Mark D. Baushke.
46105
46106 2006-01-24  Jim Meyering  <jim@meyering.net>
46107
46108         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
46109
46110 2006-01-24  Bruno Haible  <bruno@clisp.org>
46111
46112         * modules/strnlen (Maintainer): Change from glibc to all.
46113
46114 2006-01-24  Bruno Haible  <bruno@clisp.org>
46115
46116         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
46117         Patch by Paul Eggert.
46118
46119 2006-01-24  Bruno Haible  <bruno@clisp.org>
46120
46121         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
46122         already has it.
46123         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
46124         2005-11-26.
46125
46126         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
46127         'signed char' to avoid problems with the built-in _Bool type.
46128         Reported by Paul Eggert on 2005-11-26.
46129
46130 2006-01-24  Bruno Haible  <bruno@clisp.org>
46131
46132         * gnulib-tool (func_import): Avoid constructing complicated sed
46133         expressions inside backquote.
46134         Report and solution by Mark D. Baushke <mdb@gnu.org>.
46135
46136 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
46137
46138         These changes imported from libc.
46139         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
46140         test and two separate function calls.
46141         * lib/strndup.c (__strndup): Add libc_hidden_def.
46142
46143 2006-01-23  Simon Josefsson  <jas@extundo.com>
46144
46145         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
46146         Remove the test_*_SOURCES variable: automake infers it by default.
46147         * modules/tls-tests: Likewise.
46148
46149 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46150
46151         Work around porting bugs reported by Dieter in
46152         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
46153         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
46154         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
46155         Include "getopt.h" first, to check interface.
46156         (getenv): Declare only if defined HAVE_DECL_GETENV &&
46157         !HAVE_DECL_GETENV.
46158         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
46159         (__strndup): Revert to K&R-style function dfns, the glibc style.
46160         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
46161         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
46162         Include strnlen.h first, to get prototype properly.
46163         (strnlen): Renamed from __strnlen.
46164         Remove weak alias.
46165
46166 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46167
46168         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
46169
46170 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46171
46172         * config/srclist.txt: Adjust to reflect glibc reorganization.
46173         This affects only comments.
46174
46175 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
46176
46177          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
46178          Reported by Bruce Korb <bkorb@gnu.org>.
46179
46180 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
46181
46182         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
46183         to pacify gcc -Wswitch-default.
46184
46185 2006-01-22  Bruno Haible  <bruno@clisp.org>
46186
46187         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
46188         temporary buffer for sprintf, take into account the precision also
46189         for 'd', 'i', 'u', 'o', 'x', 'X'.
46190
46191 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
46192
46193         * modules/argp-tests: New module
46194         * tests/test-argp.c: New file
46195         * tests/test-argp-2.sh: New file
46196
46197 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
46198
46199         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
46200         (__argp_base_name): Removed
46201         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
46202         typo.
46203         (__argp_base_name): Provide macro definition or extern declaration
46204         depending on the configuration
46205
46206 2006-01-20  Simon Josefsson  <jas@extundo.com>
46207
46208         * modules/inet_ntop (Depends-on): Depend on sys_socket.
46209
46210 2006-01-20  Simon Josefsson  <jas@extundo.com>
46211
46212         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
46213
46214 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
46215
46216         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
46217         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
46218         Suggested by Bruno Haible.
46219
46220 2006-01-20  Karl Berry  <karl@gnu.org>
46221
46222         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
46223         until changes propagate, I guess.
46224
46225 2006-01-19  Simon Josefsson  <jas@extundo.com>
46226
46227         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
46228
46229 2006-01-19  Simon Josefsson  <jas@extundo.com>
46230
46231         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
46232
46233 2006-01-19  Simon Josefsson  <jas@extundo.com>
46234
46235         * gnulib-tool: Set check_PROGRAMS.
46236
46237         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
46238         modules/des-tests, modules/gc-arcfour-tests,
46239         modules/gc-arctwo-tests, modules/gc-des-tests,
46240         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
46241         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
46242         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
46243         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
46244         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
46245         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
46246         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
46247         test_*_SOURCES.
46248
46249 2006-01-18  Simon Josefsson  <jas@extundo.com>
46250
46251         * modules/socklen (Depends-on): Depend on sys_socket.
46252
46253 2006-01-18  Simon Josefsson  <jas@extundo.com>
46254
46255         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
46256         modules/des-tests, modules/gc-arcfour-tests,
46257         modules/gc-arctwo-tests, modules/gc-des-tests,
46258         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
46259         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
46260         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
46261         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
46262         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
46263         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
46264         $(EXEEXT) to automake TESTS variable, for mingw32.
46265
46266 2006-01-17  Simon Josefsson  <jas@extundo.com>
46267
46268         * modules/socklen (Include): Need sys/socket.h.
46269
46270 2006-01-17  Bruno Haible  <bruno@clisp.org>
46271
46272         * modules/ssize_t (Include): Add <sys/types.h>.
46273
46274 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
46275
46276         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
46277         it's not portable and it doesn't work with cross-compiles.
46278         Problem reported by Bruno Haible.  Fix missing-$ typo in
46279         'test "gl_cv_ignore_unused_libraries" ...' that prevented
46280         -zignore from being used with Sun's C compiler.
46281
46282 2006-01-12  Simon Josefsson  <jas@extundo.com>
46283
46284         * lib/base64.c: Fix warning, reported by Bruno Haible
46285         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
46286
46287 2006-01-12  Bruno Haible  <bruno@clisp.org>
46288
46289         * modules/ldd: New file.
46290         * build-aux/ldd.sh.in: New file.
46291         * MODULES.html.sh (Support for building libraries and executables): Add
46292         ldd.
46293
46294 2006-01-12  Bruno Haible  <bruno@clisp.org>
46295
46296         * m4/ldd.m4: New file.
46297
46298 2006-01-12  Bruno Haible  <bruno@clisp.org>
46299
46300         * gnulib-tool (func_import, func_create_testdir): Don't go into an
46301         endless loop while replacing $auxdir with build-aux.
46302
46303 2006-01-11  Simon Josefsson  <jas@extundo.com>
46304
46305         * lib/stdint_.h (SIZE_MAX): Add missing (.
46306
46307 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
46308
46309         Sync from coreutils.
46310         * lib/md5.c: Fix commentary typos.
46311         (alignof, UNALIGNED_P): No need for a GCC-specific version.
46312         * lib/md5.h (__attribute__): Remove; unused.
46313         * lib/sha1.c: Fix commentary to match md5 better.
46314         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
46315         so that we don't need to worry about alignment.  All uses changed.
46316         This merges the 2005-10-28 md5 change into sha1.
46317
46318 2006-01-11  Jim Meyering  <jim@meyering.net>
46319
46320         Sync from coreutils.
46321         * lib/md5.c (OP): Fix spacing.
46322
46323 2006-01-11  Bruno Haible  <bruno@clisp.org>
46324
46325         Ensure automatic ordering between gl_LOCK and gl_ARGP.
46326         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
46327         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
46328
46329 2006-01-11  Bruno Haible  <bruno@clisp.org>
46330
46331         Ensure automatic ordering between gl_LOCK and gl_ARGP.
46332         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
46333         the "early" section as well.
46334
46335 2006-01-11  Bruno Haible  <bruno@clisp.org>
46336
46337         Avoid "ar: no archive members specified" error on MacOS X.
46338         * gnulib-tool (func_modules_add_dummy): New function.
46339         (func_import, func_create_testdir): Invoke it.
46340
46341 2006-01-11  Bruno Haible  <bruno@clisp.org>
46342
46343         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
46344         with $auxdir in AC_CONFIG_FILES statements.
46345
46346 2006-01-11  Bruno Haible  <bruno@clisp.org>
46347
46348         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46349         Initialize also noinst_HEADERS to empty.
46350
46351 2006-01-11  Bruno Haible  <bruno@clisp.org>
46352
46353         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
46354         variables.
46355         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
46356         autoreconf.
46357
46358 2006-01-11  Bruno Haible  <bruno@clisp.org>
46359
46360         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
46361         overridable by the user.
46362         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46363
46364 2006-01-10  Simon Josefsson  <jas@extundo.com>
46365
46366         * modules/sys_socket: New file.
46367
46368 2006-01-10  Simon Josefsson  <jas@extundo.com>
46369
46370         * m4/sys_socket_h.m4: New file.
46371
46372 2006-01-10  Simon Josefsson  <jas@extundo.com>
46373
46374         * lib/socket_.h: New file.
46375
46376 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46377
46378         * modules/readutmp (Maintainer): Add myself.
46379
46380 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46381
46382         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
46383         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
46384         People who are still concerned with buggy memcmp implementations
46385         can invoke gl_FUNC_MEMCMP themselves.
46386
46387 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46388
46389         * lib/regex_internal.h (BITSET_WORD_BITS):
46390         Work around a bug in 64-bit PGC (before version 6.1-2), where the
46391         preprocessor mishandles large unsigned values as if they were signed.
46392         Problem reported by Claudio Fontana in
46393         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
46394
46395 2006-01-10  Jim Meyering  <jim@meyering.net>
46396
46397         Avoid the double-free (first in fts_read, second in fts_close) that
46398         would occur when an `active' directory is made inaccessible (e.g.,
46399         via chmod a-x) during a traversal.
46400         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46401         before returning.  Reproduce this failure by
46402         mkdir -p a/b; cd a; chmod a-x . b
46403         Reported by Stavros Passas.
46404
46405         Sync from coreutils.
46406         * lib/sha1.c: Tweak grammar in a comment.
46407
46408 2006-01-10  Jim Meyering  <jim@meyering.net>
46409
46410         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
46411         Patch by Joerg Sonnenberger.
46412
46413 2006-01-10  Bruno Haible  <bruno@clisp.org>
46414
46415         * modules/readutmp: Depend on module free.
46416         * modules/strtok_r: Depend on module restrict.
46417
46418 2006-01-10  Bruno Haible  <bruno@clisp.org>
46419
46420         * modules/gettext (configure.ac): Add an invocation of
46421         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
46422
46423 2006-01-10  Bruno Haible  <bruno@clisp.org>
46424
46425         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
46426         Reported by Werner Lemberg <wl@gnu.org>.
46427
46428 2006-01-10  Bruno Haible  <bruno@clisp.org>
46429
46430         * lib/localcharset.c: Update from GNU gettext.
46431
46432 2006-01-10  Bruno Haible  <bruno@clisp.org>
46433
46434         * lib/argp.h (__const): Remove macro. Use const instead.
46435         * lib/argp-fmtstream.h (__const): Likewise.
46436         * lib/glob_.h (__const): Remove macro.
46437         * lib/glob-libc.h: Use const instead of __const.
46438
46439 2006-01-10  Bruno Haible  <bruno@clisp.org>
46440
46441         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
46442         variable.
46443         Needed to avoid an automake error regarding the 'gettext' module.
46444
46445 2006-01-09  Simon Josefsson  <jas@extundo.com>
46446
46447         * modules/inet_ntop (Depends-on): Add restrict.
46448
46449 2006-01-09  Simon Josefsson  <jas@extundo.com>
46450
46451         * modules/gc-rijndael-tests (License): Put under LGPL.
46452
46453         * modules/gc-des-tests (License): Likewise.
46454
46455         * modules/gc-arcfour-tests (License): Likewise.
46456
46457         * modules/gc-arctwo-tests (License): Likewise.
46458
46459         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
46460
46461         * modules/gc-hmac-sha1-tests (Files): Likewise.
46462
46463         * modules/gc-hmac-md5-tests (License): Likewise.
46464
46465         * modules/gc-sha1-tests (License): Likewise.
46466
46467         * modules/gc-md5-tests (License): Likewise.
46468
46469         * modules/gc-md4-tests (License): Likewise.
46470
46471         * modules/gc-md2-tests (License): Likewise.
46472
46473         * modules/gc-tests (License): Likewise.
46474
46475         * modules/des-tests (License): Likewise.
46476
46477         * modules/md4-tests (License): Likewise.
46478
46479         * modules/md2-tests (License): Likewise.
46480
46481 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46482
46483         Sync from coreutils:
46484
46485         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
46486         * modules/lib-ignore: New file.
46487         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
46488         chdir-safer.m4, lchmod.m4.
46489         * modules/openat: Add mkdirat.c, openat-priv.h.
46490
46491 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46492
46493         Sync from coreutils.
46494         * m4/lib-ignore.m4: New file.
46495         * m4/lchmod.m4: New file.
46496
46497 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46498
46499         Sync from coreutils.
46500         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
46501         for write access: POSIX says that must fail.
46502         * lib/fts.c (diropen): Likewise.
46503         * lib/save-cwd.c (save_cwd): Likewise.
46504         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
46505         well, for minor improvements on hosts that lack O_DIRECTORY.
46506         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
46507         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
46508         Fall back on chown if open failed with EACCES.
46509
46510         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
46511         Report an error at compile-time if only a 1-second nominal clock
46512         resolution is found.
46513
46514         * lib/lchmod.h: New file.
46515         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
46516         (make_dir_parents): Use lchown rather than chown, and
46517         lchmod rather than chmod.
46518
46519         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
46520         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
46521         "proc" reported by n0dalus.
46522
46523         * lib/mountlist.c: Include <limits.h>.
46524         (dev_from_mount_options)
46525         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
46526         New function.  It no longer assumes "dev=" has the System V meaning
46527         on Linux (since it doesn't).  It also parses "dev=" more carefully.
46528         (read_file_system_list)
46529         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
46530         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
46531         dev= in that case.
46532
46533         * lib/posixtm.h (PDS_PRE_2000): New macro.
46534         * lib/posixtm.c (year): Arg is now syntax_bits rather than
46535         allow_century.  All usages changed.  Reject dates outside the range
46536         1969-1999 if PDS_PRE_2000 is used.
46537
46538 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46539
46540         Sync from coreutils.
46541         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
46542         (Time of day items): Mention the possibility of leap seconds.
46543         Problem reported by Dr. David Alan Gilbert.
46544
46545 2006-01-09  Jim Meyering  <jim@meyering.net>
46546
46547         Sync from coreutils.
46548
46549         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
46550
46551         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
46552
46553         * lib/modechange.c (mode_compile): Reject an invalid mode string
46554         that starts with an octal digit.  From Andreas Gruenbacher.
46555
46556         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
46557         and dup to open_safer and dup_safer, respectively.
46558         (openat_permissive): Fix typo in comment.
46559
46560         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
46561         "gettext.h"; either no longer needed or are guaranteed by openat.h.
46562         (_): Remove; no longer needed.
46563         (openat): Renamed from rpl_openat; no need for rpl_openat
46564         since openat.h renames openat for us.
46565         Replace most of the body with a call to openat_permissive,
46566         to avoid duplicate code.
46567         Port to (probably hypothetical) environments were mode_t is
46568         wider than int.
46569         (openat_permissive): Require mode arg, so that we can check
46570         types better.  Put it just after flags.  Change cwd failure
46571         indicator from pointer-to-bool to pointer-to-errno-value.
46572         All callers changed.
46573         Invoke openat_save_fail and/or openat_restore_fail if
46574         cwd_errno is null, so that openat can call us.
46575         (openat_permissive, fdopendir, fstatat, unlinkat):
46576         Simplify errno handling to avoid some duplicate code,
46577         as it's OK to set errno on success.
46578         * lib/openat.h: Revamp code so that function macros depend on
46579         __OPENAT_PREFIX only, not also on AT_FDCWD.
46580         (openat_ro): Remove.  Caller changed to use openat_permissive.
46581         (openat_permissive): Now a macro, if not a function.
46582         (openat_restore_fail, openat_save_fail): Now always functions,
46583         since mkdirat needs them even if __OPENAT_PREFIX is defined.
46584
46585         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
46586         and openat.c.
46587         * lib/mkdirat.c: Include openat-priv.h.
46588         Remove definitions of macros defined therein.
46589         * lib/openat.c: Likewise.
46590
46591         * lib/mkdirat.c (mkdirat): New file and function.
46592         * lib/openat.h (mkdirat): Declare.
46593
46594         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
46595
46596         * lib/openat.h (openat_permissive): Declare.
46597         (openat_ro): Define.
46598
46599         * lib/openat.c (EXPECTED_ERRNO): New macro.
46600         (openat_permissive): New function -- used in remove.c rewrite.
46601         (all functions): Set errno just before returning, only if there
46602         was an actual failure.
46603         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
46604
46605         Emulate openat-family functions using Linux's procfs, if possible.
46606         Idea and some code based on Ulrich Drepper's glibc changes.
46607
46608         * lib/openat.c: (BUILD_PROC_NAME): New macro.
46609         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
46610         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
46611         before falling back on save_cwd and restore_cwd.
46612         (fdopendir, fstatat, unlinkat): Likewise.
46613
46614         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
46615         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
46616
46617         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
46618         as second argument to va_arg.  Otherwise, some versions of gcc
46619         warn that `if this code is reached, the program will abort'.
46620
46621 2006-01-09  Jim Meyering  <jim@meyering.net>
46622
46623         Sync from coreutils.
46624         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
46625         Require openat-priv.h.
46626
46627 2006-01-09  Bruno Haible  <bruno@clisp.org>
46628
46629         * modules/strnlen (Include): Use strnlen.h.
46630
46631 2006-01-09  Bruno Haible  <bruno@clisp.org>
46632
46633         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
46634
46635 2006-01-09  Bruno Haible  <bruno@clisp.org>
46636
46637         * lib/sysexit_.h (EX_OK): New macro.
46638         Suggested by Martin Lambers <marlam@marlam.de>.
46639
46640 2006-01-09  Bruno Haible  <bruno@clisp.org>
46641
46642         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
46643         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
46644
46645 2006-01-09  Bruno Haible  <bruno@clisp.org>
46646
46647         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
46648         numbers.
46649
46650 2006-01-09  Bruno Haible  <bruno@clisp.org>
46651
46652         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
46653         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
46654         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
46655         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
46656
46657 2006-01-09  Bruno Haible  <bruno@clisp.org>
46658
46659         * build-aux/javacomp.sh.in: New file, moved from lib/.
46660         * modules/javacomp-script (Files): Update.
46661         (configure.ac): Add AC_CONFIG_FILES invocation.
46662         (EXTRA_DIST): Remove variable.
46663
46664         * build-aux/javaexec.sh.in: New file, moved from lib/.
46665         * modules/javaexec (Files): Update.
46666         (configure.ac): Add AC_CONFIG_FILES invocation.
46667         (EXTRA_DIST): Remove javaexec.sh.in.
46668
46669         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
46670         * modules/csharpcomp-script (Files): Update.
46671         (configure.ac): Add AC_CONFIG_FILES invocation.
46672         (EXTRA_DIST): Remove variable.
46673
46674         * build-aux/csharpexec.sh.in: New file, moved from lib/.
46675         * modules/csharpexec (Files): Update.
46676         (configure.ac): Add AC_CONFIG_FILES invocation.
46677         (EXTRA_DIST): Remove csharpexec.sh.in.
46678
46679 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
46680
46681         Sync from coreutils.
46682
46683         Add POSIX ACL support
46684         * lib/acl.h (copy_acl, set_acl): Add declarations.
46685         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
46686         systems other than Linux.
46687         (chmod_or_fchmod): New function: use fchmod when possible,
46688         and chmod otherwise.
46689         (file_has_acl): Add a POSIX ACL implementation, with a
46690         Linux-specific subcase.
46691         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
46692         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
46693         acls are unsupported.
46694         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
46695         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
46696         are unsupported.
46697
46698 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
46699
46700         Sync from coreutils.
46701         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
46702
46703 2006-01-07  Bruno Haible  <bruno@clisp.org>
46704
46705         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
46706         gl_EARLY.
46707
46708 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
46709
46710         * lib/strftime.c (tzname): Don't declare if it is already #defined.
46711         Problem reported for Mingw by Mark Junker.
46712
46713 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
46714
46715         * README: Gnulib normally doesn't generate a tarball.
46716
46717 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
46718
46719         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
46720         long int, not int, for nanosecond counts, so that people who are
46721         used to POSIX struct timespec won't be surprised.  Reported by Jim
46722         Meyering.
46723
46724 2005-12-28  Bruno Haible  <bruno@clisp.org>
46725
46726         * build-aux/config.rpath: Update from GNU gettext.
46727
46728 2005-12-16  Jim Meyering  <jim@meyering.net>
46729
46730         * modules/fprintftime: New module.
46731         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
46732
46733 2005-12-16  Jim Meyering  <jim@meyering.net>
46734
46735         * m4/fprintftime.m4: New file.
46736
46737 2005-12-16  Jim Meyering  <jim@meyering.net>
46738
46739         * lib/fprintftime.c, lib/fprintftime.h: New files.
46740
46741 2005-12-15  Simon Josefsson  <jas@extundo.com>
46742
46743         * modules/socklen (configure.ac): Fix M4 macro name, to align with
46744         new m4/socklen.m4.
46745
46746 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46747
46748         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
46749         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
46750
46751 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46752
46753         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
46754         * lib/argp-help.c (fill_in_uparams): Check if the constructed
46755         struct uparams is valid. Fall back to the default values if it is
46756         not.
46757
46758 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
46759
46760         * modules/argp (Files): Add argp-pin.c
46761         (Depends-on): dirname
46762         (lib_SOURCES): Add argp-pin.c
46763
46764 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
46765
46766         * m4/argp.m4:  Check if program_invocation_name and
46767         program_invocation_short_name are declared and define appropriate
46768         macros if they are not.
46769
46770 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
46771
46772         * lib/argp-help.c (__argp_base_name): New function
46773         (__argp_short_program_name): Rewrite using __argp_base_name
46774         * lib/argp-namefrob.h: Define program_invocation_name and
46775         program_invocation_short_name if requested
46776         (__argp_base_name): Add prototype
46777         * lib/argp-parse.c (argp_def): Use gettext wrappers
46778         (argp_default_parser): Use __argp_base_name
46779         * lib/argp-pin.c: New file. Defines program_invocation_name and
46780         program_invocation_short_name on systems that lack them.
46781
46782 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
46783
46784         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
46785         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
46786         porting problem reported by Georg Schwarz in
46787         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
46788
46789 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
46790
46791         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
46792         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
46793         porting problem reported by Georg Schwarz in
46794         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
46795
46796 2005-12-05  Bruno Haible  <bruno@clisp.org>
46797
46798         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
46799         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
46800         Reported by Mark Junker <mjscod@gmx.de>.
46801
46802 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
46803
46804         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
46805         Use implementation from Albert Chin, with some
46806         comments/corrections by Stepan Kasal and myself.
46807
46808 2005-12-02  Bruno Haible  <bruno@clisp.org>
46809
46810         * gnulib-tool (func_import): Accept GPLed build tool modules when
46811         --lgpl is given.
46812         * modules/csharpcomp-script: New file.
46813         * modules/csharpcomp: Depend on it.
46814         * modules/javacomp-script: New file.
46815         * modules/javacomp: Depend on it.
46816         Suggested by Simon Josefsson.
46817
46818 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
46819
46820         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
46821         statement, to work around an HP-UX 10.20 compiler bug reported by
46822         Peter O'Gorman.
46823
46824 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
46825
46826         * modules/savedir (Depends-on): Add openat.
46827
46828 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
46829
46830         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
46831         (uintmax_t) [defined uintmax_t]: Do not declare.
46832         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
46833         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
46834         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
46835         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
46836         sake of portability to weird hosts that C allows (though we don't
46837         know of any practical examples).
46838
46839         * lib/savedir.h (fdsavedir): New decl.
46840         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
46841         contains most of the former guts of savedir.
46842         (savedir): Use savedirstream.
46843         Include "openat.h".
46844
46845 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
46846
46847         * modules/obstack (Files): Add m4/ulonglong.m4.
46848         Problem reported by Davide Angelocola.
46849
46850 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
46851
46852         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
46853         coreutils no longer futzes with rounding modes.
46854
46855 2005-11-14  Jim Meyering  <jim@meyering.net>
46856
46857         * lib/mkstemp-safer.c: Include <config.h>, required for possible
46858         replacement of mkstemp.
46859
46860 2005-11-10  Simon Josefsson  <jas@extundo.com>
46861
46862         * lib/readline.c: Remove EOL.
46863
46864 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
46865
46866         * modules/gethrxtime (Depends-on): Add gettime.
46867
46868 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
46869
46870         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
46871         or gettimeofday; no longer needed.
46872
46873 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
46874
46875         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
46876         time business.
46877         (gethrxtime) [! (HAVE_NANOUPTIME
46878         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
46879         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
46880         our own approximation.
46881
46882 2005-11-08  Eric Blake  <ebb9@byu.net>
46883
46884         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
46885
46886 2005-11-08  Eric Blake  <ebb9@byu.net>
46887
46888         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
46889
46890 2005-11-04  Bruno Haible  <bruno@clisp.org>
46891
46892         * gnulib-tool: Implement --update mode.
46893
46894 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
46895
46896         Fix porting problem reported by Theodoros V. Kalamatianos.
46897         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
46898         Don't assume that futimes failing means we must fail.
46899
46900 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
46901
46902         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
46903         variables to suggest the intended function of the PATH_MAX check.
46904
46905 2005-10-30  Kean Johnston  <jkj@sco.com>
46906
46907         Trivial changes to support SCO systems.
46908         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
46909         as PATH_MAX.
46910         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
46911         where __ptr is null when no I/O is pending.
46912
46913 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
46914
46915         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
46916         leave errno alone.  Problem reported by Dmitry V. Levin.
46917
46918 2005-10-28  Simon Josefsson  <jas@extundo.com>
46919
46920         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
46921         Test more.
46922
46923         * tests/test-gc-md2.c, tests/test-md2.c: New files.
46924
46925         * modules/md2, modules/md2-tests: New files.
46926
46927 2005-10-28  Simon Josefsson  <jas@extundo.com>
46928
46929         * m4/inet_ntop.m4: More tests.
46930
46931         * m4/gc-md2.m4, md2.m4: New file.
46932
46933 2005-10-28  Simon Josefsson  <jas@extundo.com>
46934
46935         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
46936         "restrict" keywords, as per POSIX.  Protect the function
46937         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
46938         Don't use K&R prototypes.  Check the sprintf return values.
46939         Re-define EAFNOSUPPORT if not present.  Indent.
46940
46941         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
46942         suggested by Bruno Haible <bruno@clisp.org>.
46943
46944         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
46945
46946         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
46947
46948         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
46949         libgcrypt).
46950
46951         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
46952
46953         * lib/md2.h, lib/md2.c: New files.
46954
46955 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
46956
46957         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
46958         errno alone.  Problem reported by Frederic Jolliton.
46959
46960 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46961
46962         * modules/verify (License): Change from GPL to LGPL.  This is a
46963         tiny module and there are apparently near-equivalents that are
46964         under the BSD license.
46965
46966 2005-10-24  Simon Josefsson  <jas@extundo.com>
46967
46968         * modules/sha1: Relicense to LGPL.
46969
46970 2005-10-24  Simon Josefsson  <jas@extundo.com>
46971
46972         * lib/md4.h: Shrink buffer size, now that we changed the type.
46973
46974 2005-10-23  Simon Josefsson  <jas@extundo.com>
46975
46976         * gnulib-tool (func_import): Fix --tests-base.
46977
46978 2005-10-22  Simon Josefsson  <jas@extundo.com>
46979
46980         * modules/arcfour (Depends-on): Need stdint.
46981
46982 2005-10-22  Simon Josefsson  <jas@extundo.com>
46983
46984         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
46985         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
46986
46987 2005-10-22  Simon Josefsson  <jas@extundo.com>
46988
46989         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
46990         suggested by Bruno Haible <bruno@clisp.org>.
46991
46992 2005-10-22  Simon Josefsson  <jas@extundo.com>
46993
46994         * lib/crc.h: Include stddef.h, for size_t.
46995
46996 2005-10-22  Simon Josefsson  <jas@extundo.com>
46997
46998         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
46999         arcfour_context struct (simplify test vector testing in GNU
47000         Shishi).
47001
47002 2005-10-21  Simon Josefsson  <jas@extundo.com>
47003
47004         * modules/des, modules/des-tests: New files.
47005
47006         * modules/gc-des, modules/gc-des-tests: New files.
47007
47008         * tests/test-des.c, tests/test-gc-des.c: New file.
47009
47010 2005-10-21  Simon Josefsson  <jas@extundo.com>
47011
47012         * modules/arctwo, modules/arctwo-tests: New files.
47013
47014         * tests/test-arctwo.c: New file.
47015
47016         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
47017
47018         * tests/test-gc-arctwo.c: New file.
47019
47020 2005-10-21  Simon Josefsson  <jas@extundo.com>
47021
47022         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
47023         Bruno Haible <bruno@clisp.org>.
47024
47025         * m4/gc-des.m4: New file.
47026
47027 2005-10-21  Simon Josefsson  <jas@extundo.com>
47028
47029         * m4/arctwo.m4: New file.
47030
47031         * m4/gc-arctwo.m4: New file.
47032
47033 2005-10-21  Simon Josefsson  <jas@extundo.com>
47034
47035         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
47036         block.
47037
47038 2005-10-21  Simon Josefsson  <jas@extundo.com>
47039
47040         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
47041         <bruno@clisp.org>.
47042
47043         * lib/hmac-sha1.c (hmac_sha1): Likewise.
47044
47045         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
47046         Bruno Haible <bruno@clisp.org>.
47047
47048         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
47049         <bruno@clisp.org>.
47050
47051 2005-10-21  Simon Josefsson  <jas@extundo.com>
47052
47053         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
47054
47055 2005-10-21  Simon Josefsson  <jas@extundo.com>
47056
47057         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
47058
47059 2005-10-21  Simon Josefsson  <jas@extundo.com>
47060
47061         * lib/des.h, lib/des.c: New files.
47062
47063         * lib/gc-gnulib.c: Support DES.c
47064
47065 2005-10-21  Simon Josefsson  <jas@extundo.com>
47066
47067         * lib/arctwo.h, lib/arctwo.c: New files.
47068
47069         * lib/gc-gnulib.c: Support ARCTWO.
47070
47071 2005-10-21  Simon Josefsson  <jas@extundo.com>
47072
47073         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
47074         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47075
47076 2005-10-21  Simon Josefsson  <jas@extundo.com>
47077
47078         * gnulib-tool (func_import, func_create_testdir): Define automake
47079         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
47080         Makefile.am snippet),
47081         suggested by Bruno Haible <bruno@clisp.org>.
47082
47083         * modules/gc (Makefile.am): Use it.
47084
47085 2005-10-21  Bruno Haible  <bruno@clisp.org>
47086
47087         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
47088         patch.
47089
47090 2005-10-19  Simon Josefsson  <jas@extundo.com>
47091
47092         * tests/test-gc-rijndael.c: New file.
47093
47094         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
47095
47096 2005-10-19  Simon Josefsson  <jas@extundo.com>
47097
47098         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
47099         interface too.
47100
47101 2005-10-19  Simon Josefsson  <jas@extundo.com>
47102
47103         * tests/test-gc-arcfour.c: New file.
47104
47105         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
47106
47107 2005-10-19  Simon Josefsson  <jas@extundo.com>
47108
47109         * modules/gc-md4, modules/gc-md4-tests: New file.
47110
47111         * tests/test-gc-md4.c: New file.
47112
47113 2005-10-19  Simon Josefsson  <jas@extundo.com>
47114
47115         * m4/gc-md4.m4: New file.
47116
47117 2005-10-19  Simon Josefsson  <jas@extundo.com>
47118
47119         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
47120         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
47121         <kasal@ucw.cz>.
47122
47123 2005-10-19  Simon Josefsson  <jas@extundo.com>
47124
47125         * m4/gc-arcfour.m4: New file.
47126
47127         * m4/gc-rijndael.m4: New file.
47128
47129 2005-10-19  Simon Josefsson  <jas@extundo.com>
47130
47131         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
47132
47133 2005-10-19  Simon Josefsson  <jas@extundo.com>
47134
47135         * lib/gc-gnulib.c: Support ARCFOUR.
47136
47137 2005-10-19  Simon Josefsson  <jas@extundo.com>
47138
47139         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
47140         support.
47141
47142         * lib/gc.h: Add ECB enum type.
47143
47144         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
47145
47146 2005-10-18  Simon Josefsson  <jas@extundo.com>
47147
47148         * tests/test-md5.c: New file.
47149
47150         * modules/md5-tests: New file.
47151
47152 2005-10-18  Simon Josefsson  <jas@extundo.com>
47153
47154         * tests/test-md4.c: New file.
47155
47156         * modules/md4, modules/md4-tests: New files.
47157
47158 2005-10-18  Simon Josefsson  <jas@extundo.com>
47159
47160         * m4/md4.m4: New file.
47161
47162 2005-10-18  Simon Josefsson  <jas@extundo.com>
47163
47164         * lib/md4.h, lib/md4.c: New files, based on md5.?.
47165
47166 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
47167
47168         * gnulib-tool (func_create_testdir): Omit the second check whether
47169         BUILT_SOURCES in nonempty.
47170
47171 2005-10-17  Simon Josefsson  <jas@extundo.com>
47172
47173         * tests/test-rijndael.c: New file.
47174
47175 2005-10-17  Simon Josefsson  <jas@extundo.com>
47176
47177         * modules/sha1: Depend on stdint instead of md5.
47178
47179         * modules/md5: Depend on stdint, remove uint32_t.
47180
47181 2005-10-17  Simon Josefsson  <jas@extundo.com>
47182
47183         * modules/gc-sha1-tests: New file.
47184
47185         * tests/test-gc-sha1.c: New file.
47186
47187 2005-10-17  Simon Josefsson  <jas@extundo.com>
47188
47189         * m4/md5.m4: Remove call to uint32_t.m4.
47190
47191 2005-10-17  Simon Josefsson  <jas@extundo.com>
47192
47193         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
47194
47195         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
47196         md5.h.
47197
47198         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
47199
47200         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
47201
47202 2005-10-17  Simon Josefsson  <jas@extundo.com>
47203
47204         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
47205
47206 2005-10-17  Simon Josefsson  <jas@extundo.com>
47207
47208         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
47209
47210 2005-10-17  Simon Josefsson  <jas@extundo.com>
47211
47212         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
47213
47214         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
47215
47216 2005-10-17  Bruno Haible  <bruno@clisp.org>
47217
47218         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
47219         that it can also be used in a test.
47220
47221 2005-10-16  Bruno Haible  <bruno@clisp.org>
47222
47223         * gnulib-tool (func_emit_tests_Makefile_am): Also define
47224         TESTS_ENVIRONMENT, so that individual tests can augment it.
47225
47226         * gnulib-tool (func_create_testdir): Use an intermediate target for
47227         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
47228         macros, like $(ALLOCA_H), which cannot be passed through the command
47229         line.
47230
47231 2005-10-15  Simon Josefsson  <jas@extundo.com>
47232
47233         * modules/rijndael-tests: New file.
47234
47235         * modules/rijndael: New file.
47236
47237 2005-10-15  Simon Josefsson  <jas@extundo.com>
47238
47239         * m4/rijndael.m4: New file.
47240
47241 2005-10-15  Simon Josefsson  <jas@extundo.com>
47242
47243         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
47244
47245         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
47246
47247 2005-10-14  Simon Josefsson  <jas@extundo.com>
47248
47249         * tests/test-arcfour.c: New file.
47250
47251         * modules/arcfour, modules/arcfour-tests: New files.
47252
47253 2005-10-14  Simon Josefsson  <jas@extundo.com>
47254
47255         * m4/arcfour.m4: New file.
47256
47257 2005-10-14  Simon Josefsson  <jas@extundo.com>
47258
47259         * lib/arcfour.h, lib/arcfour.c: New files.
47260
47261 2005-10-14  Roland McGrath  <roland@redhat.com>
47262
47263         Import from libc.  [BZ #1331]
47264         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
47265         macro argument.
47266         Reported by Matej Vela <vela@debian.org>.
47267
47268 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
47269
47270         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
47271         include <wchar.h>; no longer needed.
47272
47273 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
47274
47275         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
47276
47277 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
47278         and  Ulrich Drepper  <drepper@redhat.com>
47279
47280         Import from libc.
47281         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
47282         instead of inline stream orientation test and two separate
47283         function calls.  Pay no attention to USE_IN_LIBIO.
47284
47285 2005-10-13  Simon Josefsson  <jas@extundo.com>
47286
47287         * modules/gc-hmac-md5-tests: New file.
47288
47289         * tests/test-gc-hmac-sha1.c: New file.
47290
47291         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
47292
47293         * modules/gc-hmac-md5-tests: New file.
47294
47295         * tests/test-gc-md5.c: New file.
47296
47297         * modules/gc-md5-tests: New file.
47298
47299 2005-10-13  Simon Josefsson  <jas@extundo.com>
47300
47301         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
47302         Move memory allocation outside of loop.
47303
47304 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
47305
47306         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
47307         intermediate directory is in a read-only file system.  Problem
47308         reported by Eric Blake.
47309
47310 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
47311
47312         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
47313
47314 2005-10-12  Simon Josefsson  <jas@extundo.com>
47315
47316         * tests/test-hmac-sha1.c: New file.
47317
47318         * modules/hmac-sha1-tests: New file.
47319
47320         * modules/hmac-sha1: New file.
47321
47322 2005-10-12  Simon Josefsson  <jas@extundo.com>
47323
47324         * modules/gc-sha1: New file.
47325
47326 2005-10-12  Simon Josefsson  <jas@extundo.com>
47327
47328         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
47329
47330         * tests/test-gc-pbkdf2-sha1.c: New file.
47331
47332 2005-10-12  Simon Josefsson  <jas@extundo.com>
47333
47334         * modules/gc-md5, modules/gc-hmac-md5: New files.
47335
47336         * modules/gc (Files): Remove md5, memxor and hmac files.
47337
47338 2005-10-12  Simon Josefsson  <jas@extundo.com>
47339
47340         * m4/gc-pbkdf2-sha1.m4: New file.
47341
47342         * m4/gc-hmac-sha1.m4: New file.
47343
47344         * m4/gc-sha1: New file.
47345
47346         * m4/hmac-sha1.m4: New file.
47347
47348 2005-10-12  Simon Josefsson  <jas@extundo.com>
47349
47350         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
47351
47352         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
47353
47354 2005-10-12  Simon Josefsson  <jas@extundo.com>
47355
47356         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
47357         suggested by Bruno Haible <bruno@clisp.org>.
47358
47359 2005-10-12  Simon Josefsson  <jas@extundo.com>
47360
47361         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
47362
47363 2005-10-12  Simon Josefsson  <jas@extundo.com>
47364
47365         * lib/gc-pbkdf2-sha1.c: New file.
47366
47367         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
47368
47369 2005-10-12  Simon Josefsson  <jas@extundo.com>
47370
47371         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
47372
47373         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
47374
47375 2005-10-12  Simon Josefsson  <jas@extundo.com>
47376
47377         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
47378         GC_USE_HMAC_MD5, respectively.
47379
47380         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
47381         (gc_md5): Fix typo.
47382
47383         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
47384
47385         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
47386
47387         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
47388
47389 2005-10-12  Bruno Haible  <bruno@clisp.org>
47390
47391         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
47392         Reported by Stepan Kasal <kasal@ucw.cz>.
47393
47394 2005-10-11  Simon Josefsson  <jas@extundo.com>
47395
47396         * tests/test-crc.c: New file.
47397
47398         * modules/crc, modules/crc-tests: New files.
47399
47400 2005-10-11  Simon Josefsson  <jas@extundo.com>
47401
47402         * m4/crc.m4: New file.
47403
47404 2005-10-11  Simon Josefsson  <jas@extundo.com>
47405
47406         * lib/gc.h: Add gc_hash and gc_hash_buffer.
47407
47408         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
47409
47410         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
47411
47412 2005-10-11  Simon Josefsson  <jas@extundo.com>
47413
47414         * lib/crc.h, lib/crc.c: New files.
47415
47416         * lib/gc.h (gc_hash_buffer): Add doc.
47417
47418 2005-10-11  Bruno Haible  <bruno@clisp.org>
47419
47420         * modules/c-strcasestr: New file.
47421         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
47422
47423 2005-10-11  Bruno Haible  <bruno@clisp.org>
47424
47425         * modules/c-strcase: New file.
47426         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
47427
47428 2005-10-11  Bruno Haible  <bruno@clisp.org>
47429
47430         * lib/strcasecmp.c: Include limits.h.
47431         (strcasecmp): Avoid integer overflow on exotic platforms.
47432         * lib/strncasecmp.c: Include limits.h.
47433         (strncasecmp): Avoid integer overflow on exotic platforms.
47434         Reported by Paul Eggert.
47435
47436 2005-10-11  Bruno Haible  <bruno@clisp.org>
47437
47438         * lib/c-strcasestr.h: New file, from GNU gettext.
47439         * lib/c-strcasestr.c: New file, from GNU gettext.
47440
47441 2005-10-11  Bruno Haible  <bruno@clisp.org>
47442
47443         * lib/c-strcase.h: New file, from GNU gettext.
47444         * lib/c-strcasecmp.c: New file, from GNU gettext.
47445         * lib/c-strncasecmp.c: New file, from GNU gettext.
47446
47447 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47448
47449         * modules/mempcpy (License): GPL -> LGPL.
47450         * modules/strchrnul (License): Likewise.
47451         * modules/sysexits (License): Likewise.
47452
47453 2005-10-08  Simon Josefsson  <jas@extundo.com>
47454
47455         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
47456
47457 2005-10-07  Simon Josefsson  <jas@extundo.com>
47458
47459         * m4/memxor.m4: Remove gl_C_RESTRICT call.
47460
47461 2005-10-06  Simon Josefsson  <jas@extundo.com>
47462
47463         * tests/test-hmac-md5.c: New file.
47464
47465         * modules/hmac-md5-tests: New file.
47466
47467         * modules/hmac-md5: New file.
47468
47469 2005-10-06  Simon Josefsson  <jas@extundo.com>
47470
47471         * m4/hmac-md5.m4: New file.
47472
47473         * m4/memxor.m4: Require gl_C_RESTRICT.
47474
47475 2005-10-06  Simon Josefsson  <jas@extundo.com>
47476
47477         * lib/memxor.c (memxor): Avoid casts and warnings.
47478
47479 2005-10-06  Simon Josefsson  <jas@extundo.com>
47480
47481         * lib/hmac-md5.c: New file.
47482
47483         * lib/hmac.h: New file.
47484
47485 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
47486
47487         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
47488         promotes to int, not unsigned int, to catch the AIX 5.3
47489         compiler bug.
47490
47491 2005-10-05  Simon Josefsson  <jas@extundo.com>
47492
47493         * modules/memxor: New file.
47494
47495         * modules/iconv (Files): Move config.rpath to havelib, it is used
47496         there.
47497
47498         * modules/havelib (Files): Add config.rpath.
47499
47500 2005-10-05  Simon Josefsson  <jas@extundo.com>
47501
47502         * m4/memxor.m4: New file.
47503
47504 2005-10-05  Simon Josefsson  <jas@extundo.com>
47505
47506         * lib/memxor.c (memxor): Fix compiler error.
47507
47508         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
47509         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
47510
47511         * lib/memxor.h, lib/memxor.c: New files.
47512
47513         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
47514         we assume all systems have it, suggested by Jim Meyering
47515         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
47516         any systems lack sys/socket.h; mingw32 is known to lack it, but we
47517         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
47518         same reasons.
47519
47520 2005-10-05  Simon Josefsson  <jas@extundo.com>
47521
47522         * config/srclist.txt: Add glibc bug 1423 for md5.h.
47523
47524 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
47525
47526         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
47527         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
47528         needed, since the source code now assumes these .h files.
47529
47530 2005-10-05  Derek Price  <derek@ximbiot.com>
47531
47532         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
47533
47534 2005-10-05  Bruno Haible  <bruno@clisp.org>
47535
47536         * modules/stdint (License): Change to LGPL.
47537
47538 2005-10-04  Simon Josefsson  <jas@extundo.com>
47539
47540         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
47541         D. Baushke" <mdb@gnu.org>.
47542
47543 2005-10-04  Bruno Haible  <bruno@clisp.org>
47544
47545         * lib/verify.h (verify_true): Provide alternative definition for C++.
47546
47547 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
47548
47549         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
47550         (SSIZE_MAX): New macro, if not already defined.
47551         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
47552         than 2 GiB.
47553
47554 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
47555
47556         Sync from coreutils.
47557         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
47558         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
47559         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
47560         ULLONG_MAX doesn't work with 2.7.2.1.
47561
47562 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
47563
47564         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
47565         From Ben Pfaff.
47566
47567         * modules/exclude (Depends-on): Depend on verify.
47568         * modules/strtoimax (Depends-on): Likewise.
47569         * modules/utimecmp (Depends-on): Likewise.
47570
47571 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
47572
47573         * lib/exclude.c: Include verify.h.
47574         (verify): Remove.  All callers changed to use verify.h's version.
47575         * lib/strtoimax.c: Likewise.
47576         * lib/utimecmp.c: Likewis.e
47577
47578         Sync from coreutils.
47579         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
47580         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
47581         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
47582         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
47583         bother returning ENOSYS if settimeofday or stime fails; just let
47584         them return whatever errno they want to return.
47585         * lib/utimens.c: Include unistd.h, for dup2.
47586         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
47587         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
47588
47589 2005-10-02  Jim Meyering  <jim@meyering.net>
47590
47591         Sync from coreutils.
47592         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
47593         from glibc-2.2.5 that fails for read-only files.
47594
47595 2005-10-02  Jim Meyering  <jim@meyering.net>
47596
47597         Sync from coreutils.
47598         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
47599         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
47600         `#if HAVE_CONFIG_H'.
47601         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
47602         Remove AT_FDCWD test.
47603         Do not consume the fd unless successful.
47604         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
47605         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
47606         block, so that we don't even try to compile it if settimeofday is
47607         available.  This works around a compilation failure on OSF1 V5.1,
47608         due to stime requiring a `long int*' while tv_sec is `int'.
47609
47610 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
47611
47612         Sync from coreutils.
47613         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
47614         against `yes', rather than just testing for nonempty.
47615
47616 2005-10-01  Simon Josefsson  <jas@extundo.com>
47617
47618         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
47619         and Darwin.
47620
47621         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
47622         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
47623         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
47624         freeaddrinfo and gai_strerror are declared by the POSIX headers.
47625         Check if struct addrinfo is declared.
47626
47627 2005-10-01  Simon Josefsson  <jas@extundo.com>
47628
47629         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
47630         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
47631         AI_* and EAI_* definitions.  Protect function declarations.
47632
47633 2005-10-01  Jim Meyering  <jim@meyering.net>
47634
47635         Sync from coreutils.
47636
47637         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
47638         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
47639         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
47640         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
47641         in the inet and nsl libraries.  Required on Solaris 5.7.
47642
47643 2005-10-01  Jim Meyering  <jim@meyering.net>
47644
47645         Sync from coreutils.
47646         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
47647         in the inet and nsl libraries.  Required on Solaris 5.7.
47648
47649 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
47650
47651         * lib/getdelim.c (getdelim): Remove unused variables.
47652
47653 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
47654
47655         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
47656         so that the code works even with ancient cpp.  Portability problem
47657         with GCC 2.7.2.1 reported by Thomas M.Ott.
47658
47659 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
47660
47661         * modules/regex (Depends-on): Add strcase.
47662
47663         * modules/gethostname (Licence): Change from GPL to LGPL, since
47664         gethostname.c is a trivial implementation of a standard library
47665         function.
47666         * modules/poll (License): Change from GPL to LGPL, since it's
47667         derived from LGPL code.
47668
47669 2005-09-27  Jim Meyering  <jim@meyering.net>
47670
47671         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
47672         HAVE_CONFIG_H.
47673
47674         * lib/intprops.h (signed_type_or_expr__): Define.
47675         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
47676         for unsigned types.
47677
47678 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
47679
47680         * lib/verify.h (verify_expr): Remove, replacing with:
47681         (verify_true): New macro that returns true instead of void.
47682         (verify_type__): Remove.
47683         (verify): Use verify_true rather than verify_type__.
47684
47685 2005-09-26  Bruno Haible  <bruno@clisp.org>
47686
47687         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
47688         is necessary.
47689         (lib_SOURCES): Remove mbchar.c.
47690         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
47691         (Files): Add m4/mbrtowc.m4.
47692         * modules/mbiter: Likewise.
47693         * modules/mbuiter: Likewise.
47694
47695 2005-09-26  Bruno Haible  <bruno@clisp.org>
47696
47697         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
47698         compile mbchar.c if they are not both present.
47699         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
47700         * m4/mbiter.m4 (gl_MBITER): Likewise.
47701         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
47702         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
47703         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
47704
47705 2005-09-25  Jim Meyering  <jim@meyering.net>
47706
47707         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
47708         also uses socklen_t.
47709
47710 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
47711
47712         * lib/utimens.c (ENOSYS): Define if not already defined.
47713         (futimens): Support having a null PATH if the file descriptor
47714         is nonnegative.
47715
47716         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
47717         Remove.
47718         (__attribute): Define to empty unless GCC 3.1 or later.
47719         This works around a core dump on OpenBSD 3.4, which has GCC
47720         2.95.3, which dumps core when given __attribute__(()).  It also
47721         simplifies other tests, since we really don't want to bother with
47722         worrying about which ancient version of GCC supported what.
47723         Original problem reported by Yoann Vandoorselaere, with part of
47724         the fix suggested by Derek Price.
47725
47726 2005-09-24  Jim Meyering  <jim@meyering.net>
47727
47728         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
47729         so we can once again use a positive bitfield width of 1 -- now we
47730         don't have to explain why we were using a bitfield width of 2.
47731
47732 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
47733
47734         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
47735         and similarly for the other external symbols.  Problem reported
47736         by James Gallager.
47737
47738         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
47739         bug reported by Jim Meyering.
47740
47741         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
47742         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
47743         not needed, since socklen is a prerequisite module.
47744
47745 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
47746
47747         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
47748         Problem reported by Eric Blake.
47749         (getaddrinfo): Initialize se so that it's not garbage.
47750         Redo internal storage allocation so that it doesn't make unportable
47751         assumptions about alignment.
47752         Fix a memory leak.
47753
47754         * lib/utimens.c (futimens): Use futimesat if available.
47755         Prefer it to futimes since it doesn't have the futimes bug.
47756
47757         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
47758         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
47759         Instead, declare a function that returns a pointer to an array,
47760         and use verify_type__ to declare the size of the array.
47761         Problem and germ of a solution reported by Bruno Haible.
47762         (verify_type__): Use 2, not 1, for bitfield size, to avoid
47763         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
47764
47765 2005-09-23  Jim Meyering  <jim@meyering.net>
47766
47767         Sync from coreutils.
47768         Correct build failure (socklen_t not defined) on at least
47769         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
47770         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
47771
47772 2005-09-23  Jim Meyering  <jim@meyering.net>
47773
47774         * modules/getaddrinfo (Depends-on): Add socklen.
47775
47776 2005-09-23  Bruno Haible  <bruno@clisp.org>
47777
47778         * tests/test-verify.c: New file.
47779
47780 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47781
47782         Sync from coreutils.
47783
47784         * modules/argmatch (Depends-on): Add verify.
47785         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
47786         unistd-safer.
47787         * modules/save-cwd (Depends-on): Likewise.
47788
47789         * modules/openat (Files): Add lib/openat-die.c.
47790         (Depends-on): Remove error, exitfail.
47791         Add dirname.
47792
47793         * modules/verify: New file.
47794         * MODULES.html.sh (Diagnostics <assert.h>): New section,
47795         with "verify" module.
47796
47797 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47798
47799         Sync from coreutils.
47800
47801         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
47802         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
47803         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
47804         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
47805         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
47806         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
47807         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
47808         Don't bother checking for string.h, stdlib.h, unistd.h.
47809         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
47810         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
47811         module's job.
47812         * m4/jm-macros.m4 (gl_MACROS): Likewise.
47813         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
47814
47815         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
47816         (gl_GETDATE): Use it.
47817
47818         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
47819
47820 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47821
47822         Sync from coreutils.
47823
47824         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
47825         stat-time.h.
47826         * lib/argmatch.h: Include verify.h
47827         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
47828         (ARGMATCH_ASSERT): Remove; unused.
47829         * lib/canonicalize.c: Assume STDC_HEADERS.
47830         * lib/exclude.c: Include "strcase.h".
47831         * lib/regex_internal.h [!defined _LIBC]: Likewise.
47832         * lib/getusershell.c: Include stdio--.h rather than stdio.h
47833         and stdio-safer.h.
47834         (getusershell): Call fopen, not fopen_safer.
47835         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
47836         Do not include unistd-safer.h.
47837         (save_cwd): Don't call fd_safer; no longer needed
47838         now that we include fcntl--.h.
47839
47840         * lib/getdate.y (relative_time): New type.
47841         (RELATIVE_TIME_0): New constant.
47842         (parser_control): Use relative_time instead of doing it ourselves.
47843         (%union): Add new relative_time rel member.
47844         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
47845         Now typeless.
47846         (relunit, relunit_snumber): Now of type rel.
47847         (zone, rel, relunit, get_date): Adjust to above changes.
47848
47849         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
47850         Do not include unistd-safer.h.
47851         (getloadavg): Don't call fd_safer; no longer needed
47852         now that we include fcntl--.h.
47853
47854         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
47855         (make_dir_parents): Treat ENOSYS like EEXIST.
47856
47857         Improve quality of diagnostics on restore_cwd failure.
47858         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
47859         (make_dir_parents): Last arg is now int * (for errno), not bool *.
47860         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
47861         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
47862         each time through the loop.  Do not diagnose restore_cwd failure;
47863         that is the caller's job (and perhaps the caller does not care).
47864
47865         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
47866         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
47867         If the file already exists but is not a directory, don't bother
47868         to try to make its parents.
47869         Close potential file descriptor leak if we can't chdir("/") (!).
47870         Don't always return true if chdir($PWD) fails; return true only
47871         if the requested action was done successfully (except for the
47872         chdir($PWD)).
47873         Don't log final directory unless we actually made it.
47874         Refactor to avoid duplicate code to fix up permissions.
47875         Don't attempt to fix up parent permissions if chdir($PWD) fails.
47876
47877         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
47878         to make it a bit faster and (I hope) clearer.
47879         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
47880         Fix bug in formats like %2N.
47881
47882         * lib/verify.h: New file.
47883
47884 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47885
47886         Sync from coreutils.
47887         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
47888
47889 2005-09-22  Jim Meyering  <jim@meyering.net>
47890
47891         Sync from coreutils.
47892
47893         * m4/lstat.m4 (gl_FUNC_LSTAT):
47894         Use AC_LIBSOURCES to require lstat.c and lstat.h.
47895         Remove obsolete comment.
47896         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
47897         * m4/xstrtod.m4: Likewise.
47898
47899         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
47900
47901 2005-09-22  Jim Meyering  <jim@meyering.net>
47902
47903         Sync from coreutils.
47904
47905         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
47906
47907         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
47908         the .tm_year member, since otherwise gcc-4.0 would now warn about
47909         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
47910
47911         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
47912         order to avoid an unsuppressible warning from gcc on 64-bit systems.
47913
47914         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
47915         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
47916         when run in a time zone for which daylight savings time is in effect
47917         for the starting date.
47918
47919         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
47920         stop us from restricting permissions of just-created absolute-named
47921         directories.
47922         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
47923         to restore initial working directory.
47924         * lib/mkdir-p.c (make_dir_parents): New parameter:
47925         different_working_dir, to tell caller if/when we change the working
47926         directory and are unable to return to the initial one.
47927         * lib/mkdir-p.h (make_dir_parents): Update prototype.
47928         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
47929         `return false'.  This fixes a bug introduced on 2004-07-30.
47930
47931         * lib/openat.c (fdopendir): Be sure to close the supplied
47932         file descriptor before returning.  This makes our replacement
47933         implementation a little closer to Solaris's, where fdopendir
47934         ties the file descriptor to the returned DIR* pointer.
47935         * lib/openat.c (unlinkat): New function.
47936         * lib/openat.h (unlinkat): Add prototype.
47937         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
47938         (openat_restore_fail): Rename from openat_restore_die.
47939         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
47940
47941         Provide an alternative to exiting immediately upon save_cwd or
47942         restore_cwd failure.  Now, an application can arrange e.g.,
47943         to perform a longjump in that case.
47944         * lib/openat.c: Include dirname.h.
47945         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
47946         (rpl_openat, fdopendir, fstatat): Call openat_save_die
47947         and openat_restore_die rather than calling error directly.
47948         Don't include "error.h" or "exitfail.h"; they're no longer needed.
47949
47950         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
47951         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
47952         define.
47953
47954         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
47955         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
47956                             int utc, int nanoseconds);
47957         Background:
47958         date should not have to allocate a megabyte of virtual memory to
47959         handle a format argument like +%1048575T.  When implemented with
47960         strftime, it must allocate such a buffer, use strftime to fill it
47961         in, print it, then free it.
47962         With fprintftime, it simply prints everything and exits.
47963         With no need for memory allocation, that's one fewer way to fail.
47964         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
47965         optional field width, not before, so we accept %9:z, not %:9z.
47966         (my_strftime): Be sure to use L_('x') for literals.
47967
47968         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
47969         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
47970         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
47971         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
47972         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
47973         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
47974         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
47975         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
47976         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
47977         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
47978         * lib/xgethostname.c, lib/xreadlink.c:
47979         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
47980
47981         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
47982         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
47983         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
47984         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
47985         and don't include <sys/file.h>).
47986
47987 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
47988
47989         Sync from coreutils.
47990
47991         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
47992         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
47993         [!LDAV_DONE]: Avoid unused variable warning.
47994
47995 2005-09-21  Bruno Haible  <bruno@clisp.org>
47996
47997         * lib/unicodeio.h (unicode_to_mb): New declaration.
47998
47999 2005-09-20  Derek Price  <derek@ximbiot.com>
48000
48001         * lib/getaddrinfo.c: Don't include <netdb.h> included from
48002         getaddrinfo.h.
48003
48004 2005-09-20  Bruno Haible  <bruno@clisp.org>
48005
48006         * gnulib-tool: Remove trailing slashes from the values specified for
48007         --source-base, --m4-base, --tests-base, --aux-dir.
48008         Suggested by Simon Josefsson <jas@extundo.com>.
48009
48010 2005-09-20  Bruno Haible  <bruno@clisp.org>
48011
48012         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
48013         func_modules_to_filelist, func_import, func_create_testdir): Make all
48014         sorting results locale-independent, so that gnulib-cache.m4 doesn't
48015         change when gnulib-tool is invoked in a different locale.
48016
48017 2005-09-19  Simon Josefsson  <jas@extundo.com>
48018
48019         * m4/socklen.m4: Fix typo.
48020
48021 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48022
48023         Use a consistent style for including <config.h>.
48024         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
48025         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
48026         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
48027         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
48028         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
48029         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
48030         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
48031         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
48032         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
48033         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
48034         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
48035         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
48036         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
48037         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
48038         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
48039         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
48040         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
48041         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
48042         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
48043         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
48044         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
48045         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
48046         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
48047         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
48048         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
48049         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
48050         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
48051         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
48052         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
48053         lib/xstrtoumax.c, lib/yesno.c:
48054         Standardize inclusion of config.h.
48055         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
48056         lib/inttostr.h:  Removed inclusion of config.h from header files.
48057         * lib/inttostr.c:  Adjusted in-tree users.
48058         * lib/timespec.h: Remove superfluous warning to include config.h.
48059         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
48060         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
48061         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
48062         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
48063         config.h with HAVE_CONFIG_H.
48064
48065 2005-09-19  Jim Meyering  <jim@meyering.net>
48066
48067         * modules/pathmax (License): Change to LGPL.
48068
48069 2005-09-19  Derek Price  <derek@ximbiot.com>
48070
48071         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
48072
48073 2005-09-19  Bruno Haible  <bruno@clisp.org>
48074
48075         * gnulib-tool (import): Provide default for --tests-base.
48076
48077 2005-09-19  Bruno Haible  <bruno@clisp.org>
48078
48079         * doc/quote.texi: New file, extracted from gnulib.texi.
48080         * doc/ctime.texi: New file, extracted from gnulib.texi.
48081         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
48082         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
48083         * doc/gnulib.texi: Include them.
48084
48085 2005-09-18  Bruno Haible  <bruno@clisp.org>
48086
48087         Portability fix.
48088         * gnulib-tool (func_readlink): New function.
48089         (func_ln_if_changed): Use it.
48090
48091 2005-09-18  Bruno Haible  <bruno@clisp.org>
48092
48093         * gnulib-tool: Support --with-tests also with --import.
48094         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
48095         (func_import): Use variables $testsbase and $inctests. Emit a
48096         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
48097         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
48098         SUBDIRS += $testsdir.
48099         (func_create_testdir): Update.
48100
48101 2005-09-18  Bruno Haible  <bruno@clisp.org>
48102
48103         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
48104         instead of $dry_run.
48105         (func_cp_if_changed, func_mv_if_changed): Remove functions.
48106         (func_ln_if_changed): Don't handle dry-run here.
48107         (func_import): In dry-run mode, detect more precisely which actions
48108         would be performed, and don't use "...ing" verbs.
48109
48110 2005-09-18  Bruno Haible  <bruno@clisp.org>
48111
48112         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
48113         (func_import): Use join on two temporary files instead of three nested
48114         loops, in order to determine which files are new or old.
48115
48116 2005-09-18  Bruno Haible  <bruno@clisp.org>
48117
48118         * gnulib-tool (func_import): Comment out code that spits out the
48119         new files with --dry-run.
48120
48121 2005-09-18  Bruno Haible  <bruno@clisp.org>
48122
48123         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
48124
48125 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
48126
48127         * lib/stat-time.h: New file.
48128         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
48129         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
48130         in a different way.
48131         (timespec_cmp): New function.
48132         * lib/utimecmp.c: Include stat-time.h.
48133         (SYSCALL_RESOLUTION): Depend on whether various struct stat
48134         members exist, not on the obsolescent ST_MTIM_NSEC.
48135         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
48136
48137 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
48138
48139         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
48140
48141 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
48142
48143         * MODULES.html.sh (File system functions): Add stat-time.
48144         * modules/stat-time: New file.
48145         * modules/timespec (Files): Remove m4/st_mtim.m4; this
48146         is now done in a different way, by the stat-time module.
48147         * modules/utimecmp (Depends-on): Add stat-time.
48148
48149 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48150
48151         * m4/st_mtim.m4: Remove.  Superseded by...
48152         * m4/stat-time.m4: New file.
48153         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
48154         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
48155
48156 2005-09-15  Derek Price  <derek@ximbiot.com>
48157
48158         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
48159
48160 2005-09-15  Derek Price  <derek@ximbiot.com>
48161
48162         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
48163         * lib/regex_internal.c: Ditto, using this...
48164         (__GNUC_PREREQ): ...new macro.
48165         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
48166         using...
48167         (__GNUC_PREREQ): ...this new macro.
48168
48169         * lib/strstr.h: Include string.h. Define strstr as a macro here.
48170
48171 2005-09-15  Derek Price  <derek@ximbiot.com>
48172             Paul Eggert  <eggert@cs.ucla.edu>
48173
48174         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
48175         changes, consolidating in...
48176         * lib/regex_internal.h: ...this file.
48177
48178 2005-09-13  Jim Meyering  <jim@meyering.net>
48179
48180         * lib/canon-host.c: Filter through gnu indent and reword comments
48181         slightly.
48182         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
48183
48184 2005-09-13  Derek Price  <derek@ximbiot.com>
48185
48186         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
48187         failure.
48188         Reported by Jim Meyering  <jim@meyering.net>.
48189
48190 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
48191
48192         * lib/base64.c: Typo.
48193         (base64_encode): Put b64str in initialized data section.
48194
48195 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
48196
48197         Merge glibc and coreutils changes into gnulib, plus a few
48198         extra fixes.
48199         * lib/md5.c: Use #error rather than a string.
48200         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
48201         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
48202         (__attribute__): Define to empty for non recent-GCC.
48203         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
48204         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
48205         Renamed from their non-__ counterparts, with new macros replacing
48206         them if not _LIBC.  Add __THROW attribute.
48207         (rol): Remove.
48208         (struct md5_ctx): Align buffer if using GCC.
48209         * lib/sha1.h (struct sha1_ctx): Likewise.
48210         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
48211         The old name was backwards.
48212         (NOTSWAP): Remove; not used.
48213         (rol): New macro, moved here from md5.h.
48214         (sha1_process_block): Remove a FIXME that doesn't make sense.
48215
48216 2005-09-12  Derek Price  <derek@ximbiot.com>
48217
48218         Return usable errors from canon-host.
48219         * lib/canon-host.h: New file.
48220         * lib/canon-host.c (canon_host): Wrap...
48221         (canon_host_r): ...this new function, which now relies exclusively on
48222         getaddrinfo.
48223         (ch_strerror): New function.
48224         (last_cherror): New global.
48225         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
48226         interface.
48227         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
48228         void *.
48229         (freeaddrinfo): Free ai->ai_canonname when set.
48230
48231 2005-09-12  Derek Price  <derek@ximbiot.com>
48232
48233         Make canon-host require getaddrinfo.
48234         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
48235         AC_LIBSOURCE canon-host.h.  Call...
48236         (gl_PREREQ_CANON_HOST): ...this new function, which requires
48237         gl_GETADDRINFO.
48238         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
48239
48240 2005-09-12  Derek Price  <derek@ximbiot.com>
48241
48242         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
48243         LGPL.
48244         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
48245
48246 2005-09-12  Derek Price  <derek@ximbiot.com>
48247
48248         * lib/gai_strerror.c: Include config.h when available.  Include
48249         getaddrinfo.h before other headers to test interface.
48250         Reported by Larry Jones <lawrence.jones@ugs.com>.
48251
48252 2005-09-12  Derek Price  <derek@ximbiot.com>
48253             Paul Eggert  <eggert@cs.ucla.edu>
48254
48255         * modules/glob (Files): Add glob-libc.h.
48256
48257 2005-09-12  Derek Price  <derek@ximbiot.com>
48258             Paul Eggert  <eggert@cs.ucla.edu>
48259
48260         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
48261         glob_.h, glob-libc.h.
48262         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
48263
48264 2005-09-12  Derek Price  <derek@ximbiot.com>
48265             Paul Eggert  <eggert@cs.ucla.edu>
48266
48267         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
48268         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
48269         protecting things that should be done only in gnulib contexts.
48270         * lib/glob_.h: New file, containing only the glob things needed for
48271         gnulib.
48272         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
48273         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
48274         (glob, globfree, glob_pattern_p): Now defined simply in terms of
48275         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
48276         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
48277         and to respect the namespace rules better.
48278
48279 2005-09-08  Simon Josefsson  <jas@extundo.com>
48280
48281         * modules/socklen: New file.
48282
48283 2005-09-08  Simon Josefsson  <jas@extundo.com>
48284
48285         * m4/socklen.m4: New file.
48286
48287 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48288
48289         * modules/utimens (Files): Add m4/utimbuf.m4, since
48290         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
48291         Reported by Sergey Poznyakoff.
48292
48293 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48294
48295         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
48296         definitions, since that's the preferred style in glibc.
48297         Fix a minor spacing issue, and update copyright notice to match
48298         glibc's.
48299
48300 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48301
48302         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
48303
48304 2005-09-06  Simon Josefsson  <jas@extundo.com>
48305
48306         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
48307         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
48308
48309 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48310
48311         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
48312         warning.
48313
48314 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48315
48316         * config/srclist.txt: Add glibc bug 1302.
48317
48318 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
48319
48320         Change bitset word type from unsigned int to unsigned long int,
48321         as this has better performance on typical 64-bit hosts.
48322         Port bitset code to hosts with unusual word sizes.
48323         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
48324         (build_collating_symbol):
48325         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
48326         argument is a bitset.  This is merely a style issue, but it makes
48327         it clearer that an entire array is expected.
48328         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
48329         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
48330         Port to the case where bitset_word is not the same as unsigned int.
48331         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
48332         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
48333         Likewise.
48334         * lib/regexec.c (check_dst_limits_calc_pos_1,
48335         check_subexp_matching_top):
48336         (build_trtable, group_nodes_into_DFAstates):
48337         Likewise.
48338         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
48339         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
48340         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
48341         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
48342         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
48343         * lib/regcomp.c (optimize_subexps, lower_subexp):
48344         Work even if bitset_word has holes in its bitwise representation.
48345         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
48346         * lib/regexec.c (check_dst_limits_calc_pos_1,
48347         check_subexp_matching_top):
48348         Likewise.
48349         * lib/regex_internal.c (re_string_reconstruct):
48350         Don't assume UCHAR_MAX == 255.
48351         * lib/regex_internal.h (bitset_set_all): Likewise.
48352         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
48353         All uses changed.
48354         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
48355         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
48356         All uses changed.
48357         (BITSET_WORD_MAX): New macro.
48358         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
48359         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
48360         (bitset_empty, bitset_copy):
48361         Prefer sizeof (bitset) to multiplying it out ourselves.
48362         (bitset_not_merge): Remove; unused.
48363         (bitset_contain): Return bool, not unsigned int with one bit on.
48364         All callers changed.
48365         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
48366         alignment than re_node_set; do this by defining a new internal
48367         type struct dests_alloc and using it to allocate memory.
48368
48369 2005-09-05  Bruno Haible  <bruno@clisp.org>
48370
48371         * gnulib-tool (func_import): Fix comparison in handling of symbolic
48372         links.
48373
48374 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
48375
48376         * modules/size_max (Makefile.am): Add size_max.h
48377
48378 2005-09-04  Derek Price  <derek@ximbiot.com>
48379
48380         * gnulib-tool (func_import): Fix reversed $symbolic logic.
48381
48382 2005-09-03  Simon Josefsson  <jas@extundo.com>
48383
48384         * gnulib-tool: Fix typo.
48385
48386 2005-09-03  Simon Josefsson  <jas@extundo.com>
48387
48388         * config/srclist.txt: Add glibc bug 1293.
48389
48390 2005-09-03  Derek Price  <derek@ximbiot.com>
48391
48392         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
48393         From Larry Jones <lawrence.jones@ugs.com>.
48394
48395 2005-09-02  Simon Josefsson  <jas@extundo.com>
48396
48397         * modules/socklen: New file.
48398
48399 2005-09-02  Simon Josefsson  <jas@extundo.com>
48400
48401         * modules/havelib: New module.
48402
48403         * modules/gettext, modules/iconv, modules/lock, modules/readline:
48404         Use havelib.
48405
48406 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
48407
48408         Check for arithmetic overflow when calculating sizes, to prevent
48409         some buffer-overflow issues.  These patches are conservative, in the
48410         sense that when I couldn't determine whether an overflow was possible,
48411         I inserted a run-time check.
48412         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
48413         macros.
48414         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
48415         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
48416         (re_xnrealloc, re_x2nrealloc): New inline functions.
48417         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
48418         parse_bracket_exp):
48419         (build_equiv_class, build_charclass): Check for arithmetic overflow
48420         in size expression calculations.
48421         * lib/regex_internal.c (re_string_realloc_buffers):
48422         (build_wcs_upper_buffer, re_node_set_add_intersect):
48423         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
48424         (re_dfa_add_node, register_state): Likewise.
48425         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
48426         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
48427         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
48428         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
48429
48430 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
48431
48432         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
48433         m4/ulonglong.m4.  Problem reported by Martin Lambers.
48434
48435 2005-09-02  Bruno Haible  <bruno@clisp.org>
48436
48437         Support for lib vs. lib64 distinction on biarch platforms.
48438         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
48439         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
48440         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
48441
48442 2005-09-02  Bruno Haible  <bruno@clisp.org>
48443
48444         * gnulib-tool (import): In the other first-use case, provide defaults
48445         as well.
48446
48447 2005-09-02  Bruno Haible  <bruno@clisp.org>
48448
48449         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
48450         patches not yet found in the latest gettext release.
48451
48452 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48453
48454         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
48455         to avoid a collision with bits/local_lim.h in glibc.
48456         All uses changed.  Problem reported by Dmitry V. Levin in
48457         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
48458
48459         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
48460         bugs in int versus size_t comparisons.
48461         (re_string_context_at): Fix bug where the code assumed that
48462         Idx is signed.
48463
48464         Use bool where appropriate.
48465         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
48466         All callers changed.
48467         (calc_eclosure_iter): Likewise, for ROOT arg.
48468         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
48469         (build_charclass_op): Likewise, for NON_MATCH arg.
48470         * lib/regex_internal.c (re_string_allocate, re_string_construct):
48471         (re_string_construct_common): Likewise, for ICASE arg.
48472         * lib/regexec.c (re_search_2_stub, re_search_stub):
48473         Likewise, for RET_LEN arg.
48474         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
48475         (set_regs): Likewise, for FL_BACKTRACK arg.
48476         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
48477         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
48478         (calc_eclosure_iter, parse_bracket_exp):
48479         Use bool for internal variables that are booleans.
48480         * lib/regexec.c (re_search_internal, check_matching,
48481         proceed_next_node):
48482         (set_regs, build_sifted_states, sift_states_bkref):
48483         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
48484         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
48485         (find_collation_sequence_value):
48486         Likewise.
48487         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
48488         (re_node_set_compare):
48489         Return bool, not int. All callers changed.
48490         * lib/regexec.c (check_halt_node_context, check_dst_limits):
48491         (build_trtable, check_node_accept): Likewise.
48492         * lib/regex_internal.h: Include stdbool.h.
48493
48494         Fix bugs uncovered when converting to bool.
48495         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
48496         failure instead of charging ahead blindly.
48497         * lib/regex_internal.c (register_state): Likewise.
48498         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
48499         for freeing internal storage.
48500         (group_nodes_into_DFA_states): Use unsigned int, not int, for
48501         bitset pieces used as boolean, to avoid undefined behavior
48502         on hosts that do int overflow checking.
48503
48504 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48505
48506         * config/srclist.txt: Add glibc bugs 1285-1287.
48507
48508 2005-09-01  Jim Meyering  <jim@meyering.net>
48509
48510         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
48511         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
48512         Require gl_STAT_MACROS, too.
48513
48514 2005-09-01  Bruno Haible  <bruno@clisp.org>
48515
48516         * gnulib-tool (import): In the first-use case, provide defaults.
48517
48518 2005-09-01  Bruno Haible  <bruno@clisp.org>
48519
48520         * gnulib-tool (func_import): Remove the .tmp files.
48521
48522 2005-09-01  Bruno Haible  <bruno@clisp.org>
48523
48524         * gnulib-tool (func_import): Fix handling of symbolic links.
48525
48526 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48527
48528         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
48529         old glibc regex code mishandles strings longer than 2**31 bytes.
48530         This patch fixes this when the regex code is used in gnulib
48531         (i.e., outside glibc).
48532
48533         This patch should not affect the use of the regex code inside
48534         glibc.  No doubt this problem also needs to be handled for glibc
48535         as well, but the result will be an incompatible change to the
48536         glibc ABI, and the old ABI will have to be supported too.  That
48537         can be the the subject for another patch.
48538
48539         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
48540         governing whether the rest of this patch is active.  By default,
48541         the macro is disabled and the patch has no effect.
48542         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
48543         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
48544         (struct re_pattern_buffer, re_search, re_search_2, re_match):
48545         (re_match_2, re_set_registers): Use the new types.
48546         * lib/regex_internal.h (Idx, re_hashval_t): New types.
48547         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
48548         New macros.
48549         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
48550         (re_string_context_at, bin_tree_t, re_dfastate_t):
48551         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
48552         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
48553         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
48554         (re_string_char_size_at, re_string_wchar_at):
48555         (re_string_elem_size_at):
48556         Use the new types and macros to port to 64-bit hosts.
48557         Use unsigned types for internal values, so that the code
48558         mostly works even for arrays larger than SSIZE_MAX.
48559         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
48560         (search_duplicated_node, calc_eclosure_iter, fetch_number):
48561         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
48562         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
48563         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
48564         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
48565         (calc_inveclosure, parse_dup_op, build_range_exp):
48566         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
48567         (fetch_number, create_token_tree, mark_opt_subexp):
48568         Likewise.
48569         * lib/regex_internal.c (re_string_construct_common,
48570         create_ci_newstate):
48571         (create_cd_newstate, re_string_allocate, re_string_construct):
48572         (re_string_realloc_buffers, build_wcs_upper_buffer):
48573         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
48574         (re_string_reconstruct, re_string_peek_byte_case):
48575         (re_string_fetch_byte_case, re_string_context_at):
48576         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
48577         (re_node_set_init_copy, re_node_set_add_intersect):
48578         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
48579         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
48580         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
48581         (re_acquire_state, re_acquire_state_context, register_state):
48582         Likewise.
48583         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
48584         search_cur_bkref_entry):
48585         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
48586         (re_search_internal, re_search_2_stub, re_search_stub)
48587         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
48588         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
48589         (update_cur_sifted_state, check_dst_limits):
48590         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
48591         (check_subexp_limits, sift_states_bkref, merge_state_array):
48592         (check_subexp_matching_top, get_subexp, get_subexp_sub):
48593         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
48594         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
48595         (expand_bkref_cache, check_node_accept_bytes):
48596         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
48597         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
48598         (acquire_init_state_context, check_halt_node_context):
48599         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
48600         (sift_states_backward, clean_state_log_if_needed):
48601         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
48602         (find_recover_state, transit_state_sb, transit_state_mb):
48603         (transit_state_bkref, build_trtable, match_ctx_clean):
48604         Likewise.
48605         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
48606         to work around an assumption that REG_MISSING is negative.
48607
48608         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
48609         (seek_collating_symbol_entry) [defined _LIBC]:
48610         (lookup_collation_sequence_value) [defined _LIBC]:
48611         (build_range_exp, build_collating_symbol) [defined _LIBC]:
48612         Use prototypes rather than old-style function definitions.
48613         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
48614         (transit_state_sb) [0]:
48615         (find_collation_sequence_value) [defined _LIBC]: Likewise.
48616
48617         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
48618         rm_eo.
48619
48620         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
48621         (optimize_subexps, lower_subexp):
48622         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
48623         since the signed shift might overflow.  Use 1u<<31 instead.
48624         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
48625         Likewise.
48626         * lib/regexec.c (check_dst_limits_calc_pos_1,
48627         check_subexp_matching_top): Likewise.
48628
48629         * lib/regcomp.c (optimize_subexps, lower_subexp):
48630         Use CHAR_BIT rather than 8, for clarity.
48631         * lib/regexec.c (check_dst_limits_calc_pos_1):
48632         (check_subexp_matching_top): Likewise.
48633         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
48634         have to worry about portability issues when shifting it left.
48635         Remove no-longer-needed test for table_size > 0.
48636         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
48637         in a word, as the resulting behavior is undefined.
48638         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
48639         in one case, a <= should have been an <, and in another case the
48640         whole test was missing.
48641         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
48642         the standard name CHAR_BIT.
48643         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
48644         this is not true on one's complement and signed-magnitude hosts.
48645
48646         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
48647         next_last_offset.
48648         (struct re_dfa_t): Remove unused member states_alloc.
48649         * lib/regcomp.c (init_dfa): Don't initialize unused members.
48650
48651 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48652
48653         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
48654         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
48655         and large-file glibc and in 32-bit large-file Solaris.
48656
48657 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48658
48659         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
48660         lengths fit in regoff_t; this isn't true if regoff_t is the same
48661         width as size_t.
48662         * lib/regex.c (re_search_internal): 5th arg is LAST_START
48663         (= START + RANGE) instead of RANGE.  This avoids overflow
48664         problems when regoff_t is the same width as size_t.
48665         All callers changed.
48666         (re_search_2_stub): Check for overflow when adding the
48667         sizes of the two strings.
48668         (re_search_stub): Check for overflow when adding START
48669         to RANGE; if it occurs, substitute the extreme value.
48670
48671 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48672
48673         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
48674
48675 2005-08-31  Jim Meyering  <jim@meyering.net>
48676
48677         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
48678         a pointer-to-const.
48679         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
48680         (register_state): Likewise.
48681         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
48682         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
48683         (group_nodes_into_DFAstates): Likewise.
48684
48685 2005-08-31  Jim Meyering  <jim@meyering.net>
48686
48687         * check-module: Add a FIXME comment.
48688
48689 2005-08-31  Eric Blake  <ebb9@byu.net>
48690
48691         * modules/unistd-safer (Files): Add unistd--.h.
48692         * modules/stdio-safer (Files): Add stdio--.h.
48693
48694 2005-08-31  Derek Price  <derek@ximbiot.com>
48695
48696         * lib/getdelim.c (getdelim): Return EOF on EOF.
48697         Reported by Larry Jones <lawrence.jones@ugs.com>.
48698
48699 2005-08-31  Bruno Haible  <bruno@clisp.org>
48700
48701         Avoid unnecessary diffs in the generated lib/Makefile.am.
48702         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
48703         the generated files.
48704         (func_import): Don't set cmd.
48705
48706 2005-08-31  Bruno Haible  <bruno@clisp.org>
48707
48708         * lib/strstr.c: Include <stddef.h>, for NULL.
48709         * lib/strcasestr.c: Likewise.
48710         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48711
48712 2005-08-31  Bruno Haible  <bruno@clisp.org>
48713
48714         * gnulib-tool: New option --macro-prefix.
48715         (func_import): Use macro_prefix.
48716         (import): Handle option --macro-prefix.
48717
48718 2005-08-31  Bruno Haible  <bruno@clisp.org>
48719
48720         * gnulib-tool (import): Rename most ac_* variables to cached_*.
48721         Also use new variables cached_lgpl, cached_libtool.
48722
48723 2005-08-31  Bruno Haible  <bruno@clisp.org>
48724
48725         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
48726         always instantiating them.
48727
48728 2005-08-31  Bruno Haible  <bruno@clisp.org>
48729
48730         * gnulib-tool (func_import): Read the previous cached settings
48731         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
48732         earlier added by gnulib but are now dropped. Warn when a gnulib file
48733         overwrites a non-gnulib file.
48734
48735 2005-08-31  Bruno Haible  <bruno@clisp.org>
48736
48737         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
48738         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
48739         projects that don't keep autogenerated files in CVS. Put into
48740         actioncmd only the specified modules, not the transitive closure.
48741
48742 2005-08-31  Bruno Haible  <bruno@clisp.org>
48743
48744         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
48745         Create directories that shall be filled.
48746         (import): Don't look for gl_* macros in configure.ac. Recurse across
48747         all directories containing a gnulib-cache.m4 files, if meaningful.
48748
48749 2005-08-31  Bruno Haible  <bruno@clisp.org>
48750
48751         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
48752         (import): Set seen_libtool when we see gl_LIBTOOL.
48753
48754 2005-08-31  Bruno Haible  <bruno@clisp.org>
48755
48756         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
48757         declaration macro definitions from generated gnulib.m4.
48758
48759 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
48760
48761         * lib/iconvme.h: Add prototype for iconv_alloc.
48762
48763 2005-08-29  Simon Josefsson  <jas@extundo.com>
48764
48765         * lib/iconvme.c: Fix errno.
48766
48767 2005-08-29  Bruno Haible  <bruno@clisp.org>
48768
48769         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
48770         that it works when the directory contains spaces.
48771
48772 2005-08-29  Bruno Haible  <bruno@clisp.org>
48773
48774         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
48775
48776 2005-08-29  Bruno Haible  <bruno@clisp.org>
48777
48778         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
48779         Emit more advice.
48780
48781 2005-08-29  Bruno Haible  <bruno@clisp.org>
48782         and Stepan Kasal  <kasal@ucw.cz>
48783
48784         * check-module: If more parameters are given, check each of them
48785         separately; add more exceptions, as noted by Jim Meyering.
48786         (check_module): New procedure.
48787         (%exempt_header): Now contains all exceptions.
48788
48789 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
48790
48791         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
48792
48793 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
48794
48795         * lib/iconvme.c: Split iconv_string into iconv_alloc.
48796
48797 2005-08-28  Bruno Haible  <bruno@clisp.org>
48798
48799         * m4/gnulib-tool.m4: New file.
48800
48801 2005-08-27  Jim Meyering  <jim@meyering.net>
48802
48803         * modules/unistd-safer (Files): Add pipe-safer.c.
48804         * modules/fcntl-safer (Files): Add creat-safer.c.
48805
48806 2005-08-27  Jim Meyering  <jim@meyering.net>
48807
48808         * m4/stdlib-safer.m4: New file.  From coreutils.
48809         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
48810         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
48811         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
48812         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
48813         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
48814
48815 2005-08-27  Jim Meyering  <jim@meyering.net>
48816
48817         * lib/fopen-safer.c: Merge minor changes from coreutils.
48818         * lib/dup-safer.c: Likewise.
48819         * lib/fd-safer.c: Likewise.
48820
48821         Merge from coreutils.
48822         * lib/stdio--.h: New file.
48823         * lib/stdlib--.h: New file.
48824         * lib/mkstemp-safer.c: New file.
48825
48826         GNU tar needs these.
48827         * lib/pipe-safer.c: New file.
48828         * lib/creat-safer.c: New file.
48829         * lib/fcntl--.h (creat): Define to creat_safer.
48830         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
48831         * lib/unistd--.h (pipe): Define to pipe_safer.
48832         * lib/unistd-safer.h: Declare pipe_safer.
48833
48834 2005-08-26  Simon Josefsson  <jas@extundo.com>
48835
48836         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
48837         Haible <bruno@clisp.org>.
48838
48839 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
48840
48841         * lib/regex_internal.h: Remove all references to
48842         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
48843         or better.
48844         (bitset_not, bitset_merge, bitset_not_merge):
48845         (bitset_mask, re_string_allocate, re_string_construct):
48846         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
48847         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
48848         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
48849         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
48850         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
48851         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
48852         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
48853         (re_acquire_state_context):
48854         Remove unnecessary forward decls.
48855         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
48856         Put __attribute at function definition,
48857         now that the function decl has been removed.
48858         * lib/regex_internal.c (re_string_peek_byte_case):
48859         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
48860         Likewise.
48861
48862 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
48863
48864         * m4/regex.m4: Add AC_PREREQ(2.50).
48865         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
48866
48867 2005-08-25  Simon Josefsson  <jas@extundo.com>
48868
48869         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
48870         __fsetlocking.
48871
48872 2005-08-25  Simon Josefsson  <jas@extundo.com>
48873
48874         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
48875         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
48876         GLIBC specific code.
48877
48878 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48879
48880         Make regex safe for g++.  This fixes one real bug (an "err"
48881         that should have been "*err").  g++ problem reported by
48882         Sam Steingold.
48883         * lib/regex_internal.h (re_calloc): New macro, consistent with
48884         re_malloc etc.  All callers of calloc changed to use re_calloc.
48885         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
48886         not int.  All callers changed.
48887         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
48888         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
48889         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
48890         (find_recover_state): Change "err" to "*err"; this fixes what
48891         appears to be a real bug.
48892         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
48893         versus int.
48894
48895 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48896
48897         * modules/regex (Depends-on): Add malloc, since the code
48898         assumes that !malloc(0) means failure.
48899
48900 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48901
48902         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
48903
48904         alloca modernization/simplification for regex.
48905         * lib/regex.c: Remove portability cruft for alloca.  This no longer
48906         needs to be at the start of the file, and can be moved into
48907         regex_internal.h and simplified.
48908         * lib/regex_internal.h: Include <alloca.h>.
48909         (__libc_use_alloca) [!defined _LIBC]: New macro.
48910         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
48911         now works outside glibc.
48912
48913 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48914
48915         * config/srclist.txt: Add glibc bugs 1241, 1245.
48916
48917 2005-08-25  Jim Meyering  <jim@meyering.net>
48918
48919         * lib/open-safer.c: Include <config.h>.
48920         Otherwise, we'd lose LARGEFILE support in any file using
48921         e.g. "fcntl--.h"
48922
48923 2005-08-25  Bruno Haible  <bruno@clisp.org>
48924
48925         * m4/minmax.m4: Require autoconf 2.52.
48926         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
48927         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
48928         alternatives of translit over the alphabet.
48929         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
48930
48931 2005-08-24  Simon Josefsson  <jas@extundo.com>
48932
48933         * tests/test-getpass.c: New file.
48934
48935 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48936
48937         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
48938         for GNU regex features.
48939
48940 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48941
48942         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
48943         * lib/regex.h (regerror): Likewise.
48944
48945         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
48946         requires this.  (The code never needed it.)
48947
48948         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
48949         All uses of recently-renamed identifiers changed to use the new,
48950         POSIX-compliant names.  The code will build and run just fine
48951         without these changes, but it's better to eat our own dog food
48952         and use the standard-conforming names.
48953
48954         * lib/regex.h: Fix a multitude of POSIX name space violations.
48955         These changes have an effect only for programs that define
48956         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
48957         do not change anything for programs compiled in the normal way.
48958         Also, there is no effect on the ABI.
48959
48960         (_REGEX_SOURCE): New macro.
48961         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
48962         defined and _GNU_SOURCE is not; this fixes a name space violation.
48963
48964         Rename the following macros to obey POSIX requirements.
48965         The old names are still visible as macros if _REGEX_SOURCE is defined.
48966         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
48967         RE_BACKSLASH_ESCAPE_IN_LISTS.
48968         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
48969         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
48970         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
48971         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
48972         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
48973         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
48974         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
48975         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
48976         (REG_INTERVALS): renamed from RE_INTERVALS.
48977         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
48978         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
48979         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
48980         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
48981         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
48982         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
48983         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
48984         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
48985         RE_UNMATCHED_RIGHT_PAREN_ORD.
48986         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
48987         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
48988         (REG_DEBUG): renamed from RE_DEBUG.
48989         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
48990         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
48991         unusual, since we can't clash with the POSIX REG_ICASE.
48992         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
48993         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
48994         (REG_NO_SUB): renamed from RE_NO_SUB.
48995         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
48996         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
48997         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
48998         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
48999         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
49000         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
49001         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
49002         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
49003         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
49004         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
49005         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
49006         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
49007         RE_SYNTAX_POSIX_MINIMAL_BASIC.
49008         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
49009         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
49010         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
49011         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
49012         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
49013         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
49014         (REG_FIXED): Renamed from REGS_FIXED.
49015         (REG_NREGS): Renamed from RE_NREGS.
49016
49017         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
49018         of other REG_* macros, since POSIX says the user is allowed to
49019         #undef these macros selectively.
49020
49021         (reg_errcode_t): Update comment stating what other tables need
49022         to be consistent.
49023
49024         Rename the following enum values to obey POSIX requirements.
49025         The old names are still visible as macros.
49026         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
49027         is not defined, since GNU is supposed to be a superset of POSIX as
49028         much as possible, and since we want reg_errcode_t to be a signed
49029         type for implementation consistency.
49030         (_REG_NOERROR): Renamed from REG_NOERROR.
49031         (_REG_NOMATCH): Renamed from REG_NOMATCH.
49032         (_REG_BADPAT): Renamed from REG_BADPAT.
49033         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
49034         (_REG_ECTYPE): Renamed from REG_ECTYPE.
49035         (_REG_EESCAPE): Renamed from REG_EESCAPE.
49036         (_REG_ESUBREG): Renamed from REG_ESUBREG.
49037         (_REG_EBRACK): Renamed from REG_EBRACK.
49038         (_REG_EPAREN): Renamed from REG_EPAREN.
49039         (_REG_EBRACE): Renamed from REG_EBRACE.
49040         (_REG_BADBR): Renamed from REG_BADBR.
49041         (_REG_ERANGE): Renamed from REG_ERANGE.
49042         (_REG_ESPACE): Renamed from REG_ESPACE.
49043         (_REG_BADRPT): Renamed from REG_BADRPT.
49044         (_REG_EEND): Renamed from REG_EEND.
49045         (_REG_ESIZE): Renamed from REG_ESIZE.
49046         (_REG_ERPAREN): Renamed from REG_ERPAREN.
49047         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
49048         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
49049         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
49050         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
49051
49052         (_REG_RE_NAME, _REG_RM_NAME): New macros.
49053         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
49054         changed.  But support the old name if the new one is not defined
49055         and if _REGEX_SOURCE.
49056
49057         Change the following member names in struct re_pattern_buffer.
49058         The old names are still supported if !_REGEX_SOURCE.
49059         The new names are always supported, regardless of _REGEX_SOURCE.
49060         (re_buffer): Renamed from buffer.
49061         (re_allocated): Renamed from allocated.
49062         (re_used): Renamed from used.
49063         (re_syntax): Renamed from syntax.
49064         (re_fastmap): Renamed from fastmap.
49065         (re_translate): Renamed from translate.
49066         (re_can_be_null): Renamed from can_be_null.
49067         (re_regs_allocated): Renamed from regs_allocated.
49068         (re_fastmap_accurate): Renamed from fastmap_accurate.
49069         (re_no_sub): Renamed from no_sub.
49070         (re_not_bol): Renamed from not_bol.
49071         (re_not_eol): Renamed from not_eol.
49072         (re_newline_anchor): Renamed from newline_anchor.
49073
49074         Change the following member names in struct re_registers.
49075         The old names are still supported if !_REGEX_SOURCE.
49076         The new names are always supported, regardless of _REGEX_SOURCE.
49077         (rm_num_regs): Renamed from num_regs.
49078         (rm_start): Renamed from start.
49079         (rm_end): Renamed from end.
49080
49081         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
49082         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
49083         Prepend __ to parameter names.
49084
49085         Undo yesterday's changes.
49086
49087 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49088
49089         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
49090         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
49091         lib/regex.c.
49092
49093 2005-08-24  Jim Meyering  <jim@meyering.net>
49094
49095         Sync from coreutils.
49096         * m4/fcntl-safer.m4: New file.
49097
49098         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
49099         and object files for this module.
49100
49101 2005-08-24  Jim Meyering  <jim@meyering.net>
49102
49103         Sync from coreutils.
49104         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
49105
49106 2005-08-24  Jim Meyering  <jim@meyering.net>
49107
49108         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
49109         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
49110
49111 2005-08-24  Jim Meyering  <jim@meyering.net>
49112
49113         * modules/fcntl-safer: New module.
49114         * modules/fts (Depends-on): Add fcntl-safer.
49115         * MODULES.html.sh (File descriptor based Input/Output):
49116         Add fcntl-safer.
49117
49118 2005-08-24  Bruno Haible  <bruno@clisp.org>
49119
49120         Support for unit test modules.
49121         * modules/README: Mention tests modules.
49122         * modules/TEMPLATE-TESTS: New file.
49123         * gnulib-tool: New options --extract-tests-module, --with-tests and
49124         --tests-base (unused for the moment).
49125         (testsbase, inctests): New variables.
49126         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
49127         (func_verify_module): Exclude TEMPLATE-TESTS.
49128         (func_verify_nontests_module, func_verify_tests_module): New functions.
49129         (func_get_dependencies): Add implicit dependency for tests modules.
49130         (func_get_tests_module): New function.
49131         (func_modules_transitive_closure): When --with-tests was specified,
49132         include the unit tests as well, unless explicitly avoided.
49133         (func_emit_lib_Makefile_am): Ignore the tests modules here.
49134         (func_emit_tests_Makefile_am): New function.
49135         (func_create_testdir): When --with-tests was specified, emit a
49136         tests/ directory.
49137         * MODULES.html.sh (Future developments): Update.
49138
49139 2005-08-24  Bruno Haible  <bruno@clisp.org>
49140
49141         * modules/tls-tests: New file.
49142         * tests/test-tls.c: New file, from GNU gettext.
49143
49144 2005-08-24  Bruno Haible  <bruno@clisp.org>
49145
49146         * modules/lock-tests: New file.
49147         * tests/test-lock.c: New file, from GNU gettext.
49148
49149 2005-08-24  Bruno Haible  <bruno@clisp.org>
49150
49151         * lib/lock.h: Add multiple inclusion guard.
49152         * lib/tls.h: Add multiple inclusion guard.
49153
49154 2005-08-24  Bruno Haible  <bruno@clisp.org>
49155
49156         * gnulib-tool: Add support for the --aux-dir option to
49157         --create-testdir, --create-megatestdir, --test, --megatest.
49158         (func_create_testdir, func_create_megatestdir): Optionally emit a
49159         AC_CONFIG_AUX_DIR directive.
49160         (create-testdir, create-megatestdir, test, megatest): Provide a
49161         default value for $auxdir.
49162
49163 2005-08-24  Bruno Haible  <bruno@clisp.org>
49164
49165         * gnulib-tool (import): Use compound statement instead of subshell
49166         where possible.
49167
49168 2005-08-24  Bruno Haible  <bruno@clisp.org>
49169
49170         * gnulib-tool (import): Change --aux-dir default to "build-aux".
49171
49172 2005-08-24  Bruno Haible  <bruno@clisp.org>
49173
49174         * gnulib-tool (func_version): Update.
49175
49176 2005-08-24  Bruno Haible  <bruno@clisp.org>
49177
49178         * gnulib-tool (func_import, func_create_testdir,
49179         func_create_megatestdir): Quote all autoconf macro arguments.
49180
49181 2005-08-24  Bruno Haible  <bruno@clisp.org>
49182
49183         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
49184         option --force, because --force causes the aclocal.m4 of each
49185         subdirectory to be newer than the corresponding config.h.in.
49186
49187 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49188
49189         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
49190         All contents moved to gl_REGEX.
49191         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
49192         assume that it does.
49193
49194 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49195
49196         * lib/regex.h (REG_NOSYS)
49197         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
49198         Define, since POSIX requires it as of 2001.
49199         (_REG_ENOSYS)
49200         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
49201         New private symbol, used to keep the enum signed in all cases.
49202         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
49203         Youngman in
49204         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
49205
49206         * lib/regex_internal.c (re_string_skip_chars, register_state):
49207         (calc_state_hash):
49208         Remove forward decls; no longer needed now that we use prototypes.
49209         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
49210         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
49211         (clean_state_log_if_needed): Likewise.
49212
49213 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49214
49215         * config/srclist.txt: Add glibc bugs 1231-1233.
49216
49217 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49218
49219         Fix problems reported by Sam Steingold in
49220         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
49221         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
49222         assumed that reg_errcode_t is a signed type, which is not
49223         necessarily true if _XOPEN_SOURCE is not defined.
49224         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
49225         since some compilers warn about it otherwise.
49226
49227 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49228
49229         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
49230         (init_word_char, create_initial_state, duplicate_node_closure):
49231         (fetch_token, peek_token_bracket, build_range_exp):
49232         (build_collating_symbol): Remove forward decls; no longer needed
49233         now that we use prototypes.
49234
49235         * lib/regcomp.c:
49236         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
49237         (re_compile_fastmap_iter, regcomp, regerror, regfree):
49238         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
49239         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
49240         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
49241         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
49242         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
49243         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
49244         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
49245         (build_range_exp, build_collating_symbol, parse_bracket_exp):
49246         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
49247         (build_charclass, build_charclass_op, fetch_number, create_tree):
49248         (create_token_tree, mark_opt_subexp, duplicate_tree):
49249         Use prototypes rather than old-style definitions.
49250
49251         * lib/regex_internal.c:
49252         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
49253         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
49254         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49255         (re_string_reconstruct, re_string_peek_byte_case):
49256         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
49257         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49258         (re_node_set_init_copy, re_node_set_add_intersect):
49259         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49260         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49261         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49262         (re_acquire_state, re_acquire_state_context, register_state):
49263         (create_ci_newstate, create_cd_newstate, free_state):
49264         Likewise.
49265         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
49266         re_search_2):
49267         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
49268         (re_search_internal, prune_impossible_nodes):
49269         (acquire_init_state_context, check_matching, static):
49270         (check_halt_node_context, check_halt_state_context, proceed_next_node):
49271         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
49272         (update_regs, sift_states_backward, build_sifted_states):
49273         (clean_state_log_if_needed, merge_state_array):
49274         (update_cur_sifted_state, add_epsilon_src_nodes):
49275         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
49276         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
49277         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
49278         (find_recover_state, check_subexp_matching_top, transit_state_mb):
49279         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
49280         (check_arrival, check_arrival_add_next_nodes):
49281         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49282         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49283         (check_node_accept_bytes, check_node_accept, extend_buffers):
49284         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
49285         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
49286         (sift_ctx_init):
49287         Likewise.
49288
49289         * lib/regex_internal.h:
49290         (re_string_allocate, re_string_construct, re_string_reconstruct):
49291         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
49292         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
49293         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
49294         (re_string_context_at, re_string_peek_byte_case):
49295         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
49296         is defined, since we now use prototypes always.
49297
49298         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
49299         C89 or better.  All uses removed.
49300
49301 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49302
49303         * config/srclist.txt: Add glibc bugs 1220-1227.
49304
49305 2005-08-20  Jim Meyering  <jim@meyering.net>
49306
49307         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
49308         of unused local, dfa.
49309
49310 2005-08-20  Bruno Haible  <bruno@clisp.org>
49311
49312         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
49313
49314 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49315
49316         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
49317         (re_node_set_insert_last, re_dfa_add_node):
49318         Rename local variables to avoid GCC shadowing warnings.
49319
49320 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49321
49322         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
49323         [defined lint]: Suppress bogus uninitialized-variable warnings.
49324
49325         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
49326         and let the caller return REG_ESPACE if out of space.  This
49327         removes an uninitialied-variable warning with GCC 4.0.1, and also
49328         avoids taking the address of a local variable.  All callers
49329         changed.
49330
49331 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49332
49333         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
49334         $LIBCSRC/posix/regexec.c.
49335         Add glibc bug 1217 for regcomp.c.
49336
49337 2005-08-19  Jim Meyering  <jim@meyering.net>
49338
49339         * lib/regexec.c (proceed_next_node): Redo local variables to
49340         avoid GCC shadowing warnings.
49341
49342 2005-08-18  Bruno Haible  <bruno@clisp.org>
49343
49344         * lib/strstr.c (strstr): Fix return value in multibyte case.
49345         * lib/strcasestr.c (strcasestr): Likewise.
49346
49347 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49348
49349         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
49350
49351 2005-08-17  Jim Meyering  <jim@meyering.net>
49352
49353         Make the %s format (seconds since the epoch) work for a negative
49354         number and when used with a zero-padded field width, e.g. %015s.
49355
49356         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
49357         label so that it precedes the code to set `digits'.  Otherwise,
49358         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
49359         print `00-22'.  Now, it prints `-0022', as it should.
49360
49361 2005-08-17  Bruno Haible  <bruno@clisp.org>
49362
49363         * modules/strstr (Files): Add m4/mbrtowc.m4.
49364         (Depends-on): Add mbuiter.
49365
49366 2005-08-17  Bruno Haible  <bruno@clisp.org>
49367
49368         * modules/strcasestr: New file.
49369         * MODULES.html.sh (String handling, based on ANSI C 89): Add
49370         strcasestr.
49371
49372 2005-08-17  Bruno Haible  <bruno@clisp.org>
49373
49374         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
49375
49376 2005-08-17  Bruno Haible  <bruno@clisp.org>
49377
49378         * modules/mbuiter: New file.
49379         * MODULES.html.sh (Extended multibyte and wide character utilities):
49380         Add mbuiter.
49381
49382 2005-08-17  Bruno Haible  <bruno@clisp.org>
49383
49384         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
49385         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
49386
49387 2005-08-17  Bruno Haible  <bruno@clisp.org>
49388
49389         * m4/strcasestr.m4: New file.
49390
49391 2005-08-17  Bruno Haible  <bruno@clisp.org>
49392
49393         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
49394         * lib/strstr.c: Completely rewritten, with multibyte locale support.
49395
49396 2005-08-17  Bruno Haible  <bruno@clisp.org>
49397
49398         * lib/strcasestr.h: New file.
49399         * lib/strcasestr.c: New file.
49400
49401 2005-08-17  Bruno Haible  <bruno@clisp.org>
49402
49403         * lib/strcasecmp.c: Use mbuiter.h.
49404
49405 2005-08-17  Bruno Haible  <bruno@clisp.org>
49406
49407         * lib/mbuiter.h: New file.
49408
49409 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
49410
49411         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
49412         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
49413         and gl_GETOPT are both invoked via different paths (as happens
49414         with GNU tar CVS because it uses both argp and getopt), the former
49415         wins.
49416
49417 2005-08-16  Bruno Haible  <bruno@clisp.org>
49418
49419         * modules/tls: New file.
49420         * MODULES.html.sh (Multithreading): Add tls.
49421
49422 2005-08-16  Bruno Haible  <bruno@clisp.org>
49423
49424         * modules/strnlen1: New file.
49425         * MODULES.html.sh (String handling): Add strnlen1.
49426
49427 2005-08-16  Bruno Haible  <bruno@clisp.org>
49428
49429         * modules/strcase (Files): Add m4/mbrtowc.m4.
49430         (Depends-on): Add strnlen1, mbchar.
49431
49432 2005-08-16  Bruno Haible  <bruno@clisp.org>
49433
49434         * modules/mbiter: New file.
49435         * MODULES.html.sh (Extended multibyte and wide character utilities):
49436         Add mbiter.
49437
49438 2005-08-16  Bruno Haible  <bruno@clisp.org>
49439
49440         * modules/mbfile: New file.
49441         * MODULES.html.sh (Extended multibyte and wide character utilities):
49442         Add mbfile.
49443
49444 2005-08-16  Bruno Haible  <bruno@clisp.org>
49445
49446         * modules/mbchar: New file.
49447         * MODULES.html.sh (Extended multibyte and wide character utilities):
49448         New section.
49449
49450 2005-08-16  Bruno Haible  <bruno@clisp.org>
49451
49452         * m4/tls.m4: New file, from GNU gettext.
49453
49454 2005-08-16  Bruno Haible  <bruno@clisp.org>
49455
49456         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
49457         always.
49458         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
49459
49460 2005-08-16  Bruno Haible  <bruno@clisp.org>
49461
49462         * m4/mbiter.m4: New file.
49463
49464 2005-08-16  Bruno Haible  <bruno@clisp.org>
49465
49466         * m4/mbfile.m4: New file.
49467
49468 2005-08-16  Bruno Haible  <bruno@clisp.org>
49469
49470         * m4/mbchar.m4: New file.
49471
49472 2005-08-16  Bruno Haible  <bruno@clisp.org>
49473
49474         * lib/tls.h: New file, from GNU gettext.
49475         * lib/tls.c: New file, from GNU gettext.
49476
49477 2005-08-16  Bruno Haible  <bruno@clisp.org>
49478
49479         * lib/strnlen1.h: New file.
49480         * lib/strnlen1.c: New file.
49481
49482 2005-08-16  Bruno Haible  <bruno@clisp.org>
49483
49484         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
49485         (mbi_init): Update.
49486         (mbi_avail, mbi_advance): Let the iteration end before the terminating
49487         NUL byte, not after it.
49488
49489 2005-08-16  Bruno Haible  <bruno@clisp.org>
49490
49491         * lib/strcase.h (strcasecmp): Add note in comments.
49492         * lib/strncasecmp.c: Use code from strcasecmp.c.
49493         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
49494         (strcasecmp): Work correctly in multibyte locales.
49495
49496 2005-08-16  Bruno Haible  <bruno@clisp.org>
49497
49498         * lib/mbiter.h: New file.
49499
49500 2005-08-16  Bruno Haible  <bruno@clisp.org>
49501
49502         * lib/mbfile.h: New file.
49503
49504 2005-08-16  Bruno Haible  <bruno@clisp.org>
49505
49506         * lib/mbchar.h: New file.
49507         * lib/mbchar.c: New file.
49508
49509 2005-08-16  Bruno Haible  <bruno@clisp.org>
49510
49511         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
49512         the valid ones. Makes the comparison operations transitive:
49513         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
49514         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
49515
49516 2005-08-15  Simon Josefsson  <jas@extundo.com>
49517
49518         * modules/ssize_t (License): Change to 'unlimited'.
49519
49520         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
49521
49522 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49523
49524         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
49525         Add comments for each pending glibc patch.
49526
49527 2005-08-15  Bruno Haible  <bruno@clisp.org>
49528
49529         * lib/regex.h (__restrict_arr): Don't define to __restrict if
49530         __cplusplus is defined.
49531
49532 2005-08-14  Jim Meyering  <jim@meyering.net>
49533
49534         Sync from coreutils.
49535
49536         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
49537         Use the hash-table-based cycle-detection code not just when
49538         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
49539         Reported by James Youngman in
49540         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
49541         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
49542         FTS_TIGHT_CYCLE_CHECK.
49543         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
49544         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
49545         once again.
49546         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
49547         * lib/fts.c (fd_safer): Remove decl.
49548         Include fcntl--.h rather than unistd-safer.h
49549         (fts_safe_changedir): Don't call fd_safer; no longer needed
49550         now that we include fcntl--.h.
49551
49552 2005-08-12  Simon Josefsson  <jas@extundo.com>
49553
49554         * modules/getndelim2: Use ssize_t module.
49555         * modules/getnline: Likewise.
49556         * modules/safe-read: Likewise.
49557         * modules/xreadlink: Likewise.
49558
49559         * modules/ssize_t: New file.
49560
49561 2005-08-12  Simon Josefsson  <jas@extundo.com>
49562
49563         * m4/readline.m4: Look for termcap, curses or ncurses if required.
49564
49565 2005-08-12  Simon Josefsson  <jas@extundo.com>
49566
49567         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49568         ssize_t.
49569
49570 2005-08-12  Simon Josefsson  <jas@extundo.com>
49571
49572         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
49573         readline, getdelim and check_version.
49574         (Support for systems lacking ISO C 99: Sizes of integer types):
49575         Add size_max.
49576
49577 2005-08-12  Bruno Haible  <bruno@clisp.org>
49578
49579         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
49580
49581 2005-08-11  Simon Josefsson  <jas@extundo.com>
49582
49583         * modules/readline: New file.
49584
49585         * modules/strnlen (Files): Add strnlen.h.
49586
49587 2005-08-11  Simon Josefsson  <jas@extundo.com>
49588
49589         * m4/readline.m4: New file.
49590
49591 2005-08-11  Simon Josefsson  <jas@extundo.com>
49592
49593         * lib/readline.h, readline.c: New file.
49594
49595 2005-08-11  Simon Josefsson  <jas@extundo.com>
49596
49597         * doc/gnulib.texi (Initial import, Finishing touches): Mention
49598         gl_AVOID.
49599
49600 2005-08-11  Bruno Haible  <bruno@clisp.org>
49601
49602         * lib/strnlen.h (strnlen): Change parameter name to match comment.
49603
49604 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
49605
49606         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
49607
49608 2005-08-10  Simon Josefsson  <jas@extundo.com>
49609
49610         * tests/test-iconvme.c: New file.
49611
49612 2005-08-10  Simon Josefsson  <jas@extundo.com>
49613
49614         * m4/strnlen.m4: New file.
49615
49616         * m4/strndup.m4: Don't check for strnlen declaration, done in
49617         strnlen.m4.
49618
49619 2005-08-10  Simon Josefsson  <jas@extundo.com>
49620
49621         * lib/strndup.c: Use strnlen.h.
49622
49623         * lib/strnlen.h: New file.
49624
49625 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49626
49627         * README: Typos.
49628
49629 2005-08-02  Simon Josefsson  <jas@extundo.com>
49630
49631         * modules/readline: New file.
49632
49633 2005-08-02  Simon Josefsson  <jas@extundo.com>
49634
49635         * modules/getdelim: New file.
49636
49637         * modules/getline: Rewrite, don't use getndelim2.
49638
49639 2005-08-02  Simon Josefsson  <jas@extundo.com>
49640
49641         * m4/getline.m4: Separate out getdelim stuff into separate module.
49642
49643         * m4/getdelim.m4: New file.
49644
49645 2005-08-02  Simon Josefsson  <jas@extundo.com>
49646
49647         * lib/getline.h, getline.c: Rewrite.
49648
49649         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
49650
49651 2005-07-31  Bruno Haible  <bruno@clisp.org>
49652
49653         * lib/lock.h (gl_lock_initializer): New macro.
49654         (gl_lock_define_initialized): Use it.
49655         (gl_rwlock_initializer): New macro.
49656         (gl_rwlock_define_initialized): Use it.
49657         (gl_recursive_lock_initializer): New macro.
49658         (gl_recursive_lock_define_initialized): Use it.
49659
49660 2005-07-30  Karl Berry  <karl@gnu.org>
49661
49662         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
49663         Report from Ben Pfaff, regarding getopt.
49664
49665 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
49666
49667         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
49668         normal way.
49669         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
49670         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
49671         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
49672         (gl_GETOPT): Use the new macros.  Most of the implementation
49673         is moved to the new macros.  This is for programs like Emacs
49674         that don't want all the functionality of gl_GETOPT.
49675
49676 2005-07-26  Bruno Haible  <bruno@clisp.org>
49677
49678         * m4/lock.m4: Update from GNU gettext.
49679
49680 2005-07-26  Bruno Haible  <bruno@clisp.org>
49681
49682         * lib/lock.h: Update from GNU gettext.
49683         * lib/lock.c: Update from GNU gettext.
49684
49685 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
49686
49687         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
49688         obsolescent AC_TRY_RUN.  Include the default includes files, for
49689         'exit'.
49690
49691 2005-07-24  Bruno Haible  <bruno@clisp.org>
49692
49693         * modules/visibility: New file.
49694         * MODULES.html.sh (Misc): Add visibility.
49695
49696 2005-07-24  Bruno Haible  <bruno@clisp.org>
49697
49698         * m4/visibility.m4: New file.
49699
49700 2005-07-24  Bruno Haible  <bruno@clisp.org>
49701
49702         * doc/visibility.texi: New file.
49703
49704 2005-07-22  Bruno Haible  <bruno@clisp.org>
49705
49706         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
49707         $(ALLOCA_H), redundant through BUILT_SOURCES.
49708         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
49709         redundant through BUILT_SOURCES.
49710         * modules/byteswap (Makefile.am): Remove explicit dependency on
49711         $(BYTESWAP_H), redundant through BUILT_SOURCES.
49712         * modules/fnmatch (Makefile.am): Remove explicit dependency on
49713         $(FNMATCH_H), redundant through BUILT_SOURCES.
49714         * modules/getopt (Makefile.am): Remove explicit dependency on
49715         $(GETOPT_H), redundant through BUILT_SOURCES.
49716         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
49717         redundant through BUILT_SOURCES.
49718         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
49719         redundant through BUILT_SOURCES.
49720         * modules/stdbool (Makefile.am): Remove explicit dependency on
49721         $(STDBOOL_H), redundant through BUILT_SOURCES.
49722         * modules/stdint (Makefile.am): Remove explicit dependency on
49723         $(STDINT_H), redundant through BUILT_SOURCES.
49724         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
49725         Remove explicit dependency on $(SYSEXITS_H).
49726         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
49727
49728 2005-07-18  Simon Josefsson  <jas@extundo.com>
49729
49730         * lib/check-version.c (check_version): Accept identical versions too.
49731
49732 2005-07-18  Bruno Haible  <bruno@clisp.org>
49733
49734         * modules/lock: New file.
49735         * MODULES.html.sh (Multithreading): New section.
49736
49737 2005-07-18  Bruno Haible  <bruno@clisp.org>
49738
49739         * m4/lock.m4: New file, from GNU gettext.
49740
49741 2005-07-18  Bruno Haible  <bruno@clisp.org>
49742
49743         * lib/lock.h: New file, from GNU gettext.
49744         * lib/lock.c: New file, from GNU gettext.
49745
49746 2005-07-18  Bruno Haible  <bruno@clisp.org>
49747
49748         * lib/lock.h (gl_once_t): New type.
49749         (gl_once_define, gl_once): New macros.
49750         * lib/lock.c (fresh_once): New variable.
49751         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
49752         functions.
49753
49754 2005-07-16  Simon Josefsson  <jas@extundo.com>
49755
49756         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
49757         workaround, suggested by Bruno.
49758
49759 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
49760
49761         * modules/xalloc (Depends-on): Add xalloc-die.
49762         * modules/xvasprintf (Depends-on): Add xalloc-die.
49763
49764 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
49765
49766         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
49767         with a minor change.
49768
49769 2005-07-15  Bruno Haible  <bruno@clisp.org>
49770
49771         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
49772         When using lib/poll.c, define poll as rpl_poll.
49773
49774 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
49775
49776         * modules/argp (Depends-on): Remove unlocked-io.
49777
49778 2005-07-14  Derek Price  <derek@ximbiot.com>
49779
49780         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
49781         for glob symlink bug.
49782
49783 2005-07-14  Bruno Haible  <bruno@clisp.org>
49784
49785         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
49786         Instead, test for *_unlocked function declarations directly.
49787
49788 2005-07-11  Simon Josefsson  <jas@extundo.com>
49789
49790         * modules/size_max: New file.
49791
49792         * modules/xsize: Depend on size_max module for size_max.m4.
49793
49794 2005-07-11  Simon Josefsson  <jas@extundo.com>
49795
49796         * lib/size_max.h: New file.
49797
49798 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
49799
49800         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
49801         copyright symbol and the year.
49802         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
49803         (version_etc_va): Use parameterized copyright notice.
49804         Reword to conform to the current GNU coding standards.
49805
49806 2005-07-11  Karl Berry  <karl@gnu.org>
49807
49808         * doc/gnulib.texi (Quoting): new node.
49809         (Initial import): more info, from Patrice.
49810
49811 2005-07-11  Bruno Haible  <bruno@clisp.org>
49812
49813         * gnulib-tool (func_usage): Document option --avoid.
49814         (Command line options): Handle --avoid.
49815         (func_acceptable): New function.
49816         (func_modules_transitive_closure): Use it.
49817
49818 2005-07-11  Bruno Haible  <bruno@clisp.org>
49819
49820         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
49821         Reported by Jim Meyering.
49822
49823 2005-07-10  Bruno Haible  <bruno@clisp.org>
49824
49825         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
49826         Needed when size_t is smaller than 'unsigned int'.
49827         Reported by Paul Eggert.
49828
49829 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49830
49831         * modules/argp (Depends-on): Add unlocked-io
49832
49833 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49834
49835         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
49836         block of defines.
49837
49838 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
49839
49840         * config/srclist.txt: Comment out regcomp.c, since we have a porting
49841         fix now.
49842
49843 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
49844         and Paul Eggert  <eggert@cs.ucla.edu>
49845
49846         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
49847         in wint_t, not wchar_t.  Remove now-unnecessary cast.
49848
49849 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49850
49851         * modules/regex (Files): Add lib/regex_internal.c,
49852         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
49853         (Depends-on): Add extensions.
49854         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
49855
49856 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49857
49858         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
49859         pathconf.
49860         * m4/same.m4 (gl_SAME): Likewise.
49861         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
49862
49863         * m4/regex.m4: Adjust to new libc regex implementation.
49864         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
49865         all the .c and .h parts of (the new) regex.
49866         Quote the m4 stuff better.
49867         Check for RE_ICASE bug of old gnulib.
49868         Check for REG_STARTEND of recent libc.
49869         Rename local variables from jm_* to gl_*.
49870         Quote operand of "test -f".
49871         Say "recent enough" version of libc, not "version 2".
49872         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
49873         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
49874         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
49875         Remove check for btowc, isascii.
49876         Require AM_LANGINFO_CODESET.
49877
49878 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49879
49880         * lib/regex.c, regex.h: Sync from libc.
49881         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
49882         * lib/regexec.c:
49883         New files, synced from libc, except that regex_internal.h
49884         currently has a small porting fix.
49885
49886 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49887
49888         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
49889         regex_internal.c, regexec.c.
49890         Add regex_internal.h too, but as a comment, since the libc version
49891         is currently broken in gnulib mode.
49892
49893 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49894
49895         Support programs like Emacs that use gnulib but not gettext.
49896         * MODULES.html.sh (Internationalization functions): Add gettext-h.
49897         * modules/gettext-h: New file.
49898         * modules/gettext (Files): Remove lib/gettext.h.
49899         (Depends-on): Add gettext-h.
49900         (Makefile.am): Remove lib_SOURCES.
49901         * modules/argmatch, modules/c-stack, modules/closeout:
49902         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
49903         * modules/execute, modules/file-type, modules/getaddrinfo:
49904         * modules/getopt, modules/human, modules/javacomp:
49905         * modules/javaexec, modules/mkdir-p, modules/obstack:
49906         * modules/openat, modules/pagealign_alloc, modules/pipe:
49907         * modules/quotearg, modules/regex, modules/rpmatch:
49908         * modules/unicodeio, modules/userspec, modules/version-etc:
49909         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
49910         * modules/xsetenv:
49911         Depend on gettext-h, not gettext.
49912
49913 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
49914
49915         * gnulib-tool (func_import): Add support for 'public domain' license.
49916         * modules/alloca, modules/atexit, modules/memmove:
49917         Now public domain, not GPL.
49918         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
49919         * modules/realloc, modules/strerror, modules/strtod:
49920         Now LGPL, not GPL.
49921
49922 2005-07-05  Bruno Haible  <bruno@clisp.org>
49923
49924         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
49925         autoconf CVS. Needed for mingw.
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         * modules/strftime (Depends-on): Remove dependency on tzset.
49931
49932 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49933
49934         Remove the dependency of the strftime module on the tzset module.
49935         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
49936         gl_FUNC_TZSET_CLOBBER.
49937
49938 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49939
49940         Remove the dependency of the strftime module on the tzset module.
49941         * lib/strftime.c (my_strftime)
49942         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
49943         Copy the input structure, to work around some of the bug with
49944         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
49945         Solaris releases, you should also use the tzset module, but we won't
49946         require it as a dependency any more since we don't want LGPLed code
49947         to depend on GPLed code.
49948
49949 2005-07-02  Jim Meyering  <jim@meyering.net>
49950
49951         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
49952         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
49953         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
49954         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
49955
49956 2005-07-02  Jim Meyering  <jim@meyering.net>
49957
49958         * lib/backupfile.c (backup_args): Change a `0' to NULL.
49959
49960 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49961
49962         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
49963         declares only 'struct timespec;' (!).
49964
49965 2005-07-01  Jim Meyering  <jim@meyering.net>
49966
49967         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
49968         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
49969         * lib/save-cwd.c, tempname.c:
49970         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
49971         and don't include <sys/file.h>).
49972
49973 2005-06-29  Jim Meyering  <jim@meyering.net>
49974
49975         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
49976         type name.  Use the variable name instead.
49977         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
49978         Likewise.
49979
49980 2005-06-28  Simon Josefsson  <jas@extundo.com>
49981
49982         * modules/check-version (Files): Add check-version.m4.
49983
49984 2005-06-28  Simon Josefsson  <jas@extundo.com>
49985
49986         * m4/check-version.m4: New file, suggested by Jim Meyering
49987         <jim@meyering.net>.
49988
49989 2005-06-28  Simon Josefsson  <jas@extundo.com>
49990
49991         * lib/check-version.h, lib/check-version.c: New files.
49992
49993 2005-06-28  Simon Josefsson  <jas@extundo.com>
49994
49995         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
49996         collision with global variable.  Better indentation.  Don't
49997         increment buffer pointer beyond buffer end.  Based on comments
49998         from Paul Eggert <eggert@cs.ucla.edu>.
49999
50000         * lib/base64.h: Indent.
50001
50002 2005-06-28  Simon Josefsson  <jas@extundo.com>
50003
50004         * doc/gnulib.texi (Library version handling): New section.
50005
50006 2005-06-28  Jim Meyering  <jim@meyering.net>
50007
50008         * check-module (find_included_lib_files): Hard-code another
50009         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
50010         but modules/fts-lgpl (correctly) does not list those files.
50011
50012         * modules/canonicalize (Files): Add lib/pathmax.h.
50013
50014 2005-06-25  Simon Josefsson  <jas@extundo.com>
50015
50016         * modules/check-version: New file.
50017
50018 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
50019
50020         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
50021         initializer of struct addrinfo, as an indication that we don't
50022         care how many members the structure has.
50023
50024 2005-06-24  Derek Price  <derek@ximbiot.com>
50025         and Bruno Haible  <bruno@clisp.org>
50026
50027         Remove stat module & update lstat.
50028         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
50029         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50030         * m4/stat.m4: Remove this file.
50031
50032 2005-06-24  Derek Price  <derek@ximbiot.com>
50033         and Bruno Haible  <bruno@clisp.org>
50034
50035         Remove stat module & update lstat.
50036         * lib/stat.c: Remove this file...
50037         (slash_aware_lstat): ...moving this content and its support...
50038         * lib/lstat.c (rpl_lstat): ...into here.
50039         * lib/lstat.h: New file.
50040
50041 2005-06-24  Derek Price  <derek@ximbiot.com>
50042         and Bruno Haible  <bruno@clisp.org>
50043
50044         Remove stat module & update lstat.
50045         * config/srclist.txt (libc sources): Remove stat.
50046
50047 2005-06-24  Derek Price  <derek@ximbiot.com>
50048         and Bruno Haible  <bruno@clisp.org>
50049
50050         Remove stat module & update lstat.
50051         * MODULES.html.sh (stat): Remove.
50052         * MODULES.html: Regenerated.
50053         * modules/lstat (Description): Correct function name.
50054         (Files): Add "lstat.h".
50055         (Depends-on): Remove stat, add xalloc, stat-macros.
50056         * modules/stat: Remove this file.
50057         (Include): Add "lstat.h", remove <sys/stat.h>.
50058
50059 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50060
50061         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
50062         (ranged_convert): Don't save conversion in a temporary struct.
50063         This causes a warning with GCC 4.0.0, and anyway in the typical
50064         case it's not worth the extra 100 bytes or so of code.
50065         (ranged_convert, __mktime_internal): When calling a function via a
50066         pointer P, use P () rather than (*P) (), as we now assume C89 or
50067         better.
50068
50069 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
50070
50071         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
50072         "who -r" failed to give output.  Problem reported by Tim Waugh.
50073
50074         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
50075         (xcalloc): Use it to avoid needless tests.
50076         Problem reported by Jim Meyering.
50077
50078 2005-06-20  Derek Price  <derek@ximbiot.com>
50079
50080         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
50081         unnecessary for Autoconfs > 2.59c.
50082
50083 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50084
50085         * lib/argp.h (__option_is_short): Check upper limit of
50086         __key. Isprint() requires its argument to have the value
50087         of an unsigned char or EOF.
50088
50089 2005-06-16  Jim Meyering  <jim@meyering.net>
50090
50091         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
50092         when either N or S is zero.
50093
50094 2005-06-16  Derek Price  <derek@ximbiot.com>
50095
50096         * m4/bison.m4: Declare YACC & YFLAGS precious.
50097
50098 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
50099
50100         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
50101         multibyte string or pattern, fall back on unibyte matching.
50102         Problem reported by James Youngman.
50103
50104 2005-06-08  Bruno Haible  <bruno@clisp.org>
50105
50106         * modules/csharpcomp: New file.
50107         * MODULES.html.sh (C#): Add csharpcomp.
50108
50109 2005-06-08  Bruno Haible  <bruno@clisp.org>
50110
50111         * m4/csharpcomp.m4: New file, from GNU gettext.
50112
50113 2005-06-08  Bruno Haible  <bruno@clisp.org>
50114
50115         * lib/csharpcomp.h: New file, from GNU gettext.
50116         * lib/csharpcomp.c: New file, from GNU gettext.
50117         * lib/csharpcomp.sh.in: New file, from GNU gettext.
50118
50119 2005-06-08  Bruno Haible  <bruno@clisp.org>
50120
50121         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
50122         warning on mingw.
50123
50124 2005-06-07  Derek Price  <derek@ximbiot.com>
50125
50126         Sync from CVS.
50127         * lib/glob_.h: Indent nested #ifdef.
50128
50129 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
50130
50131         Sync from coreutils.
50132         Use "file name" when talking about file names, instead of "filename"
50133         or "path", as per the GNU coding standards.
50134         * lib/mkdir-p.c: Renamed from makepath.c.
50135         (make_dir_parents): Renamed from make_path.  All callers changed.
50136         * lib/mkdir-p.h: Likewise.  All includers changed.
50137         * lib/filenamecat.c: Renamed from path-concat.c.
50138         (file_name_concat): Renamed from path_concat.  All callers changed.
50139         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
50140         * lib/filenamecat.h: Likewise.  All includers changed.
50141         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
50142         in comments or local variable names.
50143         * lib/basename.c: Likewise.
50144         * lib/canonicalize.c, canonicalize.h: Likewise.
50145         * lib/dirname.c, dirname.h: Likewise.
50146         * lib/euidaccess.c: Likewise.
50147         * lib/exclude.c: Likewise
50148         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
50149         * lib/fsusage.c, fsuage.h: Likewise.
50150         * lib/fts.c, fts_.h: Likewise.
50151         * lib/getcwd.c: Likewise.
50152         * lib/getloadavg.c: Likewise.
50153         * lib/mkstemp.c: Likewise.
50154         * lib/mountlist.c, mountlist.h: Likewise.
50155         * lib/openat.c, openat.h: Likewise.
50156         * lib/readlink-stub.c: Likewise.
50157         * lib/readutmp.c, readutmp.h: Likewise.
50158         * lib/rename.c: Likewise.
50159         * lib/rmdir.c: Likewise.
50160         * lib/same.c: Likewise.
50161         * lib/savedir.c: Likewise.
50162         * lib/stripslash.c: Likewise.
50163         * lib/tempname.c: Likewise.
50164         * lib/xreadlink.c: Likewise.
50165         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
50166         All uses changed.
50167         * lib/exclude.h: Likewise.
50168
50169         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
50170         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50171         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
50172         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50173         * lib/pathmax.h: Include <limits.h> unconditionally, since other
50174         files have been getting away with it for years (MORE/BSD 4.3
50175         is extinct now).
50176         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
50177         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50178
50179         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
50180         Define to 256, not 255, as per modern POSIX.
50181
50182 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
50183
50184         Sync from coreutils.
50185         Use "file name" when talking about file names, instead of "filename"
50186         or "path", as per the GNU coding standards.
50187         * MODULES.html.sh: mkdir-p renamed from makepath.
50188         filenamecat renamed from path-concat.
50189         * modules/filenamecat: Renamed from modules/path-concat.
50190         (Files): filenamecat.h and filenamecat.c renamed from
50191         path-concat.h and path-concat.c.
50192         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
50193         (Include): filenamecat.h, not path-concat.h.
50194         * modules/mkdir-p: Renamed from modules/makepath.
50195         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
50196         makepath.c.
50197         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
50198         (Include): mkdir-p.h, not makepath.h.
50199
50200 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
50201
50202         Sync from coreutils.
50203         * m4/mkdir-p.m4: Renamed from makepath.m4.
50204         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
50205         Rename files from makepath.c to mkdir-p.c, and from
50206         makepath.h to mkdir-p.h.
50207         * m4/filenamecat.m4: Renamed from path-concat.m4.
50208         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
50209         Rename files from path-concat.c to filenamecat.c,
50210         and from path-concat.h to filenamecat.h.
50211         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
50212         "file name" in local variables or comments.
50213         * m4/rename.m4: Likewise.
50214
50215 2005-06-01  Bruno Haible  <bruno@clisp.org>
50216
50217         * modules/csharpexec: New file.
50218         * MODULES.html.sh (C#): New section.
50219
50220 2005-06-01  Bruno Haible  <bruno@clisp.org>
50221
50222         * m4/csharp.m4: New file, from GNU gettext.
50223         * m4/csharpexec.m4: New file, from GNU gettext.
50224
50225 2005-06-01  Bruno Haible  <bruno@clisp.org>
50226
50227         * lib/csharpexec.h: New file, from GNU gettext.
50228         * lib/csharpexec.c: New file, from GNU gettext.
50229         * lib/csharpexec.sh.in: New file, from GNU gettext.
50230
50231 2005-05-31  Derek Price  <derek@ximbiot.com>
50232             Paul Eggert  <eggert@cs.ucla.edu>
50233
50234         Sync from cvs.
50235         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50236
50237 2005-05-31  Derek Price  <derek@ximbiot.com>
50238             Paul Eggert  <eggert@cs.ucla.edu>
50239
50240         Sync from cvs.
50241         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50242
50243 2005-05-29  Derek Price  <derek@ximbiot.com>
50244
50245         * config/srclist.txt (glob_.h, glob.c): Add these files.
50246
50247 2005-05-29  Derek Price  <derek@ximbiot.com>
50248
50249         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
50250         * modules/glob: New file.
50251         * modules/getlogin_r: Add link to POSIX spec in description.
50252
50253 2005-05-29  Derek Price  <derek@ximbiot.com>
50254             Paul Eggert  <eggert@cs.ucla.edu>
50255
50256         * m4/glob.m4: New file.
50257
50258 2005-05-29  Derek Price  <derek@ximbiot.com>
50259             Paul Eggert  <eggert@cs.ucla.edu>
50260
50261         * lib/glob_.h, lib/glob.c: New files.
50262
50263 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
50264
50265         * modules/fts (Files): Remove m4/inttypes-pri.m4.
50266         * modules/fts-lgpl (Depends-on): Remove gettext.
50267
50268 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
50269
50270         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
50271         and don't require gt_INTTYPES_PRI.
50272
50273 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
50274
50275         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
50276
50277         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
50278         the configuration hassle isn't worth it.
50279         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
50280         (LONGEST_MODIFIER, PRIuMAX): Remove.
50281
50282 2005-05-27  Bruno Haible  <bruno@clisp.org>
50283
50284         * lib/getlogin_r.h: Remove second include of <stddef.h>.
50285
50286 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
50287
50288         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
50289         _POSIX_PTHREAD_SEMANTICS for Solaris.
50290
50291 2005-05-25  Derek Price  <derek@ximbiot.com>
50292
50293         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
50294
50295 2005-05-25  Derek Price  <derek@ximbiot.com>
50296             Paul Eggert  <eggert@cs.ucla.edu>
50297
50298         * modules/getlogin_r, m4/getlogin_r.m4: New files.
50299         * lib/getlogin_r.c, getlogin_r.h: New files.
50300
50301 2005-05-25  Bruno Haible  <bruno@clisp.org>
50302             Derek Price  <derek@ximbiot.com>
50303
50304         * lib/getlogin_r.h: Simplify API documentation.
50305
50306 2005-05-23  Derek Price  <derek@ximbiot.com>
50307
50308         * modules/minmax (Files): Add m4/minmax.m4.
50309         (configure.ac): Add gl_MINMAX.
50310
50311 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
50312
50313         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
50314         so that unistd-safer.h (GPL'ed code) need not be included.
50315
50316 2005-05-22  Bruno Haible  <bruno@clisp.org>
50317
50318         * m4/minmax.m4: New file.
50319         Based on a patch by Derek Price <derek@ximbiot.com>.
50320
50321 2005-05-22  Bruno Haible  <bruno@clisp.org>
50322
50323         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
50324         (INT64_MIN): Fix definition.
50325         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
50326
50327         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
50328         NEED_SIGNED_INT_TYPES.
50329
50330         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
50331         HAVE_SYSTEM_INTTYPES.
50332
50333 2005-05-22  Bruno Haible  <bruno@clisp.org>
50334
50335         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
50336         Also include <sys/param.h> if it defines MIN, MAX.
50337         Based on a patch by Derek Price <derek@ximbiot.com>.
50338
50339 2005-05-21  Jim Meyering  <jim@meyering.net>
50340
50341         * modules/fts (Files): Add m4/inttypes-pri.m4.
50342         (Depends-on): Add lstat and remove gettext.  Alphabetize.
50343
50344 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50345
50346         New fts module.
50347         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
50348         (setup_dir, free_dir): New functions.
50349         (enter_dir, leave_dir): Define trivial
50350         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
50351         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
50352         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
50353         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
50354         Move to fts-cycle.c.
50355         (fts_open): Use setup_dir.
50356         (fts_close): Use free_dir.
50357         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
50358         This adds a label and some gotos, but the alternatives were messier.
50359         Check for memory allocation failure when entering a dir.
50360         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
50361         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
50362         (FTS): New member fts_cycle, that is a union that contains the
50363         old active_dir_ht and cycle_state.  All uses changed to mention
50364         fts_cycle.ht and fts_cycle.state.
50365         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
50366         fts.c, with the following changes:
50367         (setup_dir, free_dir): New functions.
50368         (enter_dir): Now returns bool.  Return true if successful, false
50369         if memory exhausted.  All callers changed.
50370         Do not bother partly cleaning up on
50371         memory allocation failure; that is free_dir's job.
50372         However, free ad if hash_insert fails, to avoid memory leak.
50373         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
50374         fts->fts_options to see which union member to use.
50375
50376 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50377
50378         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
50379         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
50380
50381 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50382
50383         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
50384
50385 2005-05-20  Jim Meyering  <jim@meyering.net>
50386
50387         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
50388         Now a macro, to pacify GCC.
50389
50390 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
50391
50392         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
50393         of -1.
50394
50395 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
50396
50397         * lib/chown.c (rpl_chown): Return -1 on failure.
50398
50399 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
50400
50401         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
50402         Don't check for stddef.h.
50403         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
50404         don't use its results.
50405         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
50406         since we include them unconditionally.  Don't require
50407         AM_STDBOOL_H, since stdbool is a prerequisite.
50408         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
50409         since we assume C89 or better.
50410         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
50411         as we don't use their results.
50412         Don't check for fchdir, memmove, memset, strrchr, as we use
50413         them unconditionally.
50414         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
50415         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
50416
50417 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
50418
50419         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
50420         Include <stddef.h> unconditionally, since we assume C89 now.
50421         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
50422         * lib/fts.c: Include fts_.h first, to check interface.
50423         Do not include intprops.h; no longer needed.
50424         Include cycle-check.h and hash.h, since fts_.h no longer does.
50425         Remove unnecessary casts of closedir to void.
50426         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
50427         decide whether to decrement nlinks.
50428         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
50429         (FTS): Use struct hash_table * instead of Hash_table, so that
50430         we no longer need to include hash.h here.
50431
50432 2005-05-18  Jim Meyering  <jim@meyering.net>
50433
50434         * modules/dirfd (License): Change to LGPL.  Most of the code
50435         is already in the public domain.
50436
50437 2005-05-18  Jim Meyering  <jim@meyering.net>
50438
50439         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
50440         Reported by Yoann Vandoorselaere.
50441
50442 2005-05-17  Jim Meyering  <jim@meyering.net>
50443
50444         * m4/fts.m4: New file, from coreutils.
50445
50446 2005-05-17  Jim Meyering  <jim@meyering.net>
50447
50448         * lib/fts.c, lib/fts_.h: New files, from coreutils.
50449
50450 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50451
50452         Sync from coreutils.
50453         * m4/unlinkdir.m4: New file.
50454
50455 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50456
50457         Sync from coreutils.
50458         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
50459         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
50460         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
50461         White space changes only.
50462         * lib/makepath.c (make_path): Port to hosts where leading "//" is
50463         special.
50464         * lib/yesno.c: Include getline.h, not ctype.h.
50465         (yesno): Don't remove leading white space; POSIX doesn't allow it.
50466         Use getline to remove arbitrary restriction on response length.
50467
50468 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50469
50470         * config/srclist-update: Spell out "Street" in FSF postal
50471         mail address; this is the style the FSF seems to prefer.
50472
50473         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
50474         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
50475         this updates FSF postal mail address.
50476
50477         Sync from coreutils.
50478         * modules/unlinkdir: New file.
50479         * modules/yesno (Depends-on): Add getline.
50480         * MODULES.html.sh (File system functions): Add unlinkdir.
50481
50482 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
50483
50484         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
50485         lib/strsep.h:
50486         Change the initial comment to refer to GPL, not LGPL.
50487         gnulib-tool will change it to LGPL as needed.
50488
50489         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
50490         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
50491         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
50492         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
50493         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
50494         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
50495         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
50496         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
50497         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
50498         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
50499         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
50500         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
50501         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
50502         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
50503         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
50504         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
50505         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
50506         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
50507         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
50508         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
50509         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
50510         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
50511         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
50512         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
50513         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
50514         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
50515         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
50516         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
50517         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
50518         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
50519         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
50520         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
50521         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
50522         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
50523         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
50524         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
50525         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
50526         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
50527         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
50528         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
50529         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
50530         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
50531         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
50532         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
50533         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
50534         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
50535         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
50536         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
50537         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
50538         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
50539         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
50540         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
50541         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
50542         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
50543         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
50544         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
50545         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
50546         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
50547         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
50548         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
50549         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
50550         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
50551         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
50552         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
50553         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
50554         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
50555         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
50556         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
50557         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
50558         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
50559         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
50560         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
50561         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
50562         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
50563         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
50564         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
50565         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
50566         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
50567         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
50568         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
50569         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
50570         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
50571         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
50572         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
50573         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
50574         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
50575         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
50576         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
50577         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
50578         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
50579         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
50580         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
50581         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
50582         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
50583         lib/yesno.c, lib/yesno.h:
50584         Update FSF postal mail address.
50585
50586 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
50587
50588         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
50589         tests/test-memmem.c, tests/test-stpncpy.c:
50590         Update FSF postal mail address.
50591
50592 2005-05-13  Bruno Haible  <bruno@clisp.org>
50593
50594         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
50595         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
50596         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
50597         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
50598         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
50599         Add support for 64-bit integers in the MSVC compiler.
50600
50601 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50602
50603         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
50604
50605 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
50606
50607         * gnulib-tool (func_import): Sort and uniquify recommended includes.
50608
50609 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
50610
50611         * doc/getdate.texi (General date syntax): Don't say that date
50612         date --iso-8601=ns generates acceptable dates; it doesn't yet.
50613         Problem reported by Nic Ferrier.
50614
50615 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50616
50617         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
50618         specified in ai_socktype. Fix invalid ai_protocol
50619         check. ai_protocol is usually set to 0 or depending on
50620         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
50621         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
50622         ai_socktype / ai_protocol in the returned addrinfo structure.
50623
50624 2005-05-10  Simon Josefsson  <jas@extundo.com>
50625
50626         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
50627         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50628
50629 2005-05-10  Karl Berry  <karl@gnu.org>
50630
50631         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
50632         (from http://www.gnu.org/licenses).
50633         * doc/COPYING.LIB: also rename to COPYING.LESSER.
50634         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
50635         fdl.texi suffices.
50636
50637 2005-05-10  Karl Berry  <karl@gnu.org>
50638
50639         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
50640         (COPYING.DOC): remove.
50641
50642         * config/srclist-update: new FSF address.
50643
50644 2005-05-10  Derek Price  <derek@ximbiot.com>
50645
50646         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
50647         possible.
50648
50649 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50650             Bruno Haible  <bruno@clisp.org>
50651
50652         * modules/inet_ntop: New file.
50653         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50654         inet_ntop.
50655
50656 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50657             Bruno Haible  <bruno@clisp.org>
50658
50659         * m4/inet_ntop.m4: New file.
50660
50661 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50662             Bruno Haible  <bruno@clisp.org>
50663
50664         * lib/inet_ntop.h: New file.
50665         * lib/inet_ntop.c: New file, from glibc with modifications.
50666
50667 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
50668
50669         * modules/time_r (License): Change to LGPL.
50670         * modules/extensions (License): Change to LGPL.  Actually,
50671         the license is more permissive than that, but currently gnulib-tool
50672         doesn't know how to handle more-permissive licenses.
50673
50674         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
50675         Problem reported by Dave Love.
50676
50677 2005-05-08  Jim Meyering  <jim@meyering.net>
50678
50679         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
50680         blank.
50681
50682 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
50683
50684         * modules/argmatch (Depends-on): Add stdbool.
50685         * modules/backupfile (Depends-on): Likewise.
50686         * modules/chdir-long (Depends-on): Likewise.
50687         * modules/closeout (Depends-on): Likewise.
50688         * modules/cycle-check (Depends-on): Likewise.
50689         * modules/dirname (Depends-on): Likewise.
50690         * modules/fnmatch (Depends-on): Likewise.
50691         * modules/fsusage (Depends-on): Likewise.
50692         * modules/fwriteerror (Depends-on): Likewise.
50693         * modules/getcwd (Depends-on): Likewise.
50694         * modules/getloadavg (Depends-on): Likewise.
50695         * modules/hard-locale (Depends-on): Likewise.
50696         * modules/makepath (Depends-on): Likewise.
50697         * modules/mountlist (Depends-on): Likewise.
50698         * modules/nanosleep (Depends-on): Likewise.
50699         * modules/posixtm (Depends-on): Likewise.
50700         * modules/quotearg (Depends-on): Likewise.
50701         * modules/readtokens (Depends-on): Likewise.
50702         * modules/readtokens0 (Depends-on): Likewise.
50703         * modules/readutmp (Depends-on): Likewise.
50704         * modules/save-cwd (Depends-on): Likewise.
50705         * modules/strftime (Depends-on): Likewise.
50706         * modules/userspec (Depends-on): Likewise.
50707         * modules/utimecmp (Depends-on): Likewise.
50708         * modules/xgetcwd (Depends-on): Likewise.
50709         * modules/xnanosleep (Depends-on): Likewise.
50710         * modules/xstrtod (Depends-on): Likewise.
50711         * modules/yesno (Depends-on): Likewise.
50712
50713 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
50714
50715         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
50716         needless checks.
50717
50718 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
50719
50720         Merge from coreutils.  Among other things,
50721         add bulletproofing for cases where stdin, stdout, or stderr are closed.
50722         * lib/fd-safer.c: New file.
50723         * lib/fcntl-safer.h, open-safer.c: Remove.
50724         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
50725         * lib/dup-safer.c: Include unistd-safer.h first.
50726         Don't include errno.h.
50727         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
50728         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
50729         * lib/file-type.c: Rely on file-type.h change.
50730         * lib/getloadavg.c: Include unistd-safer.h.
50731         (getloadavg): Use safer open.
50732         * lib/getusershell.c: Include "stdio-safer.h".
50733         (getusershell): Use safer fopen.
50734         * lib/long-options.c (long_options): Use NULL rather than 0.
50735         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
50736         'free'.
50737         * lib/modechange.c: Likewise.
50738         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
50739         (MODE_DONE): New constant.
50740         (struct mode_change): Remove 'next' member.
50741         (make_node_op_equals): New function; like the old one of the
50742         same name, except it allocates an array.
50743         (mode_compile, mode_create_from_ref): Use it.
50744         (mode_compile): Allocate result as an array, not a linked list.
50745         Parse octal string ourself, so that we catch mistakes like "+0".
50746         (mode_adjust): Arg is an array, not a linked list.
50747         * lib/modechange.c: Include stat-macros.h, xalloc.h.
50748         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
50749         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
50750         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
50751         Remove.  This is now stat-macros.h's job.
50752         (talloc): Remove.  All callers replaced by xalloc, so that
50753         our invokers don't have to worry about reporting memory failures.
50754         (make_node_op_equals): Remove.
50755         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
50756         New constants.
50757         (struct mode_change): Moved here from modechange.h.
50758         (mode_append_entry): Remove.
50759         (mode_compile): Remove MASKED_OPS arg, since it encouraged
50760         apps to have incorrect behavior.  Use simpler algorithm for head
50761         and tail.  Don't futz with umask; that's now the job of mode_adjust.
50762         Detect more invalid usages rather than having somewhat-random behavior.
50763         Don't insert an "a=" action, as that leads to incorrect behavior.
50764         (mode_compile, mode_create_from_ref): Return NULL on error instead
50765         of an enum, since now there's only one way to have an error.  All
50766         callers changed.
50767         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
50768         at the correct time.  Simplify calculation of "+u" and its ilk.
50769         Don't mishandle "+X".
50770         (mode_free): Remove "register" and localize decls.
50771         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
50772         (struct mode_change): Move to modechange.c; callers don't
50773         need to see this stuff.
50774         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
50775         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
50776         (mode_change, mode_adjust): Reflect the new signatures noted above.
50777         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
50778         that might redefine system include files.
50779         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
50780         (my_usleep): Use NULL rather than (void *) 0.
50781         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
50782         Use siginterrupt to specify that system calls should be interrupted.
50783         (rpl_nanosleep): Move initialization of suspended closer to call of
50784         my_usleep.
50785         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
50786         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
50787         (desirable_utmp_entry): New function.
50788         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
50789         using x2nrealloc, to simplify logic.
50790         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
50791         size calculation.  Do not assume utmp file is a regular file.
50792         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
50793         (READ_UTMP_CHECK_PIDS): New constant.
50794         * lib/save-cwd.c: Include unistd-safer.h.
50795         (save_cwd): Use fd_safer.
50796         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
50797         [!_LIBC] Include "stat-macros.h" instead.
50798         * lib/unistd-safer.h (fd_safer): New decl.
50799
50800 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
50801
50802         * modules/getloadavg (Depends-on): Add unistd-safer.
50803         * modules/getusershell (Depends-on): Add stdio-safer.
50804         * modules/lstat (Depends-on): Remove xalloc.
50805         * modules/mkstemp (Depends-on): Add stat-macros.
50806         * modules/modechange (Depends-on): Remove xstrtol.
50807         Add stat-macros, xalloc.
50808         * modules/save-cwd (Depends-on): Add unistd-safer.
50809         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
50810         * modules/unistd-safer (Files): Add lib/fd-safer.c
50811         (Makefile.am): Remove lib_SOURCES.
50812
50813         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
50814         Remove fcntl-safer; unistd-safer supersedes it.
50815
50816 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
50817
50818         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
50819         AC_HEADER_STAT.
50820         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
50821         (gl_PREREQ_CHOWN): Remove.
50822         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
50823         it.  Don't require AC_HEADER_STAT.
50824         (gl_PREREQ_LSTAT): Remove.
50825         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
50826         Don't require AC_HEADER_STAT.
50827         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
50828         (gl_PREREQ_RMDIR): Remove.
50829         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
50830         mention stat-macros.h or AC_HEADER_STAT, since we'll make
50831         the stat-macros module a prerequisite.
50832         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
50833         * m4/filemode.m4 (gl_FILEMODE): Likewise.
50834         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
50835         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
50836         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
50837         variable names.
50838         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
50839         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
50840         variable prefixes.
50841         * m4/fcntl-safer.m4: Remove.
50842         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
50843         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
50844         Invoke gl_PREREQ_FD_SAFER.
50845         (gl_PREREQ_FD_SAFER): New macro.
50846         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
50847         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
50848         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
50849         Remove duplicate call to AC_LIBOBJ(readutmp).
50850         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
50851
50852         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
50853         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
50854
50855 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
50856
50857         * MODULES.html.sh (Misc): Add byteswap.
50858
50859 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
50860
50861         * modules/getcwd (Depends-on): Add extensions.
50862         * modules/openat (Depends-on): Likewise.
50863
50864 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
50865
50866         * modules/byteswap: New file.
50867
50868 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
50869
50870         * m4/byteswap.m4: New file.
50871
50872 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
50873
50874         * lib/byteswap_.h: New file.
50875
50876 2005-04-25  Karl Berry  <karl@gnu.org>
50877
50878         * m4/gettext.m4: Update from GNU gettext 0.14.4.
50879
50880 2005-04-25  Albert Chin  <china@thewrittenword.com>
50881
50882         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
50883         Toolkit C bug.
50884
50885 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
50886
50887         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
50888         (func_ln_if_changed) Remove forcibly for no error message
50889         in case file does not exist.
50890
50891 2005-04-19  Simon Josefsson  <jas@extundo.com>
50892
50893         * gnulib-tool (Options): Make --symlink mean --symbolic.
50894
50895 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
50896
50897         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
50898
50899 2005-04-16  Simon Josefsson  <jas@extundo.com>
50900
50901         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
50902
50903 2005-04-15  Simon Josefsson  <jas@extundo.com>
50904
50905         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
50906
50907 2005-04-15  Simon Josefsson  <jas@extundo.com>
50908
50909         * gnulib-tool: Rename --symlink to --symbolic.
50910
50911 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
50912
50913         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
50914         symbolic links to files instead of copying/moving.  Add --aux-dir,
50915         specifying directory relative --dir where auxiliary build tools
50916         are placed.
50917
50918 2005-04-14  Bruno Haible  <bruno@clisp.org>
50919
50920         * modules/allocsa (License): Change to LGPL.
50921         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50922
50923 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50924
50925         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
50926         that "UTC +1 second" continues to work.  Problem reported
50927         by Dmitry V. Levin.
50928         (relunit_snumber): New rule.
50929         (relunit): Use it.
50930
50931 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
50932
50933         * lib/getdate.y (universal_time_zone_table): New constant.
50934         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
50935         universal_time_zone_table.
50936         (lookup_zone): Prefer universal_time_zone_table to
50937         local_time_zone_table, so that "GMT" time stamps are allowed in
50938         London during the summer.  Problem reported by Ian Abbott.
50939
50940 2005-04-12  Jim Meyering  <jim@meyering.net>
50941
50942         * lib/human.c (humblock): Set *options even when returning due to
50943         xstrtoumax conversion failure.  Thanks to a used-uninitialized
50944         warning from gcc-4.
50945
50946 2005-04-09  Jim Meyering  <jim@meyering.net>
50947
50948         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
50949         -Wuninitialized: initialize tm0.tm_year.
50950
50951 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
50952
50953         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
50954         count, since there's no maximum.  All uses changed.
50955         Add member dsts_seen.
50956         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
50957         not being INT_MAX.
50958         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
50959         Use pc_rels_seen to decide whther a date is absolute.
50960
50961         * lib/getdate.y (number): Don't overwrite year.
50962         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
50963         check.
50964
50965 2005-04-02  Simon Josefsson  <jas@extundo.com>
50966
50967         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
50968         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
50969
50970 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
50971
50972         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
50973         where no absolute path name can be longer than PATH_MAX.
50974
50975 2005-03-27  Jim Meyering  <jim@meyering.net>
50976
50977         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
50978
50979 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
50980
50981         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
50982         "one's complement" -> "ones' complement" in comment, as per Knuth.
50983         "value of type" -> "type or expression" in comment.
50984         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
50985
50986 2005-03-26  Jim Meyering  <jim@meyering.net>
50987
50988         Comment nits.
50989         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
50990         Correct typos: s/or/of/.
50991
50992 2005-03-26  Jim Meyering  <jim@meyering.net>
50993
50994         * modules/check-include-files: Move to ../ and rename to...
50995         * check-module: ...this.
50996
50997 2005-03-25  Jim Meyering  <jim@meyering.net>
50998
50999         * modules/xvasprintf (Files): Add xalloc.h.
51000
51001 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
51002
51003         * modules/gettext (Files): config/config.rpath ->
51004         build-aux/config.rpath
51005         * modules/iconv (Files): Likewise.
51006         Problem reported by Oskar Liljeblad.
51007
51008 2005-03-23  Jim Meyering  <jim@meyering.net>
51009
51010         * modules/check-include-files: New script to check for
51011         missing dependencies, multiple includes, etc.
51012
51013         * modules/c-strtold (Depends-on): Add xalloc.
51014         * modules/c-strtod (Depends-on): Add xalloc.
51015         * modules/hash (Depends-on): Add xalloc.
51016         (Files): Remove lib/xalloc.h.
51017
51018         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
51019         * modules/userspec (Files): Add lib/inttostr.h.
51020
51021 2005-03-23  Jim Meyering  <jim@meyering.net>
51022
51023         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
51024
51025 2005-03-22  Jim Meyering  <jim@meyering.net>
51026
51027         * modules/stat-macros: New module.
51028         * modules/canonicalize, modules/euidaccess, modules/file-type,
51029         * modules/filemode, modules/lchown, modules/makepath,
51030         * modules/rmdir, modules/stat: Depend on new stat-macros module
51031         rather than listing lib/stat-macros.h manually.
51032         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
51033
51034 2005-03-22  Jim Meyering  <jim@meyering.net>
51035
51036         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
51037
51038 2005-03-22  Bruno Haible  <bruno@clisp.org>
51039
51040         * config/srclist.txt: Replace target directory 'config' with
51041         'build-aux'.
51042         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
51043         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
51044         ../build-aux/.
51045
51046 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
51047
51048         * modules/chdir-long (Depends-on): Add mempcpy.
51049
51050         * modules/acl, modules/backupfile, modules/c-strtod,
51051         modules/c-strtold, modules/canon-host, modules/canonicalize,
51052         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
51053         modules/exclude, modules/exitfail, modules/file-type,
51054         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
51055         modules/getdate, modules/getline, modules/getpagesize,
51056         modules/getpass, modules/getugroups, modules/group-member,
51057         modules/hard-locale, modules/hash, modules/human, modules/idcache,
51058         modules/inttostr, modules/long-options, modules/makepath,
51059         modules/md5, modules/memcasecmp, modules/memcoll,
51060         modules/modechange, modules/mountlist, modules/path-concat,
51061         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
51062         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
51063         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
51064         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
51065         modules/strftime, modules/strndup, modules/strverscmp,
51066         modules/timespec, modules/unlocked-io, modules/userspec,
51067         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
51068         modules/yesno:
51069         Remove lib_SOURCES line from Makefile.am section, as this is now
51070         done automatically by the corresponding Autoconf macro.
51071
51072 2005-03-21  Jim Meyering  <jim@meyering.net>
51073
51074         Changes imported from coreutils.
51075
51076         * lib/cycle-check.c: Don't include xalloc.h.
51077
51078         * lib/path-concat.c: Don't include assert.h.
51079         (path_concat): Remove assertion that would have triggered
51080         for ABASE starting with more than one slash.
51081         Reported by Andreas Schwab.
51082
51083         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
51084         properly when ABASE is an absolute file name.
51085         Correct the description of this function.
51086         Include <assert.h>.
51087         Add an assertion and a test driver.
51088         This fixes a bug introduced on 2004-07-02.
51089         Andreas Schwab reported the resulting failure of cp --parents:
51090         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
51091
51092 2005-03-21  Jim Meyering  <jim@meyering.net>
51093
51094         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
51095         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
51096
51097 2005-03-21  Jim Meyering  <jim@meyering.net>
51098         and  Paul Eggert  <eggert@cs.ucla.edu>
51099
51100         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
51101         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
51102         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
51103         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
51104         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
51105         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
51106         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
51107         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
51108         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
51109         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
51110         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
51111         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
51112         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
51113         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
51114         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
51115         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
51116         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
51117         for these modules.
51118
51119 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
51120
51121         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
51122         (which shouldn't happen), generate nothing instead of returning 0
51123         immediately, so that nstrftime (NULL, ...) doesn't return 0.
51124
51125 2005-03-16  Bruno Haible  <bruno@clisp.org>
51126
51127         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
51128         HAVE_LONGLONG_64BIT.
51129
51130 2005-03-16  Bruno Haible  <bruno@clisp.org>
51131
51132         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
51133         HAVE_LONGLONG_64BIT.
51134
51135 2005-03-16  Bruno Haible  <bruno@clisp.org>
51136
51137         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
51138         HAVE_LONGLONG_64BIT.
51139
51140 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
51141
51142         * lib/strftime.c (my_strftime): Prepend space to format so that we can
51143         reliably distinguish strftime failure from empty output on POSIX
51144         hosts.
51145
51146 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
51147
51148         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
51149         (iconv_string): Don't guess a size-zero buffer, as that might cause
51150         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
51151         result would be 'too large', where 'too large' is (heuristically)
51152         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
51153         overflow concerns.  This will prevent some unwanted malloc failures
51154         when the inputs are very large.
51155
51156 2005-03-15  Karl Berry  <karl@gnu.org>
51157
51158         * config/srclist.txt (config.rpath): from gettext.
51159         * config/config.rpath: update.
51160
51161 2005-03-15  Bruno Haible  <bruno@clisp.org>
51162
51163         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
51164         to 'negate'.
51165
51166         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
51167         variable.
51168
51169         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
51170         results.
51171
51172 2005-03-14  Simon Josefsson  <jas@extundo.com>
51173
51174         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
51175         <fx@gnu.org>.
51176
51177 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
51178
51179         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
51180         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
51181         intprops.h.
51182         * lib/strtol.c: Likewise.
51183
51184 2005-03-14  Jim Meyering  <jim@meyering.net>
51185
51186         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
51187         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
51188         to be nonzero so that we (and caller) can detect the difference
51189         between a valid zero-length expansion and an error return, even
51190         when the underlying strftime fails before writing anything into
51191         that location.
51192
51193 2005-03-14  Bruno Haible  <bruno@clisp.org>
51194
51195         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
51196         Update from GNU gettext 0.14.3.
51197
51198 2005-03-10  Jim Meyering  <jim@meyering.net>
51199
51200         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
51201
51202 2005-03-10  Jim Meyering  <jim@meyering.net>
51203
51204         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
51205         so that this module works on systems without fchdir.
51206
51207 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
51208
51209         Factor int-properties macros into a single file, except for
51210         glibc-related files.
51211         * lib/intprops.h: New file.
51212         * lib/getloadavg.c: Include it instead of limits.h.
51213         (INT_STRLEN_BOUND): Remove.
51214         * lib/human.c: Include intprops.h.
51215         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
51216         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
51217         302/1000.
51218         * lib/inttostr.h: Include intprops.h instead of limits.h.
51219         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
51220         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
51221         for consistency with intprops.h.
51222         (time_t_is_integer, twos_complement_arithmetic): Use them.
51223         * lib/sig2str.h: Include <signal.h>, intprops.h.
51224         (INT_STRLEN_BOUND): Remove.
51225         * lib/strftime.c (TYPE_SIGNED): Remove.
51226         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
51227         * lib/strtol.c: Adjust comments to match intprops.h.
51228         * lib/userspec.c: Include intprops.h.
51229         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
51230         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
51231         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
51232         instead of rolling our own expressions.
51233         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
51234
51235         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
51236         instead of int.
51237         (my_strftime): Do not mishandle years close to INT_MAX, by doing
51238         the right thing even if adding 1900 would overflow.  Similarly
51239         for tm_mon + 1 and tm_yday + 1.
51240         Make %Y always equivalent to %C%y, and similarly for %G and %g.
51241         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
51242         (DO_SIGNED_NUMBER): New macro.
51243         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
51244
51245 2005-03-07  Bruno Haible  <bruno@clisp.org>
51246
51247         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
51248
51249 2005-03-07  Bruno Haible  <bruno@clisp.org>
51250
51251         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
51252
51253 2005-03-04  Derek R. Price  <derek@ximbiot.com>
51254
51255         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
51256         (func_import): Only replace files via --import when they have actually
51257         changed.
51258
51259 2005-03-03  Derek R. Price  <derek@ximbiot.com>
51260
51261         * m4/mmap-anon.m4: New file.
51262         * m4/pagealign_alloc.m4: New file.
51263
51264 2005-03-03  Derek R. Price  <derek@ximbiot.com>
51265             Bruno Haible  <bruno@clisp.org>
51266
51267         * modules/pagealign_alloc: New file.
51268         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
51269
51270 2005-03-03  Derek R. Price  <derek@ximbiot.com>
51271             Bruno Haible  <bruno@clisp.org>
51272
51273         * lib/pagealign_alloc.h: New file.
51274         * lib/pagealign_alloc.c: New file.
51275
51276 2005-03-03  Bruno Haible  <bruno@clisp.org>
51277
51278         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
51279         Use an all-permissive copyright notice, recommended by RMS.
51280
51281 2005-03-02  Bruno Haible  <bruno@clisp.org>
51282
51283         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
51284         of AIX, the replacement has to be done only after <string.h> is
51285         included, therefore not in config.h. stpncpy.h does the replacement,
51286         and stpncpy.c uses it.
51287
51288 2005-03-02  Bruno Haible  <bruno@clisp.org>
51289
51290         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
51291         stpncpy.c uses it.
51292
51293 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51294
51295         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
51296         The workaround isn't strictly needed for POSIX conformance, and
51297         it's too much of a pain to configure and maintain.  We'll ask
51298         people to fix their kernels instead.
51299         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
51300         (NANOSLEEP_BUG_WORKAROUND): Remove.
51301         (xnanosleep): Remove the workaround.
51302
51303 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51304
51305         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
51306         Reported by Derek Price.
51307         (Include): Add "timespec.h".
51308
51309         * modules/xnanosleep (Depends-on): Remove gethrxtime.
51310
51311 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51312
51313         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
51314         to detect nanosleep bug.
51315
51316 2005-03-01  Bruno Haible  <bruno@clisp.org>
51317
51318         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
51319
51320 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
51321
51322         * modules/gethrxtime: New file.
51323         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
51324         (Depends-on): Add gethrxtime.
51325         (configure.ac): Add gl_XNANOSLEEP.
51326         (Makefile.am): Remove lib_SOURCES line.
51327
51328 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51329
51330         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
51331         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
51332
51333 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51334
51335         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
51336         * lib/timespec.h (gettime): Return void, since it always
51337         succeeds now.  All uses changed.
51338         * lib/gettime.c (gettime) Likewise.
51339         [HAVE_NANOTIME]: Prefer nanotime.
51340         Assume gettimeofday succeeds, as POSIX requires.
51341         Assime time () succeeds, since other code already does.
51342         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
51343         (timespec_subtract): Remove.
51344         (NANOSLEEP_BUG_WORKAROUND): New constant.
51345         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
51346         things considerably.  Use it only on GNU/Linux hosts, since the
51347         workaround shouldn't be needed elsewhere.
51348
51349 2005-02-24  Bruno Haible  <bruno@clisp.org>
51350
51351         * modules/gettext (Files): Add m4/glibc2.m4.
51352
51353 2005-02-24  Bruno Haible  <bruno@clisp.org>
51354
51355         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
51356         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
51357         * m4/progtest.m4:
51358         Update from GNU gettext 0.14.2.
51359         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
51360
51361 2005-02-24  Bruno Haible  <bruno@clisp.org>
51362
51363         * lib/localcharset.c: Update from GNU gettext 0.14.2.
51364         * lib/config.charset: Update from GNU gettext 0.14.2.
51365
51366 2005-02-24  Bruno Haible  <bruno@clisp.org>
51367
51368         * lib/gettext.h: Update from GNU gettext 0.14.2.
51369
51370 2005-02-23  Simon Josefsson  <jas@extundo.com>
51371
51372         * m4/iconvme.m4: New file.
51373
51374 2005-02-23  Jim Meyering  <jim@meyering.net>
51375
51376         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
51377         change.
51378         Thanks to Bruno Haible for catching it.
51379
51380 2005-02-22  Simon Josefsson  <jas@extundo.com>
51381
51382         * modules/iconvme: New file.
51383
51384         * MODULES.html.sh: Add iconvme.
51385
51386 2005-02-22  Simon Josefsson  <jas@extundo.com>
51387
51388         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
51389
51390 2005-02-22  Simon Josefsson  <jas@extundo.com>
51391
51392         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
51393
51394 2005-02-22  Jim Meyering  <jim@meyering.net>
51395
51396         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
51397         s/ifndef/ifdef/.
51398
51399 2005-02-20  Neil Conway  <neilc@samurai.com>
51400
51401         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
51402         returned by OSX/Darwin if the specified buffer is not large
51403         enough for the hostname.
51404
51405 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51406
51407         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
51408         pass it to _help, otherwise the latter coredumps trying to
51409         dereference state.root_argp.
51410
51411 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51412
51413         * modules/chdir-long (Depends-on): Add memrchr.
51414         * modules/memrchr (Files): Add lib/memrchr.h.
51415         (Include): "memrchr.h".
51416
51417 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51418
51419         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
51420
51421 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51422
51423         * lib/memrchr.h: New file.
51424         * lib/chdir-long.c: Include it.
51425         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
51426         Don't bother including stddef.h.
51427
51428 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
51429
51430         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
51431         inclusion.
51432         Include <sys/types.h>, for dev_t.
51433         (ME_DUMMY, ME_REMOTE): Move from here....
51434         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
51435         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
51436         Dmitry V. Levin.
51437         Include mountlist.h first, to test the interface.
51438
51439 2005-01-29  Bruno Haible  <bruno@clisp.org>
51440
51441         * lib/progname.c (program_name): Initialize.
51442         Needed when linking statically on MacOS X.
51443
51444 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51445
51446         Sync from coreutils.
51447         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
51448         (Depends-on): Add c-strtod.
51449         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
51450
51451 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51452
51453         Sync from coreutils.
51454         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
51455
51456         Remove files that are specific to coreutils.
51457         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
51458
51459 2005-01-28  Bruno Haible  <bruno@clisp.org>
51460
51461         * modules/javacomp: New file.
51462         * MODULES.html.sh (Java): Add javacomp.
51463
51464 2005-01-28  Bruno Haible  <bruno@clisp.org>
51465
51466         * m4/javacomp.m4: New file, from GNU gettext.
51467
51468 2005-01-28  Bruno Haible  <bruno@clisp.org>
51469
51470         * lib/javacomp.sh.in: New file, from GNU gettext.
51471         * lib/javacomp.h: New file, from GNU gettext.
51472         * lib/javacomp.c: New file, from GNU gettext.
51473
51474 2005-01-26  Simon Josefsson  <jas@extundo.com>
51475
51476         * lib/gai_strerror.c: Use GPL in header.
51477
51478 2005-01-26  Bruno Haible  <bruno@clisp.org>
51479
51480         * modules/javaexec: New file.
51481         * MODULES.html.sh (Java): Add javaexec.
51482
51483 2005-01-26  Bruno Haible  <bruno@clisp.org>
51484
51485         * m4/javaexec.m4: New file, from GNU gettext.
51486
51487 2005-01-26  Bruno Haible  <bruno@clisp.org>
51488
51489         * lib/javaexec.sh.in: New file, from GNU gettext.
51490         * lib/javaexec.h: New file, from GNU gettext.
51491         * lib/javaexec.c: New file, from GNU gettext.
51492
51493 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51494
51495         * modules/lchown (Depends-on): Remove lchown.h
51496
51497 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51498
51499         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
51500         must be defined if the header file was not found, in order
51501         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
51502
51503 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51504
51505         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
51506         initializers for struct pentry_state.
51507         (__argp_error): Check return value of __asprintf
51508         (__argp_failure): Translate error message
51509
51510         * lib/argp-parse.c: Removed braces around the expansion of N_()
51511
51512 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51513
51514         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
51515         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
51516         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
51517         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
51518         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
51519         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
51520         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
51521         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
51522         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
51523         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
51524         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
51525         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
51526         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
51527         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
51528         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
51529         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
51530         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
51531         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
51532         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
51533         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
51534         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
51535         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
51536         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
51537         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
51538         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
51539         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
51540         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
51541         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
51542         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
51543         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
51544         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
51545         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
51546         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
51547         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
51548         xstrtol.m4, xstrtoumax.m4, yesno.m4:
51549         Use an all-permissive copyright notice, recommended by RMS.
51550
51551 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
51552
51553         * modules/chdir-long (Depends-on): Remove mempcpy.
51554
51555 2005-01-21  Jim Meyering  <jim@meyering.net>
51556
51557         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
51558         same value as for Solaris 9.
51559
51560         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
51561         component length.  This included changing the parameter to be
51562         of type `char *' rather than `char const *'.
51563         * lib/chdir-long.h (chdir_long): Update prototype.
51564
51565         * lib/openat.c (fdopendir, fstatat): New functions.
51566         * lib/openat.h: Include headers required for use of DIR and struct
51567         stat.
51568         [AT_SYMLINK_NOFOLLOW]: Define.
51569         (fdopendir, fstatat): Add prototypes.
51570
51571 2005-01-21  Bruno Haible  <bruno@clisp.org>
51572
51573         * modules/classpath: New file.
51574         * MODULES.html.sh (Java): Add classpath.
51575
51576 2005-01-21  Bruno Haible  <bruno@clisp.org>
51577
51578         * lib/classpath.h: New file, from GNU gettext.
51579         * lib/classpath.c: New file, from GNU gettext.
51580
51581 2005-01-20  Simon Josefsson  <jas@extundo.com>
51582
51583         * modules/version-etc-fsf: New file.
51584
51585 2005-01-20  Simon Josefsson  <jas@extundo.com>
51586
51587         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
51588         * lib/version-etc.c: Remove version_etc_copyright.
51589         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
51590         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
51591
51592 2005-01-20  Simon Josefsson  <jas@extundo.com>
51593
51594         * lib/base64.h (isbase64): Add.
51595
51596         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
51597         using a unsigned prototype, don't inline.
51598         (base64_decode): Use it.
51599
51600 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51601
51602         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
51603         it.
51604
51605 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51606
51607         * lib/save-cwd.c (save_cwd): Remove code to support the case
51608         where fchdir is missing or flaky.
51609
51610 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51611
51612         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
51613
51614 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
51615
51616         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
51617         AC_LIBSOURCES now does this.
51618         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
51619         with new ullong_max module.
51620
51621 2005-01-19  Bruno Haible  <bruno@clisp.org>
51622
51623         * modules/sh-quote: New file.
51624         * MODULES.html.sh (Executing programs): Add sh-quote.
51625
51626 2005-01-19  Bruno Haible  <bruno@clisp.org>
51627
51628         * lib/sh-quote.h: New file, from GNU gettext.
51629         * lib/sh-quote.c: New file, from GNU gettext.
51630
51631 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
51632
51633         Merge from coreutils.
51634         * m4/ullong_max.m4: New file.
51635         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
51636         (gl_MACROS): Assume localeconv exists.
51637
51638 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
51639
51640         Merge changes from coreutils, as described below in several
51641         changelogs dated today.
51642
51643         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
51644         (O_DIRECTORY): Remove; not needed here, since "." must be
51645         a directory.  All uses removed.
51646         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
51647         universal on Suns, and we also need to test for IRIX.
51648         Revamp code to use 'if' rather than '#if'.
51649         Avoid unnecessary comparison of cwd->desc to 0.
51650
51651         * lib/utimens.c (futimens): Robustify the previous patch, by checking
51652         for known valid error numbers rather than observed invalid ones.
51653
51654 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
51655
51656         * modules/ullong_max: New file.
51657
51658         * modules/chdir-long, modules/openat: New files.
51659         * modules/save-cwd (Depends-on): Depend on chdir-long.
51660         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
51661
51662 2005-01-18  Jim Meyering  <jim@meyering.net>
51663
51664         Merge from coreutils.
51665         * m4/chdir-long.m4, m4/openat.m4: New files.
51666         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
51667         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
51668         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
51669         is sane and DOES follow symlinks.  Besides, testing 20 different
51670         systems found no broken chown implementations.
51671         Prompted by a change in rsync's copy of this macro.
51672         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
51673
51674         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
51675
51676         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
51677         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
51678         NULL-means-set-to-current-time semantics.
51679         Remove temporary file immediately, rather than waiting
51680         for configure's at-exit trap code to do it.
51681
51682 2005-01-18  Jim Meyering  <jim@meyering.net>
51683
51684         * lib/version-etc.c (version_etc_copyright): Update copyright date.
51685
51686         * lib/utimens.c (futimens): Account for the fact that futimes
51687         can also fail with errno == ENOSYS or errno == ENOENT.
51688         Patch from Dmitry V. Levin.
51689
51690         Change the name of the robust chdir function from chdir to chdir_long.
51691         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
51692         (restore_cwd): Use chdir_long, not chdir.
51693         * lib/chdir-long.c: Renamed from chdir.c.
51694         * lib/chdir-long.h: Renamed from chdir.h.
51695         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
51696         Hurd.
51697
51698 2005-01-18  Bruno Haible  <bruno@clisp.org>
51699
51700         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
51701         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
51702         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
51703         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
51704         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
51705         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
51706         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
51707         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
51708         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
51709         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
51710         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
51711         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
51712         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
51713         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
51714         Use an all-permissive copyright notice, recommended by RMS.
51715
51716 2005-01-18  Bob Proulx  <bob@proulx.com>
51717
51718         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
51719         simplify offsetof() macro construct to avoid compile failure with
51720         native HP-UX 11.0 ANSI C compiler.
51721
51722 2005-01-17  Bruno Haible  <bruno@clisp.org>
51723
51724         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
51725         redundant because stpncpy.m4 takes care of it.
51726
51727 2005-01-17  Bruno Haible  <bruno@clisp.org>
51728
51729         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
51730
51731 2005-01-17  Bruno Haible  <bruno@clisp.org>
51732
51733         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
51734         used.
51735
51736 2005-01-17  Bruno Haible  <bruno@clisp.org>
51737
51738         * lib/fwriteerror.h (fwriteerror): Change specification to include
51739         fclose.
51740         * lib/fwriteerror.c: Include <stdbool.h>.
51741         (fwriteerror): At the end, close the file stream. Record whether
51742         stdout was already closed.
51743
51744 2005-01-17  Bruno Haible  <bruno@clisp.org>
51745
51746         * lib/execute.c (environ): Declare if needed.
51747         * lib/pipe.c (environ): Likewise.
51748         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
51749
51750 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51751
51752         * modules/argp: Depend on vsnprintf
51753
51754 2005-01-10  Jim Meyering  <jim@meyering.net>
51755
51756         * modules/closeout (Depends-on): Add atexit.
51757
51758 2005-01-06  Bruno Haible  <bruno@clisp.org>
51759
51760         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
51761
51762 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
51763
51764         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
51765         definitions to be after all include files, to avoid collisions.
51766         Problem reported by Bob Proulx.
51767
51768 2005-01-04  Jim Meyering  <jim@meyering.net>
51769
51770         Changes imported from coreutils.
51771         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
51772         as the mkstemp template, use a temporary directory and an
51773         8.3-friendly template to avoid trouble on systems like DJGPP.
51774         Reported by Juan M. Guerrero via Stepan Kasal.
51775         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
51776         close. Remove the temporary directory right away, rather than waiting
51777         for configure's at-exit trap code to do it.
51778         Suggestion from Stepan Kasal.
51779
51780 2005-01-01  Simon Josefsson  <jas@extundo.com>
51781
51782         * gnulib-tool: Print #include directives when --import'ing.
51783
51784 2004-12-28  Simon Josefsson  <jas@extundo.com>
51785
51786         * tests/test-base64.c: Include required header files.  Remove
51787         unused variables.
51788
51789 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
51790
51791         * modules/error (Depends-on): Remove gettext.
51792
51793 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
51794
51795         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
51796         not needed.  This removes a dependency on the gettext module.
51797         [defined _LIBC]: Do not include <libintl.h>; not needed.
51798
51799 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
51800
51801         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
51802         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
51803
51804 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
51805
51806         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
51807         HAVE_DECL_STRTOLD.
51808
51809 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51810
51811         * modules/getdate (Depends-on): Remove alloca-opt.
51812
51813 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51814
51815         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
51816
51817 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51818
51819         * lib/argp-parse.c: Include <stddef.h>.
51820         (alignof, alignto): New macros.
51821         (parser_init): Don't assume that void * is aligned sufficiently
51822         for struct option.
51823
51824         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
51825         need to extend the stack.
51826         (YYINITDEPTH): New macro, so that the initial stack isn't overly
51827         large.
51828
51829 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51830
51831         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
51832
51833 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
51834
51835         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
51836         (2004-10-24) change.  Apparently this was a false alarm.
51837
51838         * modules/getdate: Depend on alloca-opt, not alloca.
51839
51840 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
51841
51842         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
51843         Remove now-obsolete comment about AIX.
51844         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
51845         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
51846         (YYMAXDEPTH): New macro.
51847
51848 2004-12-18  Simon Josefsson  <jas@extundo.com>
51849
51850         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
51851
51852 2004-12-18  Bruno Haible  <bruno@clisp.org>
51853
51854         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
51855
51856 2004-12-18  Bruno Haible  <bruno@clisp.org>
51857
51858         * lib/fatal-signal.c (fatal_signals): Make non-const.
51859         (init_fatal_signals): New function.
51860         (uninstall_handlers, install_handlers): Ignore signals that were set to
51861         SIG_IGN.
51862         (at_fatal_signal): Call init_fatal_signals.
51863         (init_fatal_signal_set): Likewise. Ignore signals that were set to
51864         SIG_IGN.
51865         Reported by Paul Eggert.
51866
51867 2004-12-18  Bruno Haible  <bruno@clisp.org>
51868
51869         * doc/alloca.texi: New file.
51870         * doc/alloca-opt.texi: New file.
51871
51872 2004-12-17  Jim Meyering  <jim@meyering.net>
51873
51874         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
51875         Otherwise, install-sh could exit with improper exit status when
51876         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
51877
51878 2004-12-16  Simon Josefsson  <jas@extundo.com>
51879
51880         * tests/test-base64.c: Add license.
51881
51882 2004-12-15  Stepan Kasal  <address@hidden>
51883
51884         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
51885
51886 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
51887
51888         * modules/getcwd (Files): Add m4/d-ino.m4.
51889         Suggested by Mark D. Baushke.
51890
51891 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
51892
51893         * lib/getdate.y (textint): New member "negative".
51894         (time_zone_hhmm): New function.
51895         Expect 14 shift-reduce conflicts, not 13.
51896         (o_colon_minutes): New rule.
51897         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
51898         (yylex): Set the "negative" member of signed numbers.
51899
51900 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
51901
51902         * doc/getdate.texi (Time of day items, Time zone items):
51903         Describe new formats +00:00, UTC+00:00.
51904
51905 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
51906
51907         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
51908         spurious "-l"s.  Problem reported by Stepan Kasal.
51909
51910 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
51911
51912         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
51913         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
51914
51915 2004-12-04  Simon Josefsson  <jas@extundo.com>
51916
51917         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
51918         Vandoorselaere <yoann@prelude-ids.org>.
51919
51920 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
51921
51922         Changes imported from coreutils.
51923         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
51924         exist.
51925         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
51926
51927 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
51928
51929         Changes imported from coreutils.
51930         * lib/hard-locale.c: Assume <locale.h> exists.
51931         Include "strdup.h".
51932         (GLIBC_VERSION): New macro.
51933         (hard_locale): Assume setlocale exists.
51934         Rewrite to avoid #ifdef.
51935         Use strdup rather than malloc + strcpy.
51936         * lib/human.c: Assume <locale.h> exists.
51937         (human_readable): Assume localeconv exists.
51938
51939 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
51940
51941         * modules/hard-locale (Depends-on): Add strdup.
51942
51943 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
51944
51945         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
51946         convert T2, not T.  (Imported from libc.)
51947
51948 2004-11-30  Simon Josefsson  <jas@extundo.com>
51949
51950         * modules/restrict (License): Change to LGPL.
51951
51952 2004-11-30  Simon Josefsson  <jas@extundo.com>
51953
51954         * m4/restrict.m4: Add copyright and copying conditions.
51955
51956 2004-11-30  Simon Josefsson  <jas@extundo.com>
51957
51958         * m4/base64.m4: New file.
51959
51960 2004-11-30  Simon Josefsson  <jas@extundo.com>
51961
51962         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
51963         base64.
51964
51965         * tests/test-base64.c: New file.
51966
51967         * modules/base64: New file.
51968
51969 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
51970
51971         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
51972         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
51973
51974         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
51975
51976 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
51977
51978         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
51979         (__getcwd.c): Don't restore errno; glibc doesn't.
51980         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
51981         first, falling back to our code only if its results look suspicious.
51982         Ensure that the resulting buffer is only as large as necessary.
51983
51984         * lib/readutmp.c: Include readutmp.h first.
51985         Include <errno.h>, since readutmp.h no longer does that.
51986         * lib/readutmp.h: Don't include <errno.h>,
51987         <sys/param.h>, <time.h>; not needed to establish interface.
51988         (errno): Remove decl.
51989         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
51990         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
51991         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
51992
51993 2004-11-28  Simon Josefsson  <jas@extundo.com>
51994
51995         * lib/base64.h, base64.c: New file.
51996
51997 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
51998
51999         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
52000
52001 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
52002
52003         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
52004         (Depends-on): Remove pathmax, same.  Add mempcpy.
52005         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
52006         (Makefile.am): Append getcwd.h to lib_SOURCES.
52007         (Include): Add getcwd.h.
52008         (Maintainer): Change from Jim Meyering to "all, glibc",
52009         since getdate now uses intended-for-glibc code.
52010         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
52011         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
52012
52013 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
52014
52015         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
52016         HP's ANSI C compiler.
52017         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
52018         Declaring int functions causes warnings on some modern systems and
52019         shouldn't be needed to compile on ancient ones.
52020         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
52021         defined.
52022
52023         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
52024         with the following changes.
52025         (__set_errno): Parenthesize properly.
52026         Include <stdbool.h>.
52027         (MIN, MAX, MATCHING_INO): New macros.
52028         (__getcwd): Define with prototype, not K&R form.
52029         Use heuristics to allocate default buffer on stack if possible.
52030         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
52031         behavior, and to avoid the PATH_MAX limit when computing
52032         ../../../../...
52033         Use MATCHING_INO to compare inode number to file.
52034         Check for arithmetic overflow in size calculations.
52035         Fix bug in reallocation of dot array that caused getcwd to fail
52036         on directories nested deeper than 75.
52037         Be more careful about saving errno on error.
52038         Do not use realloc; use only free+malloc, as this is a bit
52039         more flexible and avoids a needless copy operation.
52040         Do not inspect st_dev and st_ino for symbolic links; POSIX
52041         doesn't specify the latter.
52042         Check for closedir errors.
52043         Avoid needless casts.
52044         Use "#ifdef weak_alias" around weak_alias, to be like other
52045         glibc code.
52046         The following changes to getcwd.c have effect only when used in
52047         gnulib; they have no effect inside glibc proper.
52048         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
52049         as alloca isn't used.
52050         (alloca, __alloca): Likewise.
52051         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
52052         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
52053         unconditionally, as gnulib assumes C89 or better.
52054         Do not include <sys/param.h>.
52055         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
52056         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
52057         better.
52058         (NULL) [!defined NULL]: Remove; we assume C89 or better.
52059         Include <dirent.h> in a way that is compatible with modern Autoconf.
52060         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
52061         New macros, if not already defined.
52062         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
52063         Use "_LIBC", not "defined _LIBC", for consistency.
52064         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
52065         a mempcpy module.
52066         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
52067         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
52068         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
52069         credit only to Jim Meyering and adjust the copyright dates.
52070         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
52071         <stdlib.h>, <unistd.h>, "pathmax.h".
52072         Instead, include "xgetcwd.h" (first) and "getcwd.h".
52073         (INITIAL_BUFFER_SIZE): Remove.
52074         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
52075
52076 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
52077
52078         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
52079         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
52080         Use the _ONCE methods, for efficiency.
52081         Check for fcntl.h.  In test program, include <errno.h>
52082         and <fcntl.h> if available.  Remove old K&R cruft from
52083         test program.  Check for common errors in GNU/Linux,
52084         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
52085         don't do AC_LIBOBJ, as that's getcwd.m4's job.
52086         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
52087         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
52088         name accordingly.
52089         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
52090         accommodate new getcwd.c.
52091         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
52092         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
52093         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
52094         that's all we need now.
52095
52096 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52097
52098         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
52099         argp-parse.c depends on getopt internals, that means we should
52100         always use our getopt, to be on the safe side.
52101         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
52102         order not to spoil the result of an eventual previous invocation
52103         of gl_GETOPT_SUBSTITUTE.
52104
52105 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52106
52107         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
52108         redefinition warnings. To avoid them, include the defines
52109         in `#if !defined __need_getopt ... #endif'. The only place
52110         where __getopt_argv_const is used is in definitions
52111         of getopt_long and getopt_long_only below, which are as well
52112         protected by `#ifndef __need_getopt'.
52113         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
52114         __need_getopt after including <stdio.h> and <unistd.h> These
52115         headers might have defined it.
52116
52117 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
52118
52119         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
52120
52121 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
52122
52123         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
52124         (futimens): New function, which uses futimes if available.
52125         (futimens, utimens): Support timespec==NULL, with same semantics
52126         as utime and utimens.
52127         * lib/utimens.h (futimens): New decl.
52128
52129 2004-11-23  Jim Meyering  <jim@meyering.net>
52130
52131         * lib/getopt_.h: Remove trailing blanks.
52132
52133 2004-11-23  Jim Meyering  <jim@meyering.net>
52134
52135         * lib/__fpending.c: Add comment.
52136
52137 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
52138
52139         * modules/canonicalize (Depends-on): Add xreadlink.
52140         Problem reported by James Youngman.
52141
52142 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
52143
52144         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
52145         New macros.
52146         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
52147         optopt): Use them instead of invoking ## directly; otherwise, the
52148         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
52149
52150 2004-11-19  Bruno Haible  <bruno@clisp.org>
52151
52152         * lib/strtok_r.c: Move comments from here...
52153         * lib/strtok_r.h: ... to here.
52154
52155 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
52156
52157         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
52158         implementations that mishandle size_t overflow.
52159
52160 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
52161
52162         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
52163         might fail.  Problem reported by Yoann Vandoorselaere.
52164         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
52165         implementations that mishandle size_t overflow.
52166
52167 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52168
52169         * modules/canon-host (Depends-on): Add strdup.
52170
52171 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52172
52173         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
52174
52175 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52176
52177         * lib/canon-host.c: Include "strdup.h".
52178         (canon_host): Use getaddrinfo if available, so that IPv6 works.
52179         Use strdup instead of malloc/strcpy to duplicate strings.
52180
52181         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
52182         (human_space_before_unit): New constant.
52183         * lib/human.c (human_readable): Support it.
52184
52185         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
52186         (xgetcwd): Set errno correctly when failing.
52187         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
52188         the failure is actually due to a PATH_MAX problem.
52189
52190         Further getopt changes to make it more likely that glibc will
52191         buy the changes back.
52192         * lib/getopt.c (POSIXLY_CORRECT): New constant.
52193         (getopt): Use it, so to preserve glibc semantic
52194         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
52195         when compiling for libc.
52196         * lib/getopt_.h (__getopt_argv_const): Bring it back.
52197         (getopt_long, getopt_long_only): Use it.
52198
52199         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
52200         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
52201         (getopt): Argv is now char * const *, as per standard.
52202         (_getopt_internal_r, _getopt_internal): Argv is now char **,
52203         not char *__getopt_argv_const *.
52204         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
52205         _getopt_long_only_r): Likewise.
52206         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
52207         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
52208         _getopt_long_r, _getopt_long_only_r): Likewise.
52209         * lib/getopt_.h (__getopt_argv_const): Remove.
52210         (getopt): Argv is now char * const *, as per standard.
52211
52212         * lib/getdate.y (tORDINAL): New token.
52213         (day, relunit): Allow it for relative times.
52214         (relative_time_table): Use tORDINAL for ordinals.
52215
52216 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52217
52218         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
52219         Document that "second" isn't allowed as an ordinal number.
52220
52221 2004-11-16  Jim Meyering  <jim@meyering.net>
52222
52223         * modules/closeout (Depends-on): Add fpending.
52224
52225 2004-11-15  Jim Meyering  <jim@meyering.net>
52226
52227         * lib/closeout.c: Include "__fpending.h" once again.
52228         Include <stdbool.h>.
52229         (close_stdout): Don't fail just because stdout was closed initially,
52230         since some programs don't write to stdout in the normal course of
52231         operation (other than --version and --help), and we don't want this
52232         function to make e.g. `touch file >&-' fail.
52233         But do fail if it was closed and someone has tried to write to it.
52234         E.g., `printf foo >&-' must fail.
52235
52236 2004-11-13  Jim Meyering  <jim@meyering.net>
52237
52238         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
52239
52240 2004-11-12  Simon Josefsson  <jas@extundo.com>
52241
52242         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
52243         small doc fix is still pending.
52244
52245 2004-11-11  Simon Josefsson  <jas@extundo.com>
52246
52247         * modules/strtok_r: New file.
52248
52249         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52250         strtok_r.
52251
52252 2004-11-11  Simon Josefsson  <jas@extundo.com>
52253
52254         * m4/strtok_r.m4: New file.
52255
52256         * m4/getopt.m4: Replace opterr.
52257
52258 2004-11-11  Simon Josefsson  <jas@extundo.com>
52259
52260         * lib/strtok_r.h, strtok_r.c: New file.
52261
52262 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
52263
52264         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
52265         of replacing opterr, getopt, etc.  This should handle the
52266         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
52267
52268 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
52269
52270         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
52271         we can stop lying to compilers about the constness of argv when we
52272         are compiled outside glibc.
52273         (getopt, getopt_long, getopt_long_only): Use it.
52274         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
52275         _getopt_internal, getopt): Likewise.
52276         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
52277         _getopt_long_only_r): Likewise.
52278         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
52279         _getopt_long_r, _getopt_long_only_r): Likewise.
52280
52281         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
52282         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
52283         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
52284         the other external symbols.
52285         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
52286         declaration, since the above renaming now works around collisions.
52287
52288 2004-11-11  Jim Meyering  <jim@meyering.net>
52289
52290         * lib/linebreak.c: Remove trailing blanks.
52291         * lib/alloca_.h: Likewise.
52292         * lib/acosl.c: Likewise.
52293         * lib/euidaccess.c: Likewise.
52294         * lib/allocsa.h: Likewise.
52295
52296 2004-11-10  Simon Josefsson  <jas@extundo.com>
52297
52298         * m4/getaddrinfo.m4: New file.
52299
52300 2004-11-10  Simon Josefsson  <jas@extundo.com>
52301
52302         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
52303
52304 2004-11-10  Simon Josefsson  <jas@extundo.com>
52305
52306         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52307         getaddrinfo.
52308
52309         * modules/getaddrinfo: New file.
52310
52311 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52312
52313         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
52314
52315 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52316
52317         * lib/mktime.c (SHR): New macro, which is a portable
52318         substitute for >> that should work even on Crays.
52319         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
52320         Problem reported by Mark D. Baushke in
52321         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
52322         * lib/getdate.y (SHR): Likewise.
52323         (tm_diff): Use it.
52324         * lib/strftime.c (SHR): Likewise.
52325         (tm_diff): Use it.
52326         * lib/quotearg.c (struct quoting_options): Use unsigned int for
52327         quote_these_too, so that right shifts are well defined.  All uses
52328         changed.
52329
52330 2004-11-10  Jim Meyering  <jim@meyering.net>
52331
52332         Ensure that no close failure goes unreported.
52333         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
52334         return early when it seems there's nothing to flush.
52335         Don't include __fpending.h.
52336
52337 2004-11-10  Jim Meyering  <jim@meyering.net>
52338
52339         * modules/closeout (Depends-on): Remove fpending.
52340
52341 2004-11-10  Jim Meyering  <jim@meyering.net>
52342
52343         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
52344
52345 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52346
52347         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
52348         gl_FUNC_STRFTIME.
52349         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
52350         and AC_REQUIRE when possible, to avoid duplicate checks.
52351         Check for <wchar.h>.
52352
52353 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52354
52355         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
52356
52357 2004-11-09  Bruno Haible  <bruno@clisp.org>
52358
52359         * m4/sockpfaf.m4: New file.
52360
52361 2004-11-05  Bruno Haible  <bruno@clisp.org>
52362
52363         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
52364         Reported by Mark D. Baushke <mdb@cvshome.org>.
52365
52366 2004-11-04  Bruno Haible  <bruno@clisp.org>
52367
52368         2004-09-11  Bruno Haible  <bruno@clisp.org>
52369                 * allocsa.valgrind: New file.
52370         2004-02-06  Bruno Haible  <bruno@clisp.org>
52371                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
52372                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
52373                 Reported by Christopher Seip <chris.seip@hp.com>.
52374
52375 2004-11-04  Bruno Haible  <bruno@clisp.org>
52376
52377         * modules/allocsa (Files): Add lib/allocsa.valgrind.
52378         (Makefile.am): Distribute it.
52379
52380 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
52381
52382         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
52383         with errno == ERANGE if the buffer is too small.
52384         Problem reported by Mark D. Baushke.
52385
52386 2004-11-03  Albert Chin  <china@thewrittenword.com>
52387             Paul Eggert  <eggert@cs.ucla.edu>
52388
52389         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
52390         equivalent, substitute $ac_type for equivalent type rather than
52391         blindly using uint32_t *always* which won't work if uint32_t is not
52392         available.  Define _UINT32_T to work around typedef of uint32_t if
52393         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
52394         2.5.1.
52395
52396 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52397
52398         * m4/jm-macros.m4: Sync from coreutils.
52399         (gl_MACROS): Check for mbrlen, for pathchk.
52400         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
52401
52402 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52403
52404         * lib/xreadlink.c (MAXSIZE): New macro.
52405         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
52406         size does not exceed MAXSIZE.  Avoid cast.
52407         As suggested by Mark D. Baushke in
52408         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
52409         if readlink fails with buffer size just under MAXSIZE, try again
52410         with MAXSIZE.
52411
52412 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52413
52414         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
52415
52416 2004-11-02  Derek R. Price  <derek@ximbiot.com>
52417         and  Paul Eggert  <eggert@cs.ucla.edu>
52418
52419         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
52420         (get_date): Overparenthesize to avoid GCC warning.
52421
52422 2004-11-02  Bruno Haible  <bruno@clisp.org>
52423
52424         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
52425         returns void.
52426
52427 2004-11-02  Bruno Haible  <bruno@clisp.org>
52428
52429         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
52430         function returns void.
52431
52432 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
52433
52434         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
52435         fflush_unlocked, flockfile, funlockfile, funlockfile,
52436         fputs_unlocked, putc_unlocked.
52437
52438 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
52439
52440         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
52441         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
52442         already declared.
52443
52444 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52445
52446         * modules/getdate (Files): Add doc/getdate.texi.
52447         (Depends-on): Add setenv, xalloc.
52448
52449 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52450
52451         * lib/getdate.y: Add support for TZ="foo" within a date string.
52452         Fix some bugs near time_t boundaries.  Reject dates with
52453         out-of-range components, e.g., "Sept 31".
52454         Include <stdlib.h>, "setenv.h", "xalloc.h".
52455         (ISDIGIT_LOCALE): Remove; unused.
52456         Note that the TZ and time functions used here are not reentrant.
52457         (mktime_ok, get_tz): New functions.
52458         (TZBUFSIZE): New constant.
52459         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
52460         This requires that we sometimes generate our own TZ="XXX..." setting.
52461
52462 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52463
52464         * doc/getdate.texi: New file, from coreutils with modifications for
52465         the new TZ parsing.
52466
52467 2004-10-27  Derek R. Price  <derek@ximbiot.com>
52468
52469         * lib/mktime.c (not_equal_tm): Remove redundant check.
52470
52471 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52472
52473         * modules/regex (lib_SOURCES): Add regex.c.
52474         Reported by James Youngman in
52475         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
52476
52477 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52478
52479         * lib/getdate.y: Use Bison 1.875 features, and some minor
52480         code cleanups.  This change does not affect semantics.
52481         Don't include <stdlib.h>; no longer needed.
52482         Don't include unlocked-io.h; only the "#if TEST" code uses
52483         stdio, and performance isn't crucial there.
52484         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
52485         Bison 1.875 features as described below.
52486         All uses of "PC." replaced by "pc->".
52487         (YYSTYPE): Add a forward declaration.
52488         (yylex, yyerror): Use full prototypes in forward decls.
52489         Use "%pure-parser" rather than obsolescent "%pure_parser".
52490         Use %parse-param and %lex-param instead of obsolescent
52491         YYPARSE_PARAM and YYLEX_PARAM.
52492         (meridian_table, month_and_day_table, time_units_table,
52493         relative_time_table, time_zone_table, military_table,
52494         lookup_zone, lookup_word, get_date):
52495         Use NULL instead of 0 where appropriate.
52496         (to_hour): Avoid abort (), to avoid a dependency on
52497         stdlib.h.
52498         (yyerror, yylex): Now accepts parser_control * arg.
52499         (main) [TEST]: Use '\0' rather than 0 for char.
52500
52501 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52502
52503         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
52504
52505 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52506
52507         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
52508         It's now the caller's responsibility to handle the case where
52509         !HAVE_GETPAGESIZE && !defined getpagesize.
52510
52511         * lib/mktime.c (leapyear): Arg is long int, not int.
52512
52513 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
52514
52515         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
52516
52517 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
52518
52519         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
52520         missing.  Problem reported by James Youngman.
52521
52522 2004-10-16  Simon Josefsson  <jas@extundo.com>
52523
52524         * gnulib-tool: Fix comments.  Fix parse problem.
52525         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
52526
52527 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
52528
52529         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
52530         implementation of getopt_long.  Problem reported by Alexander Taler in:
52531         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
52532
52533 2004-10-15  Bruno Haible  <bruno@clisp.org>
52534
52535         * gnulib-tool: Untabify. Initialize supplied_libname.
52536         (func_usage): More homogenous output.
52537         (func_modules_transitive_closure, func_modules_to_filelist,
52538         func_emit_lib_Makefile_am): New functions.
52539         (func_import): New function, extracted from big case statement. Use
52540         func_get_license, func_modules_transitive_closure,
52541         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
52542         opt_lgpl. Don't use test -a, as it's not portable.
52543         (func_create_testdir): Use func_modules_transitive_closure,
52544         func_modules_to_filelist, func_emit_lib_Makefile_am.
52545
52546 2004-10-15  Bruno Haible  <bruno@clisp.org>
52547
52548         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
52549
52550 2004-10-15  Bruno Haible  <bruno@clisp.org>
52551
52552         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
52553         the portions belonging to each module.
52554         Suggested by Derek Robert Price <derek@ximbiot.com>.
52555
52556 2004-10-12  Simon Josefsson  <jas@extundo.com>
52557
52558         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
52559         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
52560         to real functions.
52561
52562 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52563
52564         * modules/vsnprintf: New file.
52565
52566 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52567
52568         * m4/vsnprintf.m4: New file.
52569
52570 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52571
52572         * lib/vsnprintf.h: New file.
52573         * lib/vsnprintf.c: New file.
52574
52575 2004-10-11  Bruno Haible  <bruno@clisp.org>
52576
52577         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
52578         vsnprintf.
52579
52580 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
52581
52582         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
52583
52584 2004-10-07  Bruno Haible  <bruno@clisp.org>
52585
52586         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
52587         fits into the provided buffer.
52588
52589 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
52590
52591         * lib/diacrit.c, diacrit.h: Add GPL notice.
52592
52593         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
52594         notice.
52595         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
52596         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
52597         This avoids a potential constant-folding bug.
52598
52599 2004-10-05  Bruno Haible  <bruno@clisp.org>
52600
52601         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
52602         for the declaration of strsep.
52603
52604 2004-10-05  Bruno Haible  <bruno@clisp.org>
52605
52606         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
52607
52608 2004-10-04  Simon Josefsson  <jas@extundo.com>
52609
52610         * modules/memmem: New file.
52611         * tests/test-memmem.c: New file.
52612         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
52613
52614 2004-10-04  Simon Josefsson  <jas@extundo.com>
52615
52616         * m4/memmem.m4: New file.
52617
52618 2004-10-04  Simon Josefsson  <jas@extundo.com>
52619
52620         * lib/memmem.h: New file.
52621         * lib/memmem.c: New file, taken from glibc.
52622
52623 2004-10-04  Simon Josefsson  <jas@extundo.com>
52624
52625         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
52626         '#ifdef USE_UNLOCKED_IO'.
52627
52628 2004-10-04  Simon Josefsson  <jas@extundo.com>
52629
52630         * config/srclist.txt: Add memmem from glibc.
52631
52632 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
52633
52634         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
52635
52636         * modules/argmatch, modules/argp, modules/closeout, modules/error,
52637         modules/exclude, modules/getdate, modules/getline,
52638         modules/getndelim2, modules/getpass, modules/getpass-gnu,
52639         modules/getusershell, modules/linebuffer, modules/md5,
52640         modules/mountlist, modules/posixtm, modules/readtokens,
52641         modules/readutmp, modules/regex, modules/sha1,
52642         modules/version-etc, modules/yesno:
52643         Remove dependency on unlocked-io.
52644
52645 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
52646
52647         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
52648
52649         * m4/unlocked-io.m4: Add copyright notice.
52650         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
52651
52652 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
52653
52654         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
52655         * lib/xmalloc.c (xmemdup): Likewise.
52656         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
52657         XFREE): Remove these long-obsolescent macros.
52658         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
52659         * lib/xstrdup.c: Remove.
52660
52661         * lib/regex.c (re_comp): Cast gettext return value to char *,
52662         Problem reported by Martin Neitzel via Mark D. Baushke.
52663
52664 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
52665
52666         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
52667         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
52668         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
52669         regex.c, sha1.c, version-etc.c, yesno.c:
52670         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
52671         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
52672         the includer's responsibility.
52673
52674         Sync from coreutils.
52675
52676         * lib/modechange.c (mode_compile): Don't decrement a pointer that
52677         points to the start of a string, as the C Standard says the
52678         resulting behavior is undefined.
52679
52680         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
52681         simple -> simple_backups, numbered_existing ->
52682         numbered_existing_backups, numbered -> numbered_backups
52683         to avoid shadowing problems.  All uses changed.
52684         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
52685         * lib/backupfile.c (check_extension, numbered_backup):
52686         Rename locals to avoid shadowing 'basename'.
52687         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
52688         once.
52689
52690         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
52691         * lib/.cvsignore: Add getopt.h.
52692
52693 2004-10-04  Bruno Haible  <bruno@clisp.org>
52694
52695         * modules/README: New file.
52696         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
52697         not a module.
52698
52699 2004-10-02  Jim Meyering  <jim@meyering.net>
52700
52701         * lib/dirfd.h, getpagesize.h: Add copyright notice.
52702
52703 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52704
52705         * modules/strsep: New file.
52706
52707 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52708
52709         * m4/strsep.m4: New file.
52710
52711 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52712
52713         * lib/strsep.h: New file.
52714         * lib/strsep.c: New file.
52715
52716 2004-10-01  Simon Josefsson  <jas@extundo.com>
52717
52718         * lib/snprintf.c (snprintf): Handle size==0.
52719
52720 2004-10-01  Simon Josefsson  <jas@extundo.com>
52721             Bruno Haible  <bruno@clisp.org>
52722
52723         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
52724         (snprintf): Declare 'args'.
52725
52726 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
52727
52728         * lib/snprintf.c: Remove comments as to why each header is needed.
52729
52730 2004-10-01  Bruno Haible  <bruno@clisp.org>
52731
52732         * MODULES.html.sh: Add strsep.
52733
52734 2004-09-30  Simon Josefsson  <jas@extundo.com>
52735
52736         * modules/snprintf: New file.
52737
52738 2004-09-30  Simon Josefsson  <jas@extundo.com>
52739
52740         * m4/snprintf.m4: New file.
52741
52742 2004-09-30  Simon Josefsson  <jas@extundo.com>
52743
52744         * lib/snprintf.h, lib/snprintf.c: New files.
52745
52746 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52747
52748         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
52749         (hol_entry_help): Never translate an empty string.
52750         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
52751         * lib/argp.h (OPTION_NO_TRANS): New option.
52752
52753 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
52754
52755         * modules/argp (Maintainer): Replace Simon Josefsson
52756         by Sergey Poznyakoff.
52757
52758 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
52759
52760         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
52761         changes merged back into glibc.
52762
52763 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
52764
52765         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
52766
52767 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
52768
52769         * lib/xvasprintf.c: Include xalloc.h.
52770         (xvasprintf): Use xalloc_die, not xmalloc_die.
52771
52772 2004-09-29  Bruno Haible  <bruno@clisp.org>
52773
52774         * modules/alloca-opt: New file, derived from modules/alloca.
52775         * modules/allocsa: Depend on alloca-opt instead of alloca.
52776         * modules/setenv: Likewise.
52777         * modules/vasnprintf: Likewise.
52778         * MODULES.html.sh: Add alloca-opt.
52779
52780 2004-09-28  Simon Josefsson  <jas@extundo.com>
52781
52782         * gnulib-tool: New parameter --lgpl, to asseert that modules are
52783         LGPL, and to replace license template from GPL to LGPL.
52784
52785 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
52786
52787         * modules/dummy: Change license to LGPL.
52788
52789 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
52790
52791         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
52792
52793 2004-09-24  Simon Josefsson  <jas@extundo.com>
52794
52795         * modules/minmax (License): Change from GPL to LGPL.
52796
52797 2004-09-23  Simon Josefsson  <jas@extundo.com>
52798
52799         * gnulib-tool (--import): Typo.
52800
52801 2004-09-23  Simon Josefsson  <jas@extundo.com>
52802
52803         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
52804
52805 2004-09-22  Bruno Haible  <bruno@clisp.org>
52806
52807         * modules/*: Add 'License' field.
52808         * gnulib-tool: Accept --extract-license option.
52809         (func_get_license): New function.
52810
52811 2004-09-21  Bruno Haible  <bruno@clisp.org>
52812
52813         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
52814         Reported by Simon Josefsson.
52815
52816 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
52817
52818         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
52819         gl_AC_TYPE_LONG_LONG.
52820
52821 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
52822
52823         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
52824
52825 2004-09-18  Simon Josefsson  <jas@extundo.com>
52826         and  Paul Eggert  <eggert@cs.ucla.edu>
52827
52828         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
52829         calls with autoreconf.  Define GL_LIB.
52830
52831 2004-09-14  Karl Berry  <karl@gnu.org>
52832
52833         * config/srclist.txt: unsync setenv.c, sigh.
52834
52835 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
52836
52837         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
52838         Problem reported by Bruno Haible in:
52839         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
52840
52841 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
52842
52843         * config/srclist.txt: Comment out argp-pvh.c.
52844
52845 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
52846
52847         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
52848         in case some system header has #define'd it.  Problem reported by
52849         Soeren D. Schulze in
52850         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
52851
52852 2004-09-09  Karl Berry  <karl@gnu.org>
52853
52854         * regex.[ch]: delete from the root.  These were supposed to be
52855                 synced with emacs cvs, but this has not happened for about
52856                 a year, and anyway nothing else uses emacs regex.[ch].
52857                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
52858                 lib/regex[.ch] is untouched.
52859
52860 2004-09-09  Bruno Haible  <bruno@clisp.org>
52861
52862         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
52863
52864 2004-09-09  Bruno Haible  <bruno@clisp.org>
52865
52866         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
52867         modifications.
52868         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
52869
52870 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
52871
52872         * modules/xvasprintf: New file.
52873         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
52874
52875 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
52876
52877         * lib/xvasprintf.h: New file.
52878         * lib/xvasprintf.c: New file.
52879         * lib/xasprintf.c: New file.
52880
52881 2004-09-08  Bruno Haible  <bruno@clisp.org>
52882
52883         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
52884
52885 2004-09-08  Bruno Haible  <bruno@clisp.org>
52886
52887         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
52888         length is > INT_MAX.
52889         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
52890         more.
52891
52892 2004-09-08  Bruno Haible  <bruno@clisp.org>
52893
52894         * lib/stdint_.h: New file, taken from GNU clisp.
52895
52896 2004-09-08  Bruno Haible  <bruno@clisp.org>
52897             Oskar Liljeblad  <oskar@osk.mine.nu>
52898
52899         * modules/stdint: New file.
52900         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
52901
52902 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52903
52904         Import from coreutils.
52905         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
52906         strings on unbounded length.  alloca's performance benefits aren't
52907         that important here.
52908         (V_STRDUP): Remove.
52909         (parse_with_separator): New function, with most of the internals
52910         of the old parse_user_spec.  Allow user to omit both user and group,
52911         for compatibility with FreeBSD.
52912         Clone only the user name, not the entire spec.
52913         Do not set *uid, *gid unless entirely successful.
52914         Avoid memory leak in some failing cases.
52915         Fix regression for USER.GROUP reported by Dmitry V. Levin in
52916         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
52917         (parse_user_spec): Rewrite to use parse_with_separator.
52918
52919 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52920
52921         * modules/userspec: Don't depend on alloca.
52922
52923 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52924
52925         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
52926
52927 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
52928
52929         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
52930         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
52931         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
52932
52933 2004-08-16  Simon Josefsson  <jas@extundo.com>
52934
52935         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
52936         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
52937         Add --dry-run for --import.
52938         Let user provided command line parameters override configure.ac
52939         settings.
52940
52941 2004-08-12  Simon Josefsson  <jas@extundo.com>
52942
52943         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
52944         as discussed with Paul Eggert in threads rooted at
52945         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
52946         and
52947         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
52948         Before, the test was empty, and relied on ELIDE_CODE in source
52949         code.)
52950         (gl_PREREQ_GETOPT): New macro.
52951         (gl_GETOPT): Use them.
52952
52953 2004-08-12  Simon Josefsson  <jas@extundo.com>
52954
52955         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
52956         * lib/getopt_.h: Renamed from getopt.h.
52957
52958 2004-08-12  Simon Josefsson  <jas@extundo.com>
52959
52960         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
52961         Change default library name from libfoo to libgnu.
52962         Now, if you have a configure.ac that says:
52963                 gl_SOURCE_BASE(gl)
52964                 gl_M4_BASE(gl/m4)
52965                 gl_MODULES(error getopt etcetera)
52966                 gl_INIT
52967         you can import all you need by running:
52968                 ../gnulib/gnulib-tool --import
52969
52970         * modules/getopt (Files): Rename getopt.h to getopt_.h.
52971         (Makefile.am): Rewrite, use logic from argz.
52972         (Include): Use <getopt.h> instead of "getopt.h".
52973
52974 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52975
52976         * modules/argp (Files): Add m4/unlocked-io.m4.
52977         (Depends-on): Add extensions.
52978
52979 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52980
52981         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
52982         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
52983         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
52984         Check for program_invocation_name, program_invocation_short_name,
52985         flockfile, funlockfile, features.h, _getopt_long_only_r.
52986
52987 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52988
52989         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
52990         its complicated substitute.
52991         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
52992         and program_invocation_name.
52993         (__argp_basename) [!_LIBC]: Remove; the only use was
52994         replaced by its body.
52995         (__argp_short_program_name): Change condition from
52996         !defined __argp_short_program_name to
52997         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
52998         to match argp-namefrob.h.
52999         (__argp_failure): Don't assume strerror_r returns char *.
53000         * lib/argp-parse.c (N_): Define unconditionally.
53001         (argp_default_options): Fill out initializers with 0 to avoid
53002         gcc warnings.
53003
53004 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53005
53006         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
53007         getopt1.c.
53008
53009 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53010
53011         Merge from coreutils.
53012
53013         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
53014
53015         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
53016         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
53017
53018 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53019
53020         Merge from coreutils.
53021
53022         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
53023         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
53024         for Reliant Unix 5.43.
53025
53026         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
53027         (union fooround): Use uintmax_t, not long int.
53028         The rest is a merge from libc:
53029         [defined _LIBC]: Include <shlib-compat.h>.
53030         (_obstack) [defined _LIBC]: Remove after 2.3.4.
53031
53032         * lib/settime.c (settime): Recode to avoid warning with
53033         Sun Forte C 6U2.
53034
53035         * lib/strverscmp.c: Convert to UTF-8.
53036
53037 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53038
53039         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
53040         m4/uintmax_t.m4.
53041
53042 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53043
53044         * modules/xalloc-die: New file.
53045         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
53046
53047         * modules/md5 (Files): Add m4/uint32_t.m4.
53048         * modules/sha1: Renamed from modules/sha.
53049         (Files):
53050         Rename lib/sha.h to lib/sha1.h.
53051         Rename lib/sha.c to lib/sha1.c.
53052         Rename m4/sha.m4 to m4/sha1.m4.
53053         (lib_SOURCES): Likewise.
53054         (configure.ac): Rename gl_SHA to gl_SHA1.
53055         (Include): sha.h -> sha1.h.
53056
53057 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53058
53059         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
53060         * m4/sha1.m4: Renamed from sha.m4.
53061         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
53062
53063 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53064
53065         * lib/obstack.h (obstack_empty_p):
53066         Don't assume that chunk->contents is suitably aligned.
53067         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
53068         Likewise. Problem reported by Benno in
53069         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
53070
53071         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
53072         readable.  This could be improved further but it'd take some work.
53073
53074 2004-08-08  Simon Josefsson  <jas@extundo.com>
53075
53076         * modules/xgethostname (Depends-on): Remove exit and error (not
53077         used).
53078
53079         * modules/getpass-gnu: Add getpass.h.
53080         (Depends-on): Add stdbool.
53081         * modules/getpass: Add getpass.h.
53082
53083 2004-08-08  Simon Josefsson  <jas@extundo.com>
53084
53085         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
53086         Check getpass declaration.
53087
53088 2004-08-08  Simon Josefsson  <jas@extundo.com>
53089
53090         * lib/xgethostname.c: Don't include error.h (not used).
53091
53092         * lib/getpass.h: Add.
53093         * lib/getpass.c: Include getpass.h first.
53094
53095 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
53096
53097         * lib/xalloc-die.c: New file.
53098         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
53099         All uses removed.
53100         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
53101         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
53102         xalloc-die.c.
53103         (_, N_, xalloc_die): Move to xalloc-die.c.
53104         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
53105         so that we needn't mess with xalloc_msg_memory_exhausted.
53106
53107         * lib/sha1.h: Renamed from sha.h.
53108         (SHA1_H): Renamed from _SHA_H.
53109         (sha1_ctx): Renamed from sha_ctx.
53110         (sha1_init_ctx): Renamed from sha_init_ctx.
53111         (sha1_process_block): Renamed from sha_process_block.
53112         (sha1_process_bytes): Renamed from sha_process_bytes.
53113         (sha1_finish_ctx): Renamed from sha_finish_ctx.
53114         (sha1_read_ctx): Renamed from sha_read_ctx.
53115         (sha1_stream): Renamed from sha_stream.
53116         (sha1_buffer): Renamed from sha_buffer.
53117         * lib/sha1.c: Likewise; renamed from sha.c.
53118         Do not include <sys/types.h>.
53119         Include <stddef.h> rather than <stdlib.h>.
53120
53121 2004-08-08  Bruno Haible  <bruno@clisp.org>
53122
53123         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
53124         FILESYSTEM_PREFIX_LEN.
53125         * lib/progreloc.c: Likewise.
53126         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
53127
53128 2004-08-06  Simon Josefsson  <jas@extundo.com>
53129
53130         * modules/progname (Depends-on): Don't depend on stdbool.
53131
53132 2004-08-06  Simon Josefsson  <jas@extundo.com>
53133
53134         * modules/getsubopt: New file.
53135         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53136         getsubopt.
53137
53138 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53139
53140         More merge from coreutils.
53141
53142         * m4/utimens.m4, m4/utimecmp.m4: New files.
53143         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
53144         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
53145         prereq.m4, sha.m4: Import changes from coreutils.
53146
53147 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53148
53149         More merge from coreutils.
53150         * modules/raise, modules/readtokens0, modules/utimens:
53151         * modules/utimecmp, module/xnanosleep: New files.
53152         * modules/strftime: Add lib/strftime.h.
53153         Change include from <time.h> to "strftime.h".
53154         * modules/yesno: Add lib/yesno.h.
53155         * modules/backupfile: Remove lib/addext.c.
53156         * modules/euidaccess: Add stat-macros.h.
53157         * modules/canonicalize, modules/euidaccess,
53158         modules/filemode, modules/lchown, modules/makepath,
53159         modules/rmdir, modules/stat: Likewise.
53160
53161 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53162
53163         Merge from tar.
53164         * lib/argp-help.c (make_hol, hol_append): Don't assume that
53165         SIZE_MAX is a valid preprocessor constant.
53166         (__argp_basename): Change from "#ifndef _LIBC"
53167         to "#ifndef __argp_short_program_name", so that
53168         we don't compile these functions for tar.
53169
53170         More merges from coreutils.
53171         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
53172         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
53173         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
53174         * lib/addext.c: Remove; no longer needed.
53175         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
53176         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
53177         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
53178         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
53179         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
53180         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
53181         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
53182         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
53183         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
53184         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
53185         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
53186         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
53187         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
53188         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
53189         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
53190         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
53191         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
53192         Import changes from coreutils.
53193
53194 2004-08-05  Simon Josefsson  <jas@extundo.com>
53195
53196         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
53197
53198 2004-08-05  Simon Josefsson  <jas@extundo.com>
53199
53200         * m4/getsubopt.m4: New file.
53201
53202 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
53203
53204         Merge from coreutils.
53205
53206         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
53207         * m4/getcwd-path-max.m4: New files.
53208
53209         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
53210         FILESYSTEM_PREFIX_LEN ->
53211         FILE_SYSTEM_PREFIX_LEN.
53212         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
53213         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
53214         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
53215         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
53216
53217         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
53218         prerequisite modules now handle the DOS stuff.
53219         Don't check for unistd.h.
53220
53221 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
53222
53223         Merge from coreutils.
53224
53225         * lib/.gdb-history: Remove; this doesn't belong here.
53226
53227         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
53228         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
53229         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
53230         * lib/getcwd.c: New files.
53231
53232         * lib/dirname.h: Include <stdbool.h>.
53233         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
53234         for consistency with POSIX terminology.  All uses changed.
53235         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
53236         (strip_trailing_slashes): Use bool for booleans.
53237         * lib/stripslash.c (strip_trailing_slashes): Likewise.
53238
53239         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
53240         sometimes returns a positive errno value even when it succeeds.
53241         (print_errno_message) [!LIBC]: Fall back on strerror if
53242         __strerror_r fails.
53243
53244         * lib/path-concat.c (mempcpy): Don't define if a system header defines
53245         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
53246         (longest_relative_suffix): New function.
53247         (path_concat): Use it.  Assume first argument is not NULL.
53248         Port to DOS.  Omit redundant separators.
53249         Report an error instead of returning NULL.
53250         Use mempcpy instead of memcpy.
53251         (xpath_concat): Remove: not declared or used.
53252
53253         * lib/same.h: Include <stdbool.h>
53254         (same_name): Return bool, not int.
53255         * lib/same.c (same_name): Likewise.
53256         (errno): Don't declare; we assume C89 or better now.
53257
53258         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
53259         if not already defined.
53260
53261         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
53262         * lib/dup-safer.c (errno): Likewise.
53263
53264 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
53265
53266         Merge from coreutils.
53267         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
53268         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
53269         * modules/path-concat: Don't depend on strdup.
53270
53271 2004-08-03  Simon Josefsson  <jas@extundo.com>
53272
53273         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
53274         * lib/progname.h: Don't include stdbool.h.
53275
53276 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
53277
53278         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
53279         * MODULES.html.sh (func_all_modules): Remove fatal.
53280
53281 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
53282
53283         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
53284
53285 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
53286
53287         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
53288         working.
53289
53290 2004-08-02  Simon Josefsson  <jas@extundo.com>
53291
53292         * lib/getsubopt.h: New file, with comments from Bruno Haible.
53293         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
53294         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
53295
53296 2004-08-01  Simon Josefsson  <jas@extundo.com>
53297
53298         * lib/xgetdomainname.c: Include stdlib.h, for free().
53299
53300 2004-07-19  Bruno Haible  <bruno@clisp.org>
53301
53302         * MODULES.html.sh (func_all_modules): Add dummy.
53303
53304 2004-07-16  Simon Josefsson  <jas@extundo.com>
53305
53306         * modules/dummy: New file.
53307
53308 2004-07-16  Simon Josefsson  <jas@extundo.com>
53309
53310         * lib/dummy.c: New file.
53311
53312 2004-07-16  Bruno Haible  <bruno@clisp.org>
53313
53314         * lib/backupfile.h: Add extern "C" for C++.
53315         * lib/closeout.h: Likewise.
53316         * lib/copy-file.h: Likewise.
53317         * lib/findprog.h: Likewise.
53318         * lib/full-write.h: Likewise.
53319         * lib/pathname.h: Likewise.
53320         * lib/progname.h: Likewise.
53321         * lib/stpcpy.h: Likewise.
53322         * lib/stpncpy.h: Likewise.
53323         * lib/strcase.h: Likewise.
53324         * lib/strstr.h: Likewise.
53325         * lib/xalloc.h: Likewise.
53326
53327         * lib/mbswidth.h: Add extern "C" for C++.
53328         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
53329
53330 2004-07-13  Robert Millan  <robertmh@gnu.org>
53331
53332         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
53333
53334 2004-07-09  Simon Josefsson  <jas@extundo.com>
53335
53336         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
53337         failed without this.)
53338
53339 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53340
53341         * modules/chown (Files): Add lib/fchown-stub.c, since
53342         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
53343
53344 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53345
53346         * lib/fchown-stub.c: New file.
53347
53348 2004-06-24  Jim Meyering  <jim@meyering.net>
53349
53350         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
53351
53352 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53353
53354         * modules/argz: Omit "#include".
53355
53356         * MODULES.html.sh (func_all_modules): Add calloc, to match
53357         2004-06-01 addition of calloc module.
53358
53359 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53360
53361         * m4/argz.m4: New file, which is autoupdated from libtool.
53362
53363 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53364
53365         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
53366         libtool.
53367
53368 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53369
53370         * config/srclist-update: Don't insist on "USA." before the
53371         close-comment, as libtool omits the period and puts the */ on a
53372         separate line.
53373         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
53374         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
53375
53376 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
53377
53378         * modules/argz: New file.
53379         * MODULES.html.sh (func_all_modules): Add argz.
53380
53381 2004-06-12  Jim Meyering  <jim@meyering.net>
53382         and  Paul Eggert  <eggert@cs.ucla.edu>
53383
53384         * modules/hash (Files): Add lib/xalloc.h.
53385         * modules/pipe (Depends-on): Add wait-process.
53386         * modules/stat (Depends-on): Add xalloc.
53387         * modules/userspec (Files): Add lib/userspec.h.
53388         * modules/xstrto
53389
53390         Upgrade from gettext-0.13.
53391         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
53392         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
53393         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
53394
53395 2004-06-10  Jim Meyering  <jim@meyering.net>
53396
53397         * lib/calloc.c: New file.
53398
53399 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
53400
53401         * lib/getdate.y (yylex): Allow space between sign and number.
53402         Problem reported by Dan Jacobson.
53403
53404 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
53405
53406         Merge from coreutils CVS.
53407
53408         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
53409         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
53410         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
53411         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
53412         xstrtol.m4: Fix copyright date and/or serial number.
53413
53414         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
53415         See if we need an fchown replacement.
53416         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
53417         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
53418         and use the replacement function if we detect either defect.
53419
53420         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
53421         gl_UTIMECMP.
53422
53423 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
53424         and  Jim Meyering  <jim@meyering.net>
53425
53426         Merge from coreutils CVS.
53427
53428         * lib/stat-macros.h: New file, with contents from file-type.h
53429         and coreutils' system.h.
53430         * lib/file-type.c: Include "stat-macros.h".
53431         * lib/file-type.h (file_type): Move all macro definitions to new file,
53432         stat-macros.h.
53433
53434         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
53435         Wrap old code with this conditional.
53436         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
53437         function that does not dereference symlinks.
53438         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
53439
53440         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
53441         dependency problems.
53442         (xreadlink): Accept new arg SIZE, for efficiency.
53443         All decls and uses changed.
53444         * lib/xreadlink.h: Include <stddef.h>, for size_t.
53445
53446         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
53447         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
53448
53449         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
53450         sysexits.h.
53451
53452 2004-06-01  Jim Meyering  <jim@meyering.net>
53453
53454         * m4/calloc.m4: New file.
53455
53456 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
53457
53458         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
53459         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
53460         Also, fix a typo in a diagnostic.
53461
53462 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
53463
53464         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
53465         or AC_FUNC_REALLOC.
53466
53467 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
53468
53469         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
53470         macros to be defined.
53471         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
53472         the allocator returns NULL because the requested size is zero.
53473
53474 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
53475
53476         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
53477         var.  Add comment explaining why libc still defines it.  This
53478         merges the following patch from glibc:
53479         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
53480
53481 2004-05-20  Andreas Schwab  <schwab@suse.de>
53482
53483         * m4/free.m4: Replace free if it not known to work, not the other
53484         way round.
53485
53486 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53487
53488         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
53489         present in glibc since revision 1.1 of this file.
53490         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
53491         obstack_alignment_mask, obstack_alloc, obstack_base,
53492         obstack_blank, obstack_blank_fast, obstack_chunk_size,
53493         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
53494         obstack_grow0, obstack_init, obstack_int_grow,
53495         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
53496         obstack_next_free, obstack_object_size, obstack_ptr_grow,
53497         obstack_ptr_grow_fast, obstack_room): Remove declarations of
53498         nonexistent functions.
53499
53500 2004-05-18  Karl Berry  <karl@gnu.org>
53501
53502         * config/srclist.txt: break link for vasnprintf.c.
53503
53504 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53505
53506         Port obstack to the AS/400, where pointers are 16 bytes wide and
53507         you cannot cast an integer to a valid pointer.  This patch is
53508         currently waiting to be integrated into glibc; see
53509         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
53510
53511         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
53512         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
53513         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
53514         (struct obstack): temp member is now a union of a pointer and
53515         an integer, instead of an integer.  All integer uses changed.
53516         This does not affect the physical layout of struct obstack,
53517         except on hosts (like the AS/400) where the size or alignment of
53518         void * is greater than that of ptrdiff_t.
53519         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
53520         __STDC__)]: Store temporary in pointer member of union, not
53521         integer member.
53522         * lib/obstack.c: Include <stddef.h>, for offsetof.
53523         (struct fooalign): Remove; it doesn't need a name.
53524         (union fooround): Change double to long double, and add void *.
53525         (DEFAULT_ALIGNMENT): Use offsetof to compute.
53526         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
53527         not a macro.  Hence the values are always int; so remove all
53528         casts-to-int in uses.
53529
53530 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53531
53532         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
53533         we can get this patch merged into glibc.
53534
53535 2004-05-17  Derek R. Price  <derek@ximbiot.com>
53536             Paul Eggert  <eggert@cs.ucla.edu>
53537
53538         * m4/argp: Depend on alloca.
53539
53540 2004-05-17  Derek R. Price  <derek@ximbiot.com>
53541             Paul Eggert  <eggert@cs.ucla.edu>
53542
53543         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
53544         freecoding.
53545
53546 2004-05-17  Bruno Haible  <bruno@clisp.org>
53547
53548         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
53549         precision that consists of a '.' followed by an empty digit string.
53550         Patch by Tor Lillqvist <tml@iki.fi>.
53551
53552 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53553
53554         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
53555         for backward compatibility with older code.  We need our own
53556         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
53557         it under some other name, and our alloca.h will define it.
53558
53559 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53560             Derek Price  <derek@ximbiot.com>
53561
53562         * lib/alloca.c: Include <alloca.h>, to get our interface.
53563         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
53564         include <alloca.h> first.  Use C89 prototype for alloca; this
53565         requires including <stddef.h> for size_t.  Use extern "C" if C++.
53566         Use #elif for simplicity, since we can assume C89 now.
53567         Don't try to source the system alloca.h since it will not be found
53568         and to prevent recursively including its replacement.
53569         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
53570         * lib/regex.c: Likewise.
53571
53572 2004-05-16  Derek Price  <derek@ximbiot.com>
53573             Paul Eggert  <eggert@cs.ucla.edu>
53574
53575         getline cleanup.  This changes the getndelim2 API: both order of
53576         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
53577         no delimiter).
53578
53579         * lib/getline.c: Don't include stddef.h or stdio.h, since our
53580         interface does that.
53581         (getline): Always use getdelim, so that we don't have two
53582         copies of this code.
53583         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
53584         if available.
53585         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
53586         (GETNDELIM2_MAXIMUM): New macro.
53587         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
53588         instead of the old practice of delim2==0.  All callers changed.
53589         Return -1 on overflow, instead of returning junk.
53590         Do not set *linesize unless allocation succeeds.
53591         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
53592         that we include sys/types.h.
53593         * lib/getnline.h: Likewise.
53594         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
53595         (getndelim2): Reorder arguments.
53596         * lib/getnline.c (getnline, getndelim):
53597         Don't discard the NMAX argument.
53598         (getnline): Invoke getndelim, to avoid code duplication.
53599         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
53600         of (size_t) -1 by callers of the getnline family.
53601
53602 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
53603
53604         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
53605         Check for gettimeofday.
53606         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
53607         Check for settimeofday, stime.
53608
53609 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
53610
53611         * lib/nanosleep.c (suspended): Change its type from int to
53612         sig_atomic_t volatile.
53613         (first_call): Make it private to rpl_nanosleep, and have it
53614         be zero initially as that's a bit faster.
53615         (my_usleep): Round up fractional times instead of truncating them,
53616         as this is the usual meaning for 'sleep'.
53617
53618         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
53619         doesn't work.
53620         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
53621         (ENOSYS): Define if not defined.
53622         (settime): Fall back on stime if it exists and settimeofday fails.
53623         But don't bother with fallbacks if a method fails with errno == EPERM.
53624
53625 2004-05-11  Jim Meyering  <jim@meyering.net>
53626
53627         Prior to this change, the save_cwd caller required read access to the
53628         current directory on most systems (ones with the fchdir function).
53629
53630         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
53631         fails, try write-only, and finally, resort to using xgetcwd.
53632
53633 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
53634
53635         * lib/obstack.c, obstack.h: Import changes from libc.
53636
53637 2004-04-28  Bruno Haible  <bruno@clisp.org>
53638
53639         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
53640         also implicitly appends .exe to executables.
53641         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
53642         accepts Windows pathnames.
53643         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
53644         Treat Cygwin like Windows, since it now accepts Windows pathnames.
53645         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
53646         Treat Cygwin like Windows, since it now accepts Windows pathnames.
53647         Reported by Derek Robert Price <derek@ximbiot.com>.
53648
53649 2004-04-21  Karl Berry  <karl@gnu.org>
53650
53651         * config/srclist.txt (localcharset.c): break sync.
53652
53653 2004-04-20  Paul Eggert  <eggert@twinsun.com>
53654
53655         * m4/host-os.m4: Add a copyright notice.
53656
53657 2004-04-20  Jim Meyering  <jim@meyering.net>
53658
53659         Change UTILS_ to gl_ in AC_DEFINE'd names.
53660         Change utils_- and jm_-prefixed variables, too.
53661         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
53662         UTILS_FUNC_MKDIR_TRAILING_SLASH.
53663         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
53664
53665         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
53666         Don't emit trailing blanks.
53667         Also rename jm_-prefixed variables to have gl_ prefix.
53668
53669         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
53670         Also rename jm_-prefixed variables to have gl_ prefix.
53671
53672         * m4/jm-macros.m4: Reflect the renamings.
53673         * m4/prereq.m4: Likewise.
53674
53675 2004-04-20  Jim Meyering  <jim@meyering.net>
53676
53677         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
53678         memory.
53679
53680 2004-04-20  Jim Meyering  <jim@meyering.net>
53681             Bruno Haible  <bruno@clisp.org>
53682
53683         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
53684         memory when realloc fails.
53685
53686 2004-04-19  Jim Meyering  <jim@meyering.net>
53687
53688         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
53689         now that readutmp.c may call `free (0)'.
53690
53691 2004-04-19  Bruno Haible  <bruno@clisp.org>
53692
53693         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
53694         * m4/inttypes_h.m4: Likewise.
53695         * m4/stdint_h.m4: Likewise.
53696         * m4/intmax_t.m4: Likewise.
53697         * m4/uintmax_t.m4: Likewise.
53698
53699 2004-04-18  Jim Meyering  <jim@meyering.net>
53700
53701         * m4/prereq.m4: Don't forbid jm_ prefix.
53702
53703         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
53704         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
53705         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
53706         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
53707         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
53708         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
53709         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
53710         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
53711         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
53712         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
53713         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
53714         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
53715         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
53716         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
53717         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
53718         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
53719         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
53720         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
53721         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
53722
53723 2004-04-18  Jim Meyering  <jim@meyering.net>
53724
53725         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
53726         failure, don't leak memory and do call END_UTMP_ENT.
53727
53728 2004-04-16  Jim Meyering  <jim@meyering.net>
53729
53730         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
53731         coreutils' stat program.
53732         (gl_PREREQ): Don't require jm_PREREQ_STAT.
53733
53734 2004-04-11  Paul Eggert  <eggert@twinsun.com>
53735
53736         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
53737         C89.
53738         (CHAR_BIT): Remove, since we assume C89.
53739         Include <stdint.h> if available, as per current Autoconf CVS advice.
53740
53741 2004-03-31  Jim Meyering  <jim@meyering.net>
53742
53743         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
53744         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
53745         * m4/xalloc.m4: Likewise.
53746
53747 2004-03-30  Paul Eggert  <eggert@twinsun.com>
53748
53749         Merge from coreutils.
53750
53751         * m4/inttostr.m4: New file.
53752         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
53753         Require AM_STDBOOL_H and gl_TIMESPEC instead.
53754         Require gl_CLOCK_TIME.
53755         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
53756
53757 2004-03-30  Paul Eggert  <eggert@twinsun.com>
53758
53759         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
53760         not bool, to be more consistent with Unix conventions.
53761         Suggested by Bruno Haible.
53762
53763         Merge from coreutils.
53764
53765         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
53766         * lib/umaxtostr.c: New files.
53767
53768         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
53769         the usual <time.h> dance.
53770         (get_date): Change signature to support fractional time stamps.
53771         All callers changed.
53772         * lib/getdate.y: Include "getdate.h" first, as we can now
53773         assume C89 and don't need to worry about 'const'.
53774         Similarly, include "unlocked-io.h" near start, not in middle.
53775         Include <limits.h>.
53776         (textint.value): Use long int rather than int.
53777         (textint.digits): Use size_t rather than int.
53778         (BILLION, LOG10_BILLION): New constants.
53779         (parser_control): New member rel_ns.  Members day_ordinal,
53780         time_zone, month, day, hour, minutes, rel_year, rel_month,
53781         rel_day, rel_hour, rel_minutes, rel_seconds
53782         are now long int, not int.  Member seconds is now struct timespec,
53783         not int.  New member timespec_seen.  Members dates_seen, days_seen,
53784         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
53785         not int.
53786         (%union.intval): Now long int, not int.
53787         New member timespec.
53788         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
53789         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
53790         (spec): Now is a timespec or an item list.
53791         (timespec, items): New nonterminals.
53792         (time, rel, relunit, number, get_date):
53793         Add support for fractional seconds.
53794         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
53795         (gmtime, localtime, mktime): Remove decls; not needed with C89.
53796         (to_hour): First arg is now long int, not int.
53797         (to_year): Returns long int, not int.
53798         Don't treat year -70 like 70.
53799         (tm_diff): Returns long int, not int.
53800         (lookup_word): Use bool instead of int when appropriate.
53801         (yylex): Use size_t for count, not int.
53802         Detect overflow when parsing large integer constants.
53803         Add support for fractions.
53804         (get_date): Make pointers 'const' if possible.
53805         Use more-portable code to detect integer overflow.
53806         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
53807         Don't use ctime; it's not reliable if the year has >4 digits.
53808
53809         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
53810         This is for compatibility with BSD.
53811
53812         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
53813         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
53814         From coreutils' system.h.
53815
53816         * lib/userspec.c: Don't include "posixver.h".
53817         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
53818         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
53819         compatible extension.  Simplify code by removing a boolean int
53820         that was always nonzero if a string was nonnull.
53821
53822 2004-03-30  Jim Meyering  <jim@meyering.net>
53823
53824         Merge from coreutils.
53825
53826         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
53827         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
53828         on some systems one must include <grp.h> before it.
53829         Reported by Christian Krackowizer.
53830
53831 2004-03-30  Jim Meyering  <jim@meyering.net>
53832
53833         Merge from coreutils.
53834
53835         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
53836
53837         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
53838         an empty input stream.
53839
53840         * lib/readtokens.c: Include <stdbool.h>.
53841         (readtoken): Use `size_t' rather than int/long.
53842         All callers adjusted.
53843         Use `bool' rather than `int' where appropriate.
53844         Use memset rather than an explicit loop.
53845         Use x2nrealloc rather than xrealloc.
53846         Allow the use of `\0' as a delimiter.
53847         (readtokens): Likewise.
53848         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
53849
53850 2004-03-30  Jim Meyering  <jim@meyering.net>
53851
53852         * m4/realloc.m4: Remove file, since now it does no more than
53853         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
53854         the `configure.ac' section of module/realloc.
53855         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
53856
53857 2004-03-30  Bruno Haible  <bruno@clisp.org>
53858
53859         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
53860         nonnull.
53861
53862 2004-03-29  Paul Eggert  <eggert@twinsun.com>
53863
53864         Merge changes to getloadavg.c from coreutils and Emacs.
53865
53866         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
53867         Define to an expression, not to the empty string.
53868         Include cloexec.h and xalloc.h.
53869         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
53870         Use set_cloexec_flag rather than rolling our own.
53871         * lib/cloexec.c, lib/cloexec.h: New files.
53872
53873 2004-03-29  Paul Eggert  <eggert@twinsun.com>
53874
53875         * m4/cloexec.m4: New file.
53876
53877 2004-03-18  Paul Eggert  <eggert@twinsun.com>
53878
53879         * lib/getopt.h: Sync with libc CVS.
53880
53881 2004-03-18  Paul Eggert  <eggert@twinsun.com>
53882             Bruno Haible  <bruno@clisp.org>
53883
53884         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
53885         mbswidth.
53886
53887 2004-03-18  Paul Eggert  <eggert@twinsun.com>
53888             Bruno Haible  <bruno@clisp.org>
53889
53890         * lib/mbswidth.h: Include <wchar.h> only if
53891         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
53892         <wchar.h>.
53893         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
53894
53895 2004-03-09  Paul Eggert  <eggert@twinsun.com>
53896
53897         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
53898         Sync with libc CVS.
53899         * lib/getopt_int.h: New file, also synced from libc.
53900
53901 2004-03-09  Paul Eggert  <eggert@twinsun.com>
53902
53903         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
53904         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
53905         Bring back getopt.c, getopt.h, getopt1.c.
53906
53907 2004-03-07  Paul Eggert  <eggert@twinsun.com>
53908
53909         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
53910         All uses changed.  Check for sa_sigaction member; this fixes
53911         a bug first reported by Jason Andrade in
53912         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
53913
53914 2004-03-07  Paul Eggert  <eggert@twinsun.com>
53915
53916         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
53917         '#if' expressions.  Unlike the code it replaces, it does not
53918         depend on (defined _SC_PAGESIZE).  However, it does depend on
53919         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
53920         first reported by Jason Andrade in
53921         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
53922
53923 2004-02-25  Simon Josefsson  <jas@extundo.com>
53924
53925         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
53926
53927 2004-02-25  Simon Josefsson  <jas@extundo.com>
53928
53929         * lib/strdup.h: New file.
53930         * lib/strdup.c: Include it.
53931         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
53932         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
53933
53934 2004-02-23  Karl Berry  <karl@gnu.org>
53935
53936         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
53937         (from fencepost.gnu.org:/gd/gnuorg).
53938
53939 2004-02-23  Karl Berry  <karl@gnu.org>
53940
53941         * config/srclistvars.sh (GNUORG) [karl]: redefine.
53942         * config/srclist.txt: add maintain/standards documents.
53943
53944 2004-02-18  Bruno Haible  <bruno@clisp.org>
53945
53946         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
53947         Reported by Derek Robert Price <derek@ximbiot.com>.
53948
53949 2004-02-16  Karl Berry  <karl@gnu.org>
53950
53951         * config/mkinstalldirs, install-sh: update from automake.
53952
53953 2004-02-06  Karl Berry  <karl@gnu.org>
53954
53955         * m4/po.m4: update from gettext 0.14.1.
53956
53957 2004-02-06  Karl Berry  <karl@gnu.org>
53958
53959         * lib/config.charset: update from gettext 0.14.1.
53960
53961 2004-02-05  Paul Eggert  <eggert@twinsun.com>
53962
53963         Add comments and code, prompted by suggestions from Bruno Haible
53964         for sh-quote.
53965         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
53966         describing the enum quoting_style values.
53967         * lib/quotearg.c (quotearg_alloc): New function.
53968         (quotearg_buffer_restyled): Treat lone { and } as special.
53969         Treat = as special.  Work around bug with older shells
53970         that "see" a '\' that is really the 2nd byte of a multibyte char.
53971         Quote empty string with shell_quoting_style.
53972
53973 2004-02-03  Bruno Haible  <bruno@clisp.org>
53974
53975         * m4/pipe.m4: New file, from GNU gettext.
53976
53977 2004-02-03  Bruno Haible  <bruno@clisp.org>
53978
53979         * lib/pipe.h: New file, from GNU gettext.
53980         * lib/pipe.c: New file, from GNU gettext.
53981
53982 2004-01-27  Bruno Haible  <bruno@clisp.org>
53983
53984         * m4/execute.m4: New file, from GNU gettext.
53985
53986 2004-01-27  Bruno Haible  <bruno@clisp.org>
53987
53988         * lib/execute.h: New file, from GNU gettext.
53989         * lib/execute.c: New file, from GNU gettext.
53990         * lib/w32spawn.h: New file, from GNU gettext.
53991
53992 2004-01-24  Paul Eggert  <eggert@twinsun.com>
53993
53994         Merge from diffutils.
53995
53996         * lib/file-type.c (file_type): Add typed memory objects.
53997         * lib/file-type.h (S_TYPEISTMO): New macro.
53998
53999         * lib/c-stack.h (c_stack_action): Remove argv argument.
54000         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
54001         (die): Don't calculate message unless segv_action returns.
54002         (get_stack_location, min_address_from_argv, max_address_from_argv,
54003         volatile stack_base, volatile_stack_size): Remove.
54004         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
54005         that every segmentation violation is a stack overflow.  (Ouch!)
54006         See Debian bug 136249 (still outstanding) for more info about why
54007         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
54008
54009 2004-01-24  Paul Eggert  <eggert@twinsun.com>
54010
54011         Exit-status fix from coreutils.
54012
54013         Use exit_failure consistently in place of EXIT_FAILURE,
54014         so that program exit statuses are consistent on failure.
54015
54016         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
54017         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
54018         * lib/argmatch.h: Comment fix to match the above.
54019         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
54020         Now a macro referring to exit_failure, instead of a separate
54021         variable.  Include "exitfail.h" to get it.
54022         * lib/xstrtol.h: Include "exitfail.h".
54023         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
54024
54025         * lib/long-options.c (parse_long_options): Use prototype
54026         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
54027         for clarity.
54028
54029 2004-01-21  Jim Meyering  <jim@meyering.net>
54030
54031         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
54032         so as not to conflict with a different-sized __mktime_internal
54033         function in GNU libc.
54034         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
54035         Problem building statically-linked `ls' reported by Michael Brunnbauer.
54036
54037 2004-01-20  Karl Berry  <karl@gnu.org>
54038
54039         * config/config.guess: update from config.
54040
54041         * config/srclistvars.sh: GNUWWWLICENSES for karl.
54042
54043 2004-01-20  Bruno Haible  <bruno@clisp.org>
54044
54045         Safer stack allocation.
54046         * lib/setenv.c: Include allocsa.h.
54047         (alloca): Remove fallback definition.
54048         (freea): Remove macro.
54049         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
54050         instead of freea.
54051
54052 2004-01-20  Bruno Haible  <bruno@clisp.org>
54053
54054         * m4/eealloc.m4: New file, from GNU gettext.
54055
54056 2004-01-20  Bruno Haible  <bruno@clisp.org>
54057
54058         * m4/allocsa.m4: New file, from GNU gettext.
54059
54060 2004-01-20  Bruno Haible  <bruno@clisp.org>
54061
54062         * lib/xallocsa.h: New file, from GNU gettext.
54063         * lib/xallocsa.c: New file, from GNU gettext.
54064
54065 2004-01-20  Bruno Haible  <bruno@clisp.org>
54066
54067         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
54068
54069 2004-01-20  Bruno Haible  <bruno@clisp.org>
54070
54071         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
54072         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
54073         specially.
54074
54075 2004-01-20  Bruno Haible  <bruno@clisp.org>
54076
54077         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
54078         patch.
54079
54080 2004-01-20  Bruno Haible  <bruno@clisp.org>
54081
54082         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
54083
54084 2004-01-20  Bruno Haible  <bruno@clisp.org>
54085
54086         * lib/eealloc.h: New file.
54087
54088 2004-01-20  Bruno Haible  <bruno@clisp.org>
54089
54090         * lib/binary-io.h: Avoid warnings on Cygwin.
54091
54092 2004-01-20  Bruno Haible  <bruno@clisp.org>
54093
54094         * lib/allocsa.h: New file, from GNU gettext.
54095         * lib/allocsa.c: New file, from GNU gettext.
54096
54097 2004-01-18  Karl Berry  <karl@gnu.org>
54098
54099         * doc/gpl.texi, doc/lgpl.texi: new files.
54100
54101 2004-01-18  Karl Berry  <karl@gnu.org>
54102
54103         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
54104         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
54105
54106 2004-01-15  Paul Eggert  <eggert@twinsun.com>
54107
54108         Merge from coreutils.
54109
54110         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
54111         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
54112         (gl_DEFAULT_POSIX2_VERSION): Move
54113         the documentation from 'configure' into 'config.hin',
54114         so that 'configure --help' isn't burdened by it and
54115         we don't have to worry about its formatting there.
54116         Reword the documentation so that it's more succinct
54117         and can be run together into a single paragraph.
54118         * m4/same.m4 (gl_SAME): Check for pathconf.
54119
54120 2004-01-15  Paul Eggert  <eggert@twinsun.com>
54121
54122         Merge from coreutils.
54123
54124         * lib/posixver.c: Include posixver.h.
54125
54126         * lib/same.c: Include <stdbool.h>, <limits.h>.
54127         (_POSIX_NAME_MAX): Define if not defined.
54128         (MIN): New macro.
54129         (same_name): If file names are silently truncated, report
54130         that the file names are the same if they are the same after
54131         the silent truncation.
54132
54133         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
54134         conversion function.
54135         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
54136         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
54137         longer needed.
54138
54139 2004-01-15  Jim Meyering  <jim@meyering.net>
54140
54141         Merge from coreutils.
54142
54143         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
54144         if no library is required.
54145         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
54146         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
54147         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
54148         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
54149         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
54150         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
54151         value, $ac_cv_search_crypt, if it's "none required".
54152         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
54153         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
54154         not gl_FUNC_GETLOADAVG.
54155         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
54156         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
54157
54158 2004-01-15  Jim Meyering  <jim@meyering.net>
54159
54160         Merge from coreutils.
54161
54162         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
54163         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
54164         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
54165
54166         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
54167         optional configure-time default.
54168
54169         * lib/version-etc.c (version_etc_copyright): Update copyright date.
54170
54171         * lib/xreadlink.c (xreadlink): Correct outdated comment.
54172
54173 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
54174
54175         Merge from coreutils.
54176
54177         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
54178         value, $ac_cv_search_nanosleep, if it's "none required".
54179
54180 2004-01-14  Paul Eggert  <eggert@twinsun.com>
54181
54182         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
54183         with like-named macro in fnmatch.c.
54184         (EXT): Use an internal constant instead.
54185
54186         Merge fnmatch patches from glibc.
54187         * lib/fnmatch.c (mbsinit): Remove define.
54188         Add libc_hidden_ver (__fnmatch, fnmatch).
54189         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
54190         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
54191
54192 2004-01-14  Karl Berry  <karl@gnu.org>
54193
54194         * config/install-sh: update from automake.
54195
54196 2004-01-13  Karl Berry  <karl@gnu.org>
54197
54198         * config/install-sh: update from automake.
54199
54200 2004-01-09  Karl Berry  <karl@gnu.org>
54201
54202         * config/install-sh: update from automake.
54203
54204 2004-01-05  Karl Berry  <karl@gnu.org>
54205
54206         * config/config.{sub,guess}: update from config.
54207
54208 2003-12-31  Karl Berry  <karl@gnu.org>
54209
54210         * config/depcomp: update from automake.
54211
54212 2003-12-14  Karl Berry  <karl@gnu.org>
54213
54214         * lib/config.charset: update from gettext-runtime.
54215
54216 2003-12-03  Paul Eggert  <eggert@twinsun.com>
54217
54218         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
54219         Bug reported by Alfred M. Szmidt.
54220
54221 2003-12-03  Bruno Haible  <bruno@clisp.org>
54222
54223         * m4/gettext.m4: Upgrade from gettext-0.13.
54224         * m4/po.m4: Upgrade from gettext-0.13.
54225         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
54226         * m4/intmax.m4: New file, from gettext-0.13.
54227         * m4/printf-posix.m4: New file, from gettext-0.13.
54228
54229 2003-11-29  Karl Berry  <karl@gnu.org>
54230
54231         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
54232
54233 2003-11-25  Paul Eggert  <eggert@twinsun.com>
54234             Bruno Haible  <bruno@clisp.org>
54235
54236         * lib/printf-parse.h: Don't include sys/types.h.
54237         (ARG_NONE): New macro.
54238         (char_directive): Change type of *arg_index fields to size_t.
54239         * lib/printf-parse.c: Don't include sys/types.h.
54240         (SSIZE_MAX): Remove macro.
54241         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
54242         Remove unnecessary overflow check.
54243         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
54244         fields.
54245
54246 2003-11-25  Bruno Haible  <bruno@clisp.org>
54247
54248         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
54249
54250 2003-11-25  Bruno Haible  <bruno@clisp.org>
54251
54252         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
54253         gt_TYPE_SSIZE_T.
54254
54255 2003-11-24  Paul Eggert  <eggert@twinsun.com>
54256
54257         * modules/alloca: Remove dependency on xalloc.
54258
54259 2003-11-24  Paul Eggert  <eggert@twinsun.com>
54260
54261         * lib/alloca.c: Remove dependency on xalloc module.
54262         (xalloc_die): Remove.
54263         (memory_full) [!defined emacs]: New macro.
54264         [!defined emacs]: Don't include xalloc.h.
54265         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
54266         address arithmetic overflows.  Change datatypes a bit to avoid
54267         unnecessary casts.
54268
54269 2003-11-22  Jim Meyering  <jim@meyering.net>
54270
54271         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
54272         s/size/size_t/.
54273
54274 2003-11-21  Karl Berry  <karl@gnu.org>
54275
54276         * config/config.{sub,guess}: update from config.
54277
54278 2003-11-18  Karl Berry  <karl@gnu.org>
54279
54280         * config/config.{sub,guess}: update from config.
54281
54282         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
54283
54284 2003-11-17  Paul Eggert  <eggert@twinsun.com>
54285
54286         * README: Mention that S+T cannot overflow if S is the size of
54287         an existing object and T is sufficiently small.
54288
54289 2003-11-17  Jim Meyering  <jim@meyering.net>
54290
54291         On systems without utime and without a utimes function capable of
54292         dealing with a NULL struct utimbuf* argument, this utime replacement
54293         could -- in unusual circumstances -- leak a file descriptor.
54294         * lib/utime.c: Include <unistd.h> and <errno.h>.
54295         (utime_null): Be sure to close `fd' and to preserve errno.
54296         Reported by Geoff Collyer via Arnold Robbins.
54297
54298 2003-11-17  Bruno Haible  <bruno@clisp.org>
54299
54300         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
54301         (Depends-on): Add xsize.
54302
54303 2003-11-17  Bruno Haible  <bruno@clisp.org>
54304
54305         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
54306
54307 2003-11-17  Bruno Haible  <bruno@clisp.org>
54308
54309         * lib/vasnprintf.c (alloca): Remove fallback definition.
54310         (freea): Remove definition.
54311         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
54312         Reported by Paul Eggert.
54313
54314 2003-11-16  Paul Eggert  <eggert@twinsun.com>
54315             Bruno Haible  <bruno@clisp.org>
54316
54317         Protect against address arithmetic overflow.
54318         * lib/printf-args.h: Include stddef.h.
54319         (arguments): Change type of field 'count' to size_t.
54320         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
54321         'unsigned int' where appropriate.
54322         * lib/printf-parse.h: Include sys/types.h.
54323         (char_directive): Change type of *arg_index fields to ssize_t.
54324         (char_directives): Change type of fields 'count', max_*_length to
54325         size_t.
54326         * lib/printf-parse.c: Include sys/types.h and xsize.h.
54327         (SSIZE_MAX): Define fallback value.
54328         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
54329         instead of 'int' where appropriate. Check a_allocated, d_allocated
54330         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
54331         * lib/vasnprintf.c: Include xsize.h.
54332         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
54333         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
54334         overflow. Avoid wraparound when converting a width or precision from
54335         decimal to binary.
54336
54337 2003-11-16  Bruno Haible  <bruno@clisp.org>
54338
54339         Update from GNU gettext.
54340         * lib/printf-parse.c: Generalize to it can be compiled for wide
54341         strings.
54342         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
54343         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
54344         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
54345         SNPRINTF): New macros.
54346         Don't include <alloca.h> if the file is used inside libintl.
54347         (local_wcslen): New function, for Solaris 2.5.1.
54348         (VASNPRINTF): Use it instead of wcslen.
54349
54350 2003-11-16  Bruno Haible  <bruno@clisp.org>
54351
54352         * lib/xsize.h (xmax): New function.
54353         (xsum, xsum3, xsum4): Declare as "pure" functions.
54354
54355 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54356
54357         * modules/xalloc (Files): Undo latest change, since xalloc.h
54358         no longer needs SIZE_MAX or PTRDIFF_MAX.
54359
54360 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54361
54362         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
54363         gl_PTRDIFF_MAX.
54364
54365 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54366
54367         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
54368         "return", to pacify some unknown compiler.  Problem reported
54369         by Joerg Schilling.
54370
54371 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54372
54373         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
54374         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
54375         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
54376         heuristic is just as accurate as far as we know, and it removes a
54377         dependency on size_max.m4 and ptrdiff_max.m4.
54378
54379 2003-11-11  Bruno Haible  <bruno@clisp.org>
54380
54381         * modules/xsize (Files): Add m4/size_max.m4.
54382         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
54383
54384 2003-11-11  Bruno Haible  <bruno@clisp.org>
54385
54386         * m4/size_max.m4: New file.
54387         * m4/ptrdiff_max.m4: New file.
54388         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
54389         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
54390         (gl_XALLOC): Invoke it.
54391
54392 2003-11-11  Bruno Haible  <bruno@clisp.org>
54393
54394         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
54395         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
54396         defined.
54397
54398 2003-11-10  Paul Eggert  <eggert@twinsun.com>
54399
54400         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
54401         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
54402         rejected some allocations of exactly SIZE_MAX - 2 bytes.
54403         From Bruno Haible.
54404         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
54405         not (size_t) -1, since it's defined here.
54406
54407 2003-11-09  Karl Berry  <karl@gnu.org>
54408
54409         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
54410
54411 2003-11-06  Paul Eggert  <eggert@twinsun.com>
54412
54413         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
54414         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
54415         Reject sizes of exactly SIZE_MAX bytes.
54416         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
54417         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
54418
54419 2003-11-05  Bruno Haible  <bruno@clisp.org>
54420
54421         * lib/xsize.h: Include limits.h, to avoid a possible collision with
54422         SIZE_MAX defined in <limits.h> on Solaris.
54423
54424 2003-11-04  Jim Meyering  <jim@meyering.net>
54425
54426         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
54427         variable names, rather than @VAR@.
54428         * modules/poll: Likewise.
54429
54430 2003-11-04  Bruno Haible  <bruno@clisp.org>
54431
54432         * modules/xsize: New file.
54433         * modules/linebreak: Depend on xsize.
54434         * MODULES.html.sh (func_all_modules): Add xsize.
54435
54436 2003-11-04  Bruno Haible  <bruno@clisp.org>
54437
54438         * m4/xsize.m4: New file.
54439
54440 2003-11-04  Bruno Haible  <bruno@clisp.org>
54441
54442         * lib/xsize.h: New file.
54443         * lib/linebreak.c: Include xsize.h.
54444         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
54445         argument for overflow.
54446         Suggested by Paul Eggert.
54447
54448 2003-11-03  Karl Berry  <karl@gnu.org>
54449
54450         * config/config.{guess,sub}: update from config.
54451
54452 2003-11-03  Jim Meyering  <jim@meyering.net>
54453
54454         * modules/userspec (lib_SOURCES): Add userspec.h.
54455         (Include): Add "userspec.h".
54456         Improve description.
54457
54458 2003-11-03  Jim Meyering  <jim@meyering.net>
54459
54460         * lib/userspec.c: Include "userspec.h".
54461         * lib/userspec.h: New file.
54462
54463 2003-11-03  Bruno Haible  <bruno@clisp.org>
54464
54465         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
54466
54467 2003-11-03  Bruno Haible  <bruno@clisp.org>
54468
54469         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
54470         available, to avoid (extremely rare) race condition.
54471         Suggested by Paul Eggert.
54472
54473 2003-11-02  Karl Berry  <karl@gnu.org>
54474
54475         * config/srclist.txt (vasprintf.c): sync broken, sigh.
54476
54477 2003-10-31  Paul Eggert  <eggert@twinsun.com>
54478
54479         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
54480         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
54481         (read_filesystem_list): Set and use me_type_malloced.
54482         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
54483         whatever the type happens to be), for brevity and consistency.
54484         Check for size calculation overflow on Alphas running OSF/1.
54485
54486 2003-10-31  Jim Meyering  <jim@meyering.net>
54487
54488         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
54489
54490         * lib/linebuffer.c: Include <string.h> for declaration of memset.
54491
54492 2003-10-30  Paul Eggert  <eggert@twinsun.com>
54493             Bruno Haible  <bruno@clisp.org>
54494
54495         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
54496         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
54497
54498 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
54499
54500         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
54501         netbsd*-gnu*.  Suggested by Robert Millan.
54502
54503 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54504
54505         * modules/group-member: Depend on stdbool.
54506
54507 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54508
54509         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
54510
54511 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54512
54513         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
54514         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
54515         after the 'gnu' in these cases.  This fixes some bugs in the
54516         previous change, and is based on suggestions by Robert Millan.
54517
54518 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54519
54520         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
54521         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
54522         no longer needed.
54523         * lib/quotearg.c (quotearg_n_options): Use it.
54524         * lib/group-member.c: Include <stdbool.h>.
54525         (free_group_info): Arg is now const *; don't free arg.
54526         (get_group_info): Now returns bool and accepts struct group_info *,
54527         rather than returning a malloc'ed struct group_info *.
54528         All uses changed.  Check for overflow in internal size calculation.
54529
54530         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
54531         rather than xmalloc/xrealloc.
54532         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
54533         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
54534         conformance bug: the old code used a pointer after freeing the
54535         storage that it addressed.
54536         * lib/hash.c (hash_initialize): Simplify the code by using
54537         xalloc_oversized rather than doing it by hand.
54538         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
54539         the buffer preserved.  Use free and xmalloc instead.
54540         * lib/quotearg.c (quotearg_n_options): Likewise.
54541         Use a simpler test for size overflow.  Don't use xalloc_oversized
54542         because unsigned int might be wider than size_t (!); this suggests
54543         that we should switch from unsigned int to size_t for slot numbers.
54544
54545 2003-10-28  Paul Eggert  <eggert@twinsun.com>
54546
54547         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
54548         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
54549         NetBSD kernels.  Requested by Richard Stallman.
54550
54551 2003-10-27  Paul Eggert  <eggert@twinsun.com>
54552
54553         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
54554         to allocate the returned structure.  Do not allocate a subarray,
54555         as x2nrealloc will do that.
54556         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
54557         instead of xnrealloc.
54558         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
54559
54560 2003-10-27  Bruno Haible  <bruno@clisp.org>
54561
54562         * lib/stdbool_.h: Better support for BeOS.
54563
54564 2003-10-26  Paul Eggert  <eggert@twinsun.com>
54565
54566         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
54567         now uses inline.
54568
54569 2003-10-26  Paul Eggert  <eggert@twinsun.com>
54570
54571         * lib/xalloc.h (xalloc_oversized): New static inline function, for
54572         callers that want to do their own size-overflow checking.  Include
54573         <stdbool.h>, since xalloc_oversized returns bool.
54574         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
54575         to use xalloc_oversized.
54576
54577         Add two functions x2realloc, x2nrealloc, for programs that grow
54578         arrays dynamically by doubling their sizes.
54579         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
54580         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
54581         New functions.
54582
54583         Port to C99 semantics for 'inline' of external functions.
54584         Bug reported by Bruno Haible.
54585         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
54586         with the old contents of xnmalloc.
54587         (xnmalloc, xmalloc): Use it.
54588         (xnrealloc_inline): New static inline function,
54589         with the old contents of xnrealloc.
54590         (xnrealloc, xrealloc): Use it.
54591
54592         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
54593         that.
54594
54595 2003-10-26  Karl Berry  <karl@gnu.org>
54596
54597         * config/srclist.txt (COPYING.DOC): no longer available from
54598         /gd/gnuorg; don't know where the ultimate source is.
54599
54600 2003-10-25  Paul Eggert  <eggert@twinsun.com>
54601
54602         Fix several address-calculation bugs in the hash modules,
54603         plus some minor code cleanup.
54604
54605         * lib/hash.h: Include <stdbool.h>, for bool.
54606         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
54607         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
54608         hash_get_n_entries, hash_get_max_bucket_length,
54609         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
54610         hash_rehash): Use size_t rather than unsigned.
54611         * lib/hash.c (struct hash_table, hash_get_n_buckets,
54612         hash_get_n_buckets_used, hash_get_n_entries,
54613         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
54614         hash_get_entries, hash_do_for_each, hash_string, is_prime,
54615         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
54616         Likewise.
54617         (SIZE_MAX): Define if not defined.
54618         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
54619         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
54620         hash_print):
54621         Use const * when possible.
54622         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
54623         (check_tuning): Fix bug: if tuning parameters were very close to
54624         0 or 1, rounding errors could have caused subscript violations.
54625         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
54626         (hash_initialize): Add 'fail:' label
54627         to free table and return NULL, and use it to simplify code.
54628         Use calloc rather than clearing the storage ourself.
54629         (hash_initialize, hash_rehash): Check for arithmetic overflow in
54630         buffer size calculations.
54631         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
54632         Include <stddef.h>, for size_t.
54633         * lib/hash-pjw.c (hash_pjw): Likewise.
54634         Switch to method described by Bruno Haible.
54635         Include <limits.h>, for CHAR_BIT.
54636         (SIZE_BITS): New macro.
54637
54638 2003-10-23  Paul Eggert  <eggert@twinsun.com>
54639
54640         * m4/getline.m4 (AM_FUNC_GETLINE):
54641         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
54642         hosts.  Problem reported by Derek Robert Price in
54643         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
54644         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
54645         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
54646
54647 2003-10-21  Paul Eggert  <eggert@twinsun.com>
54648
54649         * lib/getndelim2.c (getndelim2): When size calculation overflows,
54650         ceiling the allocation at NMAX bytes rather than silently
54651         discarding input bytes before NMAX is reached.  This makes
54652         a difference only if NMAX exceeds SIZE_MAX / 2.
54653
54654         * lib/obstack.c: Merge from glibc.
54655         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
54656         Add libc_hidden_def (_obstack_newchunk).
54657         (_obstack_free) [! defined _LIBC]: Remove.
54658         [defined _LIBC]: Make a strong alias from obstack_free, rather than
54659         a clone of the function body.
54660         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
54661         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
54662
54663         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
54664         glibc.
54665         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
54666         arg to memcpy.
54667
54668         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
54669         (obstack_ptr_grow_fast, obstack_int_grow_fast):
54670         Don't use lvalue casts, as GCC plans to remove support for them
54671         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
54672         was also present in the non-GCC version, indicating that this
54673         code had always been buggy and had never been widely used.
54674         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
54675         Use the fast variant of each macro, rather than copying the
54676         definiens of the fast variant; that way, we'll be more likely to
54677         catch future bugs in the fast variants.
54678
54679 2003-10-20  Bruno Haible  <bruno@clisp.org>
54680
54681         * modules/wait-process: New file.
54682         * MODULES.html.sh (func_all_modules): Add wait-process.
54683
54684 2003-10-20  Bruno Haible  <bruno@clisp.org>
54685
54686         * m4/wait-process.m4: New file.
54687
54688 2003-10-20  Bruno Haible  <bruno@clisp.org>
54689
54690         * lib/wait-process.h: New file, from GNU gettext.
54691         * lib/wait-process.c: New file, from GNU gettext.
54692
54693 2003-10-19  Jim Meyering  <jim@meyering.net>
54694
54695         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
54696         HPUX 10.20.
54697
54698 2003-10-18  Karl Berry  <karl@gnu.org>
54699
54700         * config/config.guess: update from config.
54701
54702 2003-10-16  Paul Eggert  <eggert@twinsun.com>
54703
54704         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
54705         (getgroups): First arg is int, not size_t.
54706         Don't let 'free' mangle errno.
54707
54708 2003-10-16  Paul Eggert  <eggert@twinsun.com>
54709
54710         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
54711
54712 2003-10-16  Karl Berry  <karl@gnu.org>
54713
54714         * config/config.{guess,sub}: update from config.
54715
54716 2003-10-16  Jim Meyering  <jim@meyering.net>
54717
54718         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
54719         memcpy.
54720
54721 2003-10-15  Paul Eggert  <eggert@twinsun.com>
54722
54723         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
54724         (SIZE_MAX): Remove.
54725         (new_exclude, add_exclude_file): Initial size no longer needs to
54726         be a power of 2.
54727         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
54728         our own address arithmetic overflow checking.
54729
54730         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
54731         (fnmatch): Do not alloca more than 2000 wide characters;
54732         instead, use malloc for large buffers.
54733         Check for address arithmetic overflow, and return -1
54734         with errno set to ENOMEM in that case.
54735         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
54736         (NEW_PATTERN): Do not alloca more than 8000 bytes;
54737         instead, return -1.  Check for address arithmetic overflow.
54738
54739 2003-10-14  Paul Eggert  <eggert@twinsun.com>
54740
54741         Handle invalid suffixes and overflow independently, so that
54742         callers can treat them independently as needed.  Fix some bugs in
54743         suffix handling, e.g., "100k@" was not diagnosed as an invalid
54744         suffix for a human-readable blocksize.  The major caller-visible
54745         change is the addition of a new
54746         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
54747         that both overflow and suffix chars were found.
54748
54749         * lib/human.c (humblock): Don't check separately for invalid suffix
54750         char; that is xstrtoumax's job (now that its bug is fixed).
54751         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
54752         INTMAX_MAX]: New macros.
54753         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
54754         TYPE_MAXIMUM): New macros.
54755         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
54756         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
54757         if overflow occurs, as it's what __strtol does and it's more useful
54758         in practice.
54759         (__xstrtol): If __strtol reports some error other than ERANGE,
54760         reflect it to the caller as LONGINT_INVALID.  If it reports
54761         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
54762         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
54763         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
54764         value.
54765         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
54766         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
54767         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
54768         [defined UINTMAX_MAX]: New macros.
54769
54770 2003-10-14  Bruno Haible  <bruno@clisp.org>
54771
54772         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
54773
54774 2003-10-14  Bruno Haible  <bruno@clisp.org>
54775
54776         * m4/sig_atomic_t: New file, from GNU gettext.
54777         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
54778
54779 2003-10-14  Bruno Haible  <bruno@clisp.org>
54780
54781         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
54782         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
54783         Also use volatile where needed.
54784
54785 2003-10-12  Paul Eggert  <eggert@twinsun.com>
54786
54787         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
54788         Change maintainer from Bruno Haible to 'all'.
54789
54790 2003-10-12  Paul Eggert  <eggert@twinsun.com>
54791
54792         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
54793
54794 2003-10-12  Paul Eggert  <eggert@twinsun.com>
54795
54796         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
54797         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
54798         and define in terms of the other primitives.
54799         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
54800         (SIZE_MAX): Define if not already defined.
54801         (array_size_overflow): New function.
54802         (xalloc_die): Abort instead of exiting if 'error' returns.
54803         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
54804         (xmalloc, xrealloc): Use them.
54805         (xcalloc): Check for address arithmetic overflow.
54806         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
54807         a bit faster than strcpy.
54808
54809 2003-10-10  Simon Josefsson  <jas@extundo.com>
54810
54811         * modules/argp (Depends-on): Add restrict and strcase.
54812
54813 2003-10-10  Simon Josefsson  <jas@extundo.com>
54814
54815         * m4/argp.m4: Add AC_C_INLINE.
54816
54817 2003-10-08  Paul Eggert  <eggert@twinsun.com>
54818
54819         Merge getpass from libc, plus a few fixes.
54820
54821         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
54822         Include <stdbool.h>.
54823         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
54824         __fsetlocking to empty.
54825         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
54826         do include <bits/libc-lock.h>.
54827         Do not include <fcntl.h>; not needed.
54828         [_LIBC]: Include <wchar.h>.
54829         (NOTCANCEL_MODE): New macro.
54830         (flockfile, funlockfile) [_LIBC]: New macros.
54831         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
54832         [!_LIBC]: New macros.
54833         (call_fclose): New function.
54834         (getpass): Use it.  Save tty stream separately; this simplifies the
54835         code and makes it more reliable if stdin happens to equal stdout.
54836         Invoke __fsetlocking on tty.
54837         Handle thread cancellation if needed.
54838         Namespace cleanup (use __tcgetattr, __getline).
54839         Use bool for Booleans.
54840         [USE_IN_LIBIO]: Handle wide streams.
54841         [!_LIBC]: Unconditionally do the fseek, since we don't know what
54842         stream might go where.
54843
54844         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
54845         doesn't have to include <stdio.h> before us.
54846         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
54847         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
54848         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
54849         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
54850         if not declared, so that we can use getpass.c code from libc without
54851         rewriting it.
54852         (flockfile, ftrylockfile, funlockfile): New macros.
54853
54854 2003-10-08  Paul Eggert  <eggert@twinsun.com>
54855
54856         * modules/getpass: Depend on stdbool.
54857
54858 2003-10-08  Paul Eggert  <eggert@twinsun.com>
54859
54860         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
54861
54862 2003-10-07  Karl Berry  <karl@gnu.org>
54863
54864         * config/config.{guess,sub}: update from config.
54865
54866 2003-10-06  Jim Meyering  <jim@meyering.net>
54867             Bruno Haible  <bruno@clisp.org>
54868
54869         This lets translators provide better translations for the
54870         "Written by ..." part of --version output.
54871         * lib/version-etc.h: Include stdarg.h.
54872         (version_etc_copyright): Declare as readonly.
54873         (version_etc): Make this function variadic with a NULL-terminated list
54874         of author name strings.
54875         (version_etc_va): New declaration.
54876         * lib/version-etc.c: Include stdarg.h, stdlib.h.
54877         (version_etc_copyright): Declare as readonly.
54878         (version_etc_va): New function. Provide a different translatable string
54879         for each possible number of authors < 10. Abbreviate when there are 10
54880         authors or more.
54881         (version_etc): Make this function variadic. Call version_etc_va.
54882         Suggestion from Gary V. Vaughan.
54883
54884         * lib/long-options.h (parse_long_options): Change prototype: the
54885         authors string is moved to the end and becomes variadic.
54886         * lib/long-options.c: Include stdarg.h.
54887         (parse_long_options): Make this function variadic, too.
54888         Call version_etc_va, not version_etc.
54889
54890 2003-10-06  Bruno Haible  <bruno@clisp.org>
54891
54892         * modules/version-etc-2: Remove file.
54893         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
54894
54895 2003-10-06  Bruno Haible  <bruno@clisp.org>
54896
54897         * modules/fatal-signal: New file.
54898         * MODULES.html.sh (func_all_modules): Add fatal-signal.
54899
54900 2003-10-06  Bruno Haible  <bruno@clisp.org>
54901
54902         * m4/fatal-signal.m4: New file.
54903         * m4/signalblocking.m4: New file, from GNU gettext.
54904
54905 2003-10-06  Bruno Haible  <bruno@clisp.org>
54906
54907         * lib/version-etc-2.h: Remove file.
54908         * lib/version-etc-2.c: Remove file.
54909
54910 2003-10-06  Bruno Haible  <bruno@clisp.org>
54911
54912         * lib/fatal-signal.h: New file, from GNU gettext.
54913         * lib/fatal-signal.c: New file, from GNU gettext.
54914
54915 2003-10-05  Paul Eggert  <eggert@twinsun.com>
54916
54917         * README: Rework advice for preventing empty .o files.
54918         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
54919         not <sys/types.h>.
54920
54921 2003-10-04  Karl Berry  <karl@gnu.org>
54922
54923         * lib/argp*: update from libc.
54924
54925 2003-10-04  Karl Berry  <karl@gnu.org>
54926
54927         * config/config.{guess,sub}: update from config.
54928
54929 2003-10-02  Bruno Haible  <bruno@clisp.org>
54930
54931         * modules/lchown (Include): Add lchown.h.
54932         * modules/time_r (Include): Use "..." syntax.
54933         * modules/xgetdomainname (Include): Add xgetdomainname.h.
54934
54935 2003-10-01  Simon Josefsson  <jas@extundo.com>
54936
54937         * MODULES.html.sh (func_all_modules): Move gethostname from section
54938         'based on' to section 'lacking' POSIX:2001.
54939
54940 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
54941
54942         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
54943         to output mode on the same stream.
54944
54945 2003-09-29  Paul Eggert  <eggert@twinsun.com>
54946
54947         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
54948         Fix arg typo in previous patch.
54949
54950 2003-09-28  Jim Meyering  <jim@meyering.net>
54951
54952         * lib/error.c: Correct cpp indentation.
54953
54954 2003-09-27  Paul Eggert  <eggert@twinsun.com>
54955
54956         * modules/free: New file.
54957
54958 2003-09-27  Paul Eggert  <eggert@twinsun.com>
54959
54960         * m4/free.m4: New file.
54961
54962 2003-09-27  Paul Eggert  <eggert@twinsun.com>
54963
54964         * lib/minmax.h (MIN, MAX)
54965         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
54966         Omit the special code that used __typeof__, since we worry that
54967         it could be more trouble than it's worth.  See:
54968         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
54969         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
54970
54971         * lib/free.c: New file.
54972
54973 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
54974
54975         Trivial fixes to Makefile.am parts of module listings.
54976         * modules/strstr: Append strstr.h to lib_SOURCES.
54977         * modules/strcase: Likewise, for strcase.h.
54978
54979 2003-09-27  Karl Berry  <karl@gnu.org>
54980
54981         * config/mkinstalldirs: update from automake.
54982
54983 2003-09-26  Paul Eggert  <eggert@twinsun.com>
54984
54985         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
54986         (error_tail): Do not loop, reallocating temporary buffer, since
54987         the output cannot contain more wide characters than the input
54988         contains bytes, the size must be big enough already.  This avoids
54989         one potential size overflow calculation.  Check for size overflow
54990         when calculating temporary buffer size.  Free temporary buffer
54991         when done, if it was allocated with malloc; this plugs a memory
54992         leak.  Remove casts from void * to pointers, that are no longer
54993         needed now that we're assuming C89 or better.
54994
54995         Merge error changes from glibc.
54996
54997         * lib/error.c, error.h: Update copyright notice header to match glibc.
54998         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
54999         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
55000         Disable cancellation while printing error.
55001         * lib/error.h: Prepend __ to parameter names.
55002
55003 2003-09-26  Jim Meyering  <jim@meyering.net>
55004
55005         * lib/error.c (error_tail): Move some declarations
55006         into inner scope where the local variables are used.
55007
55008 2003-09-26  Bruno Haible  <bruno@clisp.org>
55009
55010         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
55011         stpncpy().
55012         Don't define stpncpy through config.h; it's now done through stpncpy.h.
55013
55014 2003-09-26  Bruno Haible  <bruno@clisp.org>
55015
55016         * lib/stpncpy.h (gnu_stpncpy): New declaration.
55017         (stpncpy): Define as alias for gnu_stpncpy.
55018         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
55019
55020 2003-09-25  Simon Josefsson  <jas@extundo.com>
55021
55022         * lib/xgetdomainname.h: New file.
55023         * lib/xgetdomainname.c: New file.
55024
55025 2003-09-25  Simon Josefsson  <jas@extundo.com>
55026             Bruno Haible  <bruno@clisp.org>
55027
55028         * modules/getdomainname: New file.
55029         * modules/xgetdomainname: New file.
55030         * MODULES.html.sh (func_all_modules): Add getdomainname,
55031         xgetdomainname.
55032
55033 2003-09-25  Simon Josefsson  <jas@extundo.com>
55034             Bruno Haible  <bruno@clisp.org>
55035
55036         * m4/getdomainname.m4: New file.
55037
55038 2003-09-25  Simon Josefsson  <jas@extundo.com>
55039             Bruno Haible  <bruno@clisp.org>
55040
55041         * lib/getdomainname.h: New file.
55042         * lib/getdomainname.c: New file.
55043
55044 2003-09-25  Karl Berry  <karl@gnu.org>
55045
55046         * lib/argp-fmtstream.c, argp-help.c: update from libc.
55047
55048 2003-09-25  Karl Berry  <karl@gnu.org>
55049
55050         * config/install-sh: update from automake.
55051
55052 2003-09-25  Bruno Haible  <bruno@clisp.org>
55053
55054         * modules/version-etc-2: New file, from modules/version-etc with
55055         modifications.
55056         * MODULES.html.sh (func_all_modules): Add version-etc-2.
55057
55058 2003-09-25  Bruno Haible  <bruno@clisp.org>
55059
55060         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
55061         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
55062
55063 2003-09-24  Simon Josefsson  <jas@extundo.com>
55064
55065         * modules/xgethostname: Add xgethostname.h.
55066
55067 2003-09-24  Paul Eggert  <eggert@twinsun.com>
55068
55069         * lib/linebuffer.c (freebuffer): Don't free the argument, just
55070         the buffer associated with the argument.  Bug reported by
55071         Simon Josefsson.
55072
55073 2003-09-24  Paul Eggert  <eggert@twinsun.com>
55074
55075         * README: Document assumptions that 'int' is at least 32 bits
55076         wide, that integer arithmetic is 2's complement without overflow,
55077         that there are no holes in integer values, that adding sizes of
55078         two nonoverlapping objects can't overflow, and that all-bits-zero
55079         yields scalar zero.  Fix spelling and capitalization typos.
55080
55081 2003-09-19  Karl Berry  <karl@gnu.org>
55082
55083         * lib/argp.h: update from libc.
55084
55085 2003-09-17  Paul Eggert  <eggert@twinsun.com>
55086
55087         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
55088         to avoid spurious warnings like "AC_RUN_IFELSE was called before
55089         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
55090
55091 2003-09-17  Paul Eggert  <eggert@twinsun.com>
55092
55093         * gnulib-tool: Use "test -h", not "test -L", for portability
55094         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
55095         (tags_regexp): Remove, since \| doesn't conform to POSIX.
55096         (sed_extract_prog): Issue s commands one-by-one, rather than
55097         using \| in one s command.
55098
55099 2003-09-16  Paul Eggert  <eggert@twinsun.com>
55100
55101         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
55102         input error, instead of returning NULL the next time we are called
55103         (and therefore losing track of errno).
55104
55105 2003-09-16  Bruno Haible  <bruno@clisp.org>
55106
55107         * gnulib-tool (func_create_testdir): Warn about duplicated
55108         dependencies.
55109
55110 2003-09-15  Paul Eggert  <eggert@twinsun.com>
55111
55112         * modules/argmatch, modules/fatal, modules/obstack,
55113         modules/xalloc, modules/xgethostname: Sort dependencies by
55114         importance, not alphabetically.
55115
55116 2003-09-15  Paul Eggert  <eggert@twinsun.com>
55117
55118         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
55119         fails, so that the caller gets the proper errno.
55120
55121         * lib/readutmp.c (read_utmp): Likewise.
55122         Check for fstat error.  Close stream and free storage
55123         when failing.
55124
55125 2003-09-14  Karl Berry  <karl@gnu.org>
55126
55127         * config/srclist.txt (strdup.c): disable for c89 changes.
55128
55129 2003-09-14  Jim Meyering  <jim@meyering.net>
55130
55131         * lib/getloadavg.c: Correct cpp indentation.
55132         * lib/strdup.c: Likewise.
55133         * lib/vasnprintf.c: Likewise.
55134
55135 2003-09-14  Bruno Haible  <bruno@clisp.org>
55136
55137         * modules/fwriteerror: New file.
55138         * MODULES.html.sh (func_all_modules): Add fwriteerror.
55139
55140 2003-09-14  Bruno Haible  <bruno@clisp.org>
55141
55142         * lib/fwriteerror.h: New file.
55143         * lib/fwriteerror.c: New file.
55144
55145 2003-09-12  Paul Eggert  <eggert@twinsun.com>
55146
55147         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
55148         modules/xgethostname, modules/xalloc: Depend on exit.
55149
55150 2003-09-12  Paul Eggert  <eggert@twinsun.com>
55151
55152         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
55153
55154         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
55155         and AC_MINIX, too, so that their extensions are available.
55156
55157         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
55158         This macro has been superseded by gl_BACKUPFILE.
55159
55160         More patches to assume C89 or better.
55161
55162         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
55163
55164         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
55165         unconditionally.
55166         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
55167         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
55168         Include <string.h>, <stdlib.h> unconditionally.
55169         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
55170         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
55171         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
55172         headers or for string.h.
55173         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
55174         or strtoul.
55175
55176         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
55177         headers.
55178         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
55179         * m4/userspec.m4 (gl_USERSPEC): Likewise.
55180         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
55181         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
55182         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55183         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
55184         memcpy, memset.
55185         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
55186         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
55187         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
55188         strtol.
55189         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
55190         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
55191         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
55192         strtoul.
55193
55194 2003-09-12  Paul Eggert  <eggert@twinsun.com>
55195
55196         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
55197         * lib/obstack.c [!defined _LIBC]: Likewise.
55198         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
55199         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
55200         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
55201
55202         More changes to assume C89 or better.
55203
55204         * lib/error.c (error_tail): Assume vprintf.
55205
55206         * lib/argmatch.c (getenv): Remove decl.
55207         * lib/progreloc.c (get_full_program_name): Define via prototype.
55208         * lib/setenv.c (clearenv): Likewise.
55209         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
55210         needed.
55211         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
55212         (malloc, memcpy): Remove decls.
55213         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
55214         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
55215         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55216         (memcpy): Remove macro.
55217         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
55218         (__P): Remove.  All uses removed.
55219         (PTR): Remove.  All uses changed to void *.
55220         (CHAR_BIT, NULL): Remove.
55221         (spaces, zeros, memset_space, memset_zero)
55222         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
55223         Remove.
55224         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
55225         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
55226         Define with prototype.
55227         Remove now-unnecessary prototype decl.
55228         (extra_args_spec): Assume ANSI C.  All uses changed.
55229         (extra_args_spec_iso): Remove.
55230         (my_strftime, emacs_strftimeu): Define via prototype.
55231         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
55232         unconditionally.
55233         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
55234         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
55235         (strtoul, strtol): Remove decls.
55236         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
55237         LONG_MAX): Remove.
55238         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55239         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
55240         (LOCALE_PARAM_PROTO): New macro.
55241         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
55242         (INTERNAL (strtol), strtol): Define with a prototype.
55243         (PARAMS): Remove.  All uses removed.
55244         * lib/tempname.c: Include <string.h> unconditionally.
55245         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
55246         * lib/xgethostname.c (main): Define with a prototype.
55247         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
55248         Include <stdlib.h> unconditionally.
55249         (calloc, malloc, realloc, free): Remove decls.
55250         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
55251         Include <stdlib.h> unconditionally.  Sort include file names.
55252         (strtod): Remove.
55253         (xstrtod): Define with a prototype.
55254         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
55255         (strtol, strtoul): Remove decls.
55256
55257 2003-09-11  Paul Eggert  <eggert@twinsun.com>
55258
55259         More patches to assume C89 or better.
55260         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
55261         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
55262         string.h, memchr, STDC_HEADERS.
55263
55264 2003-09-11  Paul Eggert  <eggert@twinsun.com>
55265
55266         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
55267         Include <stdlib.h>, <string.h> unconditionally.
55268         Remove now-unnecessary cast to char *.
55269         * lib/strnlen.c: Include <string.h> unconditionally.
55270         * lib/yesno.c (yesno): Define with a prototype.
55271
55272 2003-09-11  Bruno Haible  <bruno@clisp.org>
55273
55274         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
55275
55276 2003-09-10  Jim Meyering  <jim@meyering.net>
55277
55278         * lib/error.c: Correct indentation of cpp directives.
55279
55280 2003-09-10  Bruno Haible  <bruno@clisp.org>
55281
55282         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
55283         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
55284         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
55285         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
55286         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
55287         <stdlib.h> and <string.h> checks.
55288         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
55289         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
55290
55291 2003-09-10  Bruno Haible  <bruno@clisp.org>
55292
55293         * lib/strcspn.c: Include <string.h> unconditionally.
55294         * lib/strpbrk.c: Include <string.h> unconditionally.
55295         * lib/strstr.c: Include <string.h> unconditionally.
55296         * lib/unicodeio.c: Include <string.h> unconditionally.
55297         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
55298         * lib/unsetenv.c: Likewise.
55299         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
55300         * lib/yesno.c: Include <stdlib.h> unconditionally.
55301         (rpmatch): Add prototype.
55302
55303 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55304
55305         More patches to assume C89 or better.
55306         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
55307         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
55308         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
55309         or for string.h.
55310         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
55311         stdlib.h.
55312         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
55313         C headers.
55314         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
55315         string.h.
55316         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
55317         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
55318         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
55319         or for string.h.
55320         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
55321         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
55322         C headers.
55323         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
55324         memcpy.
55325         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
55326         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
55327         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
55328         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
55329         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
55330         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
55331         string.h, free.
55332         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
55333         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
55334         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
55335         C headers, or for string.h.
55336         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
55337         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
55338         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
55339         headers, memory.h, stdlib.h, string.h, strings.h.
55340         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
55341         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
55342         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
55343         strchr.
55344         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
55345         headers, memory.h, string.h.
55346         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
55347         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
55348         free.
55349         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
55350         headers.
55351         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
55352         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
55353         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
55354         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
55355         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
55356
55357 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55358
55359         More K&R removal.
55360
55361         * lib/acosl.c (main): Use a prototype.
55362         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
55363         tanl.c: Likewise.
55364
55365         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
55366
55367         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
55368         (getopt, etopt_long, getopt_long_only, _getopt_internal)
55369         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
55370         with a prototype.
55371         * lib/getopt.c (const): Remove macro.
55372         Include <string.h> unconditionally.
55373         (my_index): Remove; all uses changed to strchr.
55374         (strlen): Remove decl.
55375         (exchange): Remove forward decl; no longer needed.
55376         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
55377         Define with prototype.
55378         * lib/getopt1.c (const): Remove macro.
55379         (getopt_long, getopt_long_only, main): Define with prototype.
55380
55381         * lib/getugroups.c: Include <string.h> unconditionally.
55382
55383         * lib/getusershell.c: Include <stdlib.h> unconditionally.
55384         (getusershell, setusershell, endusershell, readname, main):
55385         Define with prototypes.
55386
55387         * lib/group-member.c: Include group-member.h first.
55388         Include <stdlib.h> unconditionally.
55389
55390         * lib/hard-locale.c: Include hard-locale.h first.
55391         Include <stdlib.h>, <string.h> unconditionally.
55392
55393         * lib/hash.c (free, malloc): Remove decls.
55394         Include <stdlib.h> unconditionally.
55395
55396         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
55397         (getenv): Do not declare.
55398
55399         * lib/idcache.c: Include <string.h> unconditionally.
55400
55401         * lib/long-options.c: Include long-options.h first, to test interface.
55402         Include <stdlib.h> unconditionally.
55403
55404         * lib/makepath.c: Include makepath.h first, to test interface.
55405         Include <stdlib.h> and <string.h> unconditionally.
55406
55407         * lib/linebuffer.c: Include <stdlib.h>.
55408         (free): Remove decl.
55409
55410         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
55411         stddef.h. rpl_malloc returns void *, not char *.
55412         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
55413         prototype.
55414
55415         * lib/md5.h: Include <limits.h> unconditionally.
55416         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
55417         (__P): Remove; all uses removed.
55418         * lib/md5.c: Include "md5.h" first.
55419         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
55420         md5_buffer, md5_process_bytes, md5_process_block):
55421         Define with prototypes.
55422         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
55423         * lib/sha.c: Include "sha.h" first.
55424         Include <stdlib.h>, <string.h> unconditionally.
55425
55426         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
55427         * lib/memcmp.c (__ptr_t): Likewise.
55428         * lib/memrchr.c (__ptr_t): Likewise.
55429         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
55430         Include <string.h> unconditionally.
55431         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
55432         * lib/memchr.c: Include <stdlib.h> unconditionally.
55433         * lib/memchr.c (LONG_MAX): Remove.
55434         * lib/memrchr.c (LONG_MAX): Likewise.
55435         * lib/memchr.c (__memchr): Define via a prototype.
55436         * lib/memrchr.c (__memrchr): Likewise.
55437         * lib/memcmp.c (__P): Remove, and remove all uses.
55438         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
55439         Remove forward decls; no longer needed.
55440         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
55441         Use types required by C89 in prototype.
55442
55443         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
55444         * lib/savedir.c: Likewise.
55445         * lib/mkdir.c (free): Remove decl.
55446         * lib/rmdir.c (rmdir): Define with a prototype.
55447         * lib/savedir.c: Include savedir.h first, to test interface.
55448
55449         * lib/mktime.c (STDC_HEADERS): Remove.
55450         Include <stdlib.h>, <string.h> unconditionally.
55451
55452         * lib/modechange.c: Include <stdlib.h> unconditionally.
55453         (malloc): Remove decl.
55454
55455         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
55456         (free): Remove decl.
55457
55458         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
55459         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
55460         (This type really should be intptr_t, but that's a C99ism.)
55461         (_obstack_memcpy): Remove: all uses changed to memcpy.
55462         Include <string.h> unconditionally.
55463         (struct obstack): Assume __STDC__ for types of members
55464         chunkfun, freefun, extra_arg.
55465         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
55466         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
55467         obstack_begin, obstack_specify_allocation,
55468         obstack_specify_allocation_with_arg, obstack_chunkfun,
55469         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
55470         Remove unprototyped decls and the macros that use them.
55471         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
55472         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
55473         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
55474         (defined __STDC__ && __STDC__)]:
55475         Remove nonprototyped code.
55476         Include <stdlib.h> unconditionally.
55477         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
55478         _obstack_allocated_p, _obstack_free, obstack_free,
55479         _obstack_memory_used, print_and_abort):
55480         Define using prototypes.
55481         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
55482         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
55483         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
55484         obstack_next_free, obstack_object_size, obstack_room) [0]:
55485         Remove unused, unprototyped code.
55486
55487         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
55488
55489         * lib/physmem.c (physmem_total, physmem_available, main): Define
55490         with prototypes.
55491
55492         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
55493         (main): Define with a prototype.
55494
55495         * lib/posixver.c (getenv): Remove decl.
55496
55497         * lib/putenv.c (malloc): Returns void *, not char *.
55498         Include <string.h> unconditionally.
55499         (strchr, memcpy, NULL): Do not define.
55500
55501         * lib/readtokens.c: Include readtokens.h first, to test interface.
55502         Include <stdlib.h>, <string.h> unconditionally.
55503         (init_tokenbuffer): Define with a prototype.
55504
55505         * lib/regex.c (PARAMS): Remove.  All uses removed.
55506         All uses of _RE_ARGS removed, too.
55507         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
55508         unconditionally.
55509         (bzero): Assume memset exists.
55510         (memcmp, memcpy, NULL): Remove.
55511         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
55512         char, or assignments to local vars of type signed char.
55513         (init_syntax_once, PREFIX(extract_number_and_incr),
55514         PREFIX(print_partial_compiled_pattern),
55515         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
55516         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
55517         PREFIX(regex_grow_registers), PREFIX(regex_compile),
55518         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
55519         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
55520         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
55521         wcs_compile_range, byte_compile_range, truncate_wchar,
55522         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
55523         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
55524         count_mbs_length, wcs_re_match_2_internal,
55525         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
55526         PREFIX(alt_match_null_string_p),
55527         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
55528         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
55529         regfree, PREFIX(extract_number)): Define with prototype.  Remove
55530         now-unnecessary declaration, if any.
55531         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
55532         regcomp, regexec):
55533         Remove now-unnecessary casts among pointer types.
55534         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
55535
55536         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
55537         (free): Remove decl.
55538
55539         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
55540
55541         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
55542         (free): Remove decl.
55543
55544         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
55545         * lib/xgetcwd.c: Likewise.
55546
55547         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
55548         (free): Remove decl.
55549
55550         * lib/strchrnul.c (strchrnul): Define with a prototype.
55551         Fix bug: c_in was not converted to char before searching.
55552
55553         The following changes are not K&R related:
55554
55555         * lib/group-member.h: Include <sys/types.h>, so that this file is
55556         self-contained.
55557         * lib/makepath.h: Likewise.
55558
55559         * lib/getusershell.c (readname, default_index, line_size, readname):
55560         Use size_t, not int, for sizes.
55561         (readname): If the size overflows, report an error instead of
55562         looping forever.
55563
55564 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55565
55566         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
55567         libc.
55568
55569 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55570
55571         * README: New section: portability guidelines.
55572
55573 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
55574
55575         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
55576         C89 spec.
55577
55578 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
55579
55580         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
55581
55582 2003-09-08  Paul Eggert  <eggert@twinsun.com>
55583
55584         Assume C89 or better; remove K&R cruft.
55585         A few of these changes were first proposed by Derek Robert Price
55586         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
55587
55588         * lib/addext.c: Include <string.h> unconditionally.
55589         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
55590         Don't declare getenv or malloc.
55591
55592         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
55593         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
55594         (NULL): Remove.
55595         (find_stack_direction, alloca): Use prototypes.
55596
55597         * lib/atexit.c (atexit): Define using a prototype.
55598
55599         * lib/basename.c, dirname.c, stripslash.c:
55600         Include <string.h> unconditionally.
55601
55602         * lib/bcopy.c: Include <stddef.h>.
55603         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
55604
55605         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
55606
55607         * lib/error.h (error, error_at_line, error_print_progname)
55608         [! (defined (__STDC__) && __STDC__)]: Remove decls.
55609         * lib/error.c: Include error.h first, to check interface.
55610         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
55611         (VA_START): Remove; all uses changeed to va_start.
55612         (exit, strerror): Remove decls.
55613         (error_print_progname): Prototype uncondionally.
55614         Don't include <errno.h>; no longer needed.
55615         (private_strerror): Remove.
55616         (error_tail): Always define.
55617         (error, error_at_line): Assume C89 or better; always use prototypes.
55618         * lib/fatal.c: Include "fatal.h" first, to test interface.
55619         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
55620         (VA_START): Remove; all uses changed to va_start.
55621         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
55622         this case.
55623         (exit): Remove decl.
55624         (fatal): Prototype unconditionally.  Assume va_start works.
55625         Abort at end, to pacify gcc.
55626
55627         * lib/euidaccess.c (main): Define with a prototype.
55628
55629         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
55630
55631         * lib/exitfail.c: Include <stdlib.h> unconditionally.
55632
55633         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
55634         prototypes.
55635         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
55636         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
55637         (getenv): Remove decl.
55638         (fnmatch): Define using a prototype.
55639         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
55640         (FCT): Define using a prototype.
55641
55642         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
55643
55644         * lib/gethostname.c: Include <stddef.h>.
55645         (gethostname): Define with prototype.  Length is size_t, not int.
55646
55647 2003-09-08  Paul Eggert  <eggert@twinsun.com>
55648
55649         Assume C89 or better; remove K&R cruft.
55650         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
55651         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
55652         string.h, getenv, malloc.
55653         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
55654         headers.
55655         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
55656         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
55657         do not check for strerror.
55658         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
55659         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
55660         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
55661         do not check for doprnt or vprintf.
55662         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
55663         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
55664
55665 2003-09-08  Paul Eggert  <eggert@twinsun.com>
55666
55667         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
55668         getversion.c should have been removed then, but was accidentally
55669         preserved.
55670
55671         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
55672         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
55673
55674 2003-09-08  Karl Berry  <karl@gnu.org>
55675
55676         * config/config.sub, config.guess, srclistvars.sh: update from savannah
55677                 config, forget about prep.
55678
55679         * config/depcomp, missing: update from automake.
55680
55681 2003-09-07  Paul Eggert  <eggert@twinsun.com>
55682
55683         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
55684         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
55685
55686 2003-09-07  Paul Eggert  <eggert@twinsun.com>
55687
55688         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
55689         copy_tm_result.  Bug reported by Simon Josefsson in
55690         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
55691
55692 2003-09-06  Paul Eggert  <eggert@twinsun.com>
55693
55694         * m4/time_r.m4: New file.
55695         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
55696         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
55697         is. Check for timegm declaration.
55698         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
55699         Do not check for gmtime_r.
55700         Replace mktime if __mktime_internal does not exist and if mktime
55701         hasn't been replaced already.
55702
55703 2003-09-06  Paul Eggert  <eggert@twinsun.com>
55704
55705         * lib/time_r.c, lib/time_r.h: New files.
55706
55707         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
55708         __localtime_r.
55709         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
55710         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
55711
55712         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
55713         __gmtime_r.
55714         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
55715         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
55716         Include <time_r.h>.
55717
55718         * lib/timegm.c: Switch to glibc implementation, with the following
55719         changes:
55720         [defined HAVE_CONFIG_H]: Include <config.h>.
55721         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
55722         (__mktime_internal) [!defined _LIBC]: New decl.
55723         (__gmtime_r) [!defined _LIBC]: New macro and function.
55724         (timegm): Use a prototype, since gnulib assumes C89.
55725         Do not bother declaring tmp to be const, as it's not really usefu.
55726         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
55727         (timegm): Declare only if HAVE_DECL_TIMEGM.
55728
55729 2003-09-06  Paul Eggert  <eggert@twinsun.com>
55730
55731         * MODULES.html.sh (func_all_modules): Add time_r.
55732         * modules/time_r: New file.
55733         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
55734         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
55735
55736 2003-09-03  Paul Eggert  <eggert@twinsun.com>
55737
55738         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
55739         Bug reported by Lute Kamstra in
55740         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
55741
55742         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
55743         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
55744         course with correspondingly smaller numbers for tomorrow and
55745         yesterday.  From Tadayoshi Funaba.  Originally installed into
55746         sh-utils on 1999-08-07, but the patch got lost (I guess during the
55747         coreutils merge?).
55748
55749 2003-08-31  Simon Josefsson  <jas@extundo.com>
55750
55751         * modules/timegm: New file.
55752         * MODULES.html.sh (func_all_modules): Add timegm.
55753
55754 2003-08-31  Simon Josefsson  <jas@extundo.com>
55755
55756         * m4/timegm.m4: New file.
55757
55758 2003-08-31  Simon Josefsson  <jas@extundo.com>
55759
55760         * lib/timegm.h: New file.
55761         * lib/timegm.c: New file.  Based on
55762         wget-1.8.2/src/http.c:mktime_from_utc.
55763
55764 2003-08-31  Karl Berry  <karl@gnu.org>
55765
55766         * lib/argp.h: update from libc.
55767
55768 2003-08-28  Bruno Haible  <bruno@clisp.org>
55769
55770         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
55771         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
55772         followed by '#define fnmatch fnmatch_posix' gives an error.
55773
55774 2003-08-28  Bruno Haible  <bruno@clisp.org>
55775
55776         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
55777         warning on QNX, which defines O_BINARY to 000000.
55778
55779 2003-08-27  Jim Meyering  <jim@meyering.net>
55780
55781         * m4/mkstemp.m4: Require that the system mkstemp be able to create
55782         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
55783         would fail after 32.  Reported by Danny Levinson.  Details here:
55784         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
55785
55786 2003-08-24  Bruno Haible  <bruno@clisp.org>
55787
55788         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
55789         MSVC7 <stdio.h> is included later.
55790
55791 2003-08-22  Simon Josefsson  <jas@extundo.com>
55792
55793         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
55794
55795 2003-08-20  Karl Berry  <karl@gnu.org>
55796
55797         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
55798
55799 2003-08-20  Bruno Haible  <bruno@clisp.org>
55800
55801         * modules/progname: New file.
55802         * MODULES.html.sh (func_all_modules): Add progname.
55803
55804 2003-08-20  Bruno Haible  <bruno@clisp.org>
55805
55806         * lib/progname.h: New file, from GNU gettext.
55807         * lib/progname.c: New file, from GNU gettext.
55808         * lib/progreloc.c: New file, from GNU gettext.
55809
55810 2003-08-19  Jim Meyering  <jim@meyering.net>
55811
55812         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
55813         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
55814
55815 2003-08-19  Bruno Haible  <bruno@clisp.org>
55816
55817         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
55818         more.
55819
55820 2003-08-19  Bruno Haible  <bruno@clisp.org>
55821
55822         * lib/xstrdup.c: Assume <string.h> exists.
55823
55824 2003-08-18  Paul Eggert  <eggert@twinsun.com>
55825
55826         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
55827         in makefile rules.
55828
55829 2003-08-18  Jim Meyering  <jim@meyering.net>
55830
55831         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
55832         * m4/lib-ld.m4: Likewise.
55833
55834 2003-08-18  Jim Meyering  <jim@meyering.net>
55835
55836         * lib/setenv.h: Indent nested cpp directive.
55837         * lib/vasnprintf.c: Remove trailing blanks.
55838
55839 2003-08-17  Simon Josefsson  <jas@extundo.com>
55840
55841         * modules/xstrndup: New file.
55842         * MODULES.html.sh (func_all_modules): Add xstrndup.
55843
55844 2003-08-17  Simon Josefsson  <jas@extundo.com>
55845
55846         * modules/argp: Fix autoconf macro name. Add more dependencies.
55847
55848 2003-08-17  Simon Josefsson  <jas@extundo.com>
55849
55850         * m4/xstrndup.m4: New file.
55851
55852 2003-08-17  Simon Josefsson  <jas@extundo.com>
55853
55854         * m4/argp.m4: New file.
55855
55856 2003-08-17  Simon Josefsson  <jas@extundo.com>
55857             Bruno Haible  <bruno@clisp.org>
55858
55859         * lib/xstrndup.h: New file.
55860         * lib/xstrndup.c: New file.
55861
55862 2003-08-17  Bruno Haible  <bruno@clisp.org>
55863
55864         * modules/strndup (Files, Include): Add lib/strndup.h.
55865
55866 2003-08-17  Bruno Haible  <bruno@clisp.org>
55867
55868         * modules/euidaccess (Files): Add lib/euidaccess.h.
55869
55870 2003-08-17  Bruno Haible  <bruno@clisp.org>
55871
55872         * lib/strndup.h: New file.
55873
55874 2003-08-17  Bruno Haible  <bruno@clisp.org>
55875
55876         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
55877         like AC_GNU_SOURCE.
55878         * modules/extensions (configure.ac): Comment out the invocation of
55879         gl_USE_SYSTEM_EXTENSIONS.
55880
55881 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55882
55883         Merges from coreutils, etc.
55884         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
55885         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
55886         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
55887         fixing a typo.
55888         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
55889         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
55890
55891 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55892
55893         Document merge from coreutils.
55894         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
55895         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
55896         * modules/utime: Add m4/utimes-null.m4.
55897
55898 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55899
55900         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
55901         space, undoing this 2003-08-12 change:
55902         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
55903
55904 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55905
55906         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
55907         strtoul.c from libc, undoing this 2003-08-12 change:
55908         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
55909
55910 2003-08-16  Jim Meyering  <jim@meyering.net>
55911
55912         Merges from coreutils.
55913         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
55914         prefix.  Adjust cache variables similarly.  Create 500 rather than
55915         just 300 files, to exercise bug on Darwin6.5, too.
55916         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
55917         $missing_dir.
55918         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
55919         AM_SYS_POSIX_TERMIOS.
55920         Reported by mkc@mathdogs.com.
55921         Also change use of $am_cv_sys_posix_termios
55922         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
55923         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
55924         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
55925         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
55926         in /proc/mounts until it finds one with matching device number.  This
55927         is unnecessary when the FILE argument *is* a mount point.  No stat call
55928         is necessary in that case.  So, disable the statvfs-testing code on
55929         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
55930         as RedHat bug# 84846.
55931         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
55932         to 1MB, so as not to render systems with no stack size limit (e.g.,
55933         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
55934         Include <unistd.h>.  On some systems,
55935         it is required for the definition of _SC_PAGESIZE.
55936
55937 2003-08-16  Jim Meyering  <jim@meyering.net>
55938
55939         Merge from coreutils.
55940         * lib/xstrtoimax.c: #else #if -> #elif.
55941         * lib/xstrtoumax.c: Likewise.
55942
55943 2003-08-16  Jim Meyering  <jim@meyering.net>
55944
55945         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
55946         * m4/utimes.m4: Removed.
55947         * m4/utimes-null.m4: Renamed from utimes.m4.
55948
55949         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
55950         to 1MB, so as not to render systems with no stack size limit (e.g.,
55951         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
55952         Include <unistd.h>.  On some systems,
55953         it is required for the definition of _SC_PAGESIZE.
55954
55955 2003-08-16  Jim Meyering  <jim@meyering.net>
55956         and Paul Eggert  <eggert@cs.ucla.edu>
55957
55958         Merges from coreutils, etc.
55959
55960         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
55961         using the latest version from cvs.  This avoids problems with #line
55962         directives using a vendor (Sun) compiler.
55963         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
55964         Don't set GETGROUPS_LIB here; now it's
55965         done via getgroups.m4's wrapper function.
55966         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
55967         rather than just in sh-util/configure.in, so that the
55968         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
55969         same.
55970         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
55971         AC_FUNC_GETLOADAVG where to find getloadavg.c.
55972         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
55973         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
55974         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
55975         Remove code that is now done by the newly-required macros.
55976         Append $(EXEEXT) to DF_PROG.
55977         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
55978         Do not invoke or require the following here,
55979         since prereq.m4 or some gnulib .m4 now does this for us:
55980         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
55981         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
55982         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
55983         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
55984         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
55985         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
55986         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
55987         AC_FUNC_OBSTACK.
55988         Do not replace the following functions, as this is now the job
55989         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
55990         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
55991         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
55992         atexit getpass, strdup, getpagesize.
55993         Replace 'raise'.
55994         Do not check for the following functions, as this is now the job
55995         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
55996         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
55997         setregid.
55998         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
55999         Check for sys/sysctl.h.
56000         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
56001         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
56002         of checking for ssize_t ourselves.
56003
56004         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
56005         Require every macro that gnulib/modules/* suggests for us.
56006         (jm_PREREQ_ADDEXT): New macro.
56007         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
56008         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
56009
56010         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
56011         (gl_PHYSMEM): Use it.
56012         Also check for `table' function.
56013         Check for new headers and functions.
56014         Add check for sys/sysmp.h.
56015         With suggestions from Kaveh Ghazi.
56016         Ignore headers that are present but cannot be compiled.  This
56017         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
56018         C 5.4.
56019
56020 2003-08-15  Paul Eggert  <eggert@twinsun.com>
56021
56022         Document merge from coreutils.
56023         * modules/userspec: Depend on posixver.
56024         * modules/strftime: Depend on tzset.
56025
56026 2003-08-15  Paul Eggert  <eggert@twinsun.com>
56027
56028         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
56029         rather than tab, after '#' in shell-script copyright notices.
56030         Suggested by Bruno Haible.
56031
56032 2003-08-15  Paul Eggert  <eggert@twinsun.com>
56033
56034         * config/srclist-update: Use three spaces, rather than tab, after '#'
56035         in shell-script copyright notices.  Suggested by Bruno Haible.
56036         Remove unnecessary parenthesization in regular expression.
56037
56038 2003-08-15  Jim Meyering  <jim@meyering.net>
56039
56040         Merge from coreutils.
56041         * lib/xgethostname.c: Include <stdlib.h>.
56042         (xghostname): Don't exit for anything other than memory-related
56043         failure; just return NULL.
56044         * lib/userspec.c: Include "posixver.h".
56045         (parse_user_spec): Accept `.' as a separator only
56046         in pre-POSIX-200112 mode.
56047         * lib/strtoimax.c: Use #elif rather than #else #if.
56048         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
56049         Remove function, now that we can rely on a working tzset function.
56050         [!_LIBC]: Ensure that the required autoconf test has been run.
56051         [!defined _NL_CURRENT && HAVE_STRFTIME]:
56052         Use underlying_strftime for %r.
56053         * lib/sha.c: Merge in some clean-up and optimization changes from
56054         glibc.
56055         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
56056         Ensure that it is a multiple of 64.
56057         Rearrange loop exit tests so as to avoid performing an
56058         additional fread after encountering an error or EOF.
56059         * lib/realloc.c: Update copyright date.
56060
56061 2003-08-15  Jim Meyering  <jim@meyering.net>
56062         and Paul Eggert  <eggert@twinsun.com>
56063
56064         Merge from coreutils.
56065         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
56066         member but strut utmpx does not.  Needed for AIX 4.3.3.
56067         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
56068
56069 2003-08-15  Jim Meyering  <jim@meyering.net>
56070         and Paul Eggert  <eggert@cs.ucla.edu>
56071
56072         Merges from coreutils, etc.
56073         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
56074         Require gl_FUNC_TZSET_CLOBBER.
56075         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
56076         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
56077         members.
56078
56079 2003-08-14  Paul Eggert  <eggert@twinsun.com>
56080
56081         Help the merge from coreutils.
56082         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
56083         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
56084         * m4/tzset.m4: Use it too.
56085
56086 2003-08-14  Paul Eggert  <eggert@twinsun.com>
56087
56088         * modules/tzset: New file.
56089
56090 2003-08-14  Jim Meyering  <jim@meyering.net>
56091
56092         Merges from coreutils.
56093         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
56094         variable names, rather than @FNMATCH_H@.
56095         * modules/alloca: Likewise for $(ALLOCA_H).
56096
56097         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
56098         the three copies of the literal target, `fnmatch.h'.
56099         * modules/alloca (alloca.h): Likewise.
56100
56101 2003-08-14  Jim Meyering  <jim@meyering.net>
56102
56103         Merge from coreutils.
56104         * m4/tzset.m4: New file.
56105         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
56106         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
56107         otherwise, AIX 5.1 systems would end up using the latter.
56108         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
56109         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
56110         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
56111         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
56112
56113 2003-08-14  Jim Meyering  <jim@meyering.net>
56114
56115         Merge from coreutils.
56116         * lib/obstack.h: Whitespace changes.
56117         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
56118         and xcalloc return values.
56119         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
56120         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
56121         hang on OSF/1 5.1 for DIR on both local and remote file systems.
56122         Reported by (and fix confirmed by) Nelson H. F. Beebe.
56123         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
56124         error from mntctl.
56125         Use mntctl's return value to drive the entry-processing loop, since
56126         we can't rely on the value of the vmt_length member in the last
56127         entry.  On some systems doing so could result in exhausting
56128         virtual memory.  Based in part on a patch from Mike Jetzer.
56129
56130 2003-08-14  Jim Meyering  <jim@meyering.net>
56131         and Paul Eggert  <eggert@twinsun.com>
56132
56133         Merges from coreutils, plus other fixes.
56134         * lib/physmem.c: Merge in portability changes from gcc/libiberty
56135         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
56136         for credits and details.  Thanks to Kaveh Ghazi for helping
56137         to keep these files in sync.
56138         (ARRAY_SIZE): Define it.
56139         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
56140         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
56141         (memcasecmp): Don't assume size_t fits in unsigned int.
56142         Remove casts and duplicate code.
56143         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
56144         (memcpy): Remove definition.
56145         Merge in some clean-up and optimization changes from glibc.
56146         [BLOCKSIZE]: Move definition to top of file.
56147         Ensure that it is a multiple of 64.
56148         Rearrange loop exit tests so as to avoid performing an
56149         additional fread after encountering an error or EOF.
56150         * lib/md5.h (md5_uintptr): Define.
56151         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
56152         return to the initial working directory.  Preserve errno
56153         for caller.
56154         * lib/idcache.c: Include "xalloc.h".
56155         (xmalloc, xrealloc): Remove decls.
56156         (getuser): Remove casts no longer required in C89.
56157         * lib/human.c: Include stdio.h, for sprintf.
56158         * lib/group-member.c: Include "xalloc.h".
56159         (xmalloc, xrealloc): Remove decls.
56160         (get_group_info): Remove casts no longer required in C89.
56161         * lib/getusershell.c (readname): Remove casts no longer required in
56162         C89.
56163         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
56164         * lib/getline.c: Whitespace fix, from coreutils.
56165
56166 2003-08-13  Paul Eggert  <eggert@twinsun.com>
56167
56168         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
56169         Check for isascii.
56170
56171         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
56172         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
56173         Undo previous (whitespace-only) change.
56174
56175 2003-08-13  Paul Eggert  <eggert@twinsun.com>
56176
56177         * lib/exclude.c: Include <ctype.h>
56178         (IN_CTYPE_DOMAIN): New macro.
56179         (is_space): New fn.
56180         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
56181         and empty lines.
56182
56183         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
56184         Undo previous (whitespace-only) change.
56185
56186 2003-08-13  Paul Eggert  <eggert@twinsun.com>
56187
56188         * config/srclist-update: Change update back to the old behavior,
56189         leaving whitespace alone.  Use one 'sed' command rather than a
56190         pipeline.
56191         (fixlicense): Now a variable, not a function.
56192         (remove_trailing_blanks): Remove.
56193         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
56194         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
56195         Undo previous (whitespace-only) change.
56196
56197 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56198
56199         Merge from coreutils.
56200         * modules/euidaccess: Add lib_SOURCES, include for new
56201         file euidaccess.h
56202
56203 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56204
56205         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
56206         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
56207         Normalize leading white space and remove trailing white space.
56208
56209         Merge from coreutils
56210         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
56211
56212         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
56213         0.12.1.  These files are now being upgraded automatically by
56214         ../config/srclist-update.
56215
56216 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56217
56218         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
56219         Normalize leading white space and remove trailing white space.
56220         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
56221         notice, as per ../config/srclist-update.
56222
56223         Merge from coreutils.
56224         * lib/euidaccess.h: New file.
56225         * lib/euidaccess.c: Include it.
56226         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
56227         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
56228         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
56229
56230 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56231
56232         * config/srclist-update: Add copyright notice.
56233         (remove_id_lines, remove_trailing_blanks): New constants.
56234         (fixfile): Use them to normalize spacing a bit in copied files.
56235         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
56236         Normalize leading white space and remove trailing white space.
56237
56238         * config/texinfo.tex: Sync with texinfo.
56239
56240         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
56241         strtoul.c from libc, to merge coreutils whitespace changes.
56242
56243         * config/srclist.txt: Get the following m4 files from gettext:
56244         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
56245         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
56246         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
56247         wint_t.m4.
56248
56249 2003-08-12  Karl Berry  <karl@gnu.org>
56250
56251         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
56252         been made.
56253
56254 2003-08-11  Paul Eggert  <eggert@twinsun.com>
56255
56256         * modules/gnu-source, m4/gnu-source.m4:
56257         Remove; we're assuming Autoconf 2.54 or later now.
56258         Suggested by Bruno Haible.
56259         * MODULES.html.sh (func_all_modules): Remove gnu-source.
56260
56261 2003-08-11  Bruno Haible  <bruno@clisp.org>
56262
56263         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
56264
56265 2003-08-11  Bruno Haible  <bruno@clisp.org>
56266
56267         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
56268         (vasnprintf): Use it instead of wcslen.
56269
56270 2003-08-11  Bruno Haible  <bruno@clisp.org>
56271
56272         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
56273         value to ensure that _Bool promotes to int. Use #define for _Bool when
56274         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
56275
56276 2003-08-10  Karl Berry  <karl@gnu.org>
56277
56278         * lib/regex.h: update from libc (whitespace fix).
56279
56280 2003-08-09  Paul Eggert  <eggert@twinsun.com>
56281
56282         Merge some files from coreutils.  These changes were
56283         originally made by Jim Meyering.
56284         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
56285         many older Unixes require this.
56286         * lib/alloca.c (alloca): Remove cast to argument of free;
56287         no longer needed in C89.
56288         * lib/alloca_.h, regex.h: Fix white space to match
56289         what GNU indent does.
56290
56291 2003-08-09  Paul Eggert  <eggert@twinsun.com>
56292
56293         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
56294         apparently Emacs's Unicode mode got confused before my 2003-08-05
56295         checkin.
56296
56297 2003-08-08  Paul Eggert  <eggert@twinsun.com>
56298
56299         * m4/extensions.m4: New file.
56300         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
56301         Require gl_USE_SYSTEM_EXTENSIONS.
56302         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
56303         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
56304
56305 2003-08-08  Paul Eggert  <eggert@twinsun.com>
56306
56307         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
56308         * modules/extensions, modules/gnu-source: New files.
56309         * modules/timespec, modules/unlocked-io: Depend on extensions.
56310
56311 2003-08-07  Paul Eggert  <eggert@twinsun.com>
56312
56313         * modules/restrict: New file.
56314         * MODULES.html.sh (func_all_modules): Add restrict.
56315         * modules/regex: Depend on restrict.
56316
56317 2003-08-07  Paul Eggert  <eggert@twinsun.com>
56318
56319         * m4/restrict.m4: New file.
56320         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
56321
56322 2003-08-07  Bruno Haible  <bruno@clisp.org>
56323
56324         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
56325         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
56326
56327 2003-08-07  Bruno Haible  <bruno@clisp.org>
56328
56329         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
56330         makes the module 'getndelim2' compatible with the module 'getline'.
56331
56332 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56333
56334         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
56335         byte with "\201" to avoid glitches when editing that source file
56336         with multi-gnome-terminal.
56337
56338 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56339
56340         * lib/bumpalloc.h: Remove.
56341
56342 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56343
56344         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
56345         * modules/bumpalloc: Remove.
56346
56347 2003-08-04  Paul Eggert  <eggert@twinsun.com>
56348
56349         * lib/getloadavg.c: Change copyright notice and spacing to conform to
56350         GNU coding style.
56351
56352         Merge from coreutils.
56353         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
56354         1. From glibc.
56355         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
56356         from Karl Berry, implemented by Jim Meyering.
56357         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
56358         from Dmitry V. Levin.
56359         Remove anachronistic cast of xrealloc.
56360         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
56361         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
56362         type. Otherwise, it wouldn't compile with at least /bin/cc on
56363         ymp-cray-unicos9.0.2.X.
56364         Combine two mostly-identical uses of alloca into one.
56365         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
56366
56367 2003-08-04  Dave Love  <d.love@dl.ac.uk>
56368
56369         [From Emacs.]
56370
56371         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
56372         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
56373         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
56374         obsolete NLIST_NAME_UNION.
56375         [__GNU__]: Undef BSD and FSCALE.
56376         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
56377
56378 2003-08-03  Paul Eggert  <eggert@twinsun.com>
56379
56380         * lib/stdbool_.h (_Bool): Make it signed char, instead of
56381         an enum type, so that it's guaranteed to promote to int.  See:
56382         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
56383
56384 2003-08-03  Karl Berry  <karl@gnu.org>
56385
56386         * config/depcomp: update from automake.
56387
56388 2003-07-31  Paul Eggert  <eggert@twinsun.com>
56389
56390         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
56391         (strerror): Don't assume that a printable int fits in 14 bytes.
56392
56393 2003-07-31  Bruno Haible  <bruno@clisp.org>
56394
56395         * modules/getpass-gnu: New file.
56396         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
56397
56398 2003-07-31  Bruno Haible  <bruno@clisp.org>
56399
56400         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
56401
56402 2003-07-24  Karl Berry  <karl@gnu.org>
56403
56404         * config/missing: update from automake.
56405
56406 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
56407             Bruno Haible  <bruno@clisp.org>
56408
56409         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
56410         * lib/getline.c (getline, getdelim): Likewise.
56411         Remove _GNU_SOURCE define; now it's defined in config.h through
56412         m4/getline.m4.
56413
56414 2003-07-23  Karl Berry  <karl@gnu.org>
56415
56416         * config/config.sub: update from prep.
56417
56418 2003-07-22  Paul Eggert  <eggert@twinsun.com>
56419
56420         * modules/xalloc (Depends-on): Add exitfail.
56421         * modules/xmemcoll: Likewise.
56422
56423 2003-07-22  Paul Eggert  <eggert@twinsun.com>
56424
56425         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
56426         over-parenthesization in macros.
56427
56428         Sync with coreutils.
56429
56430         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
56431         required by C99.
56432
56433         Use `exit_failure' for xalloc and xmemcoll instead of their own
56434         private exit-failure variables.
56435         * lib/xalloc.h (xalloc_exit_failure): Remove.
56436         * lib/xmalloc.c: Likewise.  Include exitfail.h.
56437         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
56438         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
56439         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
56440         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
56441
56442 2003-07-20  Jim Meyering  <jim@meyering.net>
56443
56444         * modules/closeout (Depends-on): Add exitfail.
56445         Suggestion from Bruno Haible.
56446
56447 2003-07-19  Karl Berry  <karl@gnu.org>
56448
56449         * config/config.sub: update from prep.
56450
56451 2003-07-18  Paul Eggert  <eggert@twinsun.com>
56452
56453         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
56454         Remove.
56455         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
56456         to test that it can stand by itself.  Include "exitfail.h".
56457         Clients should set exit_failure instead.
56458         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
56459
56460 2003-07-18  Bruno Haible  <bruno@clisp.org>
56461
56462         * modules/getndelim2: New file.
56463         * modules/getline: Share files with module getndelim2.
56464         * modules/getnline: Depend on getndelim2 instead of sharing files with
56465         it. Add getnline.c to lib_SOURCES.
56466         * MODULES.html.sh (func_all_modules): Add getndelim2.
56467
56468 2003-07-18  Bruno Haible  <bruno@clisp.org>
56469
56470         * m4/getndelim2.m4: New file.
56471         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
56472         invoke gl_PREREQ_GETNDELIM2.
56473         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
56474         gl_PREREQ_GETNDELIM2.
56475         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
56476         gl_GETNDELIM2.
56477
56478 2003-07-18  Bruno Haible  <bruno@clisp.org>
56479
56480         * lib/getndelim2.h: New file.
56481         * lib/getndelim2.c: Make into a module of its own. Include config.h,
56482         getndelim2.h.
56483         (getndelim2): Make non-static. Change return type to ssize_t.
56484         * lib/getline.h: Change argument names.
56485         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
56486         * lib/getnline.c: Include getndelim2.h.
56487
56488 2003-07-18  Andreas Schwab  <schwab@suse.de>
56489
56490         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
56491
56492 2003-07-17  Karl Berry  <karl@gnu.org>
56493
56494         * config/config.sub: update from prep.
56495
56496 2003-07-17  Bruno Haible  <bruno@clisp.org>
56497
56498         * modules/getnline: New file.
56499         * modules/getline: Add lib/getndelim2.c to source file list.
56500         * MODULES.html.sh (func_all_modules): Add getnline.
56501
56502 2003-07-17  Bruno Haible  <bruno@clisp.org>
56503
56504         * m4/getnline.m4: New file.
56505
56506 2003-07-17  Bruno Haible  <bruno@clisp.org>
56507
56508         * m4/Makefile.am.in: Remove file.
56509         * m4/Makefile.am: Remove file.
56510         * m4/Makefile.in: Remove file.
56511
56512 2003-07-17  Bruno Haible  <bruno@clisp.org>
56513
56514         * lib/getnline.h: New file.
56515         * lib/getnline.c: New file.
56516         * lib/getndelim2.c: New file, extracted from getline.c.
56517         (getndelim2): Renamed from getdelim2, with added nmax argument.
56518         * lib/getline.c: Include getndelim2.c.
56519         (getdelim2): Moved out to getndelim2.c.
56520         (getline, getdelim): Update.
56521
56522 2003-07-17  Bruno Haible  <bruno@clisp.org>
56523
56524         * lib/Makefile.am: Remove file.
56525         * lib/Makefile.in: Remove file.
56526
56527 2003-07-17  Bruno Haible  <bruno@clisp.org>
56528
56529         * configure.in: Remove file.
56530         * Makefile.in: Remove file.
56531
56532 2003-07-17  Bruno Haible  <bruno@clisp.org>
56533
56534         * MODULES.html.sh: Put the </BODY> right before </HTML>.
56535
56536 2003-07-16  Karl Berry  <karl@gnu.org>
56537
56538         * config/srclist-update: was running fixlicense twice, which caused
56539                 texinfo.tex to be nullified for some reason.  Simplify,
56540                 $gplsrc is no longer needed as far as I can see?
56541
56542 2003-07-16  Jim Meyering  <jim@meyering.net>
56543
56544         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
56545
56546 2003-07-15  Paul Eggert  <eggert@twinsun.com>
56547
56548         * config/srclist.txt: Get the following files from gettext-runtime/intl
56549         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
56550         ref-del.sin.  From Bruno Haible.
56551         * config/srclist-update (fixfile): Change grep pattern again, since the
56552         previous fix didn't work (there was another trailing $).  Use
56553         '[$]' to escape the $s.
56554
56555 2003-07-15  Karl Berry  <karl@gnu.org>
56556
56557         * lib/vasnprintf.c: update from gettext.
56558
56559 2003-07-15  Karl Berry  <karl@gnu.org>
56560
56561         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
56562         gets expanded when surrounded by '$'.
56563
56564 2003-07-15  Jim Meyering  <jim@meyering.net>
56565
56566         * modules/save-cwd: Don't depend on error.  From Derek Price.
56567
56568 2003-07-15  Jim Meyering  <jim@meyering.net>
56569
56570         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
56571
56572 2003-07-14  Simon Josefsson  <jas@extundo.com>
56573
56574         * modules/mempcpy: New file.
56575         * MODULES.html.sh (func_all_modules): Add mempcpy.
56576
56577 2003-07-14  Simon Josefsson  <jas@extundo.com>
56578
56579         * m4/mempcpy.m4: New file.
56580
56581 2003-07-14  Simon Josefsson  <jas@extundo.com>
56582
56583         * lib/mempcpy.h: New file.
56584         * lib/mempcpy.c: New file.
56585
56586 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56587
56588         * modules/getdate, modules/posixtm: Depend on mktime.
56589
56590 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56591
56592         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
56593         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
56594         unicodeio.c, unicodeio.h, unlocked-io.h:
56595         Switch from LGPL to GPL.
56596
56597 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56598
56599         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
56600         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
56601         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
56602         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
56603         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
56604         updated automatically by ../config/srclist-update.  This changes
56605         their license from LPGL to GPL.
56606
56607 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56608
56609         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
56610         assumed to refer to the root of the most recent stable gettext version.
56611         * config/srclistvars.sh: Add defaults for eggert.
56612         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
56613         Match "This program" as well as "The program".  This is needed
56614         for gettext.
56615
56616 2003-07-14  Jim Meyering  <jim@meyering.net>
56617
56618         Don't emit diagnostics.  Let callers do that.
56619         * lib/save-cwd.c: Don't include "error.h".
56620         (save_cwd): Don't call error.  Ensure that errno is valid
56621         when returning nonzero.
56622
56623         * lib/save-cwd.h (restore_cwd): Update prototype.
56624         * lib/save-cwd.c (restore_cwd): Remove two parameters.
56625         Simplify.  Don't call error upon failure.  Let callers do that.
56626         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
56627         when auditing is enabled.  But don't bother updating the #if.
56628
56629 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
56630
56631         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
56632         it breaks C++ compilation.
56633         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
56634
56635 2003-07-10  Simon Josefsson  <jas@extundo.com>
56636
56637         * modules/strchrnul (Makefile.am): Add strchrnul.h.
56638
56639 2003-07-10  Jim Meyering  <jim@meyering.net>
56640
56641         * m4/clock_time.m4: Remove trailing blank.
56642         * m4/intmax_t.m4: Likewise.
56643
56644 2003-07-10  Jim Meyering  <jim@meyering.net>
56645
56646         * lib/vasnprintf.c: Remove trailing blanks.
56647         Make cpp indentation consistent.
56648
56649 2003-07-09  Paul Eggert  <eggert@twinsun.com>
56650
56651         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
56652         posixver.c, strftime.c, strnlen.c, strverscmp.c:
56653         Switch from LGPL to GPL.
56654
56655 2003-07-09  Paul Eggert  <eggert@twinsun.com>
56656
56657         * config/srclist.txt: Sort sublists.  Add
56658         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
56659         that differ from gnulib for one reason or another; we'd like this list
56660         to be smaller but for now let's document what we have.
56661
56662 2003-07-08  Paul Eggert  <eggert@twinsun.com>
56663
56664         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
56665         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
56666         and sweeter "eval x=$x".
56667         * config/srclist.txt: Get lib/argp* from glibc.
56668
56669 2003-07-07  Paul Eggert  <eggert@twinsun.com>
56670
56671         * lib/mktime.c: Fix some boundary cases and remove need for floating
56672         point.
56673
56674         Issue a compile-time diagnostic if time_t is floating point, or if
56675         two's complement arithmetic is not in effect, or if arithmetic
56676         right shift does not propagate the sign.  These assumptions were
56677         all in the original code but they weren't checked.
56678
56679         (TIME_T_MIDPOINT, verify): New macros.
56680         (__isleap): Remove; it has integer overflow problems.
56681         (leapyear): New function, without those problems.
56682         (ydhms_tm_diff): Remove; splitting into two parts.
56683         (ydhms_diff): New function, containing the arithmetic part of
56684         the old ydhms_tm_diff function.  Issue a compile-time
56685         diagnostic if we are not using C99 integer division.
56686         Avoid casts when possible.
56687         (guess_time_tm): New function, containing the checking part of
56688         the old ydhms_tm_diff function.  Return the new value, rather than
56689         the difference between it and the old.  Accept a new argument T
56690         so that *T specifies the old value.  Check for overflow in the result.
56691
56692         (__mktime_internal): Use a time_t offset, not a long int offset.
56693         This undoes the 2003-06-04 change, which is no longer needed now
56694         that we have better overflow checking.
56695         (localtime_offset): Likewise.
56696
56697         (__mktime_internal): Avoid harmful overflow on hosts where time_t
56698         and long are 64-bit but int is only 32-bit.
56699         (ydhms_diff): Use long int to store year1 and yday1.
56700         Issue a compile-time diagnostic if long int is not wide enough.
56701
56702         (__mktime_internal): Use long int to store adjusted year and yday.
56703         Use plain C rather than preprocessor commands, if that doesn't
56704         affect efficiency.
56705         Check for overflow (and try to repair) after each probe
56706         rather than checking only at the very end.  This avoids some bugs
56707         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
56708         does not equal GMT offset at maximum time).
56709         Use integer to check for overflow rather than floating point; this
56710         is more portable to non-IEEE hosts, and is a tad faster.
56711         When we detect that we are oscillating between two values,
56712         don't check whether tm_isdst has the requested value, since
56713         we already know the answer.  When tm_isdst has the wrong value,
56714         use a different heuristic to find the right one, based on the
56715         extreme values actually observed in practice in tz2003a,
56716         rather than the (overly optimistic) "previous 3 calendar quarters".
56717
56718         (not_equal_tm, print_tm, check_result): Use "const T" rather than
56719         "T const" to accommodate glibc style.
56720         (check_result): Use less-confusing report format.  "long" -> "long int.
56721         (main): Likewise.
56722         Don't loop if the iteration overflows time_t.
56723         Allow a negative step in the iteration.
56724
56725 2003-07-06  Karl Berry  <karl@gnu.org>
56726
56727         * config/depcomp: update from automake.
56728         * config/config.sub: update from prep.
56729
56730 2003-07-03  Karl Berry  <karl@gnu.org>
56731
56732         * config/config.guess: update from prep.
56733
56734 2003-07-01  Paul Eggert  <eggert@twinsun.com>
56735
56736         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
56737         xreadlink.c now includes it unconditionally.
56738
56739 2003-07-01  Paul Eggert  <eggert@twinsun.com>
56740
56741         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
56742         having it depend on HAVE_SYS_TYPES_H.
56743
56744 2003-07-01  Bruno Haible  <bruno@clisp.org>
56745
56746         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
56747         <sys/types.h> should be sufficient.
56748         Reported by Paul Eggert.
56749
56750 2003-06-26  Karl Berry  <karl@gnu.org>
56751
56752         * config/depcomp: update from automake.
56753
56754 2003-06-26  Bruno Haible  <bruno@clisp.org>
56755
56756         * modules/human: Depend on module stdbool.
56757
56758 2003-06-25  Bruno Haible  <bruno@clisp.org>
56759
56760         * modules/readlink: New file.
56761         * modules/xreadlink: Depend on it.
56762         * MODULES.html.sh (func_all_modules): Add readlink.
56763
56764 2003-06-25  Bruno Haible  <bruno@clisp.org>
56765
56766         * m4/readlink.m4: New file.
56767
56768 2003-06-25  Bruno Haible  <bruno@clisp.org>
56769
56770         * lib/readlink.c: New file.
56771
56772 2003-06-22  Karl Berry  <karl@gnu.org>
56773
56774         * config/srclist.txt: update mkinstalldirs from automake.
56775         * config/mkinstalldirs: update.
56776
56777 2003-06-22  Bruno Haible  <bruno@clisp.org>
56778
56779         Portability to mingw32.
56780         * m4/ssize_t.m4: New file, from GNU gettext.
56781         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
56782         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
56783
56784 2003-06-22  Bruno Haible  <bruno@clisp.org>
56785
56786         * modules/safe-read: Add m4/ssize_t.m4.
56787         * modules/xreadlink: Add m4/ssize_t.m4.
56788
56789 2003-06-20  Bruno Haible  <bruno@clisp.org>
56790
56791         Assume C89, so PARAMS isn't needed.
56792         * lib/unicodeio.h (PARAMS): Remove.
56793         * lib/unicodeio.c: Don't use PARAMS.
56794
56795 2003-06-18  Karl Berry  <karl@gnu.org>
56796
56797         * config/config.{guess,sub}: update from prep.
56798
56799 2003-06-18  Jim Meyering  <jim@meyering.net>
56800
56801         Merge changes from coreutils.
56802         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
56803         Remove explicit declarations of xmalloc and realloc.
56804         Include xalloc.h.
56805         (read_utmp): Remove anachronistic cast of xmalloc.
56806
56807 2003-06-17  Paul Eggert  <eggert@twinsun.com>
56808
56809         Assume C89, so PARAMS isn't needed.
56810         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
56811         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
56812         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
56813         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
56814         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
56815         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
56816         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
56817         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
56818         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
56819         lib/xstrtod.h, lib/xstrtol.h: Likewise.
56820         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
56821         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
56822         no longer needed. Anyway, config.h should always be included before any
56823         other file.
56824
56825 2003-06-11  Simon Josefsson  <jas@extundo.com>
56826
56827         * modules/sysexits: New file.
56828         * MODULES.html.sh (func_all_modules): Add sysexits.
56829
56830 2003-06-11  Simon Josefsson  <jas@extundo.com>
56831
56832         * lib/sysexit_.h: New file.
56833
56834 2003-06-11  Derek Price  <derek@ximbiot.com>
56835
56836         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
56837         necessary.
56838
56839 2003-06-11  Bruno Haible  <bruno@clisp.org>
56840
56841         * m4/sysexits.m4: New file.
56842
56843 2003-06-10  Simon Josefsson  <jas@extundo.com>
56844
56845         * lib/argp.h: New file, from glibc.
56846         * lib/argp-ba.c: New file, from glibc.
56847         * lib/argp-eexst.c: New file, from glibc.
56848         * lib/argp-fmtstream.c: New file, from glibc.
56849         * lib/argp-fmtstream.h: New file, from glibc.
56850         * lib/argp-fs-xinl.c: New file, from glibc.
56851         * lib/argp-help.c: New file, from glibc.
56852         * lib/argp-namefrob.h: New file, from glibc.
56853         * lib/argp-parse.c: New file, from glibc.
56854         * lib/argp-pv.c: New file, from glibc.
56855         * lib/argp-pvh.c: New file, from glibc.
56856         * lib/argp-xinl.c: New file, from glibc.
56857
56858 2003-06-10  Simon Josefsson  <jas@extundo.com>
56859
56860         * modules/strchrnul: New file.
56861
56862 2003-06-10  Simon Josefsson  <jas@extundo.com>
56863
56864         * modules/argp: New file.
56865
56866 2003-06-10  Simon Josefsson  <jas@extundo.com>
56867
56868         * m4/strchrnul.m4: New file.
56869
56870 2003-06-10  Simon Josefsson  <jas@extundo.com>
56871
56872         * lib/strchrnul.h: New file.
56873         * lib/strchrnul.c: New file.
56874
56875 2003-06-10  Bruno Haible  <bruno@clisp.org>
56876
56877         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
56878
56879 2003-06-07  Karl Berry  <karl@gnu.org>
56880
56881         * config/config.{guess,sub}: update from prep.
56882
56883 2003-06-07  Jim Meyering  <jim@meyering.net>
56884
56885         * modules/strtod: Use $(...) notation, not @...@ for
56886         AC_REPLACE'd variables.
56887         * modules/localcharset: Likewise.
56888
56889 2003-06-07  Jim Meyering  <jim@meyering.net>
56890
56891         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
56892         in place of my name in the copyright comment.
56893         Remove definition and uses of __P.
56894
56895         From coreutils.
56896         * lib/stat.c: Don't declare xmalloc explicitly.
56897         Instead, include "xalloc.h".
56898         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
56899         xrealloc, and xcalloc return values.
56900         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
56901         Improve comment.
56902         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
56903
56904 2003-06-07  Bruno Haible  <bruno@clisp.org>
56905
56906         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
56907         avoid AC_CONFIG_LINKS.
56908         * modules/fnmatch (Makefile.am): Use explicit creation rule for
56909         fnmatch.h, to avoid AC_CONFIG_LINKS.
56910         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
56911
56912 2003-06-07  Bruno Haible  <bruno@clisp.org>
56913
56914         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
56915         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
56916         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
56917         directory.
56918         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
56919         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
56920         directory.
56921
56922 2003-06-06  Jim Meyering  <jim@meyering.net>
56923
56924         Merge from coreutils.
56925         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
56926         Consolidate declarations and initializations of *_base* locals.
56927
56928         Merge from coreutils.
56929         This avoids a core dump on systems without GNU putenv,
56930         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
56931         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
56932         (unsetenv): New static function, from GNU libc.
56933         (rpl_putenv): Use it.
56934
56935         * lib/modechange.c: Remove trailing blanks.
56936
56937         Merge from coreutils.
56938         * lib/fsusage.c: Remove declaration of statfs.
56939         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
56940
56941         * lib/posixtm.c: Include <stdbool.h> unconditionally.
56942
56943 2003-06-06  Jim Meyering  <jim@meyering.net>
56944
56945         * lib/stdbool_.h: Renamed from stdbool.h.in.
56946
56947 2003-06-06  Jim Meyering  <jim@meyering.net>
56948             Bruno Haible  <bruno@clisp.org>
56949
56950         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
56951         Adjust Makefile.am snippet not to redirect directly to target.
56952         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
56953
56954 2003-06-05  Paul Eggert  <eggert@twinsun.com>
56955
56956         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
56957         mismatch, look in future quarters as well as past.  This fixes a
56958         bug when processing fall-backwards gaps immediately after a long
56959         period of daylight-saving time.
56960
56961         * lib/mktime.c: Assume freestanding C89 or better.
56962         (HAVE_LIMITS_H): Remove.  Assume it's 1.
56963         (__P): Remove; not used.
56964         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
56965         (mktime, not_equal_tm, print_tm, check_result,
56966         main): Use prototypes.  Use const * where appropriate.
56967         (main): Fix typo in testing code that uncovered by above changes.
56968         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
56969
56970 2003-06-04  Paul Eggert  <eggert@twinsun.com>
56971
56972         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
56973         locale.h, localeconv.  This merges changes from coreutils.
56974
56975         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
56976         It can be removed after the next Autoconf is released.
56977         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
56978         needed.
56979
56980 2003-06-04  Paul Eggert  <eggert@twinsun.com>
56981
56982         * lib/mktime.c: Fix Debian bug 177940
56983         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
56984         (localtime_offset): Now long int, not time_t, because we want it
56985         to be guaranteed to be signed.  All uses changed.
56986         (__mktime_internal): If overflow would occur when adding offset,
56987         don't add it.
56988
56989         Merge 'human' changes from coreutils.  Rewrite to support
56990         locale-specific notations like thousands separators.
56991         * lib/human.c: Simplify authorship notice.
56992         Include human.h immediately after config.h.
56993         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
56994         <limits.h>: Do not include, since human.h does.
56995         (SIZE_MAX, UINTMAX_MAX): New macros.
56996         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
56997         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
56998         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
56999         (power_letter): Renamed from suffixes.
57000         (generate_suffix_backwards): Remove.
57001         (adjust_value): Now takes int style (because of human.h changes)
57002         and long double value (for greater precision on some platforms).
57003         (group_number): New function.
57004         (human_readable): Use it.  Use integer options, not enum.
57005         Put the options before the sizes in the arg list.
57006         Support all the new options.
57007         The old human_readable function has been removed;
57008         use inttostr.h instead.
57009         (human_readable, default_block_size, humblock):
57010         Use uintmax_t, not int, for block sizes.
57011         (human_readable_inexact, block_size_types): Remove.
57012         (block_size_opts): New constant.
57013         (human_options): Renamed from human_block_size, with new signature
57014         that allows block sizes up to UINTMAX_MAX.  All callers changed.
57015         * lib/human.h: Add copyright and authorship notice.
57016         Include <limits.h> and <stdbool.h> unconditionally.
57017         (PARAMS): Remove.  All uses removed.
57018         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
57019         (enum human_inexact_style): Remove tag; now a nameless enum.
57020         (human_floor, human_ceiling, human_round_to_even): Now have
57021         values 2, 0, 1 rather than -1, 1, 0.
57022         (human_group_digits, human_suppress_point_zero, human_autoscale,
57023         human_base_1024, human_SI, human_B): New constants.
57024         (human_readable_inexact, human_block_size): Remove.
57025         (human_readable): Size args are now uintmax_t, not int.
57026         (human_options): New decl.
57027
57028         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
57029         unnecessary now that we assume C89 or better.  This change
57030         imported from coreutils.
57031
57032         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57033         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
57034         in the 2003-05-30 sync from glibc.
57035
57036         .h files should stand alone, but we shouldn't include <sys/types.h>
57037         if we can get away with just <stddef.h>.
57038
57039         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
57040         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
57041         rather than <sys/types.h>, as we merely need size_t.
57042         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
57043         to get size_t.
57044         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
57045         Include <stdio.h>, to get FILE.
57046         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
57047         memcasecmp.h has included <stddef.h> and all we need is size_t.
57048         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
57049         our interface, instead of including <sys/types.h>
57050
57051 2003-06-04  Paul Eggert  <eggert@twinsun.com>
57052
57053         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
57054         now, as glibc mktime is buggy on non-glibc systems.
57055
57056 2003-06-03  Karl Berry  <karl@gnu.org>
57057
57058         * config/config.sub: update from prep.
57059
57060 2003-06-02  Paul Eggert  <eggert@twinsun.com>
57061
57062         [from coreutils]
57063         Fix some minor time-related bugs with POSIX time arguments.
57064         Some valid time stamps were being rejected (notably -1, and
57065         time stamps before 1900 on 64-bit hosts).  And some invalid
57066         time stamps were being accepted, e.g. September 31.
57067
57068         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
57069         that we can return (time_t) -1 successfully.
57070         * lib/posixtm.c: Likewise.
57071         [HAVE_STDBOOL_H]: Include <stdbool.h>.
57072         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
57073         (t): Remove static var.
57074         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
57075         of static var.  All uses changed.
57076         (year): Do not reject years before 1900; they can occur with
57077         64-bit time_t.
57078         (posix_time_parse): Do not check for out-of-range components;
57079         that is now the caller's responsibility, since our checks were
57080         only approximations.
57081         (posixtime): Use mktime to check for out-of-range components,
57082         since it knows them exactly.
57083         If mktime returns (time_t) -1, check whether an error actually occurred
57084         by invoking localtime on -1.
57085         (main) [TEST_POSIXTIME]: Check for input data errors, and report
57086         posixtime failures better.
57087         Improve the test data (in comments only).
57088
57089 2003-06-02  Karl Berry  <karl@gnu.org>
57090
57091         * config/mkinstalldirs (version): new variable.
57092         (--version): new option.
57093         (usage): improve message.
57094
57095 2003-05-30  Karl Berry  <karl@gnu.org>
57096
57097         * lib/mktime.c: update from libc.
57098
57099 2003-05-30  Bruno Haible  <bruno@clisp.org>
57100
57101         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
57102         * config/config.rpath: Upgrade to gettext-0.12.1.
57103
57104 2003-05-30  Bruno Haible  <bruno@clisp.org>
57105
57106         * m4/gettext.m4: Upgrade to gettext-0.12.1.
57107         * m4/nls.m4: New file, from gettext-0.12.1.
57108         * m4/po.m4: New file, from gettext-0.12.1.
57109         * m4/progtest.m4: Upgrade to gettext-0.12.1.
57110
57111 2003-05-30  Bruno Haible  <bruno@clisp.org>
57112
57113         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
57114         * lib/localcharset.h: Likewise.
57115         * lib/localcharset.c: Likewise.
57116
57117 2003-05-29  Karl Berry  <karl@gnu.org>
57118
57119         * config/config.rpath: update from gettext.
57120
57121 2003-05-28  Paul Eggert  <eggert@twinsun.com>
57122
57123         Assume the headers required for C89 freestanding compilers.
57124         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
57125         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
57126         * m4/human.m4 (gl_HUMAN): Likewise.
57127         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
57128         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
57129         * m4/userspec.m4 (gl_USERSPEC): Likewise.
57130         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
57131         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57132         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
57133
57134 2003-05-28  Paul Eggert  <eggert@twinsun.com>
57135
57136         Assume the headers required for C89 freestanding compilers.
57137         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
57138         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
57139         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
57140         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
57141         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
57142         define, since <limits.h> is guaranteed to do that.
57143         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
57144         * lib/exclude.c: Include <stdbool.h> unconditionally.
57145         * lib/tempname.c: Include <stddef.h> unconditionally.
57146         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
57147         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
57148         <stddef.h> does that.
57149         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
57150         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
57151         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
57152         needed.
57153         * lib/xstrtol.c: Likewise.
57154         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
57155         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
57156
57157         * lib/addext.c (addext): Use assignment rather than cast, to avoid
57158         warnings on some platforms.
57159
57160         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57161         arbitrarily.
57162
57163 2003-05-26  Jim Meyering  <jim@meyering.net>
57164
57165         Merge in a change from coreutils:
57166         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
57167         that is guaranteed to be `no'.  Use `no_such_member' to indicate
57168         that condition, rather than `-1' which is slightly misleading.
57169         Change the name of the cache variable to have the gl_ prefix.
57170         Prompted by a patch from Richard Dawe for DJGPP.
57171
57172 2003-05-24  Karl Berry  <karl@gnu.org>
57173
57174         * config/config.guess: update from prep.
57175
57176 2003-05-22  Karl Berry  <karl@gnu.org>
57177
57178         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
57179
57180 2003-05-20  Karl Berry  <karl@gnu.org>
57181
57182         * config/config.guess: update from prep.
57183
57184 2003-05-18  Karl Berry  <karl@gnu.org>
57185
57186         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
57187         might actually be set by the user.
57188
57189         * config/depcomp, install-sh, mdate-sh: update from automake.
57190
57191 2003-05-17  Bruno Haible  <bruno@clisp.org>
57192
57193         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
57194         invalid expansion for AC_EGREP_CPP.
57195         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
57196         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
57197         Suggested by Akim Demaille <akim@epita.fr> in
57198         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
57199
57200 2003-05-12  Jim Meyering  <jim@meyering.net>
57201
57202         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
57203         the space-padded-by-default conversion specifiers, %e, %k, %l.
57204
57205 2003-05-12  Bruno Haible  <bruno@clisp.org>
57206
57207         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
57208         the string is longer than 4 KB.
57209
57210 2003-05-11  Karl Berry  <karl@gnu.org>
57211
57212         * config/config.{guess,sub}: update from prep.
57213
57214 2003-05-09  Bruno Haible  <bruno@clisp.org>
57215
57216         * modules/error: Add m4/strerror_r.m4 to file list.
57217
57218 2003-05-03  Bruno Haible  <bruno@clisp.org>
57219
57220         Upgrade to Unicode-4.0.
57221         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
57222         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
57223         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
57224         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
57225         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
57226         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
57227         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
57228         Change width of U+E0100..U+E01EF from 1 to 0.
57229
57230 2003-04-25  Jim Meyering  <jim@meyering.net>
57231
57232         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
57233         of type size_t, not int.
57234
57235 2003-04-25  Bruno Haible  <bruno@clisp.org>
57236
57237         * lib/copy-file.c: Include <stddef.h>, for size_t.
57238
57239 2003-04-21  Paul Eggert  <eggert@twinsun.com>
57240
57241         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
57242         code which expansion is under static control.  Patch imported from
57243         Akim Demaille's patch to Bison; see
57244         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
57245
57246 2003-04-14  Bruno Haible  <bruno@clisp.org>
57247
57248         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
57249
57250 2003-04-11  Jim Meyering  <jim@meyering.net>
57251
57252         Merge changes from Coreutils.
57253
57254         2003-03-22  Jim Meyering  <jim@meyering.net>
57255
57256         * lib/strftime.c (widen): Cast alloca return value to proper type.
57257
57258         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
57259
57260         From GNU libc.
57261         * lib/strftime.c (my_strftime): Handle very large width
57262         specifications for numeric values correctly.  Improve checks for
57263         overflow.
57264
57265         2003-01-19  Jim Meyering  <jim@meyering.net>
57266
57267         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
57268         definitions.
57269         (nl_get_alt_digit) [! defined my_strftime]: Define.
57270         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
57271         _nl_get_alt_digit and _nl_get_walt_digit.
57272
57273         * lib/strftime.c (my_strftime): Merge in locale-related changes from
57274         libc. These changes have no effect outside of _LIBC.
57275
57276 2003-04-10  Bruno Haible  <bruno@clisp.org>
57277
57278         * modules/findprog: New file.
57279         * MODULES.html.sh (func_all_modules): Add it.
57280
57281 2003-04-10  Bruno Haible  <bruno@clisp.org>
57282
57283         * m4/findprog.m4: New file.
57284         * m4/eaccess.m4: New file.
57285
57286 2003-04-10  Bruno Haible  <bruno@clisp.org>
57287
57288         * lib/findprog.h: New file, from GNU gettext.
57289         * lib/findprog.c: New file, from GNU gettext.
57290
57291 2003-04-05  Jim Meyering  <jim@meyering.net>
57292
57293         Merge changes from Coreutils.
57294
57295         * lib/exclude.h (PARAMS): Remove definition and uses.
57296         * lib/exclude.c: Remove uses of `PARAMS'.
57297
57298         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
57299         Add test-cases for DOS filenames. Declare program_name.
57300         (main): Set up program_name.  Patch by Rich Dawe.
57301
57302         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57303         error from mntctl.
57304         Use mntctl's return value to drive the entry-processing loop, since
57305         we can't rely on the value of the vmt_length member in the last
57306         entry.  On some systems doing so could result in exhausting
57307         virtual memory.  Based in part on a patch from Mike Jetzer.
57308
57309 2003-04-04  Bruno Haible  <bruno@clisp.org>
57310
57311         * modules/linebreak: New file.
57312         * MODULES.html.sh (func_all_modules): Add it.
57313
57314 2003-04-04  Bruno Haible  <bruno@clisp.org>
57315
57316         * m4/linebreak.m4: New file.
57317
57318 2003-04-04  Bruno Haible  <bruno@clisp.org>
57319
57320         * lib/linebreak.h: New file, from GNU gettext.
57321         * lib/linebreak.c: New file, from GNU gettext with slight
57322         modifications.
57323         * lib/lbrkprop.h: New file, from GNU gettext.
57324
57325 2003-04-03  Bruno Haible  <bruno@clisp.org>
57326
57327         * modules/utf8-ucs4: New file.
57328         * modules/utf16-ucs4: New file.
57329         * modules/ucs4-utf8: New file.
57330         * modules/ucs4-utf16: New file.
57331         * MODULES.html.sh (func_all_modules): Add them.
57332
57333 2003-04-03  Bruno Haible  <bruno@clisp.org>
57334
57335         * m4/utf-ucs4.m4: New file.
57336         * m4/ucs4-utf.m4: New file.
57337
57338 2003-04-03  Bruno Haible  <bruno@clisp.org>
57339
57340         * lib/utf8-ucs4.h: New file, from GNU gettext.
57341         * lib/utf16-ucs4.h: New file, from GNU gettext.
57342         * lib/ucs4-utf8.h: New file, from GNU gettext.
57343         * lib/ucs4-utf16.h: New file, from GNU gettext.
57344
57345 2003-04-02  Bruno Haible  <bruno@clisp.org>
57346
57347         * modules/binary-io: New file.
57348         * MODULES.html.sh (func_all_modules): Add it.
57349
57350 2003-04-02  Bruno Haible  <bruno@clisp.org>
57351
57352         * lib/binary-io.h: New file, from GNU gettext.
57353
57354 2003-04-01  Bruno Haible  <bruno@clisp.org>
57355
57356         * modules/pathname: New file.
57357         * MODULES.html.sh (func_all_modules): Add it.
57358
57359 2003-04-01  Bruno Haible  <bruno@clisp.org>
57360
57361         * lib/pathname.h: New file, from GNU gettext.
57362         * lib/concatpath.c: New file, from GNU gettext.
57363
57364 2003-03-30  Bruno Haible  <bruno@clisp.org>
57365
57366         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
57367
57368 2003-03-30  Bruno Haible  <bruno@clisp.org>
57369
57370         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
57371         function chown() doesn't exist.
57372
57373 2003-03-28  Bruno Haible  <bruno@clisp.org>
57374
57375         * modules/copy-file: New file.
57376         * MODULES.html.sh (func_all_modules): Add it.
57377
57378 2003-03-28  Bruno Haible  <bruno@clisp.org>
57379
57380         * m4/copy-file.m4: New file.
57381
57382 2003-03-28  Bruno Haible  <bruno@clisp.org>
57383
57384         * lib/copy-file.h: New file, from GNU gettext.
57385         * lib/copy-file.c: New file, from GNU gettext.
57386
57387 2003-03-18  Jim Meyering  <jim@meyering.net>
57388
57389         * lib/quote.c (quote_n): Fix typo in comment.
57390
57391 2003-03-18  Bruno Haible  <bruno@clisp.org>
57392
57393         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
57394         checking.
57395         * m4/onceonly_2_57.m4: Likewise.
57396
57397 2003-03-17  Bruno Haible  <bruno@clisp.org>
57398
57399         * m4/onceonly.m4: Require autoconf 2.54 or newer.
57400         (m4_quote): Remove macro.
57401         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
57402
57403 2003-03-14  Jim Meyering  <jim@meyering.net>
57404
57405         Merge changes from Coreutils.
57406         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
57407         to be const, in order to avoid warnings.
57408         (obstack_room): Likewise.
57409         (obstack_empty_p): Likewise.
57410
57411 2003-03-14  Bruno Haible  <bruno@clisp.org>
57412
57413         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
57414         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
57415
57416 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57417
57418         Merge changes from Bison.
57419         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
57420         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
57421         when compiling Bison 1.875's `bitset bset = obstack_alloc
57422         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
57423         * lib/hash.c: Include <stdbool.h> unconditionally.
57424
57425 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57426
57427         * m4/onceonly.m4 (m4_quote): New macro.
57428         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
57429         Quote AC_FOREACH variable-expansions properly.
57430
57431 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57432
57433         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
57434
57435 2003-03-09  Paul Eggert  <eggert@twinsun.com>
57436
57437         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
57438         Reported by Bruce Becker; see:
57439         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
57440
57441 2003-03-03  Paul Eggert  <eggert@twinsun.com>
57442             Bruno Haible  <bruno@clisp.org>
57443
57444         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
57445         Reported by John Hughes, see
57446         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
57447
57448 2003-02-20  Bruno Haible  <bruno@clisp.org>
57449
57450         * MODULES.html.sh (func_all_modules): Add poll.
57451
57452 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57453
57454         * modules/poll: New file.
57455
57456 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57457
57458         * lib/poll_.h: New file.
57459         * lib/poll.c: New file.
57460
57461 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57462
57463         * m4/poll.m4: New file.
57464
57465 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57466
57467         * modules/mathl: New file.
57468
57469 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57470
57471         * lib/mathl.h: New file.
57472         * lib/acosl.c: New file.
57473         * lib/asinl.c: New file.
57474         * lib/atanl.c: New file.
57475         * lib/ceill.c: New file.
57476         * lib/cosl.c: New file.
57477         * lib/expl.c: New file.
57478         * lib/floorl.c: New file.
57479         * lib/frexpl.c: New file.
57480         * lib/ldexpl.c: New file.
57481         * lib/logl.c: New file.
57482         * lib/sincosl.c: New file.
57483         * lib/sinl.c: New file.
57484         * lib/sqrtl.c: New file.
57485         * lib/tanl.c: New file.
57486         * lib/trigl.c: New file.
57487         * lib/trigl.h: New file.
57488
57489 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57490
57491         * m4/mathl.m4: New file.
57492
57493 2003-02-18  Bruno Haible  <bruno@clisp.org>
57494
57495         * MODULES.html.sh (func_all_modules): Add mathl.
57496
57497 2003-02-17  Bruno Haible  <bruno@clisp.org>
57498
57499         * modules/mkdtemp: New module.
57500         * MODULES.html.sh (func_all_modules): Add it.
57501
57502 2003-02-17  Bruno Haible  <bruno@clisp.org>
57503
57504         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
57505
57506 2003-02-17  Bruno Haible  <bruno@clisp.org>
57507
57508         * lib/mkdtemp.h: New file, from GNU gettext.
57509         * lib/mkdtemp.c: New file, from GNU gettext.
57510
57511 2003-02-02  Jim Meyering  <jim@meyering.net>
57512
57513         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
57514         e.g. glibc-2.2.93.
57515
57516 2003-01-31  Bruno Haible  <bruno@clisp.org>
57517
57518         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
57519         'rpl_rename'.
57520         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
57521         'rpl_strnlen'.
57522         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
57523         'rpl_strtod'.
57524         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
57525         'rpl_utime'.
57526
57527 2003-01-31  Bruno Haible  <bruno@clisp.org>
57528
57529         * lib/rename.c: #undef rename before defining rpl_rename.
57530         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
57531
57532 2003-01-30  Bruno Haible  <bruno@clisp.org>
57533
57534         * modules/vasnprintf, modules/vasprintf: New modules.
57535         * MODULES.html.sh (func_all_modules): Add them.
57536
57537 2003-01-30  Bruno Haible  <bruno@clisp.org>
57538
57539         * m4/signed.m4: New file, from GNU gettext.
57540         * m4/longdouble.m4: New file, from GNU gettext.
57541         * m4/wchar_t.m4: New file, from GNU gettext.
57542         * m4/wint_t.m4: New file, from GNU gettext.
57543         * m4/vasnprintf.m4: New file.
57544         * m4/vasprintf.m4: New file.
57545
57546 2003-01-30  Bruno Haible  <bruno@clisp.org>
57547
57548         * lib/printf-args.h: New file, from GNU gettext.
57549         * lib/printf-args.c: New file, from GNU gettext.
57550         * lib/printf-parse.h: New file, from GNU gettext.
57551         * lib/printf-parse.c: New file, from GNU gettext.
57552         * lib/vasnprintf.h: New file, from GNU gettext.
57553         * lib/vasnprintf.c: New file, from GNU gettext.
57554         * lib/asnprintf.c: New file, from GNU gettext.
57555         * lib/vasprintf.h: New file, from GNU gettext with modifications.
57556         * lib/vasprintf.c: New file, from GNU gettext.
57557         * lib/asprintf.c: New file, from GNU gettext.
57558
57559 2003-01-29  Bruno Haible  <bruno@clisp.org>
57560
57561         * modules/stpncpy: New module.
57562         * MODULES.html.sh (func_all_modules): Add it.
57563
57564 2003-01-29  Bruno Haible  <bruno@clisp.org>
57565
57566         * m4/stpncpy.m4: New file.
57567
57568 2003-01-29  Bruno Haible  <bruno@clisp.org>
57569
57570         * lib/stpncpy.h: New file, from GNU gettext with modifications.
57571         * lib/stpncpy.c: New file, from GNU gettext with modifications.
57572
57573 2003-01-28  Bruno Haible  <bruno@clisp.org>
57574
57575         * modules/c-ctype: New module.
57576         * MODULES.html.sh (func_all_modules): Add it.
57577
57578 2003-01-28  Bruno Haible  <bruno@clisp.org>
57579
57580         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
57581         Paul Eggert.
57582         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
57583         Paul Eggert.
57584
57585 2003-01-27  Bruno Haible  <bruno@clisp.org>
57586
57587         * modules/xsetenv: New module.
57588         * MODULES.html.sh (func_all_modules): Add it.
57589
57590 2003-01-27  Bruno Haible  <bruno@clisp.org>
57591
57592         * lib/xsetenv.h: New file, from GNU gettext.
57593         * lib/xsetenv.c: New file, from GNU gettext.
57594
57595 2003-01-23  Jim Meyering  <jim@meyering.net>
57596
57597         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
57598         from working on systems without dirfd (at least Irix and OSF1/Tru64).
57599
57600 2003-01-23  Bruno Haible  <bruno@clisp.org>
57601
57602         * modules/minmax: New module.
57603         * MODULES.html.sh (func_all_modules): Add it.
57604
57605 2003-01-23  Bruno Haible  <bruno@clisp.org>
57606
57607         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
57608         Eggert.
57609
57610 2003-01-22  Bruno Haible  <bruno@clisp.org>
57611
57612         * modules/exit: New module.
57613         * MODULES.html.sh (func_all_modules): Add it.
57614
57615 2003-01-22  Bruno Haible  <bruno@clisp.org>
57616
57617         * lib/exit.h: New file, from GNU gettext.
57618
57619 2003-01-19  Bruno Haible  <bruno@clisp.org>
57620
57621         * gnulib-tool: Recognize option --extract-maintainer.
57622         (func_get_maintainer): New function.
57623         * modules/*: Add Maintainer entry.
57624
57625 2003-01-16  Jim Meyering  <jim@meyering.net>
57626
57627         * m4/regex.m4: The `regex' struct is both input and output.
57628         Initialize it before each use.  Patch by Tim Waugh.
57629
57630 2003-01-16  Bruno Haible  <bruno@clisp.org>
57631
57632         * MODULES.html.sh: Add a table of contents. Add the module name as
57633         leftmost column. Add hyperlinks.
57634
57635 2003-01-15  Bruno Haible  <bruno@clisp.org>
57636
57637         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
57638
57639 2003-01-15  Bruno Haible  <bruno@clisp.org>
57640
57641         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
57642         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
57643         suffix.
57644
57645 2003-01-15  Bruno Haible  <bruno@clisp.org>
57646
57647         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
57648
57649 2003-01-15  Bruno Haible  <bruno@clisp.org>
57650
57651         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
57652         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
57653
57654 2003-01-14  Jim Meyering  <jim@meyering.net>
57655
57656         * lib/same.c (same_name): Tweak a comment.
57657
57658 2003-01-14  Bruno Haible  <bruno@clisp.org>
57659
57660         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
57661         when a string comparison is sufficient.
57662
57663 2003-01-14  Bruno Haible  <bruno@clisp.org>
57664
57665         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
57666         'unsigned int'.
57667
57668 2003-01-14  Bruno Haible  <bruno@clisp.org>
57669
57670         * lib/hash-pjw.c: Add comment about low quality of this function.
57671
57672 2003-01-13  Bruno Haible  <bruno@clisp.org>
57673
57674         * modules/stpcpy: Distribute lib/stpcpy.h.
57675         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
57676
57677 2003-01-13  Bruno Haible  <bruno@clisp.org>
57678
57679         * modules/*: Add a description.
57680         * modules/strpbrk: Fix Makefile.am snippet.
57681         * modules/strtoimax: Fix dependencies.
57682         * modules/strtoumax: Likewise.
57683
57684 2003-01-13  Bruno Haible  <bruno@clisp.org>
57685
57686         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
57687         * modules/alloca (Makefile.am): All object files depend on alloca.h.
57688         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
57689
57690 2003-01-13  Bruno Haible  <bruno@clisp.org>
57691
57692         * gnulib-tool (func_create_testdir): Store config/* files in the main
57693         directory.
57694         * config.rpath: Move to ...
57695         * config/config.rpath: ... here.
57696         * modules/gettext: Contains config/config.rpath, not config.rpath.
57697         * modules/iconv: Likewise.
57698
57699 2003-01-12  Paul Eggert  <eggert@twinsun.com>
57700
57701         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
57702         to avoid collisions with libcurses and libreadline.
57703
57704         * m4/getstr.m4: Remove.
57705         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
57706
57707 2003-01-12  Paul Eggert  <eggert@twinsun.com>
57708
57709         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
57710         to avoid collisions with libcurses and libreadline.
57711
57712         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
57713         * lib/getstr.h, getstr.c: Remove.
57714         * lib/getline.c: Include "getline.h", to check interface.
57715         Move body of old getstr.c here: this defines MIN_CHUNK and
57716         declares getdelim2, which is renamed from getstr.
57717         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
57718
57719         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
57720         All uses changed.
57721         * lib/linebuffer.h: Likewise.
57722         (readline): Remove backward-compatibility macro.
57723
57724 2003-01-12  Paul Eggert  <eggert@twinsun.com>
57725
57726         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
57727         to avoid collisions with libcurses and libreadline.
57728         * getstr: Remove.
57729         * MODULES.html.sh: Remove getstr.
57730         * modules/getline: Depend on unlocked-io, not getstr.
57731
57732 2003-01-12  Jim Meyering  <jim@meyering.net>
57733
57734         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
57735
57736 2003-01-10  Bruno Haible  <bruno@clisp.org>
57737
57738         * modules/alloca: Change Makefile.am requirements. Simplify Include
57739         requirements. Add lib/alloca_.h to file list.
57740
57741 2003-01-10  Bruno Haible  <bruno@clisp.org>
57742
57743         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
57744
57745 2003-01-10  Bruno Haible  <bruno@clisp.org>
57746
57747         * lib/alloca_.h: New file.
57748         * lib/getdate.y: Unconditionally include alloca.h.
57749         * lib/makepath.c: Likewise.
57750         * lib/setenv.c: Likewise.
57751         * lib/userspec.c: Likewise.
57752
57753 2003-01-09  Karl Berry  <karl@gnu.org>
57754
57755         * MODULES.html.sh: include `dirname $0` in PATH, to find
57756         gnulib-tool.
57757
57758 2003-01-09  Bruno Haible  <bruno@clisp.org>
57759
57760         * modules/stdbool: Change configure.ac, Makefile.am requirements.
57761         Simplify Include requirements. Add lib/stdbool.h.in to file list.
57762
57763 2003-01-09  Bruno Haible  <bruno@clisp.org>
57764
57765         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
57766
57767 2003-01-09  Bruno Haible  <bruno@clisp.org>
57768
57769         * lib/stdbool.h.in: New file.
57770
57771 2003-01-09  Bruno Haible  <bruno@clisp.org>
57772
57773         * gnulib-tool (func_all_modules): Ignore files ending in ~.
57774         * MODULES.html.sh: Likewise.
57775
57776 2003-01-08  Jim Meyering  <jim@meyering.net>
57777
57778         * lib/full-write.c: Undefine and define-away `const' after inclusion
57779         of errno.h, not before.  Suggestion from Bruno Haible.
57780
57781 2003-01-08  Bruno Haible  <bruno@clisp.org>
57782
57783         * modules/full-read: Depend on full-write.
57784
57785 2003-01-08  Bruno Haible  <bruno@clisp.org>
57786
57787         * lib/safe-read.c: Include specification header first, to ensure its
57788         selfcontainedness.
57789         * lib/full-write.c: Likewise.
57790
57791 2003-01-07  Jim Meyering  <jim@meyering.net>
57792
57793         * lib/full-write.c: Rework so that it may serve to define full_read,
57794         too.
57795         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
57796
57797 2003-01-07  Bruno Haible  <bruno@clisp.org>
57798
57799         * lib/strtoimax.c: Include <stdint.h> as an alternative to
57800         <inttypes.h>.
57801         * lib/xstrtol.h: Likewise.
57802         * lib/xstrtoimax.c: Likewise.
57803         * lib/xstrtoumax.c: Likewise.
57804         * lib/human.h: Likewise.
57805
57806         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
57807         on systems that have <inttypes.h> but not <stdint.h>.
57808
57809 2003-01-07  Bruno Haible  <bruno@clisp.org>
57810
57811         * MODULES.html.sh: Add copyright notice.
57812         (missed_files): Omit CVS directory entries.
57813         (func_module): Make it work with sed-3.02.
57814         * MODULES.txt: Remove file.
57815
57816 2003-01-06  Jim Meyering  <jim@meyering.net>
57817
57818         * lib/version-etc.c: Update year in translatable copyright string.
57819
57820 2003-01-03  Karl Berry  <karl@gnu.org>
57821
57822         * config/config.{guess,sub}: update from prep.
57823
57824 2003-01-02  Karl Berry  <karl@gnu.org>
57825
57826         * doc/COPYING.DOC: belatedly updated to 1.2.
57827
57828 2003-01-01  Karl Berry  <karl@gnu.org>
57829
57830         * gnulib-tool (func_verify_module): report module name $module in
57831         error message, not $1.
57832         * gnulib-tool (create-testdir): don't complain if destdir couldn't
57833         be created, only if it doesn't exist.
57834         * gnulib-tool (last_checkin_date): don't expand the $Date here.
57835
57836 2002-12-31  Paul Eggert  <eggert@twinsun.com>
57837
57838         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
57839
57840 2002-12-31  Paul Eggert  <eggert@twinsun.com>
57841
57842         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
57843         memcmp if strcoll doesn't work.
57844
57845 2002-12-31  Bruno Haible  <bruno@clisp.org>
57846
57847         * lib/utime.c (utime_null): No need to call ftruncate if the file was
57848         nonempty.
57849
57850 2002-12-31  Bruno Haible  <bruno@clisp.org>
57851
57852         * lib/memcoll.c (STRCOLL): New macro.
57853         (memcoll): Use it.
57854
57855 2002-12-31  Bruno Haible  <bruno@clisp.org>
57856
57857         * lib/localcharset.h: New file.
57858         * lib/localcharset.c: Include it.
57859         * lib/unicodeio.c: Likewise.
57860
57861 2002-12-31  Bruno Haible  <bruno@clisp.org>
57862
57863         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
57864         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
57865
57866 2002-12-31  Bruno Haible  <bruno@clisp.org>
57867
57868         * lib/getline.h: Include <stddef.h>, for size_t.
57869
57870         * lib/unicodeio.h: Include <stddef.h>, for size_t.
57871         * lib/unicodeio.c: Don't include <stddef.h>.
57872
57873 2002-12-31  Bruno Haible  <bruno@clisp.org>
57874
57875         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
57876         HAVE_TM_ZONE.
57877
57878 2002-12-24  Karl Berry  <karl@gnu.org>
57879
57880         * config/config.guess: update from prep.
57881
57882 2002-12-24  Bruno Haible  <bruno@clisp.org>
57883
57884         General infrasructure.
57885         * m4/README: Rewritten.
57886         * m4/onceonly.m4: New file.
57887         * m4/onceonly_2_57.m4: New file.
57888
57889         Module atexit.
57890         * m4/atexit.m4: New file.
57891
57892         Module strtod.
57893         * m4/strtod.m4: New file.
57894
57895         Module strtol.
57896         * m4/strtol.m4: New file.
57897
57898         Module strtoul.
57899         * m4/strtoul.m4: New file.
57900
57901         Module memchr.
57902         * m4/memchr.m4: New file.
57903
57904         Module memcmp.
57905         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
57906         (jm_FUNC_MEMCMP): Invoke it.
57907
57908         Module memcpy.
57909         * m4/memcpy.m4: New file.
57910
57911         Module memmove.
57912         * m4/memmove.m4: New file.
57913
57914         Module memset.
57915         * m4/memset.m4: New file.
57916
57917         Module strcspn.
57918         * m4/strcspn.m4: New file.
57919
57920         Module strpbrk.
57921         * m4/strpbrk.m4: New file.
57922
57923         Module strstr.
57924         * m4/strstr.m4: New file.
57925
57926         Module strerror.
57927         * m4/strerror.m4: New file.
57928
57929         Module mktime.
57930         * m4/mktime.m4: Renamed from jm-mktime.m4.
57931         (gl_PREREQ_MKTIME): New macro.
57932         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
57933
57934         Module malloc.
57935         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
57936         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
57937         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
57938
57939         Module realloc.
57940         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
57941         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
57942         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
57943
57944         Module strftime.
57945         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
57946         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
57947         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
57948         gl_TM_GMTOFF.
57949         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
57950
57951         Module xalloc.
57952         * m4/xalloc.m4: New file.
57953
57954         Module alloca.
57955         * m4/alloca.m4: New file.
57956
57957         Module putenv.
57958         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
57959         (jm_FUNC_PUTENV): Invoke it.
57960
57961         Module setenv.
57962         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
57963         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
57964         when invoked twice.
57965         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
57966         gt_FUNC_SETENV.
57967
57968         Module memrchr.
57969         * m4/memrchr.m4: New file.
57970
57971         Module stpcpy.
57972         * m4/stpcpy.m4: New file.
57973
57974         Module strcase.
57975         * m4/strcase.m4: New file.
57976
57977         Module strdup.
57978         * m4/strdup.m4: New file.
57979
57980         Module strnlen.
57981         * m4/strnlen.m4: New file.
57982
57983         Module strndup.
57984         * m4/strndup.m4: New file.
57985
57986         Module xstrtod.
57987         * m4/xstrtod.m4: New file.
57988
57989         Module xstrtol.
57990         * m4/xstrtol.m4: New file.
57991
57992         Module getdate.
57993         * m4/getdate.m4: New file.
57994
57995         Module unlocked-io.
57996         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
57997         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
57998         * m4/jm-glibc-io.m4n: Remove file.
57999
58000         Module long-options.
58001         * m4/long-options.m4: New file.
58002
58003         Module md5.
58004         * m4/md5.m4: New file.
58005
58006         Module sha.
58007         * m4/sha.m4: New file.
58008
58009         Module getstr.
58010         * m4/getstr.m4: New file.
58011
58012         Module getline.
58013         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
58014         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
58015         <sys/types.h>, for size_t. Use the function name gnu_getline, not
58016         simply getline. Infoke gl_PREREQ_GETLINE.
58017
58018         Module obstack.
58019         * m4/obstack.m4: New file.
58020
58021         Module hash.
58022         * m4/hash.m4: New file.
58023
58024         Module readtokens.
58025         * m4/readtokens.m4: New file.
58026
58027         Module strverscmp.
58028         * m4/strverscmp.m4: New file.
58029
58030         Module stdbool.
58031         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
58032         OSF/1.
58033
58034         Module strtoll.
58035         * m4/strtoll.m4: New file.
58036
58037         Module strtoull.
58038         * m4/strtoull.m4: New file.
58039
58040         Module strtoimax.
58041         * m4/strtoimax.m4: New file.
58042
58043         Module strtoumax.
58044         * m4/strtoumax.m4: New file.
58045
58046         Module xstrtoimax.
58047         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
58048         jm_AC_PREREQ_XSTRTOIMAX.
58049         Moved the strtol prerequisites to strtol.m4.
58050         Moved the strtoll prerequisites to strtoll.m4.
58051         Moved the strtoimax prerequisites to strtoimax.m4.
58052
58053         Module xstrtoumax.
58054         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
58055         jm_AC_PREREQ_XSTRTOUMAX.
58056         Moved the strtoul prerequisites to strtoul.m4.
58057         Moved the strtoull prerequisites to strtoull.m4.
58058         Moved the strtoumax prerequisites to strtoumax.m4.
58059
58060         Module chown.
58061         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
58062         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
58063
58064         Module dup2.
58065         * m4/dup2.m4: New file.
58066
58067         Module ftruncate.
58068         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
58069         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
58070
58071         Module getgroups.
58072         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
58073         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
58074
58075         Module gettimeofday.
58076         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
58077         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
58078         gl_PREREQ_GETTIMEOFDAY.
58079
58080         Module mkdir.
58081         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
58082         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
58083
58084         Module mkstemp.
58085         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
58086         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
58087         jm_AC_TYPE_UINTMAX_T.
58088         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
58089
58090         Module stat.
58091         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
58092         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
58093
58094         Module lstat.
58095         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
58096         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
58097
58098         Module timespec.
58099         * m4/timespec.m4 (gl_TIMESPEC): New macro.
58100         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
58101         * m4/st_mtim.m4: Indentation.
58102
58103         Module nanosleep.
58104         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
58105         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
58106         gl_PREREQ_NANOSLEEP.
58107
58108         Module regex.
58109         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
58110         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
58111         (gl_REGEX): New macro.
58112
58113         Module rename.
58114         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
58115         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
58116
58117         Module rmdir.
58118         * m4/rmdir.m4: New file.
58119
58120         Module utime.
58121         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
58122         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
58123         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
58124
58125         Module dirname.
58126         * m4/dirname.m4: New file.
58127
58128         Module getopt.
58129         * m4/getopt.m4: New file.
58130
58131         Module unistd-safer.
58132         * m4/unistd-safer.m4: New file.
58133
58134         Module fnmatch.
58135         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
58136         declaration.
58137         (gl_PREREQ_FNMATCH_EXTRA): New macro.
58138         (gl_FUNC_FNMATCH_POSIX): New macro.
58139         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
58140         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
58141         simply fnmatch.
58142
58143         Module exclude.
58144         * m4/exclude.m4: New file.
58145
58146         Module human.
58147         * m4/human.m4: New file.
58148
58149         Module acl.
58150         * m4/acl.m4: Nop.
58151
58152         Module backupfile.
58153         * m4/backupfile.m4: New file.
58154         * m4/d-ino.m4: Indentation.
58155
58156         Module fsusage.
58157         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
58158         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
58159         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
58160
58161         Module dirfd.
58162         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
58163         requirements.
58164
58165         Module euidaccess.
58166         * m4/euidaccess.m4: New file.
58167
58168         Module file-type.
58169         * m4/file-type.m4: New file.
58170
58171         Module fileblocks.
58172         * m4/fileblocks.m4: New file.
58173
58174         Module filemode.
58175         * m4/filemode.m4: New file.
58176
58177         Module isdir.
58178         * m4/isdir.m4: New file.
58179
58180         Module lchown.
58181         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
58182         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
58183
58184         Module makepath.
58185         * m4/makepath.m4: New file.
58186
58187         Module modechange.
58188         * m4/modechange.m4: New file.
58189
58190         Module mountlist.
58191         * m4/mountlist.m4: New file.
58192         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
58193         Indentation.
58194
58195         Module path-concat.
58196         * m4/path-concat.m4: New file.
58197
58198         Module pathmax.
58199         * m4/pathmax.m4: New file.
58200
58201         Module same.
58202         * m4/same.m4: New file.
58203
58204         Module save-cwd.
58205         * m4/save-cwd.m4: New file.
58206
58207         Module savedir.
58208         * m4/savedir.m4: New file.
58209
58210         Module xgetcwd.
58211         * m4/xgetcwd.m4: New file.
58212         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
58213
58214         Module xreadlink.
58215         * m4/xreadlink.m4: New file.
58216
58217         Module safe-read.
58218         * m4/safe-read.m4: New file.
58219
58220         Module safe-write.
58221         * m4/safe-write.m4: New file.
58222
58223         Module closeout.
58224         * m4/closeout.m4: New file.
58225
58226         Module stdio-safer.
58227         * m4/stdio-safer.m4: New file.
58228
58229         Module getpass.
58230         * m4/getpass.m4: New file.
58231
58232         Module getugroups.
58233         * m4/getugroups.m4: New file.
58234
58235         Module group-member.
58236         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
58237         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
58238
58239         Module idcache.
58240         * m4/idcache.m4: New file.
58241
58242         Module userspec.
58243         * m4/userspec.m4: New file.
58244
58245         Module gettime.
58246         * m4/clock_time.m4: New file.
58247         * m4/gettime.m4: New file.
58248
58249         Module settime.
58250         * m4/settime.m4: New file.
58251
58252         Module posixtm.
58253         * m4/posixtm.m4: New file.
58254
58255         Module gethostname.
58256         * m4/gethostname.m4: New file.
58257
58258         Module canon-host.
58259         * m4/canon-host.m4: New file.
58260
58261         Module gettext.
58262         * m4/codeset.m4: New file, from gettext-0.11.5.
58263         * m4/gettext.m4: New file, from gettext-0.11.5.
58264         * m4/glibc21.m4: New file, from gettext-0.11.5.
58265         * m4/iconv.m4: New file, from gettext-0.11.5.
58266         * m4/intdiv0.m4: New file, from gettext-0.11.5.
58267         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
58268         * m4/inttypes.m4: New file, from gettext-0.11.5.
58269         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
58270         * m4/isc-posix.m4: New file, from gettext-0.11.5.
58271         * m4/lcmessage.m4: New file, from gettext-0.11.5.
58272         * m4/lib-ld.m4: New file, from gettext-0.11.5.
58273         * m4/lib-link.m4: New file, from gettext-0.11.5.
58274         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
58275         * m4/progtest.m4: New file, from gettext-0.11.5.
58276         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
58277         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
58278         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
58279
58280         Module localcharset.
58281         * m4/localcharset.m4: New file.
58282
58283         Module hard-locale.
58284         * m4/hard-locale.m4: New file.
58285
58286         Module mbswidth.
58287         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
58288         onceonly macros.
58289         * m4/mbrtowc.m4: Add comment.
58290
58291         Module memcasecmp.
58292         * m4/memcasecmp.m4: New file.
58293
58294         Module memcoll.
58295         * m4/memcoll.m4: New file.
58296
58297         Module unicodeio.
58298         * m4/unicodeio.m4: New file.
58299
58300         Module rpmatch.
58301         * m4/rpmatch.m4: New file.
58302
58303         Module yesno.
58304         * m4/yesno.m4: New file.
58305
58306         Module exitfail.
58307         * m4/exitfail.m4: New file.
58308
58309         Module c-stack.
58310         * m4/c-stack.m4 (gl_C_STACK): New macro.
58311         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
58312
58313         Module error.
58314         * m4/error.m4 (gl_ERROR): New macro.
58315         (jm_PREREQ_ERROR): Use onceonly macros.
58316
58317         Module fatal.
58318         * m4/fatal.m4: New file.
58319
58320         Module getloadavg.
58321         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
58322         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
58323
58324         Module getpagesize.
58325         * m4/getpagesize.m4: New file.
58326
58327         Module getusershell.
58328         * m4/getusershell.m4: New file.
58329
58330         Module physmem.
58331         * m4/physmem.m4: New file.
58332
58333         Module posixver.
58334         * m4/posixver.m4: New file.
58335
58336         Module quotearg.
58337         * m4/quotearg.m4: New file.
58338
58339         Module quote.
58340         * m4/quote.m4: New file.
58341
58342         Module readutmp.
58343         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
58344
58345         Module sig2str.
58346         * m4/sig2str.m4: New file.
58347
58348         Other.
58349         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
58350         ulonglong.m4.
58351         * m4/intmax_t.m4: New file.
58352         * m4/d-type.m4: Indentation.
58353         * m4/jm-macros.m4: Update.
58354         * m4/prereq.m4 (jm_PREREQ): Update.
58355         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
58356         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
58357         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
58358         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
58359         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
58360         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
58361         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
58362         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
58363         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
58364         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
58365         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
58366         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
58367         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
58368         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
58369         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
58370         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
58371         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
58372         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
58373         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
58374
58375 2002-12-24  Bruno Haible  <bruno@clisp.org>
58376
58377         * MODULES.txt: Update according to m4/ changes.
58378
58379         Module gettext.
58380         * config.rpath: New file, from gettext-0.11.5.
58381
58382         * modules/*: New module descriptions.
58383         * gnulib-tool: New file.
58384         * MODULES.html.sh: New file.
58385
58386 2002-12-21  Karl Berry  <karl@gnu.org>
58387
58388         * doc/fdl.texi: update to version 1.2.
58389
58390 2002-12-19  Karl Berry  <karl@gnu.org>
58391
58392         * config/config.guess: update from prep.
58393
58394 2002-12-18  Bruno Haible  <bruno@clisp.org>
58395
58396         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
58397         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
58398
58399 2002-12-17  Bruno Haible  <bruno@clisp.org>
58400
58401         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
58402         stdlib.h, string.h.
58403
58404 2002-12-17  Bruno Haible  <bruno@clisp.org>
58405
58406         * lib/canon-host.c (strdup): Remove unused declaration.
58407
58408         * lib/fsusage.c: Include full_read.h.
58409         (get_fs_usage): Use full_read instead of safe_read.
58410
58411         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
58412
58413 2002-12-12  Karl Berry  <karl@gnu.org>
58414
58415         * config/config.guess: update from prep.
58416
58417 2002-12-11  Bruno Haible  <bruno@clisp.org>
58418
58419         * m4/setenv.m4: New file, from gettext-0.11.5.
58420
58421 2002-12-11  Bruno Haible  <bruno@clisp.org>
58422
58423         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
58424         not unsetenv().
58425         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
58426         modifications:
58427
58428         2002-12-11  Bruno Haible  <bruno@clisp.org>
58429
58430                 * setenv.c (alloca): Fall back to malloc.
58431                 (freea): New macro.
58432                 (setenv): Use freea() to free memory allocated with alloca().
58433
58434         2002-11-13  Bruno Haible  <bruno@clisp.org>
58435
58436                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
58437                 function declarations.
58438                 * unsetenv.c (unsetenv): Likewise.
58439
58440         2002-03-04  Bruno Haible  <bruno@clisp.org>
58441
58442                 Portability to AIX 4.3.3.
58443                 * unsetenv.c: New file, extracted from setenv.c.
58444                 * setenv.c: Move the unsetenv() function to unsetenv.c.
58445
58446         2001-12-20  Bruno Haible  <bruno@clisp.org>
58447
58448                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
58449                 use malloc instead. For SunOS 4.
58450
58451         2001-12-11  Bruno Haible  <bruno@clisp.org>
58452
58453                 * setenv.c: Declare alloca.
58454                 (compar_fn_t): New typedef.
58455                 (KNOWN_VALUE, STORE_VALUE): Use it.
58456
58457         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
58458         setenv.h.
58459
58460 2002-12-10  Paul Eggert  <eggert@twinsun.com>
58461
58462         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
58463         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
58464         Choose values that are less likely to collide with system fnmatch
58465         options.
58466         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
58467         defined (e.g., a pure POSIX system).
58468         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
58469         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
58470
58471 2002-12-06  Paul Eggert  <eggert@twinsun.com>
58472
58473         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
58474         a pain in practice to deal with generated m4 files.  This change
58475         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
58476
58477         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
58478         and jm-glibc-io.m4, as they are no longer a special case.
58479         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
58480         kludge and the auto-generation stuff.  Check only whether the
58481         functions are declared, not whether they exist, since older hosts
58482         that don't declare the functions can't use the optimization anyway.
58483
58484 2002-12-06  Jim Meyering  <jim@meyering.net>
58485
58486         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
58487
58488         Merge in changes from libc's misc/error.c, in preparation
58489         for the merge of gnulib's changes back into libc.
58490
58491         * lib/error.c (_): Define only if not already defined.
58492         Move definition to follow all #include directives.
58493         Include unlocked-io.h only if !_LIBC.
58494         [_LIBC]: Include <libio/libioP.h>.
58495         [USE_IN_LIBIO]: Include <libio/iolibio.h>
58496         (fflush): Tweak definition to use INTUSE.
58497         (putc): Define.
58498
58499 2002-12-05  Paul Eggert  <eggert@twinsun.com>
58500
58501         * lib/alloca.c [defined emacs]: Include "lisp.h".
58502         (xalloc_die) [defined emacs]: New macro.
58503         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
58504         [! defined emacs]: Include <xalloc.h>.
58505         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
58506         (pointer): Typedef to POINTER_TYPE *.
58507         (malloc): Remove decl; we now always use xmalloc.
58508         (alloca): Use old-style definition, since Emacs needs this.
58509         Check for arithmetic overflow when computing combined size.
58510
58511 2002-12-04  Paul Eggert  <eggert@twinsun.com>
58512
58513         Do not generate unlocked-io.h automatically, since it's easier to
58514         maintain it by hand.
58515
58516         * lib/unlocked-io.h: New file, from GNU diffutils,
58517         but with proper copyright notice and attribution.
58518         * lib/gen-uio: Remove.
58519         * lib/Makefile.am: Add copyright notice.
58520         (libfetish_a_SOURCES): Add unlocked-io.h.
58521         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
58522         (DISTCLEANFILES, io_functions): Remove macros.
58523         (EXTRA_DIST): Remove gen_uio.
58524         (unlocked-io.h): Remove rule.
58525
58526 2002-12-04  Jim Meyering  <jim@meyering.net>
58527
58528         Reflect the fact that stat.c and lstat.c are no longer generated.
58529         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
58530         (DISTCLEANFILES): Likewise.
58531         (EXTRA_DIST): Likewise.
58532         (all_local): Don't depend on stat.c or lstat.c.
58533         (stat.c, lstat.c): Remove rules.
58534         (EXTRA_DIST): Remove xstat.in.
58535
58536         * lib/xstat.in: Remove file.  Contents moved into stat.c.
58537         * lib/stat.c: New file.  Contents mostly from xstat.in.
58538         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
58539         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
58540
58541         * lib/safe-read.c: Rework so that it may serve to define safe_write,
58542         too.
58543         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
58544
58545 2002-12-03  Jim Meyering  <jim@meyering.net>
58546
58547         * lib/safe-read.c, safe-write.c: Change variable names and comments,
58548         but not semantics, to minimize the differences between these two files.
58549         (safe_read): Change comment to mention SAFE_READ_ERROR.
58550
58551         * lib/safe-read.c (IS_EINTR): Define.
58552         (safe_read): Use IS_EINTR in place of in-function cpp directives.
58553
58554 2002-12-02  Jim Meyering  <jim@meyering.net>
58555
58556         * lib/safe-read.c (EINTR): Define.
58557         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
58558         (INT_MAX): Provide fallback.
58559         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
58560
58561         * lib/safe-read.h (SAFE_READ_ERROR): Define.
58562
58563 2002-12-02  Bruno Haible  <bruno@clisp.org>
58564
58565         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
58566         Define, taken from safe-read.c.
58567         (INT_MAX): Provide fallback.
58568         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
58569         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
58570
58571         * lib/safe-read.c (EINTR): Remove definition.
58572         (safe_read): Don't use EINTR if it is absent.
58573
58574 2002-12-01  Jim Meyering  <jim@meyering.net>
58575
58576         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
58577         zero.
58578         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
58579
58580 2002-11-27  Paul Eggert  <eggert@twinsun.com>
58581
58582         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
58583         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
58584         with `if (! (value < limit)) abort ();', for readability.
58585
58586 2002-11-26  Karl Berry  <karl@gnu.org>
58587
58588         * lib/strdup.c: copy from libc again, with jim's ok.
58589         * lib/.cppi-disable: re-add strdup.c
58590
58591 2002-11-25  Karl Berry  <karl@gnu.org>
58592
58593         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
58594         instead of "strtol.c".
58595
58596 2002-11-25  Karl Berry  <karl@gnu.org>
58597
58598         * config/install-sh: update from automake for variable quoting, $0 in
58599         error msgs, etc.
58600
58601         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
58602         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
58603         entry.
58604
58605 2002-11-25  Jim Meyering  <jim@meyering.net>
58606
58607         * lib/mktime.c: Sync from libc, now that it has the latest fix.
58608
58609 2002-11-24  Karl Berry  <karl@gnu.org>
58610
58611         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
58612         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
58613
58614 2002-11-24  Jim Meyering  <jim@meyering.net>
58615
58616         Update from coreutils:
58617
58618         * lib/mktime.c: Merge in changes from libc.
58619
58620         Avoid a link-time failure on some Linux systems.
58621         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
58622         (otherwise).
58623         (__mon_yday): Declare with the STATIC attribute.
58624         (__mktime_internal): Likewise.
58625         Based on a report from Greg Schafer.
58626
58627 2002-11-23  Jim Meyering  <jim@meyering.net>
58628
58629         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
58630         Use `unsigned', not `int', as type of index.
58631
58632         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
58633
58634         * lib/fsusage.c: Remove unneeded parentheses around operands of
58635         `defined'.
58636
58637 2002-11-22  Paul Eggert  <eggert@twinsun.com>
58638
58639         * lib/quotearg.h: Allow multiple inclusion by surrounding with
58640         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
58641         so that we can be included first.
58642         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
58643         * lib/quotearg.c: Include quotearg.h immediately after config.h.
58644         No need to include stddef.h or sys/types.h any more.
58645         Surround local include files with "", not "<>".
58646         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
58647         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
58648         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
58649         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
58650         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
58651         (ISPRINT): Remove; no longer needed now that we assume C89.
58652
58653         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
58654         Preserve errno.
58655
58656         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
58657         quotearg_char): Use SIZE_MAX rather than
58658         (size_t) -1 when we are talking about "infinity".
58659
58660         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
58661
58662 2002-11-22  Paul Eggert  <eggert@twinsun.com>
58663
58664         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
58665         hint that one should use `if (! x) abort ();' rather than `assert
58666         (x);', and anyway it's one less thing to worry about configuring.
58667         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
58668         hash_rehash, hash_insert): Use abort rather than assert.
58669
58670 2002-11-22  Bruno Haible  <bruno@clisp.org>
58671
58672         * lib/safe-read.h: Assume C89. Add comments.
58673         (safe_read): Change return type to size_t.
58674         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
58675         byte counts > SSIZE_MAX correctly.
58676         * lib/safe-write.h: New file.
58677         * lib/safe-write.c: New file.
58678         * lib/full-read.h: New file.
58679         * lib/full-read.c: New file.
58680         * lib/full-write.h: Assume C89. Add comments.
58681         * lib/full-write.c: Include safe-write.h.
58682         (full_write): Rewritten to use safe_write.
58683         Suggested by Jim Meyering and Paul Eggert.
58684
58685 2002-11-21  Jim Meyering  <jim@meyering.net>
58686
58687         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
58688
58689         Merge in changes from the coreutils.
58690
58691         2002-09-25  Paul Eggert  <eggert@twinsun.com>
58692         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
58693         <stdint.h>.
58694         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
58695         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
58696         int.  Work more efficiently if X is the same width as uintmax_t.
58697         Do not compare X to -1, to avoid bogus compiler warning.
58698         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
58699         Don't assume that f_frsize and f_bsize are the same type.
58700
58701         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
58702         warning on FreeBSD.
58703
58704         * lib/makepath.c (make_path): Restore umask *before* creating the final
58705         component.
58706         (make_path): Minor reformatting.
58707
58708         * lib/xmalloc.c: Adjust to work with new autoconf macros,
58709         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
58710         HAVE_MALLOC/HAVE_REALLOC.
58711
58712         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
58713         dummy ones.  At least on GNU/Linux systems, `auto' means something
58714         else.
58715         From Michael Stone.
58716
58717 2002-11-21  Bruno Haible  <bruno@clisp.org>
58718
58719         Remove case insensitive option matching.
58720         * lib/argmatch.h (argcasematch): Remove declaration.
58721         (ARGCASEMATCH): Remove macro.
58722         (__xargmatch_internal): Remove case_sensitive argument.
58723         (XARGMATCH): Update.
58724         (XARGCASEMATCH): Remove macro.
58725         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
58726         case_sensitive argument.
58727         (argcasematch): Remove function.
58728         (__xargmatch_internal): Remove case_sensitive argument.
58729         (main): Use XARGMATCH instead of XARGCASEMATCH.
58730
58731         * lib/xmalloc.c: Change compile-time error message. Add comment about
58732         required autoconf version.
58733
58734 2002-11-20  Paul Eggert  <eggert@twinsun.com>
58735
58736         Merge argmatch cleanups from Bison.  Assume C89.
58737
58738         * lib/argmatch.c: Include config.h here, not in argmatch.h.
58739         Include stdlib.h, for EXIT_FAILURE.
58740         Always include <string.h>, since we assume C89.
58741         (EXIT_FAILURE): Remove pre-C89 bug workaround.
58742         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
58743         Include <stddef.h> instead, since it's all we need for size_t.
58744         (PARAMS): Remove.  All uses removed.
58745         (ARRAY_CARDINALITY): Do not bother to #undef.
58746         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
58747         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
58748         Remove unnecessary parentheses.
58749         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
58750         Insert necessary parentheses.
58751         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
58752         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
58753
58754 2002-11-19  Bruno Haible  <bruno@clisp.org>
58755
58756         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
58757         * lib/mbswidth.h: Include <stddef.h>, for size_t.
58758
58759         * lib/mbswidth.h (PARAMS): Remove macro.
58760         (mbswidth, mbsnwidth): Use ANSI C function declarations.
58761         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
58762
58763         * lib/gcd.h (PARAMS): Remove macro.
58764         (gcd): Use ANSI C function declarations.
58765         * lib/gcd.c (gcd): Likewise.
58766
58767 2002-11-15  Bruno Haible  <bruno@clisp.org>
58768
58769         * lib/strcspn.c: Include <stddef.h>.
58770         (strcspn): Use ANSI C function declaration. Change return type to
58771         size_t. Use NULL.
58772         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
58773         (strpbrk): Use NULL.
58774         * lib/strpbrk.h (PARAMS): Remove macro.
58775         (strpbrk): Use ANSI C function declaration.
58776         * lib/strstr.c: Don't include <sys/types.h>.
58777         * lib/strstr.h (PARAMS): Remove macro.
58778         (strstr): Use ANSI C function declarations.
58779
58780 2002-11-14  Karl Berry  <karl@gnu.org>
58781
58782         * config/mkinstalldirs: `do' on separate line, instead of
58783         `for var; do'.
58784
58785 2002-11-06  Bruno Haible  <bruno@clisp.org>
58786
58787         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
58788         * lib/gcd.c (gcd): Likewise.
58789
58790 2002-11-05  Bruno Haible  <bruno@clisp.org>
58791
58792         * lib/gcd.h: New file, from gettext-0.11.5.
58793         * lib/gcd.c: New file, from gettext-0.11.5.
58794
58795 2002-11-05  Bruno Haible  <bruno@clisp.org>
58796
58797         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58798         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58799         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58800         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58801
58802         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
58803         <libintl.h>.
58804         * lib/makepath.c: Include gettext.h instead of <locale.h> and
58805         <libintl.h>.
58806
58807         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
58808         * lib/human.c: Include gettext.h instead of <libintl.h>.
58809         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
58810         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
58811         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
58812         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
58813         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
58814         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
58815         (textdomain): Remove definition.
58816         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
58817
58818         * lib/long-options.c: Remove include of <libintl.h> and definition of
58819         _.
58820         * lib/same.c: Remove include of <libintl.h> and definition of _.
58821
58822 2002-11-04  Owen Taylor  <otaylor@redhat.com>
58823
58824         * lib/config.charset: A few additions for Solaris.
58825
58826 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
58827
58828         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
58829         * lib/localcharset.c (locale_charset): Declare as extern "C".
58830
58831 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
58832
58833         * lib/config.charset: msdos in uk_UA uses CP1125.
58834
58835 2002-11-04  Bruno Haible  <bruno@clisp.org>
58836
58837         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
58838         * lib/strcase.h: New file, from GNU gettext-0.11.5.
58839         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
58840         * lib/strstr.h: New file, from GNU gettext-0.11.5.
58841         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
58842
58843 2002-11-04  Bruno Haible  <bruno@clisp.org>
58844
58845         * lib/localcharset.c (locale_charset): Don't return an empty string.
58846
58847 2002-11-04  Bruno Haible  <bruno@clisp.org>
58848
58849         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
58850         aliases.
58851
58852 2002-11-04  Bruno Haible  <bruno@clisp.org>
58853
58854         * lib/config.charset: Update for newest glibc. Add canonical names
58855         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
58856
58857 2002-11-04  Bruno Haible  <bruno@clisp.org>
58858
58859         * lib/config.charset: Add support for NetBSD.
58860
58861 2002-11-04  Bruno Haible  <bruno@clisp.org>
58862
58863         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
58864
58865 2002-11-01  Bruno Haible  <bruno@clisp.org>
58866
58867         * configure.in: Add AC_CONFIG_AUX_DIR call.
58868         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
58869         test/Makefile.
58870         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
58871
58872 2002-09-28  Karl Berry  <karl@gnu.org>
58873
58874         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
58875         installed automake until the next release, since changes have been
58876         made.
58877
58878 2002-09-25  Karl Berry  <karl@gnu.org>
58879
58880         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
58881         * lib/getopt*: copy from libc/posix.
58882         * lib/gettext.h: copy from gettext.
58883         * lib/.cppi-disable: add strdup.c, gettext.h.
58884
58885 2002-09-25  Karl Berry  <karl@gnu.org>
58886
58887         * config/srclist.txt: enable gettext.h check.
58888         * config/config.{guess,sub}: update from prep.
58889         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
58890                 from automake 1.6.3.
58891         See srclist*.
58892
58893 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
58894
58895         * regex.c (PATFETCH): Remove the translating fetch.
58896         (PATFETCH_RAW): Rename to PATFETCH.
58897         (set_image_of_range): New fun.
58898         (SET_RANGE_TABLE_WORK_AREA): Use it.
58899         (regex_compile): Don't translate the pattern chars so eagerly.
58900         Only do it when inserting an `exactn' bytecode or when handling
58901         a char-range.
58902         (mutually_exclusive_p): Avoid empty statement.
58903
58904 2002-07-06  Jim Meyering  <meyering@lucent.com>
58905
58906         * m4/README: Don't mention Makefile.am.in.
58907         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
58908
58909 2002-07-01  Jim Meyering  <meyering@lucent.com>
58910
58911         * lib/c-stack.c: Include sys/time.h.
58912         From Volker Borchert.
58913
58914 2002-06-26  Paul Eggert  <eggert@twinsun.com>
58915
58916         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
58917
58918 2002-06-26  Paul Eggert  <eggert@twinsun.com>
58919
58920         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
58921         New macro.  Use it uniformly instead of
58922         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
58923         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
58924         reported by Vin Shelton.
58925
58926 2002-06-22  Paul Eggert  <eggert@twinsun.com>
58927
58928         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
58929         Do not assume SA_SIGINFO behavior.
58930         Bug reported by Jim Meyering on NetBSD 1.5.2.
58931
58932 2002-06-22  Jim Meyering  <meyering@lucent.com>
58933
58934         * m4/c-stack.m4: New file, from diffutils-2.8.2.
58935         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
58936
58937         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
58938         now that configure.ac uses AC_GNU_SOURCE.
58939         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
58940         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
58941
58942         Update to latest tools.  Suggestions from Paul Eggert.
58943         * m4/stdbool.m4: New file, from diffutils-2.8.2.
58944         * m4/gnu-source.m4: Update from diffutils-2.8.2.
58945         * m4/fnmatch.m4: Likewise.
58946         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
58947         to AC_HEADER_STDBOOL
58948
58949 2002-06-22  Jim Meyering  <meyering@lucent.com>
58950
58951         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
58952         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
58953
58954 2002-06-22  Jim Meyering  <meyering@lucent.com>
58955
58956         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
58957
58958         * lib/exitfail.c, exitfail.h: Likewise.
58959         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
58960
58961         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
58962         of fnmatch.h.
58963         (EXTRA_DIST): Add fnmatch_loop.c.
58964         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
58965
58966         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
58967         * lib/fnmatch.c: Update from diffutils-2.8.2.
58968         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
58969         * lib/fnmatch.h: Remove file.
58970
58971 2002-06-21  Jim Meyering  <meyering@lucent.com>
58972
58973         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
58974         * m4/mbrtowc.m4: Likewise.
58975
58976         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
58977         * m4/mbswidth.m4: Reflect name change:
58978         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
58979         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
58980
58981         * m4/lib-link.m4: Update from gettext-0.11.2.
58982         * m4/gettext.m4: Likewise.
58983
58984         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
58985         From Alfred M. Szmidt.
58986
58987 2002-06-18  Paul Eggert  <eggert@twinsun.com>
58988
58989         * lib/file-type.h: Report an error if neither S_ISREG nor
58990         S_IFREG is defined, instead of using a test specific to glibc
58991         2.2.  This should be safe, since POSIX requires S_ISREG and
58992         Unix Version 7 had S_IFREG.  We don't need to check for
58993         <sys/types.h> since we don't use any symbols that it defines.
58994
58995 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
58996
58997         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
58998         $@-t, so that each temporary file name is unique and valid in the first
58999         8 characters, for operation under DOS.
59000
59001 2002-06-15  Paul Eggert  <eggert@twinsun.com>
59002
59003         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
59004
59005 2002-06-15  Jim Meyering  <meyering@lucent.com>
59006
59007         Work even with DJGPP 2.03, which lacks support for symlinks.
59008         From Richard Dawe.
59009         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
59010         is defined.
59011         * lib/lchown.c (S_ISLNK): Likewise.
59012
59013 2002-06-15  Jim Meyering  <meyering@lucent.com>
59014
59015         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
59016         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
59017         have been included before this file.
59018
59019 2002-06-14  Jim Meyering  <meyering@lucent.com>
59020
59021         * lib/file-type.h: Use the version from diffutils-2.8.2.
59022         * lib/file-type.c: Likewise.
59023
59024 2002-06-07  Jim Meyering  <meyering@lucent.com>
59025
59026         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
59027         They're needed at least for NetBSD 1.5.2.
59028         ($statxfs_includes): Include those same headers.
59029         ($statxfs_includes): Include sys/vfs.h if available.
59030         ($statxfs_includes): Likewise for sys/statvfs.h.
59031         Check for the following members in both structs statfs and statvfs:
59032         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
59033
59034 2002-06-01  Jim Meyering  <meyering@lucent.com>
59035
59036         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
59037         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
59038
59039 2002-05-28  Jim Meyering  <meyering@lucent.com>
59040
59041         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
59042         Reported by Volker Borchert.
59043
59044 2002-05-27  Jim Meyering  <meyering@lucent.com>
59045
59046         Fix a problem seen only on nonconforming systems whereby ls.c's
59047         use of localtime, and then of gettimeofday would cause trouble:
59048         the localtime call used to initialize rpl_gettimeofday's save
59049         mechanism would clobber ls's current local time information so
59050         that in any long listing the first file would always be listed
59051         with date 1970-01-01.  Analysis by Volker Borchert.
59052
59053         * lib/gettimeofday.c (localtime): Undefine.
59054         (rpl_localtime): New function.
59055
59056 2002-05-27  Jim Meyering  <meyering@lucent.com>
59057
59058         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
59059         localtime.
59060
59061         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
59062         use the replacement function; it wouldn't resolve at link time.
59063         Reported by Volker Borchert.
59064
59065 2002-05-22  Jim Meyering  <meyering@lucent.com>
59066
59067         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
59068         file-type.h.
59069         * lib/file-type.h: New file.
59070         * lib/file-type.c (file_type): New file/function.  Extracted from
59071         diffutils.
59072
59073 2002-04-30  Jim Meyering  <meyering@lucent.com>
59074
59075         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
59076
59077 2002-04-29  Paul Eggert  <eggert@twinsun.com>
59078
59079         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
59080
59081 2002-04-29  Paul Eggert  <eggert@twinsun.com>
59082
59083         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
59084         Do not check for alloca.h (no longer used) or stdbool.h (was never
59085         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
59086
59087 2002-04-29  Paul Eggert  <eggert@twinsun.com>
59088
59089         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
59090
59091 2002-04-29  Jim Meyering  <meyering@lucent.com>
59092
59093         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
59094         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
59095         Use AC_FUNC_STRNLEN here instead.
59096
59097         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
59098         With autoconf-2.53a, it's part of AC_PROG_CC.
59099
59100 2002-04-28  Paul Eggert  <eggert@twinsun.com>
59101
59102         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
59103         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
59104
59105 2002-04-28  Paul Eggert  <eggert@twinsun.com>
59106
59107         * lib/sig2str.h, lib/sig2str.c: New files.
59108         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
59109
59110 2002-04-28  Paul Eggert  <eggert@twinsun.com>
59111
59112         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
59113         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
59114         of 127, since 64 is the largest conceivable number for ancient
59115         nonstandard hosts.
59116         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
59117
59118 2002-04-28  Jim Meyering  <meyering@lucent.com>
59119
59120         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
59121
59122 2002-04-24  Jim Meyering  <meyering@lucent.com>
59123
59124         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
59125         (jm_PREREQ): Use it.
59126
59127         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
59128         mach/mach.h fcntl.h.
59129         Check for this function: setlocale.
59130
59131 2002-04-24  Jim Meyering  <meyering@lucent.com>
59132
59133         * lib/gettext.h: New file, from Gettext.
59134         * lib/Makefile.am (INCLUDES): Remove -I../intl.
59135         (libfetish_a_SOURCES): Add gettext.h.
59136
59137 2002-04-16  Jim Meyering  <meyering@lucent.com>
59138
59139         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
59140         ut_pid, ut_id, ut_exit.
59141
59142 2002-04-16  Jim Meyering  <meyering@lucent.com>
59143
59144         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
59145         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
59146         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
59147
59148 2002-04-12  Jim Meyering  <meyering@lucent.com>
59149
59150         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
59151         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
59152         existence of the getmntinfo function.  Needed for Darwin 5.3.
59153
59154         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
59155         This is necessary at least on Darwin 5.3.
59156
59157         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
59158         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
59159         strnlen.o in the library, and that makes some versions of ranlib
59160         object.
59161
59162 2002-04-12  Jim Meyering  <meyering@lucent.com>
59163
59164         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
59165
59166 2002-04-09  Jim Meyering  <meyering@lucent.com>
59167
59168         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
59169         to be more precise.  Rather than saying we're checking whether the
59170         function `works', say what we're testing.
59171         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
59172         Reported by Bruno Haible.
59173
59174 2002-03-10  Jim Meyering  <meyering@lucent.com>
59175
59176         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
59177         Suggestion from Santiago Vila.
59178
59179 2002-03-08  Jim Meyering  <meyering@lucent.com>
59180
59181         * lib/rename.c: Mention that this wrapper is needed also on
59182         mips-dec-ultrix4.4 systems.
59183
59184 2002-03-02  Jim Meyering  <meyering@lucent.com>
59185
59186         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
59187         not HAVE_CLOCK_SETTIME.
59188
59189 2002-02-27  Paul Eggert  <eggert@twinsun.com>
59190
59191         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
59192         Check for clock_settime.
59193
59194 2002-02-27  Paul Eggert  <eggert@twinsun.com>
59195
59196         * lib/nanosleep.h: Rename to....
59197         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
59198
59199         * lib/gettime.c: New file.
59200         * lib/settime.c: New file.
59201         * lib/stime.c: Remove.
59202
59203         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
59204         timespec.h.  Remove nanosleep.h.
59205
59206 2002-02-25  Paul Eggert  <eggert@twinsun.com>
59207
59208         * m4/acl.m4: New file.
59209         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
59210         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
59211
59212 2002-02-25  Paul Eggert  <eggert@twinsun.com>
59213
59214         * lib/acl.c, lib/acl.h: New files.
59215         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
59216
59217 2002-02-24  Jim Meyering  <meyering@lucent.com>
59218
59219         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
59220         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
59221         cause trouble.  Reported by Nelson Beebe.
59222
59223 2002-02-23  Paul Eggert  <eggert@twinsun.com>
59224
59225         * lib/path-concat.c (xpath_concat): Reorder code to pacify
59226         compilers that don't know that xalloc_die never returns.
59227
59228 2002-02-20  Jim Meyering  <meyering@lucent.com>
59229
59230         * lib/getdate.c: Regenerate using bison-1.33.
59231
59232 2002-02-17  Jim Meyering  <meyering@lucent.com>
59233
59234         * config/config.guess (main): Don't use `head -1'; it's no longer
59235         portable. Use `sed 1q' instead.
59236
59237 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
59238
59239         * m4/codeset.m4: Upgrade to gettext-0.11.
59240         * m4/gettext.m4: Upgrade to gettext-0.11.
59241         * m4/glibc21.m4: Upgrade to gettext-0.11.
59242         * m4/iconv.m4: Upgrade to gettext-0.11.
59243         * m4/isc-posix.m4: Upgrade to gettext-0.11.
59244         * m4/lcmessage.m4: Upgrade to gettext-0.11.
59245         * m4/lib-ld.m4: New file, from gettext-0.11.
59246         * m4/lib-link.m4: New file, from gettext-0.11.
59247         * m4/lib-prefix.m4: New file, from gettext-0.11.
59248         * m4/progtest.m4: Upgrade to gettext-0.11.
59249
59250 2002-02-15  Paul Eggert  <eggert@twinsun.com>
59251
59252         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
59253         (jm_PREREQ): Use it.
59254
59255 2002-02-15  Paul Eggert  <eggert@twinsun.com>
59256
59257         * lib/posixver.c, lib/posixver.h: New files.
59258         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59259
59260 2002-02-02  Paul Eggert  <eggert@twinsun.com>
59261             Bruno Haible  <bruno@clisp.org>
59262
59263         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
59264         (fwrite_success_callback): New declaration.
59265         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
59266         print_unicode_char. Call failure callback instead of error.
59267         (fwrite_success_callback): New function.
59268         (exit_failure_callback): New function.
59269         (fallback_failure_callback): New function.
59270         (print_unicode_char): Call unicode_to_mb.
59271
59272 2002-01-26  Jim Meyering  <meyering@lucent.com>
59273
59274         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
59275         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
59276
59277 2002-01-26  Jim Meyering  <meyering@lucent.com>
59278
59279         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
59280
59281 2002-01-22  Paul Eggert  <eggert@twinsun.com>
59282
59283         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
59284
59285 2002-01-22  Jim Meyering  <meyering@lucent.com>
59286
59287         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
59288         Otherwise, some versions of automake would omit the rule that makes
59289         Makefile from Makefile.in.
59290
59291 2002-01-21  Paul Eggert  <eggert@twinsun.com>
59292
59293         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
59294         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59295         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
59296         (memcoll): Set errno to zero if there is no error.
59297
59298         * lib/quotearg.c (quotearg_buffer_restyled):
59299         Fix bug with quoting buffers containing NUL when backslashing escapes.
59300         This bug was exposed by the other changes in this patch.
59301         (quotearg_n_options): New arg ARGSIZE.
59302         All callers changed.
59303         (quoting_options_from_style): New function.
59304         (quotearg_n_style): Use it.
59305         (quotearg_n_style_mem): New function.
59306
59307         * lib/quotearg.h (quotearg_n_style_mem): New function.
59308
59309 2002-01-19  Jim Meyering  <meyering@lucent.com>
59310
59311         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
59312         Remove useless quotes: DF_PROG="df".
59313         * m4/strnlen.m4: New file.
59314
59315 2002-01-16  Paul Eggert  <eggert@twinsun.com>
59316
59317         * lib/backupfile.c (ISDIGIT): Comment fix.
59318         * lib/getdate.y (ISDIGIT): Likewise.
59319         * lib/posixtm.c (ISDIGIT, year): Likewise.
59320         * lib/strverscmp.c (ISDIGIT): Likewise.
59321         * lib/userspec.c (ISDIGIT): Likewise.
59322
59323 2002-01-16  Jim Meyering  <meyering@lucent.com>
59324
59325         * lib/getdate.y: Add three semicolons, each just before a closing
59326         brace. Bison (as of version 1.31) no longer papers over that mistake.
59327
59328 2002-01-05  Jim Meyering  <meyering@lucent.com>
59329
59330         * lib/version-etc.c (version_etc_copyright): Update copyright year.
59331
59332 2001-12-19  Paul Eggert  <eggert@twinsun.com>
59333
59334         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
59335         not silently exit merely because the output buffer happens to
59336         have nothing pending.
59337
59338 2001-12-18  Paul Eggert  <eggert@twinsun.com>
59339
59340         See the big note in ../ChangeLog.
59341         * lib/human.c (suffixes): Prefer K to k for 1024.
59342         (generate_suffix_backwards): New function.
59343         (human_readable_inexact): Use it.
59344         * lib/xstrtol.c (__xstrtol): If there is no number but there
59345         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
59346         Accept 'K' as well as 'k'.
59347
59348 2001-12-15  Jim Meyering  <meyering@lucent.com>
59349
59350         * lib/regex.h (__restrict_arr): Update from libc.
59351
59352         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
59353         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
59354         (STREQ): Define.
59355
59356 2001-12-14  Jim Meyering  <meyering@lucent.com>
59357
59358         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
59359         Suggestion from Bruno Haible.
59360
59361 2001-12-10  Jim Meyering  <meyering@lucent.com>
59362
59363         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
59364         xrealloc, Instead, include "xalloc.h".
59365         (initbuffer): Don't cast xmalloc return value to char*.
59366         (readline): Reword comment.
59367         Don't cast xrealloc return value to char*
59368         Return NULL, not 0.
59369
59370 2001-12-09  Jim Meyering  <meyering@lucent.com>
59371
59372         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
59373         about `signed and unsigned type in conditional expression'.
59374         * lib/posixtm.c (posix_time_parse): Likewise.
59375
59376         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
59377
59378         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
59379         to avoid a pedantic warning.
59380
59381         * lib/getstr.c: Don't include assert.h.
59382         (getstr): Remove warning-evoking assertions.
59383         Return -1 if offset parameter is out of bounds.
59384         Change the type of a local from int to size_t.
59385
59386         * lib/strftime.c (my_strftime_localtime_r): Include this function
59387         definition in the `#if ! HAVE_TM_GMTOFF' block.
59388
59389         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
59390         Include xalloc.h instead.
59391
59392 2001-12-02  Jim Meyering  <meyering@lucent.com>
59393
59394         * lib/tempname.c: Don't declare getenv, thus reverting the change of
59395         2001-11-18.  It's no longer necessary, now that stdlib.h is always
59396         included.
59397
59398         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
59399         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
59400
59401 2001-11-30  Akim Demaille  <akim@epita.fr>
59402
59403         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
59404         before being defined.
59405
59406 2001-11-27  Paul Eggert  <eggert@twinsun.com>
59407
59408         * lib/quotearg.h (quotearg_n, quotearg_n_style):
59409         First arg is int, not unsigned.
59410         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
59411         (SIZE_MAX, UINT_MAX): New macros.
59412         (quotearg_n_options): Abort if N is negative.
59413         Avoid overflow check on hosts where size_t is 64 bits and int
59414         is 32 bits, as overflow is impossible there.
59415         Fix off-by-one typo that caused unnecessary reallocation.
59416
59417 2001-11-27  Jim Meyering  <meyering@lucent.com>
59418
59419         * lib/tempname.c: Merge with version from libc.
59420         * lib/regex.c: Likewise.
59421
59422         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
59423         systems for which STDC_HEADERS is 0, it was not included, resulting in
59424         a warning about an integer-to-pointer conversion problem with getenv.
59425         Reported by Volker Borchert.
59426
59427 2001-11-26  Jim Meyering  <meyering@lucent.com>
59428
59429         * lib/gtod.h: Remove file.
59430         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
59431         * lib/gettimeofday.c: Don't include gtod.h.
59432         (GTOD_init): Remove function.
59433         (rpl_gettimeofday): Do its job here instead, rather than aborting.
59434         Suggestion from Volker Borchert.
59435
59436 2001-11-23  Jim Meyering  <meyering@lucent.com>
59437
59438         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
59439         it.
59440         * lib/hash.c (struct hash_table): Define it here instead.
59441
59442 2001-11-22  Jim Meyering  <meyering@lucent.com>
59443
59444         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
59445
59446 2001-11-20  Jim Meyering  <meyering@lucent.com>
59447
59448         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
59449         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
59450
59451 2001-11-19  Jim Meyering  <meyering@lucent.com>
59452
59453         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
59454         directory.  Use "conftestXXXXXX" as the template.
59455         Suggestion from Paul Eggert.
59456
59457         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
59458         immediately, so the test doesn't mistakenly hit the max-open-files
59459         limit.
59460
59461 2001-11-18  Paul Eggert  <eggert@twinsun.com>
59462
59463         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
59464         (TEMPORARIES): New macro.
59465         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
59466         removes an artificial limitation (e.g. HP-UX 10.20, where
59467         TMP_MAX is 17576).
59468
59469 2001-11-18  Jim Meyering  <meyering@lucent.com>
59470
59471         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
59472
59473 2001-11-18  Jim Meyering  <meyering@lucent.com>
59474
59475         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
59476         on SunOS 4.
59477
59478         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
59479         files will be created before anything else.
59480
59481 2001-11-17  Paul Eggert  <eggert@twinsun.com>
59482
59483         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
59484         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
59485
59486 2001-11-17  Jim Meyering  <meyering@lucent.com>
59487
59488         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
59489         Prompted by a report from Bob Proulx.
59490
59491         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
59492         Instead, require UTILS_FUNC_MKSTEMP.
59493
59494 2001-11-17  Jim Meyering  <meyering@lucent.com>
59495
59496         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
59497         Now, that's done as part of AC_FUNC_STRTOD.
59498
59499 2001-11-17  Jim Meyering  <meyering@lucent.com>
59500
59501         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
59502         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
59503         rather than group writable.  Patch by Juan F. Codagnone.
59504
59505         * lib/readtokens.c: Remove explicit declarations of xmalloc and
59506         xrealloc, Instead, include "xalloc.h".
59507
59508         * lib/mountlist.c: Include unlocked-io.h after all system headers.
59509         Remove explicit declarations of xmalloc, xrealloc,
59510         and xstrdup.  Instead, include "xalloc.h".
59511
59512         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
59513         unlocked-io.h.
59514         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
59515         Likewise.
59516         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
59517
59518         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
59519         Reported by Padraig Brady.
59520
59521         * lib/mkstemp.c: #undef mkstemp.
59522         Include config.h.
59523         (rpl_mkstemp): Rename from mkstemp.
59524         Protoize.
59525
59526 2001-11-16  Jim Meyering  <meyering@lucent.com>
59527
59528         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
59529         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
59530         determine the amount of total physical memory, use pstat_getstatic.
59531         HPUX-11 doesn't define _SC_PHYS_PAGES.
59532         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
59533         If sysconf couldn't be used to determine the amount of available
59534         physical memory, use both pstat_getstatic and pstat_getdynamic.
59535         Based on a patch from Bob Proulx.
59536
59537 2001-11-10  Jim Meyering  <meyering@lucent.com>
59538
59539         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
59540         (jm_PREREQ): Use it.
59541
59542 2001-11-09  Jim Meyering  <meyering@lucent.com>
59543
59544         * m4/jm-macros.m4: Require autoconf-2.52f.
59545         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
59546         Use these AC_-prefixed names, not the AM_-prefixed ones.
59547
59548         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
59549
59550 2001-11-05  Jim Meyering  <meyering@lucent.com>
59551
59552         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
59553
59554 2001-11-04  Jim Meyering  <meyering@lucent.com>
59555
59556         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
59557         $DEFS.
59558
59559 2001-11-03  Jim Meyering  <meyering@lucent.com>
59560
59561         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
59562         of AC_DEFUN.
59563
59564         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
59565         know the name of the variable in the macro definition.
59566
59567 2001-11-03  Jim Meyering  <meyering@lucent.com>
59568
59569         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
59570         in argmatch_to_argument call.
59571
59572         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
59573         argument.
59574
59575         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
59576         e.g., a fault due to an attempt to free a NULL pointer.
59577
59578 2001-11-01  Jim Meyering  <meyering@lucent.com>
59579
59580         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
59581         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
59582
59583 2001-11-01  Jim Meyering  <meyering@lucent.com>
59584
59585         * lib/dirfd.c, lib/dirfd.h: New files.
59586         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
59587
59588         * lib/hash.c (hash_print) [TESTING]: Clean up.
59589
59590 2001-10-22  Paul Eggert  <eggert@twinsun.com>
59591
59592         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
59593         to avoid a warning if -Wall.
59594
59595 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
59596
59597         * README: New file
59598         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
59599         (per RMS's instructions, this is now the canonical source)
59600         * lgpl/, gpl/: New directories.
59601
59602 2001-10-21  Paul Eggert  <eggert@twinsun.com>
59603
59604         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
59605
59606 2001-10-21  Jim Meyering  <meyering@lucent.com>
59607
59608         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
59609         this code would end up calling gettext even in packages built
59610         with --disable-nls.
59611         * lib/getopt.c (_): Likewise.
59612         * lib/regex.c (_): Likewise.
59613
59614 2001-10-20  Paul Eggert  <eggert@twinsun.com>
59615
59616         * m4/error.m4 (jm_PREREQ_ERROR):
59617         Do not invoke AC_CHECK_FUNCS with strerror_r, as
59618         AC_FUNC_STRERROR_R does that.
59619         Check for strerror declaration.
59620
59621         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
59622         are supposed to have them these days.
59623         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
59624         Merge changes from latest Autoconf CVS.
59625         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
59626         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
59627         POSIX decided to standardize on the int flavor of strerror_r.
59628
59629 2001-10-20  Paul Eggert  <eggert@twinsun.com>
59630
59631         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
59632         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
59633         Use strerror_r that is only a macro, even if it is not a function.
59634         (strerror): Check for HAVE_DECL_STRERROR before declaring.
59635         (private_strerror): Use prototypes, not old-style function definition.
59636         (print_errno_message): New function.
59637         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
59638         char*-flavored one.
59639         (error_tail, error, error_at_line): Use it.
59640
59641 2001-10-11  Jim Meyering  <meyering@lucent.com>
59642
59643         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
59644         and quote_n (1, ... to avoid clobbering a buffer.
59645
59646 2001-10-05  Jim Meyering  <meyering@lucent.com>
59647
59648         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
59649         hash-pjw.h.
59650         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
59651         * lib/hash-pjw.h: New file.
59652
59653 2001-09-30  Jim Meyering  <meyering@lucent.com>
59654
59655         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
59656         `struct fsstat' has the `f_fstypename' member.
59657         Use that to define FS_TYPE, which is now used to make
59658         the getfsstat link test tighter.
59659
59660 2001-09-30  Jim Meyering  <meyering@lucent.com>
59661
59662         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
59663         Include <sys/ucred.h>, for Apple Darwin.
59664         Include sys/mount.h and sys/fs_types.h only if available.
59665         (FS_TYPE): Define.
59666         (read_filesystem_list): Use FS_TYPE.
59667
59668 2001-09-29  Paul Eggert  <eggert@twinsun.com>
59669
59670         * lib/exclude.c (excluded_filename): 0 -> false, since it's
59671         a boolean context.
59672
59673 2001-09-29  Jim Meyering  <meyering@lucent.com>
59674
59675         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
59676         [one-argument getmntent function]): Include stdio.h before mntent.h.
59677         SunOS 4.1.x needs it for the declaration of `FILE'.
59678         Patch by Volker Borchert.
59679
59680         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
59681         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
59682         sys/fs_types.h, and make the link-test for getfsstat guard #include
59683         directives with appropriate #if HAVE_*_H tests so that we can
59684         detect getfsstat on Apple Darwin1.3.7 systems.
59685         Reported by Nelson Beebe.
59686         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
59687
59688 2001-09-28  Paul Eggert  <eggert@twinsun.com>
59689
59690         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
59691         #defines strtoimax.  Also treat the other strto* functions
59692         like strtoimax.
59693
59694         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
59695         Check for strtoul and strtoumax,
59696         as those declarations are made even in the signed case.
59697         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
59698         Likewise, for strtol and strtoimax.
59699
59700 2001-09-28  Paul Eggert  <eggert@twinsun.com>
59701
59702         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
59703         #defines strtoimax.  Also treat the other strto* functions
59704         like strtoimax.
59705
59706         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
59707         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
59708         (strtoimax, strtoumax): Do not declare if already defined as a macro.
59709
59710 2001-09-26  Jim Meyering  <meyering@lucent.com>
59711
59712         Most macros in unlocked-io.h had the wrong number of arguments.
59713         * lib/gen-uio: New script.
59714         (USE_UNLOCKED_IO): Define to 1 if not already defined.
59715         * lib/unlocked-io.hin: Remove file.
59716         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
59717         rather than trying to embed it here.
59718         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
59719         Reported by Padraig Brady.
59720
59721 2001-09-25  Volker Borchert  <bt@teknon.de>
59722
59723         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
59724         `result'.
59725
59726 2001-09-24  Jim Meyering  <meyering@lucent.com>
59727
59728         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
59729
59730 2001-09-23  Jim Meyering  <meyering@lucent.com>
59731
59732         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
59733         instead of the mere test for existence of mntent.h.  The latter
59734         would get a false-positive on AIX 3.4 systems.
59735         In the outer getmntent if-block, don't die if neither of the getmntent
59736         tests succeeds.  Instead, just fall through and continue with the
59737         remaining tests.
59738
59739 2001-09-23  Jim Meyering  <meyering@lucent.com>
59740
59741         * lib/mountlist.c: Remove useless parentheses in #if directives.
59742         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
59743         the deprecated MOUNTED symbol is no longer defined in mntent.h.
59744
59745 2001-09-22  Jim Meyering  <meyering@lucent.com>
59746
59747         * m4/gettext.m4: New file.  From gettext.
59748         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
59749         * m4/progtest.m4: Likewise
59750         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
59751         * m4/glibc21.m4: Likewise.
59752
59753         * m4/libintl.m4: Remove.  No longer used.
59754
59755 2001-09-22  Jim Meyering  <meyering@lucent.com>
59756
59757         * lib/localcharset.c: Update from latest gettext.
59758         * lib/config.charset: Likewise.
59759
59760 2001-09-20  Jim Meyering  <meyering@lucent.com>
59761
59762         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
59763         strtoimax.
59764         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
59765         strtoumax.
59766
59767 2001-09-20  Jim Meyering  <meyering@lucent.com>
59768
59769         * lib/xstrtol.c (strtoimax): Guard declaration with
59770         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
59771         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
59772         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
59773         (strtoumax): Likewise, for completeness (it wasn't necessary).
59774
59775 2001-09-17  Paul Eggert  <eggert@twinsun.com>
59776
59777         * lib/strtoimax.c (HAVE_LONG_LONG):
59778         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
59779         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
59780         to work around bug in IBM C compiler.
59781
59782 2001-09-17  Jim Meyering  <meyering@lucent.com>
59783
59784         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
59785         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
59786         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
59787         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
59788         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
59789         whenever the right hand side need not be expanded by the shell.
59790
59791 2001-09-16  Paul Eggert  <eggert@twinsun.com>
59792
59793         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
59794         library.  It's not correct, as some older glibcs are buggy.
59795         fnmatch wasn't fixed until glibc 2.2.
59796
59797         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
59798         special shell magic here.
59799
59800 2001-09-16  Jim Meyering  <meyering@lucent.com>
59801
59802         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
59803         * m4/jm-macros.m4: Require it.
59804
59805 2001-09-16  Jim Meyering  <meyering@lucent.com>
59806
59807         * lib/mkdir.c: New file.
59808
59809 2001-09-15  Jim Meyering  <meyering@lucent.com>
59810
59811         * m4/jm-macros.m4: Check for help2man.
59812
59813 2001-09-11  Jim Meyering  <meyering@lucent.com>
59814
59815         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
59816         The body, by Paul Eggert, was moved here from configure.in.
59817         * m4/jm-macros.m4: Require UTILS_HOST_OS.
59818
59819 2001-09-04  Paul Eggert  <eggert@twinsun.com>
59820
59821         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
59822         (jm_PREREQ): Use it.
59823
59824 2001-09-04  Paul Eggert  <eggert@twinsun.com>
59825
59826         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
59827         Use ssize_t, not int, to store result of readlink.
59828         Check for ssize_t overflow as well as size_t overflow,
59829         as POSIX says the result of readlink is implementation-defined
59830         when ssize_t overflows.
59831         Remove unnecessary cast to char*.
59832         Use free+malloc instead of realloc, as the storage doesn't need
59833         to be preserved and it's clearer and can be more efficient that way.
59834         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
59835         * lib/xreadlink.h (xreadlink): Update prototype.
59836
59837 2001-09-04  Paul Eggert  <eggert@twinsun.com>
59838
59839         * lib/xgetcwd.c: Revert some of the previous change; intead,
59840         fix the HAVE_GETCWD_NULL code to behave more like the
59841         !HAVE_GETCWD_NULL code used to.
59842
59843         Include "xalloc.h".
59844         (xgetcwd): Do not return NULL when memory is exhausted; instead,
59845         invoke xalloc_die.
59846
59847 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59848
59849         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
59850         sys/param.h, as pathmax.h includes them.
59851
59852 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59853
59854         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
59855         (jm_PREREQ_XGETCWD): New macro.
59856
59857         * m4/getcwd.m4: New file.
59858
59859 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59860
59861         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
59862         like the HAVE_GETCWD_NULL code.
59863         Include pathmax.h if not HAVE_GETCWD.
59864         Do not include xalloc.h.
59865         (INITIAL_BUFFER_SIZE): New symbol.
59866         Do not use xmalloc / xrealloc, since the caller is responsible for
59867         handling errors.  Preserve errno around `free' during failure.
59868         Do not overrun buffer when using getwd.
59869
59870 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59871
59872         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
59873         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
59874         getcwd (NULL, 0).
59875
59876 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59877
59878         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
59879         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
59880         spotted by Jim Meyering.
59881
59882 2001-09-03  Jim Meyering  <meyering@lucent.com>
59883
59884         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
59885         failure.
59886
59887 2001-09-02  Jim Meyering  <meyering@lucent.com>
59888
59889         * lib/error.c: Update from GNU libc.
59890
59891 2001-09-01  Jim Meyering  <meyering@lucent.com>
59892
59893         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
59894         Used by df.
59895
59896 2001-09-01  Jim Meyering  <meyering@lucent.com>
59897
59898         * lib/xreadlink.c: New file.
59899         * lib/xreadlink.h: New file.
59900         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
59901         xreadlink.h.
59902
59903         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
59904         doesn't conflict with sparc Solaris 7's definition in
59905         /usr/include/sys/int_types.h.
59906
59907         * lib/exclude.c: Use `""', not `<>' to #include non-system header
59908         files.
59909         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
59910         and strncasecmp as r-values.  Unixware didn't have declarations.
59911
59912 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59913
59914         * lib/xstrtol.h: Add copyright notice.
59915         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
59916         LONGINT_INVALID_SUFFIX_CHAR.
59917
59918 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59919
59920         * lib/xstrtol.c (strtoimax): New decl.
59921
59922 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59923
59924         * lib/xgetcwd.c: Don't include pathmax.h.
59925         Include stdlib.h and unistd.h if available.
59926         Include xalloc.h.
59927         (xmalloc, xstrdup, free): Remove decls.
59928         (xgetcwd): Don't assume sizes fit in unsigned.
59929         Check for overflow when computing sizes.
59930         Simplify reallocation code.
59931
59932 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59933
59934         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
59935         a directory's st_size can have an arbitrary value, so the old
59936         usage could waste an arbitrary amount of memory.  All uses
59937         changed.
59938         * lib/savedir.h: Update prototype.
59939
59940 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59941
59942         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
59943
59944         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
59945         old strtoimax.c.
59946
59947         Also, make the following further changes to make this file's
59948         configuration more similar to that of strtol.c:
59949         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
59950         (strtoumax, uintmax_t, strtoull, strtol): Remove.
59951         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
59952         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
59953         changed to signed values.
59954
59955         And make the following changes as well:
59956         Fix copyright notice, as 1999 was missing.
59957         (verify): New macro.
59958         (strtoimax): Check sizes at compile-time, not run-time.
59959         Prefer strtol to strtoll if both work.
59960         (main): Remove; it was not that useful and was a pain to maintain.
59961
59962         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
59963
59964 2001-08-31  Jim Meyering  <meyering@lucent.com>
59965
59966         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
59967         Use an initial, malloc'd, buffer of length 128 rather than
59968         a statically allocated one of length 1024.
59969
59970 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59971
59972         Simplify code, partly by assuming autoconf 2.52 semantics.
59973
59974         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
59975
59976         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
59977         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
59978         All uses removed.
59979         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
59980         Move AC_REQUIRE to next-to-top level, to avoid confusion.
59981         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
59982         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
59983         jm_AC_HEADER_INTTYPES_H.
59984         * m4/jm-macros.m4 (jm_MACROS): Likewise.
59985
59986         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
59987
59988         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
59989         Quote first arg of AC_DEFUN.
59990         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
59991         since they are needed to parse the include file even if we need
59992         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
59993         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
59994         but with opposite signedness.
59995
59996 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59997
59998         Merge 'exclude' changes from tar 1.13.22.
59999         This fixes one or two unlikely storage allocation overflow bugs,
60000         but doesn't change user-visible behavior otherwise.
60001
60002 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60003
60004         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
60005         (jm_PREREQ_EXCLUDE): New macro.
60006
60007 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60008
60009         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
60010         tm to be declared.
60011
60012 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60013
60014         * lib/hash.c: Remove '2001' from copyright notice.
60015
60016 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60017
60018         * lib/full-write.h: New file.
60019         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
60020         * lib/full-write.c: Correct credits, as cccp.c no longer
60021         exists and anyway it was so heavily changed from the old cccp
60022         code as to be unrecognizable.  Include full-write.h.
60023         (full_write) Return size_t, with short writes meaning failure.
60024         All callers changed.  This fixes a bug with large buffers
60025         on 64-bit hosts.
60026         * lib/utime.c: Include full-write.h.
60027
60028 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60029
60030         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
60031         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
60032         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
60033         Include if available.
60034         (<xalloc.h>): Include
60035         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
60036         (verify): New macro.  Use it to verify that EXCLUDE macros do not
60037         collide with FNM macros.
60038         (struct patopts): New struct.
60039         (struct exclude): Use it, as exclude patterns now come with options.
60040         (new_exclude): Support above changes.
60041         (new_exclude, add_exclude_file):
60042         Initial size must now be a power of two to simplify overflow checking.
60043         (free_exclude, fnmatch_no_wildcards): New function.
60044         (excluded_filename): No longer requires options arg, as the options
60045         are determined by add_exclude.  Now returns bool, not int.
60046         (excluded_filename, add_exclude):
60047         Add support for the fancy new exclusion options.
60048         (add_exclude, add_exclude_file): Now takes int options arg.
60049         Check for arithmetic overflow when computing sizes.
60050         (add_exclude_file): xrealloc might modify errno, so don't
60051         realloc until after errno might be used.
60052
60053         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
60054         New macros.
60055         (free_exclude): New decl.
60056         (add_exclude, add_exclude_file): Now takes int options arg.
60057         (excluded_filename): No longer requires options arg, as the options
60058         are determined by add_exclude.  Now returns bool, not int.
60059
60060 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60061
60062         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
60063
60064 2001-08-27  Jim Meyering  <meyering@lucent.com>
60065
60066         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
60067
60068         * lib/version-etc.c (N_): Remove definition.
60069         Revert most of last change.
60070         Instead, simply don't mark the `Copyright...' string for translation.
60071         Based on advice from Paul Eggert.
60072
60073         * lib/strtoxmax.c: Tweak comment.
60074
60075 2001-08-26  Jim Meyering  <meyering@lucent.com>
60076
60077         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
60078
60079         * m4/xstrtoimax.m4: New file.
60080         * m4/xstrtoumax.m4: Add comments explaining why we
60081         AC_REPLACE_FUNCS(strtol).
60082
60083 2001-08-26  Jim Meyering  <meyering@lucent.com>
60084
60085         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
60086         of copyright with `%s' so translators don't get an untranslated
60087         message in 2002.
60088         (COPYRIGHT_YEAR): Define.
60089         (version_etc): Use fprintf rather than fputs.
60090         Suggestion from Ulrich Drepper.
60091
60092         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
60093
60094         * lib/strtoll.c: New file, from GNU libc.
60095         * lib/xstrtoimax.c: New file.
60096
60097         * lib/xstrtol.h: Add xstrtoimax.
60098         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
60099         * lib/strtoimax.c: New file.  Likewise, but first define
60100         STRTOUXMAX_SIGNED.
60101
60102         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
60103         ...
60104         * lib/strtoxmax.c: ... then renamed to this.
60105
60106 2001-08-18  Paul Eggert  <eggert@twinsun.com>
60107
60108         * m4/inttypes.m4: Add AC_PREREQ(2.13).
60109         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
60110         (jm_AC_TYPE_INTMAX_T): New macro.
60111         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
60112
60113         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
60114
60115         * m4/longlong.m4: Renamed from ulonglong.m4.
60116         * m4/inttypes.m4: Renamed from inttypes_h.m4.
60117         * m4/uintmax_t.m4: Removed.
60118
60119 2001-08-13  Paul Eggert  <eggert@twinsun.com>
60120
60121         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
60122         Port to Solaris 8, where 'sed' requires a space after the 'r'
60123         command, and where sh dislikes "$/".  Clean up the spacing a bit.
60124         Redirect output to $tmp just once.
60125
60126 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
60127
60128         * lib/addext.c (<errno.h>): Include.
60129         (errno): Declare if not defined.
60130         (addext): Work correctly when pathconf returns -1 and leaves
60131         errno alone because there is no limit.  Also, work even if
60132         pathconf returns a value greater than SIZE_MAX.
60133
60134 2001-08-12  Jim Meyering  <meyering@lucent.com>
60135
60136         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
60137         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
60138         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
60139         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
60140         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
60141         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
60142         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
60143         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
60144         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
60145         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
60146         utime.m4, utimes.m4, xstrtoumax.m4:
60147         Quote the first argument in each use of AC_DEFUN.
60148
60149 2001-08-12  Jim Meyering  <meyering@lucent.com>
60150
60151         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
60152         Simply `return getcwd (NULL, 0);'.
60153         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
60154         Use 1300 as initial value for length, not PATH_MAX.
60155
60156         * lib/pathmax.h: Clean up cpp syntax.
60157
60158 2001-08-12  Jim Meyering  <meyering@lucent.com>
60159
60160         * lib/gettimeofday.c: New file.
60161         * lib/gtod.h: New file.
60162         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
60163
60164 2001-08-05  Jim Meyering  <meyering@lucent.com>
60165
60166         * m4/jm-macros.m4: Require autoconf-2.52.
60167
60168 2001-08-04  Jim Meyering  <meyering@lucent.com>
60169
60170         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
60171         stmt, to get in sync with glibc.
60172
60173 2001-08-03  Paul Eggert  <eggert@twinsun.com>
60174
60175         The following changes are from gettext 0.10.39 as maintained by
60176         Bruno Haible.
60177
60178         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
60179         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
60180         with inverted sense.  All uses changed.
60181
60182         * lib/mbswidth.c: Don't include <limits.h>.
60183         Include <stdlib.h> and <string.h> unconditionally.
60184         (iswcntrl, mbsinit, ISCNTRL): New macros.
60185         (mbsnwidth): Use K&R style function declarations.
60186         Don't bother checking for MB_LEN_MAX == 1, since the compiler
60187         can optimize it when MB_CUR_MAX == 1.
60188         The width of control characters is zero, not 1.
60189
60190 2001-08-03  Paul Eggert  <eggert@twinsun.com>
60191
60192         The following changes are from gettext 0.10.39 as maintained by
60193         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
60194
60195         * m4/codeset.m4: Upgrade to serial AM1.
60196         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
60197         all uses changed.  Quote first arg of AC_DEFUN.
60198         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
60199
60200         * m4/iconv.m4: Upgrade to serial AM2.
60201         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
60202         Add --with-libconv-prefix.
60203         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
60204         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
60205         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
60206         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
60207         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
60208
60209         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
60210         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
60211         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
60212         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
60213         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
60214         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
60215         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
60216         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
60217         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
60218
60219         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
60220         string.h any more.
60221
60222         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
60223         not the default value.
60224
60225         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
60226         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
60227         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
60228         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
60229         Also check for iswcntrl, used for wcwidth fallback.
60230         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
60231         to Autoconf 2.13.
60232
60233 2001-08-03  Jim Meyering  <meyering@lucent.com>
60234
60235         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
60236         as it was in the original.  Reported by Paul Eggert.
60237
60238 2001-07-16  Jim Meyering  <meyering@lucent.com>
60239
60240         * m4/gettimeofday.m4: New file.
60241         Prompted by a report from Bernhard Baehr.
60242
60243 2001-07-15  Jim Meyering  <meyering@lucent.com>
60244
60245         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
60246         stuff. Now it's in ../Makefile.cfg.
60247
60248 2001-07-15  Jim Meyering  <meyering@lucent.com>
60249
60250         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
60251         (BUILT_SOURCES): Add unlocked-io.h.
60252         (io_functions): Define.
60253         (unlocked-io.h): New rule.
60254         (DISTCLEANFILES): Add unlocked-io.h.
60255         (all-local): Depend on unlocked-io.h, to ensure it is created.
60256
60257         * lib/unlocked-io.hin: New file
60258
60259         * lib/regex.c: Update from glibc.
60260
60261 2001-07-05  Jim Meyering  <meyering@lucent.com>
60262
60263         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
60264         recommendation.
60265         (libfetish_a_SOURCES): Put all .h files here instead.
60266         Remove a thus-exposed (better checks in automake) duplicate and
60267         two unnecessary .h files.
60268
60269 2001-07-04  Jim Meyering  <meyering@lucent.com>
60270
60271         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
60272         that generates jm-glibc-io.m4 so that it doesn't trigger any make
60273         distcheck failure.
60274
60275 2001-07-02  Jim Meyering  <meyering@lucent.com>
60276
60277         The following changes were prompted by suggestions from Bruno Haible.
60278
60279         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
60280         is now generated.
60281         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
60282         definition of EXTRA_DIST.
60283         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
60284         ensure that the generated file is created/updated whenever the list
60285         of $(unlocked_functions) is changed.
60286         (jm-glibc-io.m4): New rule.
60287         (unlocked-io.h): New rule -- currently unused.
60288
60289 2001-06-24  Jim Meyering  <meyering@lucent.com>
60290
60291         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
60292         unmatched right bracket, rather than kludging it with an extra,
60293         falsely-matching quote in a comment.  Patch by Akim Demaille.
60294
60295 2001-06-11  Jim Meyering  <meyering@lucent.com>
60296
60297         * lib/regex.c: Update from GNU libc.
60298
60299 2001-05-27  Jim Meyering  <meyering@lucent.com>
60300
60301         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
60302         Check for ut_type in struct utmp.
60303
60304 2001-05-27  Jim Meyering  <meyering@lucent.com>
60305
60306         * lib/readutmp.h (UT_TYPE): Define.
60307
60308 2001-05-24  Jim Meyering  <meyering@lucent.com>
60309
60310         * lib/argmatch.c: Include "quote.h".
60311         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
60312         quote function.  Reported by Göran Uddeborg.
60313
60314 2001-05-22  Jim Meyering  <meyering@lucent.com>
60315
60316         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
60317         now that we use the package-supplied version unconditionally.
60318         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
60319
60320 2001-05-21  Jim Meyering  <meyering@lucent.com>
60321
60322         * m4/regex.m4: Change a couple backticks to single quotes to avoid
60323         shell syntax errors.
60324
60325 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
60326
60327         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
60328
60329 2001-05-20  Paul Eggert  <eggert@twinsun.com>
60330
60331         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
60332         Don't bother to check library strftime, since
60333         we'll be using our own my_strftime function anyway.
60334         Define my_strftime instead of strftime.
60335
60336 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
60337
60338         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
60339         which is not yet declared.
60340
60341 2001-05-15  Jim Meyering  <meyering@lucent.com>
60342
60343         * m4/regex.m4: Use proper quoting so brackets appear in the test
60344         program.
60345         Reported by, and with help from, Bruno Haible.
60346
60347 2001-05-13  Jim Meyering  <meyering@lucent.com>
60348
60349         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
60350         undefined.
60351
60352 2001-05-11  Paul Eggert  <eggert@twinsun.com>
60353
60354         dirname code cleanup.  base_name now behaves more compatibly
60355         with POSIX basename when given file names that have trailing
60356         slashes, and similarly for dir_name.  Add new primitives
60357         base_len and dir_len.  Put the directory-name-related decls
60358         into dirname.h.
60359
60360         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
60361         * lib/backupfile.c (base_name): Likewise.
60362         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
60363         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
60364         * lib/makepath.c (strip_trailing_slashes): Likewise.
60365         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
60366         ISSLASH): Likewise.
60367         * lib/rename.c (strip_trailing_slashes): Likewise.
60368         * lib/same.c (base_name): Likewise.
60369         * lib/stripslash.c (ISSLASH): Likewise.
60370
60371         * lib/addext.c: Include <dirname.h> after size_t is defined.
60372         * lib/backupfile.c: Likewise.
60373
60374         * lib/addext.c (addext): Use base_len to trim redundant
60375         trailing slashes instead of doing it ourselves.
60376         But do not trim the last slash if it is not redundant.
60377
60378         * lib/backupfile.c (find_backup_file_name,
60379         max_backup_version): Use base_len instead of rolling it ourselves.
60380         Handle the case of "" and (on DOS) "C:" correctly.
60381
60382         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
60383         needed. Include <string.h>, <dirname.h>.
60384         (base_name): Allow file names ending in slashes, other than names
60385         that are all slashes.  In this case, return the basename followed
60386         by the slashes.  This is more general, and can be used in places
60387         where the original base_name purposely had an assertion failure.
60388         (base_len): New function.
60389
60390         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
60391         Do not include <assert.h>; no longer needed.
60392         Include xalloc.h.
60393         (memrchr): Remove decl.
60394         (dir_name_r): Remove.
60395         (dir_len): Renamed from dirlen.  All callers changed.
60396         Rewrite in terms of base_name, for simplicity and consistency.
60397         (dir_name): Never return NULL.  All callers changed.
60398         Do not include <stdlib.h> in test program; no longer needed.
60399         return 0; is fine for test program.
60400
60401         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
60402         New macros.
60403         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
60404
60405         * lib/path-concat.c (path_concat): Use base_len to compute
60406         base length, not strlen; this means we cannot rely on memcpy
60407         to null-terminate.
60408
60409         * lib/same.c (STREQ): Remove.
60410         (same_name): Handle the case where the basename ends in trailing '/'.
60411
60412         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
60413         a slash was stripped.  Do not strip the last slash after a
60414         file system prefix.
60415
60416 2001-05-11  Paul Eggert  <eggert@twinsun.com>
60417
60418         * lib/Makefile.am (libfetish_a_SOURCES):
60419         Add strftime.c, since we now compile it on all hosts.
60420
60421         * lib/strftime.c (my_strftime):
60422         Define to nstrftime if emacs, but only if my_strftime is not defined.
60423         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
60424         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
60425         Add one more extra argument: a nanoseconds value.
60426         All uses changed.
60427         (ns): New macro.
60428         (my_strftime function): Add %N format.
60429         (emacs_strftimeu): Renamed from emacs_strftime,
60430         with extra ut argument.
60431
60432 2001-05-09  Paul Eggert  <eggert@twinsun.com>
60433
60434         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
60435
60436 2001-04-21  Jim Meyering  <meyering@lucent.com>
60437
60438         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
60439         doesn't interfere.
60440
60441 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
60442
60443         * m4/ftruncate.m4: Check for chsize.
60444         Link with ftruncate.o unconditionally if ftruncate is missing.
60445         This was required when cross-compiling to i586-mingw32msvc.
60446
60447 2001-04-08  Jim Meyering  <meyering@lucent.com>
60448
60449         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
60450         recomputed; that's necessary when the offset spans a DST transition.
60451         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
60452
60453 2001-04-02  Jim Meyering  <meyering@lucent.com>
60454
60455         * lib/regex.h, regex.c: Update from GNU libc.
60456
60457 2001-03-24  Jim Meyering  <meyering@lucent.com>
60458
60459         * m4/jm-macros.m4: Require autoconf-2.49d.
60460
60461 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
60462
60463         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
60464
60465 2001-03-19  Paul Eggert  <eggert@twinsun.com>
60466
60467         * lib/version-etc.c (version_etc_copyright): Update to 2001.
60468
60469 2001-03-17  Jim Meyering  <meyering@lucent.com>
60470
60471         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
60472         now that the version in autoconf is equivalent.
60473         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
60474
60475         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
60476         Suggestion from Akim Demaille.
60477
60478         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
60479         (jm_PREREQ_TEMPNAME): New function.
60480
60481 2001-03-16  Paul Eggert  <eggert@twinsun.com>
60482
60483         * lib/tempname.c (uint64_t): Define to uintmax_t if
60484         not defined, and if UINT64_MAX is not defined.
60485         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
60486         Reported by John David Anglin.
60487
60488 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
60489
60490         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
60491         resolve alias if codeset is empty.
60492         * lib/config.charset (BeOS): Use wildcard syntax.
60493
60494 2001-03-13  Jim Meyering  <meyering@lucent.com>
60495
60496         * lib/path-concat.c (path_concat)
60497         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
60498         concatenating e.g., `C:' and `foo'.
60499         From Bruno Haible.
60500
60501 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
60502
60503         * lib/localcharset.c (locale_charset): Don't use
60504         setlocale(LC_CTYPE,NULL). Don't return NULL.
60505         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
60506
60507 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
60508
60509         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
60510         support for DOS/DJGPP.
60511
60512 2001-03-01  Paul Eggert  <eggert@twinsun.com>
60513
60514         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
60515         lacks mkstemp.  Compile our own tempname.c if we compile our own
60516         mkstemp.c, as mkstemp relies on tempname.
60517
60518 2001-03-01  Jim Meyering  <meyering@lucent.com>
60519
60520         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
60521         AH_VERBATIM really does output its argument verbatim.
60522
60523 2001-02-28  Paul Eggert  <eggert@twinsun.com>
60524
60525         * lib/Makefile.am (libfetish_a_SOURCES):
60526         Add dup-safer.c, fopen-safer.c.
60527         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
60528
60529         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
60530         * lib/unistd-safer.h: New files.
60531
60532 2001-02-25  Paul Eggert  <eggert@twinsun.com>
60533
60534         The mkstemp replacement is taken from glibc 2.2.2, with some
60535         portability fixes for use outside glibc, as follows:
60536
60537         * lib/tempname.c (struct_stat64): New macro.
60538         (direxists, __gen_tempname): Use it.
60539         This avoids a portability problem with Solaris 8.
60540
60541         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
60542         (<stddef.h>, <stdint.h>, <string.h>):
60543         Include only if STDC_HEADERS || _LIBC.
60544         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
60545         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
60546         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
60547         (__set_errno): Define this macro if <errno.h> doesn't.
60548         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
60549         Define these macros if <stdio.h> doesn't.
60550         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
60551         Define these macros if <sys/stat.h>
60552         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
60553         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
60554         __xstat64): Define if not _LIBC.
60555         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
60556         (__gen_tempname): Invoke gettimeofday only if
60557         HAVE_GETTIMEOFDAY || _LIBC;
60558         otherwise, fall back on plain "time".
60559         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
60560
60561         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
60562
60563         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
60564
60565 2001-02-18  Paul Eggert  <eggert@twinsun.com>
60566
60567         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
60568
60569 2001-02-17  Paul Eggert  <eggert@twinsun.com>
60570
60571         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
60572         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
60573         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
60574         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60575
60576 2001-02-17  Paul Eggert  <eggert@twinsun.com>
60577
60578         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
60579         Remove workaround macros for hosts that have mbrtowc but not
60580         mbstate_t, as we now insist on proper declarations for both
60581         before using mbrtowc.
60582
60583 2001-02-17  Jim Meyering  <meyering@lucent.com>
60584
60585         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
60586         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
60587         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
60588         UnixWare 7.1.1.
60589
60590         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
60591         rather than AC_CACHE_VAL.
60592
60593 2001-02-17  Jim Meyering  <meyering@lucent.com>
60594
60595         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
60596         around included file name.
60597
60598         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
60599
60600         * lib/strftime.c: Update from GNU libc (the only changes were to
60601         comments).
60602
60603 2001-02-17  Jim Meyering  <meyering@lucent.com>
60604
60605         * lib/regex.c: Update from libc.
60606
60607 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
60608
60609         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
60610         clash.
60611
60612 2001-02-16  Paul Eggert  <eggert@twinsun.com>
60613
60614         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
60615         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
60616         Reported by Mark Hounschell via Paul Eggert.
60617
60618 2001-02-07  Jim Meyering  <meyering@lucent.com>
60619
60620         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
60621
60622 2001-02-05  Jim Meyering  <meyering@lucent.com>
60623
60624         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
60625         it includes the patch required for `large file' support with at least
60626         HP-UX's 10.20 /bin/cc.
60627
60628 2001-02-03  Jim Meyering  <meyering@lucent.com>
60629
60630         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
60631         AS_IF, now that it works once again (mysteriously).
60632         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
60633
60634 2001-01-30  Jim Meyering  <meyering@lucent.com>
60635
60636         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
60637         * m4/chown.m4: Rename conftestchown to conftest.chown.
60638         * m4/rename.m4: s/conftestdir/conftest.d1/ and
60639         s/conftestdir2/conftest.d2/.
60640         * m4/utimes.m4: s/conftestdata/conftest.data/
60641         Inspired by Pavel Roskin's change in autoconf.
60642
60643 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
60644
60645         * lib/config.charset: Update for FreeBSD 4.2.
60646
60647 2001-01-27  Jim Meyering  <meyering@lucent.com>
60648
60649         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
60650         a use of AS_IF.
60651         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
60652
60653 2001-01-26  Jim Meyering  <meyering@lucent.com>
60654
60655         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
60656         quotearg.c includes it.
60657
60658 2001-01-26  Jim Meyering  <meyering@lucent.com>
60659
60660         * lib/quotearg.c: Include stddef.h.
60661         * lib/quote.c: Include stddef.h.
60662         Reported by Axel Kittenberger.
60663
60664         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
60665         line in double quotes so that it evokes a better diagnostic.
60666         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
60667         Reported by Axel Kittenberger.
60668
60669 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
60670
60671         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
60672         as if it was a `charset'.
60673
60674 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
60675
60676         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
60677         has const.
60678
60679 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
60680
60681         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
60682         to avoid a warning.  Add back 'const' to inptr.
60683
60684 2001-01-20  Jim Meyering  <meyering@lucent.com>
60685
60686         Be sure that headers are checked before used in code compiled
60687         for the type checks.
60688         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
60689         In place of that, invoke jm_CHECK_ALL_TYPES.
60690         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
60691         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
60692         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
60693         The check for ssize_t was mistakenly run before the test for unistd.h.
60694
60695         The configure-time check for stdbool.h was missing.
60696         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
60697         (jm_PREREQ_HASH): New function.
60698
60699 2001-01-17  Jim Meyering  <meyering@lucent.com>
60700
60701         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
60702         for autoconf-2.49c.
60703         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
60704
60705 2001-01-16  Jim Meyering  <meyering@lucent.com>
60706
60707         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
60708         From Bruno Haible.
60709
60710 2001-01-14  Jim Meyering  <meyering@lucent.com>
60711
60712         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
60713         foo and bar.  Create conftestdir/ in the script, not in the C code.
60714         Remove directories in the script, not in the C code.
60715         Remove conftestdir{,2} before trying to create the directory.
60716         Make the entire configure script fail if the mkdir fails.
60717
60718 2001-01-14  Jim Meyering  <meyering@lucent.com>
60719
60720         * lib/rename.c: New file.  From Volker Borchert.
60721         Include stdlib.h, string.h or strings.h, and xalloc.h.
60722         Use strip_trailing_slashes rather than open-coding it.
60723
60724 2001-01-03  Paul Eggert  <eggert@twinsun.com>
60725
60726         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
60727
60728 2001-01-03  Jim Meyering  <meyering@lucent.com>
60729
60730         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
60731         of local `inptr' to avoid warning with some system declarations of
60732         iconv.
60733
60734 2001-01-02  Volker Borchert  <bt@teknon.de>
60735
60736         * m4/rename.m4: New file.
60737         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
60738
60739 2001-01-01  Jim Meyering  <meyering@lucent.com>
60740
60741         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
60742         even on systems with utmpx.h.  It's necessary for the declaration of
60743         utmp's ut_user member.  Reported by Andreas Jaeger.
60744
60745         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
60746         available. They are required for the declarations of getgrgid and
60747         getpwuid resp.
60748         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
60749         Reported by Andreas Jaeger.
60750
60751 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
60752
60753         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
60754         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
60755         so `make install' also works in VPATH builds.
60756
60757 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
60758
60759         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
60760         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
60761         can be used in subdirectories.
60762
60763 2000-12-29  Paul Eggert  <eggert@twinsun.com>
60764
60765         * lib/modechange.c: Do not assume that mode_t uses the
60766         traditional octal encoding.  E.g. "chmod 1 FOO" should set
60767         the other-execute bit of FOO even if S_IXOTH != 1.
60768
60769         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
60770         WOTH, XOTH, ALLM): New macros.
60771         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
60772          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
60773         Use them.
60774         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
60775         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
60776         (mode_compile):
60777         No need to use uintmax_t; unsigned long is long enough.
60778         Don't bother to get suffix since we don't use it.
60779
60780 2000-12-26  Jim Meyering  <meyering@lucent.com>
60781
60782         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
60783         better with autoheader.
60784
60785 2000-12-24  Jim Meyering  <meyering@lucent.com>
60786
60787         * lib/hash.c (is_prime): Return explicit boolean values.
60788         (hash_get_first): Return NULL to appease Irix5.6's 89.
60789         Reported by Nelson Beebe.
60790
60791 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
60792
60793         * lib/localcharset.c (locale_charset): Add support for Win32.
60794
60795 2000-12-18  Paul Eggert  <eggert@twinsun.com>
60796
60797         * lib/physmem.h, lib/physmem.c: New files.
60798
60799         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
60800         (noinst_HEADERS): Add physmem.h.
60801
60802         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
60803         't' for compatibility with Solaris 8 sort.
60804
60805 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
60806
60807         * lib/config.charset: Add support for BeOS.
60808
60809 2000-12-17  Jim Meyering  <meyering@lucent.com>
60810
60811         * m4/dos.m4 (jm_AC_DOS): New file and macro.
60812         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
60813
60814 2000-12-16  Jim Meyering  <meyering@lucent.com>
60815
60816         This bug had a serious impact on chown: `chown N:M FILE' (for integer
60817         N and M) would have treated it like `chown N:N FILE'.
60818
60819         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
60820
60821 2000-12-16  Jim Meyering  <meyering@lucent.com>
60822
60823         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
60824         SHELLS_FILE to a file name that's useful on djgpp systems.
60825         Include stdlib.h.
60826         (ADDITIONAL_DEFAULT_SHELLS): Define.
60827         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
60828         Based mostly on a patch from Prashant TR.
60829
60830 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
60831
60832         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
60833         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
60834         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
60835
60836 2000-12-08  Andreas Schwab  <schwab@suse.de>
60837
60838         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
60839         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
60840
60841 2000-12-07  Jim Meyering  <meyering@lucent.com>
60842
60843         * lib/stripslash.c (ISSLASH): Define.
60844         (strip_trailing_slashes): Use ISSLASH rather than comparing against
60845         `/'.
60846         From Prashant TR.
60847
60848         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
60849         (dir_name_r): Declare this function as static.
60850         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
60851         manifest itself on a name containing a mix of slashes and
60852         backslashes.
60853         Make this function work with names starting with a DOS-style
60854         drive letter and colon prefix.
60855         (dir_name): Append `.' if necessary.
60856         Based mostly on patches from Prashant TR and Eli Zaretskii.
60857
60858         * lib/dirname.h (dir_name_r): Remove prototype.
60859
60860 2000-12-06  Paul Eggert  <eggert@twinsun.com>
60861
60862         * m4/off_t-format.m4: Remove this file.
60863         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
60864
60865 2000-12-06  Jim Meyering  <meyering@lucent.com>
60866
60867         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
60868         replacement strtoull, we may well need the replacement strtoul, too.
60869         Check for declarations of strtoul and strtoull.
60870         Check for strtol.  Mainly as a cue to cause automake to include
60871         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
60872         Check for limits.h -- strtol.c needs it.
60873
60874 2000-12-05  Jim Meyering  <meyering@lucent.com>
60875
60876         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
60877
60878 2000-12-04  Jim Meyering  <meyering@lucent.com>
60879
60880         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
60881         Also include memory.h, stdlib.h, unistd.h if appropriate.
60882         Reported by Andreas Jaeger (conflicting declaration of malloc).
60883
60884 2000-12-02  Jim Meyering  <meyering@lucent.com>
60885
60886         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
60887         * m4/jm-macros.m4 (jm_MACROS): require it.
60888
60889 2000-12-02  Jim Meyering  <meyering@lucent.com>
60890
60891         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
60892
60893 2000-12-01  Paul Eggert  <eggert@twinsun.com>
60894
60895         * lib/memrchr.c: Include <config.h> before any system include file.
60896
60897 2000-11-30  Jim Meyering  <meyering@lucent.com>
60898
60899         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
60900
60901 2000-11-30  Jim Meyering  <meyering@lucent.com>
60902
60903         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
60904
60905 2000-11-29  Paul Eggert  <eggert@twinsun.com>
60906
60907         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
60908
60909 2000-11-26  Jim Meyering  <meyering@lucent.com>
60910
60911         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
60912
60913 2000-11-22  Paul Eggert  <eggert@twinsun.com>
60914
60915         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
60916         size of (size_t) -1; it's not portable.
60917
60918 2000-11-17  Jim Meyering  <meyering@lucent.com>
60919
60920         * lib/strstr.c: Update from GNU libc.
60921
60922 2000-11-17  Akim Demaille  <akim@epita.fr>
60923
60924         * lib/obstack.h: Formatting changes.
60925         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
60926         prevent type checking.
60927         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
60928         cast the value to (void *): assigning a `foo *' to a `void *'
60929         variable is valid.
60930         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
60931
60932 2000-11-16  Jim Meyering  <meyering@lucent.com>
60933
60934         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
60935
60936 2000-11-11  Jim Meyering  <meyering@lucent.com>
60937
60938         * lib/error.c: Add a couple #includes, merging from GNU libc version.
60939
60940 2000-11-10  Jim Meyering  <meyering@lucent.com>
60941
60942         * lib/obstack.h: Update from GNU libc.
60943         * lib/obstack.c: Likewise.
60944
60945 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
60946
60947         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
60948
60949 2000-11-06  Paul Eggert  <eggert@twinsun.com>
60950
60951         * lib/getusershell.c (setusershell): Use rewind rather than
60952         fseek/fseeko, to avoid configuration hassles with fseeko.
60953         Don't bother opening SHELLS_FILE if shellstream is NULL;
60954         it's not necessary.
60955
60956 2000-11-05  Jim Meyering  <meyering@lucent.com>
60957
60958         * lib/makepath.h (make_dir): Declare.
60959         * lib/makepath.c (make_dir): Remove `static' attribute.
60960         Tweak a comment.
60961
60962 2000-11-04  Jim Meyering  <meyering@lucent.com>
60963
60964         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
60965
60966 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
60967
60968         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
60969         last one in a bucket, advance to the next bucket.
60970
60971 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
60972
60973         * lib/fnmatch.c: Do not comment out all the code if we are using
60974         the GNU C library, because in some cases we are replacing buggy
60975         code in the GNU C library itself.
60976
60977 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
60978
60979         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
60980         (regex_compile): Catch bogus \(\1\).
60981
60982 2000-10-30  Paul Eggert  <eggert@twinsun.com>
60983
60984         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
60985         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
60986         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
60987
60988 2000-10-30  Paul Eggert  <eggert@twinsun.com>
60989
60990         * lib/error.h, getline.h, modechange.h:
60991         Remove "2000" from Copyright line, as the file hasn't been
60992         changed this year other than in the copyright notice.
60993
60994         * lib/xalloc.h: Add "2000" to Copyright line, as this file
60995         was changed this year.
60996
60997 2000-10-29  Jim Meyering  <meyering@lucent.com>
60998
60999         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
61000         renaming.
61001         * m4/ls-mntd-fs.m4: Likewise
61002
61003 2000-10-29  Jim Meyering  <meyering@lucent.com>
61004
61005         * lib/xstat.in: Fix grammar in comment.
61006
61007 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
61008
61009         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
61010         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
61011         doesn't define __restrict_arr.
61012
61013 2000-10-28  Jim Meyering  <meyering@lucent.com>
61014
61015         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
61016         (jm_PREREQ_MEMCHR): New function.
61017
61018 2000-10-28  Jim Meyering  <meyering@lucent.com>
61019
61020         * lib/memchr.c: Update from libc.
61021         Adjust for portability:
61022         [HAVE_STDLIB_H]: Include stdlib.h.
61023         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
61024         Undef __memchr, too.
61025         [!weak_alias]: Define __memchr to memchr.
61026
61027         * lib/regex.c: Update from libc.
61028         * lib/regex.h: Likewise.
61029         * lib/getopt1.c: Likewise.
61030         * lib/memcmp.c: Likewise.
61031
61032         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
61033         Avoid using fseek, when possible -- it's broken by design.
61034         Patch by Ulrich Drepper.
61035
61036 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
61037
61038         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
61039         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
61040         Giving in to popular pressure to shut up the compiler with casts.
61041
61042 2000-10-26  Jim Meyering  <meyering@lucent.com>
61043
61044         * lib/strftime.c: Update from libc.
61045
61046 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
61047
61048         * regex.c: More `unsigned char' -> `re_char' changes.
61049         Also change several `int' into `re_wchar_t'.
61050         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
61051         (PUSH_FAILURE_POINTER): Don't cast any more.
61052         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
61053         We want GCC to complain, since this piece of code makes
61054         re_match non-reentrant, which *should* be fixed.
61055         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
61056         (EXTEND_BUFFER): Use RETALLOC.
61057         (SET_LIST_BIT): Don't cast.
61058         (re_wchar_t): New type.
61059         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
61060         that those two functions will always properly return.
61061         (IMMEDIATE_QUIT_CHECK): Cast to void.
61062         (analyse_first): Use recursion rather than an explicit stack.
61063         (re_compile_fastmap): Can't fail anymore.
61064         (re_search_2): Don't check re_compile_fastmap for failure.
61065         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
61066         Now also sets the new value (passed in a new argument).
61067         (re_match_2_internal): Use it.
61068         Also, use a new var `reg' of type size_t when looping through regs
61069         rather than reuse the inappropriate `mcnt'.
61070
61071 2000-10-25  Jim Meyering  <meyering@lucent.com>
61072
61073         * lib/obstack.c: Update from libc.
61074
61075 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
61076
61077         * regex.c (regex_compile): Change the way of handling a range from
61078         a char less than 256 to a char not less than 256.
61079
61080 2000-10-24  Andrew Innes  <andrewi@gnu.org>
61081
61082         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
61083         NT-Emacs only.
61084         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
61085         so that re_search functions only quit when callers expect them to.
61086
61087 2000-10-23  Jim Meyering  <meyering@lucent.com>
61088
61089         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
61090         wrong.  That set_locale call must not have any side effects.
61091         From Paul Eggert.
61092
61093 2000-10-22  Jim Meyering  <meyering@lucent.com>
61094
61095         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
61096         [CYCLIC]: Remove now-unused definition.
61097
61098         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
61099         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
61100         Suggestion from Ulrich Drepper.
61101
61102 2000-10-21  Jim Meyering  <meyering@lucent.com>
61103
61104         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
61105         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
61106         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
61107
61108 2000-10-21  Jim Meyering  <meyering@lucent.com>
61109
61110         * lib/dirname.c (memrchr): Declare if necessary.
61111         (dir_name): Remove the restriction that there be no
61112         trailing slashes.  Now, this code skips past them, effectively
61113         ignoring them.
61114         [TEST_DIRNAME] (main): New unit tests.
61115
61116         * lib/memrchr.c: New file from GNU libc.
61117         Undef __memrchr, too.
61118         [!weak_alias]: Define __memrchr to memrchr.
61119         Guard weak_alias use with `#ifdef weak_alias'.
61120
61121 2000-10-21  Jim Meyering  <meyering@lucent.com>
61122
61123         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
61124         (dir_name): Use dir_name_r.
61125         * lib/dirname.h (dir_name_r): Declare it.
61126
61127 2000-10-17  Jim Meyering  <meyering@lucent.com>
61128
61129         * lib/quote.h (PARAMS): Define and use.
61130         Reported by Akim Demaille.
61131
61132         * lib/getopt.c: Update from libc.
61133
61134 2000-10-16  Jim Meyering  <meyering@lucent.com>
61135
61136         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
61137         setlocale.
61138         From Jan Fedak.
61139
61140 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
61141
61142         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
61143
61144 2000-09-25  Jim Meyering  <meyering@lucent.com>
61145
61146         * lib/md5.h (rol): Define (from GnuPG).
61147
61148         * lib/sha.c: Give credit (GnuPG) where due.
61149         (M): Use rol rather than open-coding it.
61150         Add a FIXME comment.
61151
61152 2000-09-21  Jim Meyering  <meyering@lucent.com>
61153
61154         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
61155         Reported by Michael Stone.
61156
61157 2000-09-20  Jim Meyering  <meyering@lucent.com>
61158
61159         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
61160         (noinst_HEADERS): Add sha.h.
61161         Based on code from Scott G. Miller and from GnuPG.
61162
61163 2000-09-18  Jim Meyering  <meyering@lucent.com>
61164
61165         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
61166         LIBS. Otherwise, everyone ends up linking with -lelf for some
61167         configurations.
61168         Reported by Mike Stone.
61169
61170 2000-09-15  Jim Meyering  <meyering@lucent.com>
61171
61172         * lib/regex.c: Update from libc.
61173
61174 2000-09-10  Jim Meyering  <meyering@lucent.com>
61175
61176         * lib/getopt.c (_getopt_internal): Update from glibc.
61177
61178 2000-09-09  Jim Meyering  <meyering@lucent.com>
61179
61180         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
61181         think it should be used as a general replacement for isascii.
61182         * lib/fnmatch.c: Likewise.
61183         * lib/mbswidth.c: Likewise
61184         * lib/regex.c: Likewise.
61185
61186         Don't use atoi.
61187         * lib/userspec.c: Include sys/param.h and limits.h.
61188         Include xstrtol.h.
61189         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
61190         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
61191         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
61192         UID, GID.  Check range.
61193
61194 2000-09-06  Jim Meyering  <meyering@lucent.com>
61195
61196         * lib/getopt.c (_getopt_internal): Update from glibc.
61197
61198 2000-08-30  Jim Meyering  <meyering@lucent.com>
61199
61200         * lib/strftime.c: Merge in changes from GNU libc.
61201
61202 2000-08-26  Jim Meyering  <meyering@lucent.com>
61203
61204         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
61205         * m4/fpending.m4: New file.
61206
61207 2000-08-26  Jim Meyering  <meyering@lucent.com>
61208
61209         * lib/closeout.c: Include "__fpending.h".
61210         (close_stdout_status): Return right away if there's nothing to flush.
61211
61212         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
61213         * lib/__fpending.c: New file.
61214         * lib/__fpending.h: New file.
61215
61216 2000-08-20  Jim Meyering  <meyering@lucent.com>
61217
61218         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
61219         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
61220         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
61221
61222 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
61223
61224         Improve fileutils installation on systems where running
61225         programs (like install) can't be unlinked.
61226         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
61227         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
61228
61229 2000-08-07  Paul Eggert  <eggert@twinsun.com>
61230
61231         Standardize on "memory exhausted" instead of "Memory exhausted"
61232         or "virtual memory exhausted".
61233         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
61234         "virtual memory exhausted".
61235         * lib/same.c (same_name): Invoke xalloc_die instead of printing
61236         our own message.
61237         * lib/userspec.c (parse_user_spec): Likewise.
61238         * lib/bumpalloc.h: comment fix
61239         * lib/same.c, userspec.c: Include xalloc.h.
61240
61241         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
61242         not char *const and pointing to a constant array.
61243         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
61244         (xrealloc): Comment fix.
61245
61246         * lib/userspec.c (parse_user_spec):
61247         Don't translate a message until just before returning,
61248         to avoid unnecessary translation.
61249
61250 2000-08-07  Jim Meyering  <meyering@lucent.com>
61251
61252         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
61253         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
61254         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
61255         getgroups.c, gethostname.c, getopt.h, group-member.c,
61256         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
61257         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
61258         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
61259         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
61260         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
61261         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
61262         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
61263         yesno.c: Back out Copyright date changes for each file with no change
61264         this year.  This eases coordination with other programs using the same
61265         source code modules.  From Paul Eggert.
61266
61267 2000-08-06  Paul Eggert  <eggert@twinsun.com>
61268
61269         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
61270         not char, for compatibility with glibc 2.1.3 strftime.c.
61271
61272 2000-08-03  Greg McGary  <greg@mcgary.org>
61273
61274         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
61275         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
61276         (EXTEND_BUFFER): Use them.
61277
61278 2000-08-01  Jim Meyering  <meyering@lucent.com>
61279
61280         * lib/dirname.c (ISSLASH): Define.
61281         (BACKSLASH_IS_PATH_SEPARATOR): Define.
61282         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
61283         both `\' and `/' may be use as path separators.
61284         Based on a patch from Prashant TR.
61285
61286 2000-07-31  Paul Eggert  <eggert@twinsun.com>
61287
61288         * lib/quotearg.c (quotearg_n_options): Don't make the initial
61289         slot vector a constant, since it might get modified.
61290
61291 2000-07-31  Jim Meyering  <meyering@lucent.com>
61292
61293         * lib/xmalloc.c: Use `virtual memory exhausted', not
61294         `Memory exhausted'.
61295         * lib/obstack.c (print_and_abort): Likewise.
61296
61297 2000-07-30  Paul Eggert  <eggert@twinsun.com>
61298
61299         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
61300         buffer, so that the caller can always quote one small
61301         component of a "memory exhausted" message in slot 0.
61302         From a suggestion by Jim Meyering.
61303
61304 2000-07-30  Jim Meyering  <meyering@lucent.com>
61305
61306         * lib/makepath.c (make_path): Quote the other instance, too.
61307
61308         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
61309         (STATIC_BUF_SIZE): Define.
61310         (quotearg_n_options): Use only statically allocated storage when
61311         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
61312         than STATIC_BUF_SIZE.
61313
61314 2000-07-29  Jim Meyering  <meyering@lucent.com>
61315
61316         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
61317         * lib/dirname.c (dir_name): Likewise.
61318
61319         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
61320         `/'.
61321
61322         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
61323         (dir_name): Assert that there are no trailing slashes.
61324
61325 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
61326
61327         * lib/mbswidth.h (mbswidth): Add a flags argument.
61328         (mbswidth): New declaration.
61329         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
61330         * lib/mbswidth.c (mbswidth): Add a flags argument.
61331         (mbsnwidth): New function.
61332
61333 2000-07-24  Jim Meyering  <meyering@lucent.com>
61334
61335         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
61336
61337 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61338
61339         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
61340
61341 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61342
61343         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
61344         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
61345         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
61346         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
61347         invoke multibyte primitives.
61348
61349 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61350
61351         * lib/quotearg.c:
61352         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
61353         so that mbstate_t is always defined.
61354
61355         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
61356         be 1 in at least one GCC installation, and this configuration
61357         error is likely to be common.  Ignoring MB_LEN_MAX hurts
61358         performance on hosts that have mbrtowc but have only unibyte
61359         locales, but I assume these hosts are rare.
61360
61361 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61362
61363         * lib/mbswidth.c (_XOPEN_SOURCE):
61364         Don't define; this causes problems on Solaris 7.
61365         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
61366
61367 2000-07-23  Jim Meyering  <meyering@lucent.com>
61368
61369         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
61370         too: getgrgid, getpwuid, getuid.
61371
61372 2000-07-23  Jim Meyering  <meyering@lucent.com>
61373
61374         * lib/basename.c (base_name): Add an assertion.
61375
61376 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
61377
61378         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
61379         shadow its mbsinit function.
61380
61381 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
61382
61383         * lib/mbswidth.h: New file.
61384         * lib/mbswidth.c: New file.
61385         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
61386         (noinst_HEADERS): Add mbswidth.h.
61387
61388 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
61389
61390         * lib/config.charset: Add support for FreeBSD. Improve support for
61391         HP-UX and IRIX 6.
61392
61393 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
61394
61395         * m4/mbswidth.m4: New file.
61396         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
61397
61398 2000-07-15  Jim Meyering  <meyering@lucent.com>
61399
61400         * lib/makepath.c: Include quote.h.
61401         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
61402         corresponding argument in a `quote (...)' call.
61403         Give better diagnostics.
61404
61405         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
61406         (noinst_HEADERS): Add quote.h.
61407
61408         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
61409         from tar's src/misc.c.
61410         * lib/quote.h: New file.  Prototypes for same.
61411
61412 2000-07-14  Paul Eggert  <eggert@twinsun.com>
61413
61414         From a suggestion by Bruno Haible.
61415         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
61416         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
61417         to decide whether to define the BeOS workaround macro;
61418         this adjusts to the change to AC_MBSTATE_T.
61419
61420 2000-07-14  Jim Meyering  <meyering@lucent.com>
61421
61422         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
61423         jm_AC_TYPE_UINTMAX_T.
61424
61425 2000-07-13  Paul Eggert  <eggert@twinsun.com>
61426
61427         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
61428
61429         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
61430         quotearg_buffer_restyled): Add support for
61431         clocale_quoting_style.  Undo previous change to
61432         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
61433         and "{RIGHT QUOTATION MARK}" msgids.
61434
61435 2000-07-10  Paul Eggert  <eggert@twinsun.com>
61436
61437         From a suggestion by Bruno Haible.
61438         * m4/mbstate_t.m4 (AC_MBSTATE_T):
61439         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
61440         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
61441         and mbstate_t, to a single-part test that simply defines mbstate_t.
61442         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
61443         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
61444
61445 2000-07-10  Jim Meyering  <meyering@lucent.com>
61446
61447         * m4/strerror_r.m4: Mirror the correction made in autoconf.
61448
61449         * m4/gnu-source.m4: Output to confdefs.h directly.
61450         Suggestion from Akim Demaille.
61451
61452 2000-07-09  Paul Eggert  <eggert@twinsun.com>
61453
61454         The old behavior of quoting `like this' doesn't look good with
61455         newer, ISO-style fonts.  See:
61456         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
61457
61458         Instead, quote "like this" by default.  Let the translator
61459         tailor the locale-specific quoting behavior by providing
61460         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
61461
61462         * lib/quotearg.c (N_): New macro.
61463         (gettext_default): New function.
61464         (quotearg_buffer_restyled): Use
61465         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
61466         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
61467
61468 2000-07-09  Jim Meyering  <meyering@lucent.com>
61469
61470         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
61471         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
61472
61473         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
61474         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
61475
61476 2000-07-09  Jim Meyering  <meyering@lucent.com>
61477
61478         * lib/Most files: Update copyright dates to include 2000.
61479
61480 2000-07-08  Jim Meyering  <meyering@lucent.com>
61481
61482         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
61483         if not defined.
61484         (xgethostname): Remove now-unnecessary #ifdef.
61485         Move declaration of `err' into loop where it's used.
61486
61487 2000-07-05  Paul Eggert  <eggert@twinsun.com>
61488         and Bruno Haible  <haible@clisp.cons.org>
61489
61490         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
61491         only if the test for an object-type mbstate_t fails.  This
61492         prevents us from mistakenly reporting that mbstate_t is a
61493         system object type after we "#define mbstate_t int" to work
61494         around its lack.
61495
61496 2000-07-05  Paul Eggert  <eggert@twinsun.com>
61497         and Bruno Haible  <haible@clisp.cons.org>
61498
61499         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
61500
61501 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
61502
61503         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
61504         to strerror_r.
61505         Include <ctype.h> for use of isalpha.
61506
61507 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
61508
61509         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
61510         by allocating a larger buffer. Test the gethostname return value for
61511         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
61512         returns an error and ENAMETOOLONG isn't defined.
61513
61514 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
61515
61516         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
61517         dimension.
61518
61519 2000-07-04  Jim Meyering  <meyering@lucent.com>
61520
61521         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
61522         of the deprecated AC_CHECKING.
61523
61524 2000-07-04  Jim Meyering  <meyering@lucent.com>
61525
61526         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
61527         Reported by Bruno Haible.
61528
61529 2000-07-04  Jim Meyering  <meyering@lucent.com>
61530
61531         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
61532         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
61533         lacks mbrtowc.
61534
61535 2000-07-03  Paul Eggert  <eggert@twinsun.com>
61536
61537         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
61538         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
61539
61540 2000-07-03  Paul Eggert  <eggert@twinsun.com>
61541         and Bruno Haible  <haible@clisp.cons.org>
61542
61543         * lib/quotearg.c (mbrtowc):
61544         Assign to *pwc, and return 1 only if result is nonzero.
61545         (iswprint): Use ISPRINT when substituting our own mbrtowc.
61546
61547 2000-07-03  Jim Meyering  <meyering@lucent.com>
61548
61549         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
61550
61551 2000-07-03  Jim Meyering  <meyering@lucent.com>
61552
61553         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
61554         This is necessary to get a definition of e.g., UTMP_FILE on
61555         HP-UX 10.20.
61556         From Bob Proulx.
61557
61558 2000-07-02  Jim Meyering  <meyering@lucent.com>
61559
61560         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
61561
61562         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
61563         AC_LIBOBJ(function_name).
61564         * m4/chown.m4: Likewise.
61565         * m4/fnmatch.m4: Likewise.
61566         * m4/ftruncate.m4: Likewise.
61567         * m4/getgroups.m4: Likewise.
61568         * m4/getline.m4: Likewise.
61569         * m4/group-member.m4: Likewise.
61570         * m4/jm-macros.m4: Likewise.
61571         * m4/lstat.m4: Likewise.
61572         * m4/malloc.m4: Likewise.
61573         * m4/memcmp.m4: Likewise.
61574         * m4/nanosleep.m4: Likewise.
61575         * m4/putenv.m4: Likewise.
61576         * m4/realloc.m4: Likewise.
61577         * m4/regex.m4: Likewise.
61578         * m4/stat.m4: Likewise.
61579         * m4/strftime.m4: Likewise.
61580
61581 2000-07-02  Jim Meyering  <meyering@lucent.com>
61582
61583         * lib/quotearg.c (mbstate_t): Don't define here.
61584
61585 2000-07-02  Jim Meyering  <meyering@lucent.com>
61586
61587         * lib/nanosleep.c (SIGCONT): Define if not already defined.
61588
61589 2000-07-01  Jim Meyering  <meyering@lucent.com>
61590
61591         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
61592
61593 2000-07-01  Jim Meyering  <meyering@lucent.com>
61594
61595         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
61596         problem.
61597
61598 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
61599
61600         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
61601         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
61602
61603 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
61604
61605         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
61606         per change in ../m4/ls-mntd-fs.m4.
61607         (read_filesystem_list): Ignore symbolic links.
61608
61609 2000-06-29  Jim Meyering  <meyering@lucent.com>
61610
61611         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
61612         for declaration of strcmp.
61613
61614         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
61615
61616         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
61617         Avoid warning by casting result to `char *' to remove `const'.
61618
61619 2000-06-28  Jim Meyering  <meyering@lucent.com>
61620
61621         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
61622         included by quotearg.c, for which we perform this test.  From
61623         Bruno Haible.
61624
61625 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
61626
61627         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
61628         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
61629         <utmpx.h> exists, put readutmp.o into LIBOBJS.
61630
61631 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
61632
61633         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
61634
61635 2000-06-26  Paul Eggert  <eggert@twinsun.com>
61636
61637         savedir now sets errno on failure and invokes xmalloc to get memory.
61638         Fix a couple of other minor bugs while we're at it.
61639
61640         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
61641         (NAMLEN): Remove macro.
61642         (malloc, realloc): Remove decls.
61643         (stpcpy): Likewise.
61644         ("xalloc.h"): Include.
61645         (NAME_SIZE_DEFAULT): New macro.
61646         (savedir): Use xmalloc / xrealloc to allocate memory.
61647         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
61648         Skip "" directory entries.
61649         Use strlen to calculate directory entry length, since the old method
61650         is rarely used these days and isn't worth supporting.
61651         Don't use a pointer after freeing it.
61652         Check for integer overflow when calculating allocation size.
61653         Use memcpy to copy entries, instead of stpcpy.
61654         Set errno properly when returning NULL.
61655         Check for readdir error.
61656
61657 2000-06-26  Jim Meyering  <meyering@lucent.com>
61658
61659         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
61660
61661 2000-06-25  Jim Meyering  <meyering@lucent.com>
61662
61663         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
61664         Linux header bug when _XOPEN_SOURCE is defined to 500.
61665
61666 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
61667
61668         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
61669         deficiency.
61670
61671 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
61672
61673         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
61674         Include xalloc.h.
61675         Don't include <stdlib.h>.  Don't declare malloc, realloc.
61676
61677 2000-06-24  Jim Meyering  <meyering@lucent.com>
61678
61679         * m4/strerror_r.m4: Revive this file -- to try out an experimental
61680         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
61681         for which strerror does return char*, but which lacks a conveniently
61682         accessible declaration of the function.  If the compile-test says
61683         strerror_r doesn't work, then resort to a `run'-test that works on
61684         BeOS and segfaults on DEC Unix.
61685
61686 2000-06-24  Jim Meyering  <meyering@lucent.com>
61687
61688         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
61689
61690 2000-06-23  Paul Eggert  <eggert@twinsun.com>
61691
61692         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
61693         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
61694
61695 2000-06-23  Paul Eggert  <eggert@twinsun.com>
61696
61697         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
61698         (mbrtowc, mbstate_t): Define substitutes if
61699         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
61700         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
61701         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
61702
61703 2000-06-23  Jim Meyering  <meyering@lucent.com>
61704
61705         * m4/afs.m4: Add missing AC_MSG_RESULT.
61706         Reported by Bruno Haible.
61707
61708         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
61709         Suggestion from Bruno Haible.
61710
61711 2000-06-23  Jim Meyering  <meyering@lucent.com>
61712
61713         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
61714
61715 2000-06-21  Jim Meyering  <meyering@lucent.com>
61716
61717         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
61718
61719 2000-06-21  Jim Meyering  <meyering@lucent.com>
61720
61721         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
61722         (noinst_HEADERS): Add getstr.h.
61723
61724         * lib/getline.c (getstr): Move into a separate file.
61725         * lib/getstr.c (getstr): New file, extracted from getline.c, with
61726         the following changes: new parameter, delim2; both delim[12]
61727         parameters have type `int', not `char'.  The latter would lose
61728         with 8-bit delimiters.
61729         * lib/getstr.h: New file.
61730
61731 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
61732
61733         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
61734         than 1024, return a memory chunk of least possible size, instead
61735         of size PATH_MAX + 2. In the loop, increment the size proportionally.
61736         Use free/xmalloc instead of xrealloc to avoid copying for very long
61737         paths.
61738
61739 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
61740
61741         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
61742         the empty string.
61743
61744 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
61745
61746         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
61747         address, not strdup.  Include <stdlib.h> and don't declare free().
61748
61749 2000-06-19  Jim Meyering  <meyering@lucent.com>
61750
61751         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
61752
61753 2000-06-18  Jim Meyering  <meyering@lucent.com>
61754
61755         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
61756
61757         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
61758         `checking whether...' message to be consistent with that of the
61759         lstat test.
61760
61761 2000-06-18  Jim Meyering  <meyering@lucent.com>
61762
61763         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
61764         Besides, these days every porting target provides a mkdir function.
61765
61766         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
61767         needed. (this snippet comes from src/system.h).
61768
61769 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
61770
61771         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
61772
61773 2000-06-15  Paul Eggert  <eggert@twinsun.com>
61774
61775         * lib/human.c (adjust_value): New function.
61776         (human_readable_inexact): Apply rounding style even when
61777         printing approximate values.
61778
61779 2000-06-14  Paul Eggert  <eggert@twinsun.com>
61780
61781         * lib/human.c (human_readable_inexact): Allow an input block
61782         size that is not a multiple of the output block size, and vice versa.
61783         Reported by Piergiorgio Sartor.
61784
61785 2000-06-14  Paul Eggert  <eggert@twinsun.com>
61786
61787         * lib/getdate.y (get_date): Apply relative times after time
61788         zone indicator, not before.  Reported by Todd A. Jacobs.
61789
61790 2000-06-13  Jim Meyering  <meyering@lucent.com>
61791
61792         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
61793
61794         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
61795
61796 2000-06-12  Paul Eggert  <eggert@twinsun.com>
61797
61798         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
61799
61800 2000-06-12  Jim Meyering  <meyering@lucent.com>
61801
61802         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
61803         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
61804         optional argument.
61805         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
61806         the optional argument, `lib'.
61807
61808 2000-06-08  Jim Meyering  <meyering@lucent.com>
61809
61810         * m4/largefile.m4: Remove file (now that it's part of autoconf).
61811
61812 2000-06-04  Paul Eggert  <eggert@twinsun.com>
61813
61814         Rewrite largefile configuration so that we don't need to run
61815         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
61816         AC_CANONICAL_HOST in configure.in -- jmm]
61817
61818         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
61819         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
61820         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
61821         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
61822         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
61823         All uses changed.
61824         Instead of inspecting the output of getconf, try to compile the
61825         test program without and with the macro definition.
61826         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
61827         for getconf.  Instead, check for the needed flags by compiling
61828         test programs.
61829
61830 2000-06-04  Paul Eggert  <eggert@twinsun.com>
61831
61832         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
61833
61834 2000-06-04  Jim Meyering  <meyering@lucent.com>
61835
61836         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
61837         SunOS 4.1.4 for which gid_t is an unsigned type.
61838
61839 2000-06-03  Jim Meyering  <meyering@lucent.com>
61840
61841         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
61842         now that autoconf requires that.
61843
61844         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
61845         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
61846         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
61847
61848 2000-06-03  Jim Meyering  <meyering@lucent.com>
61849
61850         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
61851
61852 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
61853
61854         * m4/glibc21.m4: New file.
61855         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
61856
61857 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
61858
61859         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
61860         newer, don't install charset.alias.
61861         * lib/config.charset: Change the Linux/glibc rules so they become empty
61862         on glibc-2.1 or newer.
61863
61864 2000-06-02  Jim Meyering  <meyering@lucent.com>
61865
61866         * lib/mountlist.c: Back out last change.  Instead, do this...
61867         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
61868         me_dummy member using the same `ignore'-testing code.
61869         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
61870         fs_type strings.
61871         From Mark D. Roth.
61872
61873 2000-05-29  Jim Meyering  <meyering@lucent.com>
61874
61875         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
61876         mounts with the `ignore' attribute.  Based on a patch from
61877         Mark D. Roth.
61878
61879 2000-05-28  Jim Meyering  <meyering@lucent.com>
61880
61881         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
61882         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61883         * m4/stat.m4: Likewise.
61884         * m4/lstat.m4: Likewise.
61885         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
61886
61887         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
61888         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
61889
61890 2000-05-26  Jim Meyering  <meyering@lucent.com>
61891
61892         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
61893
61894 2000-05-24  Jim Meyering  <meyering@lucent.com>
61895
61896         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
61897         autoconf requires that.
61898         * m4/lib-check.m4: Likewise.
61899         * m4/jm-macros.m4: Likewise.
61900         * m4/strftime.m4: Likewise.
61901
61902         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
61903         AC_CHECK_DECLS, now that autoconf requires that.
61904
61905 2000-05-22  Jim Meyering  <meyering@lucent.com>
61906
61907         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61908         * m4/lstat.m4: Likewise.
61909
61910 2000-05-22  Jim Meyering  <meyering@lucent.com>
61911
61912         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
61913
61914 2000-05-20  Jim Meyering  <meyering@lucent.com>
61915
61916         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
61917         (jm_PREREQ): Use it.
61918
61919 2000-05-18  Jim Meyering  <meyering@lucent.com>
61920
61921         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
61922         back, too, since it may have been modified by allocate_entry.
61923         (hash_delete): Rewrite to use neither the assignment operator
61924         nor the comma operator in an if-expression.
61925
61926 2000-05-15  Paul Eggert  <eggert@twinsun.com>
61927
61928         * lib/closeout.c:
61929         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
61930         Remove; no longer needed.
61931         "quotearg.h": Add include.
61932         (file_name): Do not bother to explicitly initialize to NULL; it's less
61933         efficient on some hosts.
61934         (close_stdout_status): Remove test as to whether stdout was already
61935         closed; it breaks for the case "echo x | sort >&-".
61936         Quote file name colons.
61937         Do not assume that _("write error") lacks format strings.
61938
61939 2000-05-15  Jim Meyering  <meyering@lucent.com>
61940
61941         * lib/version-etc.c (version_etc_copyright): Update the copyright
61942         string used in all --version output.
61943
61944 2000-05-14  Jim Meyering  <meyering@lucent.com>
61945
61946         * lib/closeout.c (close_stdout_set_file_name): New function.
61947         (close_stdout_status): Use new file-scoped global.
61948         Return right away if fstat says the stdout file descriptor is invalid.
61949         * lib/closeout.h (close_stdout_set_file_name): Declare.
61950
61951 2000-05-10  Jim Meyering  <meyering@lucent.com>
61952
61953         * lib/closeout.c [default_exit_status]: New file-scoped variable.
61954         (close_stdout_set_status): New function.
61955         * lib/closeout.h (close_stdout_set_status): Declare.
61956
61957 2000-05-09  Jim Meyering  <meyering@lucent.com>
61958
61959         * m4/gettext.m4: Rename this...
61960         * m4/libintl.m4: ...to this.
61961
61962 2000-05-08  Jim Meyering  <meyering@lucent.com>
61963
61964         * lib/long-options.c: Don't include closeout.h.
61965         (parse_long_options): Don't call close_stdout for --version.
61966
61967 2000-05-06  Paul Eggert  <eggert@twinsun.com>
61968
61969         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
61970         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
61971         2.1.3 bug.  This avoids a clash when files like regex.c define
61972         _GNU_SOURCE.
61973
61974 2000-05-06  Jim Meyering  <meyering@lucent.com>
61975
61976         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
61977         (AC_REPLACE_FUNCS): Add strnlen.
61978
61979         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
61980         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
61981
61982         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
61983         AC_SEARCH_LIBS call for nanosleep.
61984         (LIB_NANOSLEEP): Set and AC_SUBST.
61985
61986 2000-05-06  Jim Meyering  <meyering@lucent.com>
61987
61988         * lib/strnlen.c: Undefine __strnlen and strnlen.
61989         [!weak_alias]: Define __strnlen to strnlen.
61990
61991         * lib/atexit.c: New file, from libiberty.
61992
61993 2000-05-06  Jim Meyering  <meyering@lucent.com>
61994
61995         * lib/closeout.c (close_stdout_status): Also check for errors on the
61996         stderr stream.
61997
61998 2000-05-05  Jim Meyering  <meyering@lucent.com>
61999
62000         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
62001         AC_SEARCH_LIBS call for clock_gettime.
62002         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
62003
62004         * m4/search-libs.m4: Update from autoconf.
62005
62006         su doesn't work on Solaris 2.6.
62007         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
62008         <shadow.h>.  Reported by Dragos Harabor.
62009
62010 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
62011
62012         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
62013         memcpy instead of xmalloc, xrealloc, path_concat.
62014         (locale_charset): Treat empty environment variables as absent.
62015         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
62016
62017 2000-05-04  Jim Meyering  <meyering@lucent.com>
62018
62019         * lib/getopt.c: Update from glibc.
62020         * lib/obstack.c: Likewise.
62021         * lib/obstack.h: Likewise.
62022         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
62023         file
62024
62025         * lib/regex.h: Likewise.
62026         * lib/strndup.c: Likewise.
62027         * lib/strnlen.c: New file, from glibc.
62028
62029 2000-05-03  Jim Meyering  <meyering@lucent.com>
62030
62031         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
62032
62033 2000-05-02  Paul Eggert  <eggert@twinsun.com>
62034
62035         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
62036         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
62037         compile-time test, rather than inspecting host and OS, to
62038         decide whether to define _LARGEFILE_SOURCE.
62039
62040 2000-05-01  Jim Meyering  <meyering@lucent.com>
62041
62042         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
62043
62044         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
62045         Based on a patch from Bruno Haible.
62046
62047 2000-05-01  Jim Meyering  <meyering@lucent.com>
62048
62049         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
62050
62051 2000-04-29  Jim Meyering  <meyering@lucent.com>
62052
62053         * lib/path-concat.c: Declare strdup only if it's not defined.
62054         * lib/canon-host.c: Likewise.
62055
62056 2000-04-28  Jim Meyering  <meyering@lucent.com>
62057
62058         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
62059         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
62060         is included first, then limits.h is included by locale.h by libintl.h.
62061         From John David Anglin.
62062
62063 2000-04-25  Jim Meyering  <meyering@lucent.com>
62064
62065         * lib/makepath.c (S_IRWXUGO): Define.
62066         (make_path): Always perform explicit chmod if MODE specifies any
62067         of the `special' permission bits.  Prompted by a bug report against
62068         install from Mate Wierdl and Joost van Baal.
62069
62070 2000-04-18  Jim Meyering  <meyering@lucent.com>
62071
62072         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
62073         (jm_PREREQ): Use it.
62074
62075 2000-04-18  Jim Meyering  <meyering@lucent.com>
62076
62077         * lib/README: New file.
62078
62079         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
62080         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
62081
62082 2000-04-17  Jim Meyering  <meyering@lucent.com>
62083
62084         Get it right :-)
62085         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
62086         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
62087         Suggestion from Akim Demaille.
62088
62089 2000-04-17  Jim Meyering  <meyering@lucent.com>
62090
62091         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
62092         the definition of it to rpl_strftime also defined-away the system's
62093         declaration.
62094
62095 2000-04-15  Jim Meyering  <meyering@lucent.com>
62096
62097         Use `C' to denote so-called `contiguous' files, the same way
62098         that tar does.
62099         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
62100         (ftypelet): Use S_ISCTG.
62101         From Michael Deutschmann.
62102
62103 2000-04-14  Jim Meyering  <meyering@lucent.com>
62104
62105         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
62106         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
62107         clobbered.
62108
62109 2000-04-14  Jim Meyering  <meyering@lucent.com>
62110
62111         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
62112
62113 2000-04-13  Jim Meyering  <meyering@lucent.com>
62114
62115         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
62116         AH_VERBATIM to insert required #ifndef into config.h.in.
62117         Suggestion from Akim Demaille.
62118
62119 2000-04-12  Jim Meyering  <meyering@lucent.com>
62120
62121         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
62122         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
62123         Christian Krackowizer.
62124
62125         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
62126         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
62127         (AC_SYS_LARGEFILE): Require.
62128         (AM_C_PROTOTYPES): Require.
62129
62130 2000-04-08  Jim Meyering  <meyering@lucent.com>
62131
62132         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
62133         names don't conflict.  Reported by Eli Zaretskii.
62134
62135 2000-04-07  Jim Meyering  <meyering@lucent.com>
62136
62137         * lib/putenv.c: Move inclusion of errno.h so it follows that of
62138         sys/types.h, to work around system header problems on AIX 3.2.5.
62139         From Bruno Haible.
62140
62141 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
62142
62143         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
62144         bug.  Deal with the different error behavior of Irix iconv.
62145
62146 2000-04-05  Paul Eggert  <eggert@twinsun.com>
62147
62148         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
62149         IRIX if the installer said otherwise.
62150
62151 2000-04-05  Jim Meyering  <meyering@lucent.com>
62152
62153         Portability tweaks required for ultrix4.3.
62154         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
62155         (jm_CHECK_DECLS): Add getutent to the list of functions.
62156         (_jm_DECL_HEADERS): Add utmpx.h.
62157         From John David Anglin.
62158
62159         * m4/strftime.m4: Back out the 2000-04-02 change.
62160         Instead of that change, simply undefine putenv in the test program.
62161
62162 2000-04-05  Jim Meyering  <meyering@lucent.com>
62163
62164         Portability tweaks required for ultrix4.3.
62165         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
62166         getutent.
62167         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
62168         * lib/canon-host.c: Declare strdup.
62169         * lib/path-concat.c: Likewise.
62170         From John David Anglin.
62171
62172 2000-04-04  Jim Meyering  <meyering@lucent.com>
62173
62174         Be more DOS 8.3-friendly.
62175         * lib/ref-add.sin: Renamed from ref-add.sed.in.
62176         * lib/ref-del.sin: Renamed from ref-del.sed.in.
62177         * lib/Makefile.am: Reflect renaming.
62178         Reported by Eli Zaretskii.
62179
62180         Use a temporary file name that won't clash with `charset.alias'
62181         in the DOS 8.3 name space.
62182         * lib/Makefile.am (charset_tmp): Define.
62183         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
62184         (uninstall-local): Likewise.
62185         Reported by Eli Zaretskii.
62186
62187 2000-04-03  Jim Meyering  <meyering@lucent.com>
62188
62189         * m4/gettext.m4: Fix typo in comment.
62190
62191         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
62192         textutils/configure.in).  Suggestion from Paul Eggert.
62193         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
62194
62195 2000-04-02  Paul Eggert  <eggert@twinsun.com>
62196
62197         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
62198         variable in the shell rather than using putenv, which isn't
62199         portable.  This avoids the configure-time inter-test dependency
62200         on the potentially-renamed putenv function.
62201
62202 2000-03-30  Paul Eggert  <eggert@twinsun.com>
62203
62204         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
62205         before checking struct stat.st_blksize, so that
62206         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
62207
62208 2000-03-29  Paul Eggert  <eggert@twinsun.com>
62209
62210         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
62211         since strftime.c uses HAVE_STRFTIME to decide whether to use
62212         the underlying strftime.
62213
62214 2000-03-29  Paul Eggert  <eggert@twinsun.com>
62215
62216         * lib/time/strftime.c (my_strftime): Make sure we call the system
62217         strftime, not ourselves, when invoking the underlying strftime.
62218
62219 2000-03-24  Jim Meyering  <meyering@lucent.com>
62220
62221         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
62222         (charset_alias): Define.
62223         (install-exec-local): Factor out common code.
62224         (uninstall-local): Split lines longer than 80.
62225         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
62226         (SUFFIXES): Define.
62227         (.sed.in.sed): New rule.  Don't redirect directly to $@.
62228         (CLEANFILES): Add ref-add.sed and ref-del.sed.
62229
62230 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
62231
62232         * lib/config.charset: Output a line containing "Packages using this
62233         file".
62234         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
62235         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
62236         ref-del.sed): New rules.
62237
62238 2000-03-17  Jim Meyering  <meyering@lucent.com>
62239
62240         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
62241         Otherwise, include <strings.h>
62242
62243 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
62244
62245         * lib/unicodeio.c (utf8_wctomb): New function.
62246         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
62247         format instead of in UCS-4 with platform dependent endianness.
62248
62249 2000-03-10  Jim Meyering  <meyering@lucent.com>
62250
62251         * m4/lib-check.m4: Look for getspnam in -lgen, too.
62252         From Marco Franzen.
62253
62254 2000-03-07  Paul Eggert  <eggert@twinsun.com>
62255
62256         * lib/savedir.c (savedir): Work even if directory size is
62257         negative; this can happen with some screwy NFS configurations.
62258
62259 2000-03-06  Jim Meyering  <meyering@lucent.com>
62260
62261         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
62262         if it's NULL (because we ran out of memory).  From Bruno Haible.
62263
62264 2000-03-05  Jim Meyering  <meyering@lucent.com>
62265
62266         * lib/localcharset.c ("path-concat.h"): Include.
62267         (get_charset_aliases): Use path_concat instead of ANSI string
62268         concatenation.
62269
62270         * lib/unicodeio.h (PARAMS): Define.
62271         Use it to guard prototype.
62272
62273 2000-03-04  Jim Meyering  <meyering@lucent.com>
62274
62275         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
62276         for lib/localcharset.c.
62277
62278 2000-03-04  Jim Meyering  <meyering@lucent.com>
62279
62280         * lib/Makefile.am (install-exec-local): Create $(libdir) before
62281         installing into it.
62282         (uninstall-local): Uncomment this rule so `make distcheck' works
62283         once again.
62284
62285         * lib/unicodeio.c (<errno.h>): Include it.
62286         (errno): Declare if not defined.
62287
62288         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
62289
62290         * lib/config.charset: New version, incorporating remarks from a linux
62291         i18n mailing list.  From Bruno Haible.
62292
62293 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
62294
62295         * m4/codeset.m4: New file.
62296         * m4/iconv.m4: New file.
62297         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
62298
62299 2000-03-03  Jim Meyering  <meyering@lucent.com>
62300
62301         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
62302
62303 2000-03-02  Jim Meyering  <meyering@lucent.com>
62304
62305         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
62306         the messages come out on separate lines.
62307
62308         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
62309         rather than jm_CHECK_DECLARATIONS.
62310         * m4/decl.m4: Remove now-unused file.
62311
62312         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
62313         geteuid.
62314
62315 2000-03-02  Jim Meyering  <meyering@lucent.com>
62316
62317         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
62318
62319 2000-03-01  Jim Meyering  <meyering@lucent.com>
62320
62321         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
62322         * lib/unicodeio.c: Likewise.
62323
62324 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
62325
62326         * lib/config.charset: New file.
62327         * lib/localcharset.c: New file.
62328         * lib/unicodeio.h, lib/unicodeio.c: New files.
62329         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
62330         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
62331         (noinst_HEADERS): Add unicodeio.h.
62332         (all-local, install-exec-local, charset.alias): New targets.
62333
62334 2000-02-28  Paul Eggert  <eggert@twinsun.com>
62335
62336         * lib/quotearg.c (ALERT_CHAR): New macro.
62337         (quotearg_buffer_restyled): Use it.
62338
62339 2000-02-27  Jim Meyering  <meyering@lucent.com>
62340
62341         * m4/check-decl.m4: Add getenv to the list.
62342
62343 2000-02-27  Jim Meyering  <meyering@lucent.com>
62344
62345         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
62346         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
62347
62348         * lib/backupfile.c: Guard inclusion of stdlib.h with
62349         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
62350         Declare malloc if needed.
62351
62352         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
62353         `#ifndef HAVE_DECL..'
62354         now that autoconf always defines the HAVE_DECL_ symbols.
62355         * lib/human.c: Likewise.
62356         * lib/same.c: Likewise.
62357         * lib/strtoumax.c: Likewise.
62358
62359         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
62360         declaration check was not run.
62361         * lib/hash.c: Likewise.
62362         * lib/human.c: Likewise.
62363         * lib/same.c: Likewise.
62364         * lib/strtoumax.c: Likewise.
62365
62366         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
62367         `.', then first look up the entire `.'-containing string as a login
62368         name.
62369
62370 2000-02-23  Jim Meyering  <meyering@lucent.com>
62371
62372         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
62373         in place of my hack.
62374
62375 2000-02-18  Paul Eggert  <eggert@twinsun.com>
62376
62377         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
62378         (textint): New typedef.
62379         (parser_control): Member year changed from int to textint.
62380         All uses changed.
62381         (YYSTYPE): Removed; replaced by %union with int and textint members.
62382         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
62383         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
62384         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
62385         (tSNUMBER, tUNUMBER): Now of type <textintval>.
62386         (date, number, to_year): Use width of number in digits, not its value,
62387         to determine whether it's a 2-digit year, or a 2-digit time.
62388         (yylex): Store number of digits of numeric tokens.
62389         Reported by John Kendall.
62390
62391         (parser_control): Changed from struct parser_control to typedef (for
62392         consistency).  All uses changed.
62393
62394         (tID): Removed; not used.
62395         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
62396
62397 2000-02-14  Paul Eggert  <eggert@twinsun.com>
62398
62399         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
62400         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
62401
62402 2000-02-12  Jim Meyering  <meyering@lucent.com>
62403
62404         * lib/userspec.c (ISDIGIT): Define it.
62405         (isdigit): Remove definition.
62406         (is_number): Use ISDIGIT, not isdigit.
62407         <libintl.h>: Include.
62408         (_ and N_): Define.
62409         (parse_user_spec): Mark translatable strings.
62410
62411 2000-02-10  Jim Meyering  <meyering@lucent.com>
62412
62413         With these changes, nanosleep.[ch] are finally enough like the other
62414         lib/* replacement files to compile on a few more losing systems.
62415
62416         * lib/nanosleep.h: Don't include config.h.
62417         Remove prototype from declaration of nanosleep.
62418         (PARAMS): Remove now-unneeded definition.
62419         * lib/nanosleep.c: #undef nanosleep.
62420         (rpl_nanosleep): Rename from nanosleep.
62421
62422 2000-02-10  Jim Meyering  <meyering@lucent.com>
62423
62424         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
62425         gnu_nanosleep to rpl_nanosleep.
62426
62427 2000-02-09  Jim Meyering  <meyering@lucent.com>
62428
62429         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
62430         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
62431
62432 2000-02-08  Akim Demaille  <akim@epita.fr>
62433
62434         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
62435         `[' and `]' and remove uses of `changequote'.
62436         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
62437         (AC_SYS_LARGEFILE): Likewise.
62438         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
62439         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
62440         of changequote.
62441         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
62442         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
62443         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
62444         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
62445
62446 2000-02-05  Jim Meyering  <meyering@lucent.com>
62447
62448         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
62449         Remove explicit use of AC_HEADER_TIME.  It is required by
62450         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
62451         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
62452         in autoconf whereby the expansion of the latter ended up preceding
62453         the expansion of its prerequisite, AC_HEADER_TIME.
62454         Reported by Volker Borchert.
62455
62456 2000-02-03  Jim Meyering  <meyering@lucent.com>
62457
62458         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
62459
62460 2000-02-03  Jim Meyering  <meyering@lucent.com>
62461
62462         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
62463         rather than with `#if HAVE_UTMPNAME'.
62464
62465 2000-02-02  Jim Meyering  <meyering@lucent.com>
62466
62467         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
62468         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
62469         Reported by Eli Zaretskii.
62470
62471 2000-02-01  Jim Meyering  <meyering@lucent.com>
62472
62473         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
62474
62475 2000-01-31  Jim Meyering  <meyering@lucent.com>
62476
62477         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
62478         functions.  Add the time.h and sys/time.h headers along with the
62479         AC_REQUIRE'ment of AC_HEADER_TIME.
62480
62481 2000-01-31  Jim Meyering  <meyering@lucent.com>
62482
62483         * lib/nanosleep.h (nanosleep): Guard declaration with
62484         `#if ! HAVE_DECL_NANOSLEEP'.
62485         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
62486         the declaration in that vendor's sys/timers.h.
62487         Reported by Christian Krackowizer.
62488
62489         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
62490         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
62491         (ISPRINT): Likewise.
62492         Reported by Tom Tromey.
62493
62494 2000-01-30  Jim Meyering  <meyering@lucent.com>
62495
62496         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
62497
62498         * m4/prereq.m4 (utmp_includes): Define.
62499         Check for ut_user and ut_name members in both struct utmpx
62500         and struct utmp.
62501
62502 2000-01-30  Jim Meyering  <meyering@lucent.com>
62503
62504         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
62505         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
62506         header files where only utmpx.ut_user is declared.
62507
62508         * lib/readutmp.h (UT_USER): Define.
62509
62510 2000-01-29  Jim Meyering  <meyering@lucent.com>
62511
62512         * m4/lib-check.m4: New file containing library-related checks from
62513         fileutils and sh-utils (textutils had none).
62514
62515 2000-01-28  Jim Meyering  <meyering@lucent.com>
62516
62517         * m4/perl.m4: Change format of warning message to look more like that
62518         from the missing script.  Suggestion from François Pinard.
62519
62520 2000-01-25  Jim Meyering  <meyering@lucent.com>
62521
62522         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
62523         well as time.h in the compile check.
62524         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
62525         Fix typo in cross-compiling case: s/yes/no/.
62526
62527 2000-01-23  Jim Meyering  <meyering@lucent.com>
62528
62529         * m4/jm-macros.m4: Move df-related tests here from
62530         fileutils/configure.in
62531
62532         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
62533         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
62534
62535         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
62536         s/space/ac_fsusage_space/.
62537         (jm_FILE_SYSTEM_USAGE): Take two parameters.
62538
62539         * m4/ftruncate.m4: New file (derived from part of
62540         fileutils/configure.in).
62541         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
62542         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
62543
62544         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
62545         AC_SUBST these here, rather than just in sh-util/configure.in, so
62546         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
62547         all the same.
62548         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
62549         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
62550         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
62551         (AC_SUBST(POW_LIBM)): Likewise.
62552         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
62553
62554 2000-01-23  Jim Meyering  <meyering@lucent.com>
62555
62556         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
62557         obstack.c.
62558
62559 2000-01-22  Jim Meyering  <meyering@lucent.com>
62560
62561         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
62562
62563         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
62564
62565         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
62566         configure.in
62567         (AC_CHECK_HEADERS): Likewise for sh-utils.
62568         (AC_CHECK_HEADERS): Likewise for textutils.
62569         Merge the three lists of headers.
62570
62571         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
62572         from fileutils' configure.in.
62573
62574         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
62575         code. Moved tests into their own function (_jm_DECL_HEADERS) in
62576         check-decl.m4.
62577
62578         * m4/check-decl.m4: Use #if rather than #ifdef.
62579         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
62580         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
62581         (_jm_DECL_HEADERS): Define new function.
62582         (jm_CHECK_DECLARATIONS): Require it.
62583
62584 2000-01-22  Jim Meyering  <meyering@lucent.com>
62585
62586         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
62587         [! HAVE_DECL_STRTOULL]: Declare strtoull.
62588         Required for some AIX systems.  Reported by Christian Krackowizer.
62589         [TESTING] (main): New function.
62590
62591         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
62592         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
62593         letters.
62594
62595         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
62596         iswprint.
62597
62598         * lib/strverscmp.c (ISDIGIT): Define.
62599         (strverscmp): Use ISDIGIT, not isdigit.
62600
62601 2000-01-19  Jim Meyering  <meyering@lucent.com>
62602
62603         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
62604         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
62605         defines `struct timespec' in <sys/time.h>
62606
62607         * m4/c-bs-a.m4: Remove uses of changequote altogether.
62608         Thanks to Akim for explaining.
62609
62610 2000-01-17  Paul Eggert  <eggert@twinsun.com>
62611
62612         * lib/nanosleep.c (nanosleep):
62613         Don't use SA_INTERRUPT to decide whether to call sigaction, as
62614         POSIX.1 doesn't require SA_INTERRUPT and some systems
62615         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
62616         it's been part of POSIX.1 since day 1 (in 1988).
62617
62618 2000-01-17  Jim Meyering  <meyering@lucent.com>
62619
62620         * lib/interlock: Remove unused file.  Reported by François Pinard.
62621
62622 2000-01-16  Paul Eggert  <eggert@twinsun.com>
62623
62624         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
62625         alert, backslash, formfeed, and vertical tab unnecessarily in
62626         shell quoting style.
62627
62628 2000-01-16  Jim Meyering  <meyering@lucent.com>
62629
62630         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
62631         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
62632         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
62633         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
62634
62635 2000-01-16  Jim Meyering  <meyering@lucent.com>
62636
62637         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
62638         because the latter didn't work.
62639
62640 2000-01-15  Jim Meyering  <meyering@lucent.com>
62641
62642         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
62643         (AC_REPLACE_FUNCS): Add memcpy and memset.
62644         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
62645         Add strpbrk.
62646         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
62647
62648 2000-01-12  Jim Meyering  <meyering@lucent.com>
62649
62650         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
62651         (jm_PREREQ): Use it.
62652         (jm_PREREQ_READUTMP): New macro.
62653         (jm_PREREQ): Use it.
62654
62655 2000-01-11  Paul Eggert  <eggert@twinsun.com>
62656
62657         Quote multibyte characters correctly.
62658         * m4/c-bs-a.m4: New file.
62659         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
62660         (jm_PREREQ): Use it.
62661
62662 2000-01-11  Paul Eggert  <eggert@twinsun.com>
62663
62664         * m4/uintmax_t.m4: Port to autoconf 2.13.
62665
62666 2000-01-08  Jim Meyering  <meyering@ascend.com>
62667
62668         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
62669         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
62670
62671 2000-01-04  Jim Meyering  <meyering@ascend.com>
62672
62673         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
62674         jm_STRUCT_DIRENT_D_TYPE.
62675         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
62676         jm_STRUCT_DIRENT_D_INO.
62677         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
62678         jm_STRUCT_UTIMBUF.
62679         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
62680         renamings.
62681         * m4/utime.m4: Likewise.
62682
62683         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
62684         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
62685
62686 2000-01-03  Paul Eggert  <eggert@twinsun.com>
62687
62688         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
62689         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
62690
62691 2000-01-02  Jim Meyering  <meyering@ascend.com>
62692
62693         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
62694         remember if this is necessary.
62695
62696 1999-12-26  Jim Meyering  <meyering@ascend.com>
62697
62698         * m4/jm-macros.m4: Use it here.
62699         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
62700
62701 1999-12-23  Jim Meyering  <meyering@ascend.com>
62702
62703         * m4/jm-macros.m4: Check for clock_gettime (moved from
62704         fileutils/configure.in)
62705         Check for gettimeofday.
62706
62707 1999-12-20  Jim Meyering  <meyering@ascend.com>
62708
62709         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
62710         autoconf-2.14a-1999-12-20.
62711
62712 1999-12-19  Jim Meyering  <meyering@ascend.com>
62713
62714         * m4/lstat-slash.m4: New file.
62715         * m4/jm-macros.m4: Use the new macro:
62716         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62717
62718 1999-12-07  Jim Meyering  <meyering@ascend.com>
62719
62720         * m4/perl.m4: Require that File::Compare be available, too.
62721         Too many systems seem to lack it.
62722
62723         * m4/strftime.m4: Add checks for most of the cpp macros tested in
62724         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
62725
62726 1999-11-18  Paul Eggert  <eggert@twinsun.com>
62727
62728         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
62729         problem with the QNX 4.25 shell, which doesn't propagate exit
62730         status of failed commands inside shell assignments.
62731
62732 1999-11-17  Jim Meyering  <meyering@ascend.com>
62733
62734         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
62735
62736 1999-11-07  Jim Meyering  <meyering@ascend.com>
62737
62738         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
62739
62740 1999-11-06  Jim Meyering  <meyering@ascend.com>
62741
62742         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
62743         * m4/jm-macros.m4 (jm_MACROS): Use it here.
62744
62745 1999-11-05  Jim Meyering  <meyering@ascend.com>
62746
62747         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
62748         configure.in of textutils, fileutils, and sh-utils into this one
62749         (shared between those packages) file.
62750         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
62751         AC_STRUCT_ST_BLKSIZE.
62752
62753 1999-11-03  Jim Meyering  <meyering@ascend.com>
62754
62755         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
62756         of AC_CHECK_TYPE checks includes unistd.h.
62757         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
62758         Suggestion from Akim Demaille.
62759
62760 1999-10-30  Jim Meyering  <meyering@ascend.com>
62761
62762         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
62763         m4-quoted string.
62764         * m4/ls-mntd-fs.m4: Likewise.
62765         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
62766         * m4/jm-winsz1.m4: Likewise.
62767
62768         * m4/const.m4: Remove file, since the fix made it into the experimental
62769         version of autoconf.
62770         * m4/mktime.m4: Likewise.
62771
62772         * m4/check-type.m4: Remove file, now that the latest version of
62773         AC_CHECK_TYPE takes a third arg to specify additional #includes.
62774
62775         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
62776         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
62777         AC_CHECK_TYPE.
62778
62779 1999-10-04  Jim Meyering  <meyering@ascend.com>
62780
62781         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
62782
62783 1999-09-22  Paul Eggert  <eggert@twinsun.com>
62784
62785         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
62786         2.95.1 bug with HP-UX 10.20.
62787
62788 1999-09-17  Jim Meyering  <meyering@ascend.com>
62789
62790         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
62791         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
62792         due to missing strdup (against sh-utils-2.0).
62793
62794 1999-08-29  Jim Meyering  <meyering@ascend.com>
62795
62796         * m4/jm-macros.m4: Require jm_BISON.
62797         * m4/bison.m4: New file.
62798
62799 1999-08-17  Paul Eggert  <eggert@twinsun.com>
62800
62801         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
62802         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
62803
62804 1999-08-05  Jim Meyering  <meyering@ascend.com>
62805
62806         * m4/getline.m4: Rename test file from conftestdata to conftest.data
62807         to avoid conflicts with `conftest' on 8+3 filesystems.
62808         Suggestion from Eli Zaretskii.
62809
62810 1999-08-04  Jim Meyering  <meyering@ascend.com>
62811
62812         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
62813         fileutils and sh-utils (textutils's getline test was inadequate).
62814         (AM_FUNC_GETLINE): Run this test.
62815         (AC_CHECK_FUNCS): Check for getdelim.
62816         Reported by Bob Proulx.
62817
62818 1999-08-02  Jim Meyering  <meyering@ascend.com>
62819
62820         * m4/jm-macros.m4: Add a comment.
62821
62822 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62823
62824         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
62825         <inttypes.h> defines strtoumax as a macro (and not as a
62826         function).
62827
62828 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62829
62830         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
62831         that we can shift, multiply and divide unsigned long long
62832         values; Ultrix cc can't do it.
62833
62834 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62835
62836         * m4/mktime.m4: New file, which is a preview of what should appear
62837         in the next public autoconf release.
62838
62839 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62840
62841         * m4/lfs.m4: Remove this file.
62842         * m4/largefile.m4: New file.  It contains the old contents of
62843         lfs.m4, except that all names with prefix AC_LFS have been
62844         changed to use the prefix AC_SYS_LARGEFILE instead, to be
62845         compatible with future autoconf versions.  Also, some minor m4
62846         quoting problems have been fixed.
62847
62848 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62849
62850         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
62851         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
62852         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
62853         and simplify the shell code.
62854
62855 1999-08-01  Jim Meyering  <meyering@ascend.com>
62856
62857         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
62858         m4.
62859
62860 1999-07-20  Jim Meyering  <meyering@ascend.com>
62861
62862         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
62863
62864 1999-07-15  Jim Meyering  <meyering@ascend.com>
62865
62866         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
62867
62868 1999-05-22  Jim Meyering  <meyering@ascend.com>
62869
62870         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
62871
62872 1999-05-20  Jim Meyering  <meyering@ascend.com>
62873
62874         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
62875         Add a colon after each `then' in case $4 is empty.
62876
62877 1999-05-16  Jim Meyering  <meyering@ascend.com>
62878
62879         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
62880
62881 1999-05-10  Jim Meyering  <meyering@ascend.com>
62882
62883         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
62884
62885         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
62886         AC_FUNC_MKTIME.
62887
62888 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
62889
62890         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
62891
62892 1999-05-04  Paul Eggert  <eggert@twinsun.com>
62893
62894         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
62895         not CPPFLAGS, so that linking works correctly in IRIX.
62896
62897 1999-04-30  Paul Eggert  <eggert@twinsun.com>
62898
62899         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
62900
62901 1999-04-20  Paul Eggert  <eggert@twinsun.com>
62902
62903         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
62904         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
62905         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
62906         jm_AC_TYPE_UNSIGNED_LONG_LONG.
62907         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
62908
62909         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
62910
62911 1999-04-20  Jim Meyering  <meyering@ascend.com>
62912
62913         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
62914         AC_REPLACE xstroull if necessary.  From Paul Eggert.
62915         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
62916
62917 1999-04-18  Jim Meyering  <meyering@ascend.com>
62918
62919         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
62920         * m4/jm-macros.m4: Use it.
62921
62922 1999-04-06  Jim Meyering  <meyering@ascend.com>
62923
62924         * m4/strftime.m4: Remove test for %f.
62925
62926 1999-03-29  Jim Meyering  <meyering@ascend.com>
62927
62928         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
62929         superset of the AC_TYPE_* checks in the textutils, fileutils,
62930         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
62931         AC_TYPE_PID_T.
62932
62933 1999-03-28  Jim Meyering  <meyering@ascend.com>
62934
62935         * m4/jm-macros.m4: Define GNU_PACKAGE here.
62936         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
62937         replaced e.g., in the *.sh files of the sh-utils.
62938
62939 1999-03-20  Jim Meyering  <meyering@ascend.com>
62940
62941         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
62942         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
62943         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
62944
62945 1999-03-19  Jim Meyering  <meyering@ascend.com>
62946
62947         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
62948
62949 1999-03-12  Jim Meyering  <meyering@ascend.com>
62950
62951         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
62952
62953 1999-03-07  Jim Meyering  <meyering@ascend.com>
62954
62955         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
62956         declared.
62957
62958 1999-02-17  Jim Meyering  <meyering@ascend.com>
62959
62960         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
62961         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
62962
62963 1999-02-07  Jim Meyering  <meyering@ascend.com>
62964
62965         * m4/group-member.m4: New file -- extracted from sh-utils'
62966         configure.in.
62967
62968         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
62969         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
62970
62971 1999-02-06  Jim Meyering  <meyering@ascend.com>
62972
62973         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
62974         * m4/fnmatch.m4: Likewise.
62975         * m4/getgroups.m4: Likewise.
62976         * m4/lstat.m4: Likewise.
62977         * m4/malloc.m4: Likewise.
62978         * m4/putenv.m4: Likewise.
62979         * m4/realloc.m4: Likewise.
62980         * m4/regex.m4: Likewise.
62981         * m4/stat.m4: Likewise.
62982         * m4/strftime.m4: Likewise.
62983         Suggestion from Alain Magloire.
62984
62985         * m4/chown.m4: Use `.$ac_objext', not `.o'.
62986         * m4/fnmatch.m4: Likewise.
62987         * m4/getgroups.m4: Likewise.
62988         * m4/getline.m4: Likewise.
62989         * m4/lstat.m4: Likewise.
62990         * m4/malloc.m4: Likewise.
62991         * m4/memcmp.m4: Likewise.
62992         * m4/putenv.m4: Likewise.
62993         * m4/realloc.m4: Likewise.
62994         * m4/regex.m4: Likewise.
62995         * m4/stat.m4: Likewise.
62996         * m4/strftime.m4: Likewise.
62997         Suggestion from Alain Magloire.
62998
62999         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
63000         an argument.
63001
63002         * m4/regex.m4: Add a run-time Test for proper operation of
63003         re_compile_pattern.
63004
63005 1999-01-31  Jim Meyering  <meyering@ascend.com>
63006
63007         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
63008
63009 1999-01-30  Jim Meyering  <meyering@ascend.com>
63010
63011         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
63012
63013         * m4/jm-mktime.m4: Make this a wrapper around the official
63014         AM_FUNC_MKTIME rather than my private copy, now that the official one
63015         is up to date.
63016         * m4/mktime.m4: Remove file.
63017
63018         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
63019         * m4/uptime.m4: Likewise.
63020         * m4/uintmax_t.m4: Likewise.
63021
63022 1999-01-28  Jim Meyering  <meyering@ascend.com>
63023
63024         * m4/jm-macros.m4: Use jm_AFS.
63025         * m4/afs.m4: New file (from fileutils' configure.in).
63026
63027         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
63028         * m4/chown.m4: Likewise.
63029         * m4/d-ino.m4: Likewise.
63030         * m4/d-type.m4: Likewise.
63031         * m4/fnmatch.m4: Likewise.
63032         * m4/getgroups.m4: Likewise.
63033         * m4/gettext.m4: Likewise.
63034         * m4/jm-mktime.m4: Likewise.
63035         * m4/jm-winsz2.m4: Likewise.
63036         * m4/lcmessage.m4: Likewise.
63037         * m4/ls-mntd-fs.m4: Likewise.
63038         * m4/malloc.m4: Likewise.
63039         * m4/memcmp.m4: Likewise.
63040         * m4/putenv.m4: Likewise.
63041         * m4/realloc.m4: Likewise.
63042         * m4/st_mtim.m4: Likewise.
63043         * m4/strftime.m4: Likewise.
63044
63045 1999-01-16  Jim Meyering  <meyering@ascend.com>
63046
63047         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
63048         (ARGMATCH_DIE_DECL): Define.
63049
63050 1999-01-12  Jim Meyering  <meyering@ascend.com>
63051
63052         * m4/Makefile.am.in: Rewrite to avoid using fmt.
63053         Reported by Lars Hecking.
63054
63055 1999-01-10  Jim Meyering  <meyering@ascend.com>
63056
63057         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
63058         gross kludge.
63059         * m4/inttypes_h.m4: Likewise.
63060         * m4/lstat.m4: Likewise.
63061         * m4/malloc.m4: Likewise.
63062         * m4/readdir.m4: Likewise.
63063         * m4/realloc.m4: Likewise.
63064         * m4/st_dm_mode.m4: Likewise.
63065         * m4/stat.m4: Likewise.
63066         * m4/utimbuf.m4: Likewise.
63067         * m4/utimes.m4: Likewise.
63068
63069         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
63070         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
63071         comments in config.h.in are meaningful.
63072
63073         * m4/jm-macros.m4: Require autoconf-2.13 here.
63074
63075         * m4/regex.m4: By default, don't use the included regex.c on systems
63076         with glibc 2.  Suggestion from Uli Drepper.
63077
63078 1999-01-02  Jim Meyering  <meyering@ascend.com>
63079
63080         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
63081
63082 1998-12-18  Jim Meyering  <meyering@ascend.com>
63083
63084         * m4/Makefile.am.in (Makefile.am): Simplify rule.
63085         Based on a suggestion from Lars Hecking.
63086
63087 1998-11-16  Paul Eggert  <eggert@twinsun.com>
63088
63089         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
63090
63091 1998-11-16  Jim Meyering  <meyering@ascend.com>
63092
63093         * m4/lfs.m4: Double-quote the `uname...` expression.
63094
63095 1998-11-14  Jim Meyering  <meyering@ascend.com>
63096
63097         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
63098         * m4/stat.m4: Likewise.
63099
63100 1998-11-03  Jim Meyering  <meyering@ascend.com>
63101
63102         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
63103         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
63104
63105 1998-10-18  Jim Meyering  <meyering@ascend.com>
63106
63107         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
63108
63109 1998-10-17  Jim Meyering  <meyering@ascend.com>
63110
63111         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
63112         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
63113         calls for those previously hard-coded headers.  Instead, take a new
63114         parameter.
63115         (jm_CHECK_DECLARATIONS): Reflect interface change.
63116         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
63117         (jm_CHECK_DECL_LOCALTIME_R): New macro.
63118
63119         * m4/mktime.m4: Test for spring-forward gap before long-running test.
63120
63121 1998-10-14  Jim Meyering  <meyering@ascend.com>
63122
63123         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
63124         instead of "TZ=America/Vancouver".  From Paul Eggert.
63125
63126 1998-10-11  Jim Meyering  <meyering@ascend.com>
63127
63128         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
63129         This adds a test for a recently added compatibility fix for mktime.c.
63130         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
63131
63132 1998-09-27  Jim Meyering  <meyering@ascend.com>
63133
63134         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
63135
63136         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
63137         ../configure.in, including a change from Gordon Matzigkeit to allow
63138         cross-compiling for the Hurd.
63139
63140         * m4/glibc.m4: New file/macro to test for the GNU C Library
63141         versions 1 and 2.  From Gordon Matzigkeit.
63142         Indent.
63143
63144 1998-09-21  Jim Meyering  <meyering@ascend.com>
63145
63146         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
63147
63148 1998-08-18  Paul Eggert  <eggert@twinsun.com>
63149
63150         Port nanosecond-resolution times to UnixWare 2.1.2 and
63151         pedantic Solaris 2.6.
63152
63153         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
63154         AC_STRUCT_ST_MTIM.
63155         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
63156         Generate name of ns member, instead of just 1 or undef.
63157         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
63158
63159 1998-08-15  Jim Meyering  <meyering@ascend.com>
63160
63161         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
63162         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
63163         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
63164         instead of jm_TYPE_SSIZE_T.
63165
63166 1998-08-12  Jim Meyering  <meyering@ascend.com>
63167
63168         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
63169
63170 1998-08-02  Jim Meyering  <meyering@ascend.com>
63171
63172         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
63173         in acconfig.h manually.
63174
63175 1998-07-31  Paul Eggert  <eggert@twinsun.com>
63176
63177         * m4/st_mtim.m4: New file.
63178
63179 1998-07-28  Jim Meyering  <meyering@ascend.com>
63180
63181         * m4/utimes.m4: Undef stat.
63182
63183 1998-07-25  Jim Meyering  <meyering@ascend.com>
63184
63185         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
63186         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
63187
63188 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
63189
63190         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
63191         uid and gid actually remain unchanged.
63192
63193 1998-07-07  Jim Meyering  <meyering@ascend.com>
63194
63195         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
63196
63197 1998-07-04  Jim Meyering  <meyering@ascend.com>
63198
63199         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
63200         to prove that this macro can be used in packages without regex.c.
63201
63202 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
63203
63204         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
63205         is to be used.
63206
63207 1998-07-03  Jim Meyering  <meyering@ascend.com>
63208
63209         * m4/gettext.m4: Add -lintl if it's found to be necessary.
63210
63211         * m4/gettext.m4: New file -- from gettext-0.10.35.
63212         * m4/lcmessage.m4: Likewise.
63213         * m4/progtest.m4: Likewise.
63214
63215         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
63216         * m4/jm-macros.m4: Require the new macro.
63217
63218 1998-06-29  Jim Meyering  <meyering@ascend.com>
63219
63220         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
63221         for the definition of NGROUPS (used in a system header included
63222         by sys/mount.h).
63223
63224 1998-06-28  Jim Meyering  <meyering@ascend.com>
63225
63226         * m4/ls-mntd-fs.m4: New file.
63227         * m4/fstypename.m4: New file.
63228
63229         * m4/jm-macros.m4: Require the new macro.
63230         * m4/jm-glibc-io.m4: New file.
63231
63232 1998-05-19  Jim Meyering  <meyering@ascend.com>
63233
63234         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
63235         * m4/lchown.m4: New file.
63236
63237         * m4/Makefile.am.in: New file.
63238         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
63239
63240 1998-05-14  Jim Meyering  <meyering@ascend.com>
63241
63242         * m4/Makefile.am (EXTRA_DIST): Add them.
63243         * m4/jm-macros.m4: New file.
63244         * m4/utimbuf.m4: New file.
63245
63246 1998-05-12  Jim Meyering  <meyering@ascend.com>
63247
63248         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
63249
63250 1998-05-11  Jim Meyering  <meyering@ascend.com>
63251
63252         * m4/isc-posix.m4: New file.
63253
63254 1998-05-10  Jim Meyering  <meyering@ascend.com>
63255
63256         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
63257
63258 1998-05-09  Jim Meyering  <meyering@ascend.com>
63259
63260         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
63261         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
63262         with automake.
63263
63264         * m4/ssize_t.m4: New file.
63265         * m4/mktime.m4: Remove file -- the new automake has this now.
63266
63267 1998-04-26  Jim Meyering  <meyering@ascend.com>
63268
63269         * m4/assert.m4: New file.
63270         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
63271
63272 1998-04-05  Jim Meyering  <meyering@ascend.com>
63273
63274         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
63275         (jm_PREREQ): Use it here.
63276
63277 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
63278
63279         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
63280         in acconfig.h.
63281
63282 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
63283
63284         * m4/prereq.m4: New file.
63285         * m4/error.m4: New file.
63286         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
63287
63288 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
63289
63290         * m4/getline.m4: Don't set am_cv_func_working_getline before the
63291         cache-check for the same variable -- that defeated the purpose of
63292         the test; the test program was never run.  This was a problem only
63293         on systems with losing getline functions -- HP-UX 10.20 is one.
63294         Reported by Bjorn Helgaas.
63295
63296 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
63297
63298         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
63299
63300 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
63301
63302         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
63303
63304         * m4/const.m4: New file.  Use an initializer in this declaration
63305         typedef int charset[2]; const charset x;
63306         Reported by Bob Glickstein.
63307
63308 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
63309
63310         * m4/chown.m4: Fix reversed types on -1 args to chown.
63311         From Kaveh Ghazi.
63312
63313 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
63314
63315         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
63316         Add lseek and memchr.
63317
63318         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
63319         T.E.Dickey <dickey@clark.net> said that some older preprocessors
63320         have a 20-character limit on names.
63321
63322 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
63323
63324         * m4/inttypes_h.m4: New file.
63325         * m4/uintmax_t.m4: New file.
63326         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
63327
63328
63329         -----
63330
63331         Local Variables:
63332         coding: utf-8
63333         End:
63334
63335         Copyright (C) 1997-2010 Free Software Foundation, Inc.
63336
63337         Copying and distribution of this file, with or without
63338         modification, are permitted provided the copyright notice
63339         and this notice are preserved.